Đặt \(sinx+cosx=t\Rightarrow-\sqrt{2}\le t\le\sqrt{2}\)
\(t^2=sin^2x+cos^2x+2sinx.cosx=1+2sinx.cosx\Rightarrow sinx.cosx=\dfrac{t^2-1}{2}\)
\(\Rightarrow y=t+\dfrac{t^2-1}{2}=\dfrac{1}{2}t^2+t-\dfrac{1}{2}\)
Xét hàm \(f\left(t\right)=\dfrac{1}{2}t^2+t-\dfrac{1}{2}\) trên \(\left[-\sqrt{2};\sqrt{2}\right]\)
\(-\dfrac{b}{2a}=-1\)
\(f\left(-\sqrt{2}\right)=\dfrac{1-2\sqrt{2}}{2}\) ; \(f\left(-1\right)=-1\) ; \(f\left(\sqrt{2}\right)=\dfrac{1+2\sqrt{2}}{2}\)
\(\Rightarrow y_{min}=-1\) khi \(t=-1\) ; \(y_{max}=\dfrac{1+2\sqrt{2}}{2}\) khi \(t=\sqrt{2}\)
Đặt \(t=sinx+cosx;t\in\left[-\sqrt{2};\sqrt{2}\right]\)
\(\Rightarrow\dfrac{t^2-1}{2}=sinx.cosx\)
\(y=t+\dfrac{t^2-1}{2}=\dfrac{t^2}{2}+t-\dfrac{1}{2}\)
Vẽ BBT của \(f\left(t\right)=\dfrac{t^2}{2}+t-\dfrac{1}{2};t\in\left[-\sqrt{2};\sqrt{2}\right]\)
\(\Rightarrow\)\(f\left(t\right)_{min}=-1\Leftrightarrow t=-1\Rightarrow sinx+cosx=-1\Leftrightarrow sin\left(x+\dfrac{\pi}{4}\right)=-\dfrac{1}{\sqrt{2}}\)....
\(f\left(t\right)_{max}=\dfrac{1+2\sqrt{2}}{2}\)\(\Leftrightarrow t=\sqrt{2}\Rightarrow sinx+cosx=\sqrt{2}\Leftrightarrow sin\left(x+\dfrac{\pi}{4}\right)=1\)....