\(A=\frac{sin^2x+cos^2x+2sinx.cosx-1}{\frac{cosx}{sinx}-sinx.cosx}=\frac{2sinx^2x.cosx}{cosx-sin^2x.cosx}=\frac{2sin^2x.cosx}{cosx\left(1-sin^2x\right)}\)
\(=\frac{2sin^2x}{1-sin^2x}=\frac{2sin^2x}{cos^2x}=2tan^2x\)
\(N=\left(\frac{sinx+\frac{sinx}{cosx}}{cosx+1}\right)^2+1=\left(\frac{sinx.cosx+sinx}{cosx\left(cosx+1\right)}\right)^2+1\)
\(=\left(\frac{sinx\left(cosx+1\right)}{cosx\left(cosx+1\right)}\right)^2+1=tan^2x+1=\frac{1}{cos^2x}\)