The correct options are
A local minima at x=π/2
C absolute maxima at x=0
The function f′(x) is given by
f′(x)=⎧⎨⎩3x2+2x−10-1≤x<0cosx0≤x<π/2−sinx\pi/2≤x≤π
The function f(x) is not differentiable at x=0, x=π/2
as f′(0−)=−10, f′(0+)=1; f′(π/2−)=0, f′(π/2+)=−1.
The critical points of f are given by f′(x)=0 or x=0, π/2.
Since f′(x)<0 for −1≤x≤0 and f′(x)>0 for 0≤x<π/2
Therefore, f(x) has local maximum at x=0
Also f′(x)>0 for 0≤x<π/2 and f′(x)<0 for π/2≤x≤π
Therefore, f(x) has local minimum at x=π/2
Ans: A,C