\(tan^2a+cot^2a=\dfrac{sin^2a}{cos^2a}+\dfrac{cos^2a}{sin^2a}=\dfrac{sin^4a+cos^4a}{\left(sina.cosa\right)^2}=\dfrac{\left(sin^2a+cos^2a\right)^2-2\left(sina.cosa\right)^2}{\left(\dfrac{1}{2}.2sina.cosa\right)^2}\)
\(=\dfrac{1-\dfrac{1}{2}sin^22a}{\dfrac{1}{4}sin^22a}=\dfrac{8-4sin^22a}{2sin^22a}=\dfrac{8-2\left(1-cos4a\right)}{1-cos4a}=\dfrac{6+2cos4a}{1-cos4a}\)