\(-1\le\cos x\le1\Rightarrow1\le2+\cos x\le3\Rightarrow1-1\le y\le\sqrt{3}-1\)
\(\Rightarrow0\le y\le\sqrt{3}-1\)
Vậy \(y_{min}=0\) đạt được khi \(\cos x=-1\Leftrightarrow x=\pi+k2\pi\left(k\in Z\right)\)
\(y_{max}=\sqrt{3}-1\) đạt được khi \(\cos x=1\Leftrightarrow x=k2\pi\left(k\in Z\right)\)











