\(D=\dfrac{tan^2x-cos^2x}{sin^2x}+\dfrac{cot^2x-sin^2}{cos^2x}\)
\(=\dfrac{tan^2x}{sin^2x}-\dfrac{cos^2x}{sin^2x}+\dfrac{cot^2x}{cos^2x}-\dfrac{sin^2x}{cos^2x}\)
\(=\dfrac{1}{cos^2x}+\dfrac{1}{sin^2x}-\dfrac{cos^2x+sin^2x}{cos^2x\cdot sin^2x}\)
\(=\dfrac{sin^2x+cos^2x-sin^2x-cos^2x}{sin^2x\cdot cos^2x}=0\)