(a) The rule is valid when xy<1. Here
xy=21⋅31=61<1✓
tan−121+tan−131=tan−1(1−6121+31)=tan−1(5/65/6)=tan−1(1)=4π
(b) Now xy=6>1, so the condition fails — but the computer applies the rule anyway:
tan−1(1−62+3)=tan−1(−55)=tan−1(−1)=−4π
The true value must be obtuse, since tan−12≈1.1071 and tan−13≈1.2490 are each more than 4π:
tan−12+tan−13≈2.3562=43π
The error is
43π−(−4π)=π
(c) For x>0, y>0 with xy>1:
tan−1x+tan−1y=π+tan−1(1−xyx+y)
The correction is exactly π because the tangent function has period π: the formula identifies the correct tangent, but tan−1 then returns the representative of that value lying in (−2π,2π), whereas for x,y>0 with xy>1 we have y>x1, so tan−1y>tan−1x1=2π−tan−1x and the genuine sum lies in (2π,π) — one full period higher.
(d) Here xy=3⋅21=23>1, so the corrected rule applies:
tan−13+tan−121=π+tan−1(1−233+21)=π+tan−1(−1/27/2)=π+tan−1(−7)
≈3.1416−1.4289=1.7127
Checking directly: tan−13+tan−121≈1.2490+0.4636=1.7127. ✓
(e) Let θ=tan−1x with x>0, so θ∈(0,2π) and tanθ=x. Then
tan(2π−θ)=cotθ=x1
and 2π−θ also lies in (0,2π), inside the principal range, so tan−1x1=2π−θ. Adding,
tan−1x+tan−1x1=2π(x>0)
For x<0 both terms are negative, so their sum cannot be +2π. Replacing x by −x and using tan−1(−t)=−tan−1t on both terms flips the sign of the whole left side:
tan−1x+tan−1x1=−2π(x<0)
Check at x=−4: tan−1(−4)+tan−1(−41)≈−1.3258−0.2450=−1.5708=−2π. ✓ (At x=0 neither term is defined.)