Lời giải:
Ta có:
VT\(=\frac{1+\cot ^2x}{1-\cot ^2x}+\frac{\cos x}{\cos x-\sin x}=\frac{1+\left(\frac{\cos x}{\sin x}\right)^2}{1-\left(\frac{\cos x}{\sin x}\right)^2}+\frac{\cos x}{\cos x-\sin x}\)
\(=\frac{\sin ^2x+\cos ^2x}{\sin ^2x(1-\frac{\cos ^2x}{\sin ^2x})}+\frac{\cos x(\cos x+\sin x)}{\cos ^2x-\sin ^2x}\)
\(=\frac{1}{\sin ^2x-\cos ^2x}-\frac{\cos x(\cos x+\sin x)}{\sin ^2x-\cos ^2x}\)
\(=\frac{1-\cos ^2x-\cos x\sin x}{\sin ^2x-\cos ^2x}=\frac{\sin ^2x-\cos x\sin x}{\sin ^2x-\cos ^2x}\)
\(=\frac{\sin x(\sin x-\cos x)}{\sin ^2x-\cos ^2x}=\frac{\sin x}{\sin x+\cos x}\)
Ta có đpcm.