Lời giải:
Ta có:
\(\sin x\cos x+\frac{\sin ^2x}{1+\cot x}+\frac{\cos ^2x}{1+\tan x}=\sin x\cos x+\frac{\sin ^2x}{1+\frac{\cos x}{\sin x}}+\frac{\cos ^2x}{1+\frac{\sin x}{\cos x}}\)
\(=\sin x\cos x+\frac{\sin ^3x}{\sin x+\cos x}+\frac{\cos ^3x}{\sin x+\cos x}\)
\(=\sin x\cos x+\frac{(\sin x+\cos x)(\sin ^2x-\sin x\cos x+\cos ^2x)}{\sin x+\cos x}\)
\(=\sin x\cos x+(\sin ^2x-\sin x\cos x+\cos ^2x)\)
\(=\sin ^2x+\cos ^2x=1\)