Solution:
Concept: Write the two given values with the tan(A±B) formulae. This gives two equations in the unknowns tanA and tanB, which we solve like simultaneous equations.
Let tanA=x and tanB=y.
Step 1 — First equation.
1−xyx+y=1
x+y=1−xy... (1)
Step 2 — Second equation.
1+xyx−y=71
7x−7y=1+xy... (2)
Step 3 — Remove the constant. Subtract (1) from (2).
6x−8y=2xy
xy=3x−4y
Step 4 — Get a linear relation. Put xy=3x−4y into (1).
x+y=1−3x+4y
4x−3y=1
y=34x−1
Step 5 — Substitute in (1) and multiply through by 3.
x+34x−1=1−3x(4x−1)
3x+4x−1=3−4x2+x
4x2+6x−4=0
Step 6 — Solve the quadratic (divide by 2 and factorise).
2x2+3x−2=0
(2x−1)(x+2)=0
So x=21, or else x=−2.
Find y from y=34x−1 in each case.
x=21:y
=32−1
=31
x=−2:y
=3−8−1
=−3
Step 7 — Check both pairs in the original equations.
For x=21, y=31:
1−xyx+y=5/65/6
=1
1+xyx−y=7/61/6
=71
For x=−2, y=−3:
1−xyx+y=−5−5
=1
1+xyx−y=1+61
=71
tanA=21, tanB=31
or tanA=−2, tanB=−3