`~rai~`
$y=cos^2x+2cos^2x$
$=3cos^2x$
$\text{Ta có}:0\le cos^2x \le1$
$\Leftrightarrow 0\le 3cos^2x \le1$
$\Leftrightarrow 0\le y \le3$
$\text{Min y=0}\Leftrightarrow cos^2x=0\Leftrightarrow cosx=0\Leftrightarrow x=\dfrac{\pi}{2}+k\pi(k \in\mathbb{Z})$
$\text{Max y=3}\Leftrightarrow cos^2x=1\Leftrightarrow cos^2x=cos^2x+sin^2x\Leftrightarrow sinx=0\Leftrightarrow x=k\pi(k\in\mathbb{Z})$
$\text{Vậy Min y=0 khi}x=\dfrac{\pi}{2}+k\pi;\text{Max y=3 khi}x=k\pi(k\in\mathbb{Z}).$