\(y=2sin^2x-sin2x+7=1-cos2x-sin2x+7\)
\(y=8-\left(sin2x+cos2x\right)=8-\sqrt{2}sin\left(2x+\frac{\pi}{4}\right)\)
Do \(-1\le sin\left(2x+\frac{\pi}{4}\right)\le1\)
\(\Rightarrow8+\sqrt{2}\le y\le8-\sqrt{2}\)
\(y_{min}=8-\sqrt{2}\) khi \(sin\left(2x+\frac{\pi}{4}\right)=1\)
\(y_{max}=8+\sqrt{2}\) khi \(sin\left(2x+\frac{\pi}{4}\right)=-1\)