For 0≤x≤2π, consider the function
p(x)=sinx+cos2x.
(a) Determine p′(x) and locate all critical points that lie in the open interval (0,2π).
(b) Classify each critical point as a point of local maximum or local minimum and compute the corresponding value of p.
(c) Arrange the local maxima and minima obtained in descending order of their function values.