I am having a problem trying to figure out the maxima and minima points of the function:I got to the derivative:$\displaystyle y=cosx(1+sinx), [0, 2\pi]$But I don't know what to do from there. Any help would be appreciated.$\displaystyle 2sin^2x+sinx=-1$