\(y=5-2cos^2x=4-\left(2cos^2x-1\right)=4-cos2x\)
Vì \(cos2x\in\left[-1;1\right]\Rightarrow y=4-cos2x\in\left[3;5\right]\)
\(\Rightarrow y_{min}=3\Leftrightarrow cos2x=1\Leftrightarrow x=k\pi\)
\(y_{max}=5\Leftrightarrow cos2x=-1\Leftrightarrow x=\dfrac{\pi}{2}+k\pi\)