\(y=\left(sin^2x+cos^2x\right)^2-3\left(sinx.cosx\right)^2\left(sin^2x+cos^2x\right)+2\)
\(=3-\frac{3}{4}sin^22x\)
\(0\le sin^22x\le1\Rightarrow\frac{9}{4}\le y\le3\)
\(y_{max}=3\) khi \(sin2x=0\Leftrightarrow x=\pm\frac{\pi}{2}\)
\(y_{min}=\frac{9}{4}\) khi \(sin^22x=1\Leftrightarrow x=\pm\frac{\pi}{4}\)