The charge in a capacitor over a three second period is given (numerically) by

f(t)=1/2t 0<=t<1

=1/2(t-1) 1<=t<2

=1/2(t-2) 2<=t<3

= 0 t=3

Does f(t) have a max or min in (0,3). Explain!

Do we take the first derivative? for each? That is what i did! Any help would be appreciated!