e ko bt là có đúng ko nhưng cứ thử xe sao ạ, có j sai sót mong lượng thứ
\(y=2\left(1-\cos^2x\right)-\left(2\cos^2x-1\right)\)
\(y=2-2\cos^2x-2\cos^2x+1=-4\cos^2x+3\)
Đặt \(\cos x=t;t\in\left[-1;1\right]\)
\(\Rightarrow y=f\left(t\right)=-4t^2+3\)
\(f\left(1\right)=-4+3=-1\)
\(f\left(0\right)=3\)
Vậy min= -1
max= 3