Geometric justification of the trigonometric identity $\arctan x + \arctan \frac{1-x}{1+x} = \frac \pi 4$ The trigonometic identity
$$
\arctan x + \arctan \frac 1 x = \frac\pi 2\quad\text{for }x>0
$$
can be seen to be true by observing that if the lengths of the legs of a right triangle are $x$ and $1$, then the two acute angles of the triangle are the two arctangents above.
Does the identity
$$
\arctan x + \arctan \frac{1-x}{1+x} = \frac \pi 4
$$
have a similar geometric justification?
PS: The second identity, like the first, can be established by either of two familiar methods:


*

*Use the usual formula for a sum of two arctangents; or

*differentiate the sum with respect to $x$.
PPS: Secondary question: Both of the functions $x\mapsto\dfrac 1 x $ and $x\mapsto\dfrac{1-x}{1+x}$ are involutions.  Does that have anything to do with this?  Presumably it should mean we should hope for some geometric symmetry, so that $x$ and $\displaystyle\vphantom{\frac\int\int}\frac{1-x}{1+x}$ play symmetrical roles.
PPPS: In a triangle with a $135^\circ$ angle, if the tangent of one of the acute angles is $x$, then the tangent of the other acute angle is $\displaystyle\vphantom{\frac\int\int}\dfrac{1-x}{1+x}$.  That follows from the second identity above.  If there's a simple way to prove that result by geometry without the identity above, then that should do it.
 A: 
In answer to the first question, I have been trying to upload a picture but without success, so I'll have to describe it instead.


*

*Draw an isosceles right-angled triangle OAC with A on the x axis and C on the y axis, and O as the origin.

*Choose a point P on the line AC, with Q as the foot of the perpendicular from P onto OA

*Let B be the point on OA so that Q is the midpoint of BA

*Let OQ be 1 unit long, and PQ be of length $x$, in which case BQ and AQ also have this length

*We now have $\tan POQ=x$ and $\tan OCB=\frac{1-x}{1+x}$

*It simply remains to show that angle BCP = angle POQ, which is easy enough since triangle CPB is right angled and CP has length $\sqrt2$
I hope this is clear enough
A: Edit. Here's a simpler trigonograph that's also purer, in the sense that it avoids auxiliary proportions in favor of relating elements in the identity more directly. It therefore requires less (or perhaps no) explanation.

$$45^\circ = \alpha + \beta = \operatorname{atan}\frac{x}{1} + \operatorname{atan}\frac{1-x}{1+x} \qquad (0 \leq x \leq 1)$$
Interestingly, this diagram has the same basic structure as my Angle-Sum and -Difference trigonographs, as well as the one for $p\sin\theta + q \cos\theta$.

My previous answer:

$$\tan \theta = \frac{x}{1} \qquad \tan \phi = \frac{|\overline{XY}|}{|\overline{XZ}|} = \frac{|\overline{XP}|}{|\overline{XQ}|} = \frac{1-x}{1+x}$$
$$\implies\qquad \operatorname{atan} x + \operatorname{atan}\frac{1-x}{1+x} = \theta + \phi = \frac{\pi}{4}$$
A: Here's an attempt to address @Michael's desire for a solution that treats the two angles symmetrically.
It's based on this preliminary result:


Lemma. If $Q$ is the orthocenter of acute $\triangle ABC$, then $$\tan \angle ABQ = \frac{|\overline{AQ}|}{|\overline{BC}|}$$

(Proof is left as an exercise to the reader. Hint: Note the congruent angles at $A$ and $C$.)
With that, we can construct the following:

