ĐKXĐ: \(x\ne\dfrac{k\pi}{2}\)
\(\dfrac{cosx}{sinx}-1=\dfrac{cos^2x-sin^2x}{1+\dfrac{sinx}{cosx}}+sin^2x-sinx.cosx\)
\(\Leftrightarrow\dfrac{cosx-sinx}{sinx}=cosx\left(cosx-sinx\right)-sinx\left(cosx-sinx\right)\)
\(\Leftrightarrow\left(cosx-sinx\right)\left(\dfrac{1}{sinx}-cosx+sinx\right)=0\)
\(\Leftrightarrow\left(cosx-sinx\right)\left(1-sinx.cosx+sin^2x\right)=0\)
\(\Leftrightarrow\left(cosx-sinx\right)\left(3-sin2x-cos2x\right)=0\)
\(\Leftrightarrow\left(cosx-sinx\right)\left(3-\sqrt{2}sin\left(2x+\dfrac{\pi}{4}\right)\right)=0\)