Step 1 — recognise the left side as a difference. The subtraction formula
tan − 1 a − tan − 1 b = tan − 1 ( a − b 1 + a b ) \tan^{-1}a-\tan^{-1}b=\tan^{-1}\left(\frac{a-b}{1+ab}\right) tan − 1 a − tan − 1 b = tan − 1 ( 1 + ab a − b )
is valid whenever 1 + a b > 0 1+ab>0 1 + ab > 0 . Take a = 1 a=1 a = 1 and b = x b=x b = x ; since x > 0 x>0 x > 0 we have 1 + x > 0 1+x>0 1 + x > 0 , so the formula applies and, read backwards,
tan − 1 ( 1 − x 1 + x ) = tan − 1 1 − tan − 1 x = π 4 − tan − 1 x . \tan^{-1}\left(\frac{1-x}{1+x}\right)=\tan^{-1}1-\tan^{-1}x=\frac{\pi}{4}-\tan^{-1}x. tan − 1 ( 1 + x 1 − x ) = tan − 1 1 − tan − 1 x = 4 π − tan − 1 x .
Step 2 — reduce to one unknown angle. The equation becomes
π 4 − tan − 1 x = 1 2 tan − 1 x . \frac{\pi}{4}-\tan^{-1}x=\frac12\tan^{-1}x. 4 π − tan − 1 x = 2 1 tan − 1 x .
Write θ = tan − 1 x \theta=\tan^{-1}x θ = tan − 1 x . Then
π 4 = θ + θ 2 = 3 θ 2 ⟹ θ = π 6 . \frac{\pi}{4}=\theta+\frac{\theta}{2}=\frac{3\theta}{2}\quad\Longrightarrow\quad \theta=\frac{\pi}{6}. 4 π = θ + 2 θ = 2 3 θ ⟹ θ = 6 π .
Step 3 — recover x x x .
x = tan π 6 = 1 3 . x=\tan\frac{\pi}{6}=\frac{1}{\sqrt3}. x = tan 6 π = 3 1 .
This is positive, so it respects the condition x > 0 x>0 x > 0 imposed in the question.
Step 4 — verify both sides independently. With x = 1 3 x=\frac{1}{\sqrt3} x = 3 1 ,
1 − x 1 + x = 3 − 1 3 + 1 = ( 3 − 1 ) 2 ( 3 + 1 ) ( 3 − 1 ) = 4 − 2 3 2 = 2 − 3 , \frac{1-x}{1+x}=\frac{\sqrt3-1}{\sqrt3+1}=\frac{(\sqrt3-1)^{2}}{(\sqrt3+1)(\sqrt3-1)}=\frac{4-2\sqrt3}{2}=2-\sqrt3, 1 + x 1 − x = 3 + 1 3 − 1 = ( 3 + 1 ) ( 3 − 1 ) ( 3 − 1 ) 2 = 2 4 − 2 3 = 2 − 3 ,
and tan π 12 = 2 − 3 \tan\frac{\pi}{12}=2-\sqrt3 tan 12 π = 2 − 3 , so the left side is tan − 1 ( 2 − 3 ) = π 12 \tan^{-1}(2-\sqrt3)=\frac{\pi}{12} tan − 1 ( 2 − 3 ) = 12 π . The right side is 1 2 tan − 1 1 3 = 1 2 ⋅ π 6 = π 12 \frac12\tan^{-1}\frac{1}{\sqrt3}=\frac12\cdot\frac{\pi}{6}=\frac{\pi}{12} 2 1 tan − 1 3 1 = 2 1 ⋅ 6 π = 12 π . The two agree, and both are inside ( − π 2 , π 2 ) \left(-\frac{\pi}{2},\frac{\pi}{2}\right) ( − 2 π , 2 π ) .
Step 5 — uniqueness. As x x x increases through ( 0 , ∞ ) (0,\infty) ( 0 , ∞ ) , 1 − x 1 + x \frac{1-x}{1+x} 1 + x 1 − x strictly decreases, so the left side strictly decreases, while 1 2 tan − 1 x \frac12\tan^{-1}x 2 1 tan − 1 x strictly increases. A strictly decreasing function can meet a strictly increasing one at most once, so x = 1 3 x=\frac{1}{\sqrt3} x = 3 1 is the only positive solution.