`~rai~`
\(y=5-3\cos x\\\text{Ta có:}-1\le \cos x\le 1\\\Leftrightarrow -3\le -3\cos x\le 3\\\Leftrightarrow 2\le 5-3\cos x\le 8\\\Leftrightarrow 2\le y\le 8.\\+)\text{Min}_y=2\Leftrightarrow \cos x=1\Leftrightarrow x=k2\pi.(k\in\mathbb{Z})\\+)\text{Max}_y=8\Leftrightarrow \cos x=-1\Leftrightarrow x=\pi+k2\pi.(k\in\mathbb{Z})\\\text{Vậy Min}_y=2\text{ khi }x=k2\pi;\text{Max}_y=8\text{ khi }x=\pi+k2\pi.(k\in\mathbb{Z})\)