The correct options are
B Local maximum at x=π2
D Absolute maxima at x=−1
The function f′(x) is given by
f′(x)=⎧⎨⎩3x2+2x−10-1≤x<0−sinx0≤x<π/2cosxπ/2≤x≤π
The function f(x) is not differentiable at x=0, x=π/2
as f′(0−)=−10, f′(0+)=0; f′(π/2−)=−1, f′(π/2+)=0.
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) does not have any extremum at x=0
Also f′(x)<0 for 0≤x<π/2 and f′(x)<0 for π/2≤x≤π
Therefore, f(x) does not have any extremum at x=π/2
Since, f′(x)<0 for x∈[−1.π]
Therefore, f(x) have absolute maximum at x=−1 and absolute minimum at x=π
Ans: C,D