21.
\(\Leftrightarrow\left[{}\begin{matrix}sinx+1=0\\sinx-\sqrt{2}=0\end{matrix}\right.\) \(\Leftrightarrow\left[{}\begin{matrix}sinx=-1\\sinx=\sqrt{2}>1\left(vn\right)\end{matrix}\right.\)
\(\Rightarrow x=-\frac{\pi}{2}+k2\pi\)
\(x\in\left[-2017;2017\right]\Rightarrow-2017\le-\frac{\pi}{2}+k2\pi\le2017\)
\(\Rightarrow\frac{\frac{\pi}{2}-2017}{2\pi}\le k\le\frac{\frac{\pi}{2}+2017}{2\pi}\)
\(\Rightarrow-320\le k\le321\) \(\Rightarrow\) pt có 642 nghiệm
22.
\(sin\left(3x-\frac{\pi}{4}\right)=\frac{\sqrt{3}}{2}\)
\(\Rightarrow\left[{}\begin{matrix}3x-\frac{\pi}{4}=\frac{\pi}{3}+k2\pi\\3x-\frac{\pi}{4}=\frac{2\pi}{3}+k2\pi\end{matrix}\right.\) \(\Rightarrow\left[{}\begin{matrix}x=\frac{7\pi}{36}+\frac{k2\pi}{3}\\x=\frac{11\pi}{36}+\frac{k2\pi}{3}\end{matrix}\right.\)
\(\Rightarrow\) Nghiệm âm lớn nhất \(x=-\frac{13\pi}{36}\) ; nghiệm dương nhỏ nhất \(x=\frac{7\pi}{36}\)
Tổng 2 nghiệm: \(-\frac{13\pi}{36}+\frac{7\pi}{36}=-\frac{\pi}{6}\)