\(y=-5\left(1-sin^2x\right)+2sinx+8=5sin^2x+2sinx+3\)
\(y=5\left(sinx+\frac{1}{5}\right)^2+\frac{14}{5}\ge\frac{14}{5}\)
\(y_{min}=\frac{14}{5}\) khi \(sinx=-\frac{1}{5}\)
\(y=\left(5sinx+7\right)\left(sinx-1\right)+10\le10\)
\(y_{max}=10\) khi \(sinx=1\)