Lời giải:
Có \(y'=-3x^2+2x-1=-\left[(\sqrt{3}x-\frac{1}{\sqrt{3}})^2+\frac{2}{3}\right]<0\) nên hàm số trên nghịch biến trên tập xác định
Do đó:
\(\left\{\begin{matrix} y(x)\geq y(2)=0\\ y(x)\leq y(0)=6\end{matrix}\right.\)\(\Rightarrow \left\{\begin{matrix} y_{\min}=0\Leftrightarrow x=2\\ y_{\max }=6\Leftrightarrow x=0\end{matrix}\right.\)