We group the terms using complementary angles: tan81°=cot9° and tan63°=cot27°, so the expression becomes (tan9°+cot9°)−(tan27°+cot27°).
Using the identity tanθ+cotθ=cosθsinθ+sinθcosθ=sinθcosθ1=sin2θ2, we get sin18°2−sin54°2.
Substituting sin18°=45−1 and sin54°=45+1, this becomes 5−18−5+18=8⋅(5)2−12(5+1)−(5−1)=8⋅42=4.