Solution:
Concept: An angle can be written as a sum or difference of known angles: A=(A+B)−B and A=(A−B)+B. Then the tan(P±Q) formulae apply.
Step 1 — Find tanA from A=(A+B)−B.
tanA=1+tan(A+B)tanBtan(A+B)−tanB
=1+2xx−21
Multiply the top and the bottom by 2:
=x+22x−1
Proved.
Step 2 — Write tan(A−B) in terms of tanA.
tan(A−B)=1+21tanAtanA−21
=2+tanA2tanA−1
Step 3 — Substitute tanA=x+22x−1. Work out the top and the bottom separately (both over x+2).
2tanA−1=x+22(2x−1)−(x+2)
=x+23x−4
2+tanA=x+22(x+2)+(2x−1)
=x+24x+3
Step 4 — Divide; the factor x+2 cancels.
tan(A−B)=4x+33x−4
tan(A−B)=4x+33x−4
Step 5 — Find A when tan(A−B)=31, using A=(A−B)+B.
tanA=1−31⋅2131+21
=5/65/6
=1
A is acute and tanA=1, so A=45∘.