Find all the values of $x$ for which the function $y = \sin x - \cos^2 x -1$ assumes the least value. What is that value?
At first I found the first derivative to be $y' = \cos x + 2 \sin x \cos x$.
Critical point $0$, $-π/6$ (principal)
$y'' = - \sin x + 2(\cos 2x)$
Then substitution of $x$ by critical points I found minima. But my answer is incorrect.
Correct minimum value is $-9/4$
Yes your way is correct indeed for $x=-\pi/6$ we have
$$f(x)=-\frac12-\frac34-1=-\frac94$$
As an alternative, recall that $\cos^2 x=1-\sin^2 x$ and therefore we have
$$f(x)=\sin x -\cos^2 x-1=\sin^2 x+\sin x-2$$
then set $t=\sin x$ and consider the parabola (concave up)
$$g(t)=t^2+t-2 \implies g'(t)=2t+1=0 \implies t=-\frac 12$$