Given y=x3−3x2+6
Differentiating y w.r.t. x,dydx=3x2−6x
Putting dy/dx=0, we get the values at which the function is maximum or minimum. So
3x2−6x=0
⇒x(3x−6)=0⇒x=0,+2
To distinguish the values of x as the point of maximum or minimum, we need second derivative of the function.
∴d2ydx2=6x−6; Now (d2ydx2)x=0=−6<0.
So x=0 is a point of maximum.
Similarly, (d2ydx2)x=+2=6>0
So x=+2 is a point of minimum.
Hence, the maximum value of y is 03−3×0+6=6 and the minimum value of y is (2)3−3(2)2+6=2.