Solution:
Key idea: We use tan(A+B)=1−tanAtanBtanA+tanB and tan(π−C)=−tanC.
Step 1 — Name the angles.
Let A=tan−1a, B=tan−1b and C=tan−1c, so tanA=a, tanB=b and tanC=c. Each angle lies in (−2π,2π), and the condition says A+B=π−C.
Step 2 — Check that tan(A+B) exists.
Since C lies in (−2π,2π), the angle π−C lies in (2π,23π). Also A+B is less than π. So A+B lies strictly between 2π and π, where the tangent is defined; in particular ab=1.
Step 3 — Take the tangent of both sides.
We apply the two formulas from the key idea.
tan(A+B)=tan(π−C)
1−aba+b=−c
Step 4 — Rearrange.
We multiply both sides by 1−ab and then add c to both sides.
a+b=−c(1−ab)
a+b=−c+abc
a+b+c=abc
Therefore, a+b+c=abc, as required.