Recall the identity for the difference of two tangents:
tanA−tanB=cosAcosBsin(A−B)−(1)
Put A=3θ,B=θ in (1).
Then A−B=2θ and
tan3θ−tanθ=cos3θcosθsin2θ=cos3θcosθ2sinθcosθ=cos3θ2sinθ−(2)
Re-arranging (2) we get a very useful relation:
cos3θsinθ=21(tan3θ−tanθ)−(3)
Now let θ=3k⋅3∘ for successive integer values of k:
Case 0: θ=3∘
Using (3) gives
cos9∘sin3∘=21(tan9∘−tan3∘)−(4)
Case 1: θ=9∘
cos27∘sin9∘=21(tan27∘−tan9∘)−(5)
Case 2: θ=27∘
cos81∘sin27∘=21(tan81∘−tan27∘)−(6)
Add (4),(5),(6) term-by-term. The required sum A becomes
A=21[(tan9∘−tan3∘)+(tan27∘−tan9∘)+(tan81∘−tan27∘)]
The intermediate terms tan9∘ and tan27∘ cancel out, leaving
A=21(tan81∘−tan3∘)−(7)
But tan81∘=tan(90∘−9∘)=cot9∘, so (7) can also be written as
A=21(cot9∘−tan3∘).
The expression given for B is
B=tan81∘−tan3∘=cot9∘−tan3∘−(8)
Comparing (7) and (8):
B=2A.
Therefore
AB=2.
Final Answer: 2