31.
\(\Rightarrow cosx\left(cosx-1\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}cosx=0\\cosx=1\end{matrix}\right.\) \(\Leftrightarrow\left[{}\begin{matrix}x=\dfrac{\pi}{2}+k\pi\\x=k2\pi\end{matrix}\right.\)
\(\Rightarrow x=\dfrac{\pi}{2}\)
32.
\(\Leftrightarrow\left(2sinx-1\right)\left(sinx-1\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}sinx=\dfrac{1}{2}\\sinx=1\end{matrix}\right.\) \(\Leftrightarrow\left[{}\begin{matrix}x=\dfrac{\pi}{6}+k2\pi\\x=\dfrac{5\pi}{6}+k2\pi\\x=\dfrac{\pi}{2}+k2\pi\end{matrix}\right.\)
\(\Rightarrow\left[{}\begin{matrix}x=\dfrac{\pi}{6}\\x=\dfrac{\pi}{2}\end{matrix}\right.\)