a/
\(y=\sqrt{5-sin2x}\)
Do \(-1\le sin2x\le1\Rightarrow2\le y\le\sqrt{6}\)
\(y_{min}=2\) khi \(sin2x=1\)
\(y_{max}=\sqrt{6}\) khi \(sin2x=-1\)
b/
\(y=cos^2x-3cosx-4+8=\left(cosx+1\right)\left(cosx-4\right)+8\le8\)
\(y_{max}=8\) khi \(cosx=-1\)
\(y=cos^2x-3cosx+2+2=\left(1-cosx\right)\left(2-cosx\right)+2\ge2\)
\(y_{min}=2\) khi \(cosx=1\)