Solution:
Key idea: When ab<1, tan−1a+tan−1b=tan−11−aba+b.
Step 1 — Name the two fractions.
Let a=x−2x−1 and b=x+2x+1. We find a+b and 1−ab separately.
Step 2 — Find a+b.
We add the fractions over the common denominator (x−2)(x+2).
a+b=(x−2)(x+2)(x−1)(x+2)+(x+1)(x−2)
a+b=x2−4(x2+x−2)+(x2−x−2)
a+b=x2−42x2−4
Step 3 — Find 1−ab.
The product of the numerators is x2−1 and the product of the denominators is x2−4.
1−ab=1−x2−4x2−1
1−ab=x2−4(x2−4)−(x2−1)
1−ab=x2−4−3
Step 4 — Apply the formula and solve.
Since tan4π is 1, the quotient 1−aba+b must equal 1. The factors x2−4 cancel.
−32x2−4=1
2x2−4=−3
x2=21
x=±21
Step 5 — Check the condition ab<1.
The product ab depends only on x2, so we put x2=21.
ab=21−421−1
ab=71
This is less than 1, so the formula applies to both values and both are solutions.
Therefore, x=21 or x=−21.