Finding the maximum and minimum of Y by the function y = Cos2 (square) x-4sinx

Finding the maximum and minimum of Y by the function y = Cos2 (square) x-4sinx

Y = (cosx) ^ 2-4sinx = 1 - (SiNx) ^ 2-4sinx = 1 - [(SiNx) ^ 2 + 4sinx] it can be seen that when [(SiNx) ^ 2 + 4sinx] is the minimum value, y has the maximum value; when [(SiNx) ^ 2 + 4sinx] is the maximum value, y has the minimum value