\(=\frac{\sin^2x}{1+\frac{\cos x}{\sin x}}+\frac{\cos^2x}{1+\frac{\sin x}{\cos x}}-1=\frac{\sin^3x}{\sin x+\cos x}+\frac{\cos^3x}{\sin x+\cos x}-1.\)
\(=\frac{\sin^3x+\cos^3x}{\sin x+\cos x}-1=\frac{\left(\sin x+\cos x\right).\left(\sin^2x-\sin x.\cos x+\cos^2x\right)}{\sin x+\cos x}-1\)
\(=1-\sin x.\cos x-1=-\sin x.\cos x\)