f(x)=x3−9x2+24x
∴f′(x)=ddx(x3−9x2+24x)
=3x2−9×2x+24×1
=3x2−18x+24
and
f′′(x)=ddx(3x2−18x)+24
=3×2x−18×1+0
=6x−18
f′′(x)=0 given 3x2−18x+24=0
∴x2−6x+8=0
∴(x−2)(x−4)=0
∴ the roots of f′(x)=0 and x1=2 and x2=4.
(a) f′′(2)
=6(2)−18
=−6<0
∴ by the second derivatives test, f has maximum at x=2 and maximum value of at x=2
=f(2)
=(2)3−9(2)2+24(2)
=8−36+48
=20
(b) f′′(4)=6(4)−18=6>0
∴ by the second derivative test, f has maximum at x=4 and maximum value of at x=4
=f(4)
=(4)3−9(4)2+24(4)
=64−144+96
=16.
Hence, the function f has maximum value 20 at x=2 and minimum value 16 at x=4.