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