\(y=2+2cos\left(x-\frac{\pi}{6}\right)-7=2cos\left(x-\frac{\pi}{6}\right)-5\)
\(0\le x\le\pi\Rightarrow-\frac{\pi}{6}\le x-\frac{\pi}{6}\le\frac{5\pi}{6}\)
\(\Rightarrow-\frac{\sqrt{3}}{2}\le cos\left(x-\frac{\pi}{6}\right)\le1\)
\(\Rightarrow-\sqrt{3}-5\le y\le-3\)
\(y_{min}=-\sqrt{3}-5\) khi \(x=\pi\)
\(y_{max}=-3\) khi \(x=\frac{\pi}{6}\)