$$\tan \alpha = \frac{x\sqrt{2}}{\sqrt{2}} = x \qquad \tan \beta = \frac{1-x}{1+x} \quad\implies\quad \operatorname{atan}x + \operatorname{atan}\frac{1-x}{1+x} = \alpha+\beta = \frac{\pi}{4}$$
A: Here's another geometrical picture of what the identity means. 
The tangent of an angle can also be interpreted as the slope of a line. That is, take a straight line through the origin of an XY cartesian coordinate system, then its equation in cartesian coordinates is
$$y=\tan{\theta} \; x$$
where $\theta$ is the angle between that line and the X-axis. There is however one line that does not fit in this scheme, but we're going to change that. Obviously, the Y-axis does not fit into that scheme because it's cartesian equation is $x=0$. We'll however extend our possible slopes with $\infty$ so that the Y-axis has slope $\infty$ and therefore $\tan \pi/2$ is defined to be $\infty$. 
Now, going back to our cartesian plane, I want you to look at the following linear transformation
$$\mathbb{R}^2\to\mathbb{R}^2:\left(\begin{array}{c}x\\y\end{array}\right)\mapsto\frac{1}{\sqrt{2}}\left(\begin{array}{cc} 1 & 1 \\ 1 & -1\end{array}\right)\left(\begin{array}{c}x\\y\end{array}\right)$$
Since this is a linear transformation, it leaves the origin invariant but more than that it also maps straight lines through the origin to straight lines through the origin. Therefore, we can look to define it in terms of the slopes of these lines. Since the slope of a line is given by $z=y/x$ we have that
$$\mathbb{R}\cup \{\infty\}\to \mathbb{R}\cup \{\infty\} : z\mapsto\frac{1-z}{1+z}$$ 
This is exactly your transformation from before. Going back to my original linear transformation, we can check that it has eigenvalues $1$ and $-1$ with respective eigenvectors $(1,\sqrt{2}-1)$ and $(1,-\sqrt{2}-1)$. I've written those in such a way that we can immediately read off the slopes as $\sqrt{2}-1$ and $-\sqrt{2}-1$.
This indicates that our transformation is a reflection about the line with slope $\sqrt{2}-1$. This slope corresponds to an angle of $\pi/8$. Now, if I reflect an arbitrary line, the image of the line and the line both make an angle with the X-axis, the sum of which is $\pi/4$. You have to be careful in defining the angles for this to work, as the "orientation" of the line you reflect matters in defining the sign of the angle. Or you could work $\mod\pi$, which is a symmetry of the $\tan$ function anyway.
The transformation 
$$\mathbb{C}\cup \{\infty\}\to \mathbb{C}\cup \{\infty\} : z\mapsto\frac{1-z}{1+z}$$ 
is also known as a Möbius transformation when it is working in the complex plane (or rather the Riemann sphere). But before that, they were also refered to as linear transformations, which at first may seem odd, because the prescription of the transformation is anything but linear. However, because of the connection I explicitly built up here with the group of linear transformations, it is more clear why the name is fitting. More precisely it is known that the group of Möbius transformations is related to the projective special linear group $PSL(2,\mathbb{C})$.
If I have more time, I'll try to look further into the geometric meaning of your identity in the context of the Riemann sphere.
A: Yes. Taking tan on both sides, 
$$ \frac{x + \frac{1-x}{1+x}}{1- x \frac{1-x}{1+x}
} = 1 $$ 
$$ \rightarrow \tan ^{-1} 1 = \pi/4 $$
EDIT1:
This is not a geometry based answer, but an analysis based, also am not too sure.
If  $$F(x) + F(1/x)= 2 c , $$
then,  $$ F(x) = F(1/x) = c.  \tag{1} $$
Proof by contradiction is that if it is not so,the Taylor expansion of F(x) would lead to singularities of F(1/x) for real  variable expansion in 1/x.
So given that 
$$  \tan^{-1} x + \tan^{-1} (1/x) = \pi/2   \tag{2} $$
Adding/subtracting same particular angle that may be included in geometric construction  $ (+\beta - \beta)  $ ( This had been done by Blue and David Quinn in a geometric proof)
$$ \tan^{-1} x +     \tan^{-1}\frac {1-x} {1+x}  -  \tan^{-1} \frac {1-x} {1+x}  +  \tan^{-1} (1/x) = \pi/2 $$
$$ (\tan^{-1} x +    \tan^{-1}\frac {1-x} {1+x} )   + ( \tan^{-1} (1/x) +   \tan^{-1} \frac{1-1/x} {1+1/x})  = \pi/2  \tag{3}  $$
which by virtue of (1) gives
$$ (\tan^{-1} x +    \tan^{-1} \frac{1-x} {1+x} ) =  \pi/4.  \tag{4} $$
