\(sinx\left(1+2cos^2x-1\right)+2sinx.cosx=1+cosx\)
\(\Leftrightarrow2sinx.cos^2x+2sinx.cosx-\left(1+cosx\right)=0\)
\(\Leftrightarrow2sinx.cosx\left(cosx+1\right)-\left(cosx+1\right)=0\)
\(\Leftrightarrow\left(cosx+1\right)\left(sin2x-1\right)=0\)
\(\Leftrightarrow\left[{}\begin{matrix}cosx=-1\\sin2x=1\end{matrix}\right.\) \(\Leftrightarrow...\)