TITLE: How to prove that $ \arctan x + 2 \arctan(\sqrt{1 + x^2} - x) = \frac{\pi}{2} $
QUESTION [6 upvotes]: I want to prove that: $$\arctan x + 2 \arctan(\sqrt{1 + x^2} - x) = \frac{\pi}{2}, \forall x \in \mathbb{R} $$ 
I know that $$ \arctan x + arctan \frac{1}{x} = \frac{\pi}{2} $$
But that doesn't seem to be helping. How should I proceed?

REPLY [2 votes]: Taking a derivative of the expression and you will get
$$
\newcommand{\Bold}[1]{\mathbf{#1}}\frac{2 \, {\left(\frac{x}{\sqrt{x^{2} + 1}} - 1\right)}}{{\left(x - \sqrt{x^{2} + 1}\right)}^{2} + 1} + \frac{1}{x^{2} + 1}
=
0
.
$$
So the expression must be a constant. Taking $x=0$ and you will get $\pi/2$.
No need to think.

REPLY [2 votes]: Colored for an easier reading. Let $\alpha= \arctan x $ and $\beta = \arctan(\sqrt{1 + x^2} - x)$ then $\alpha,\beta \in (-\pi/2,\pi/2)$ and we have $\tan \alpha = x$ and \begin{eqnarray}\tan \beta 
&=& \sqrt{1 + x^2} - x \\ 
&=& \color{red}{{1\over \cos \alpha}-\tan \alpha} \\
&=& {1-\sin\alpha \over  \cos\alpha} \\ 
&=&\color{red}{{(\cos (\alpha/2)-\sin(\alpha/2))^2\over \cos^2 (\alpha/2) \sin^2(\alpha/2) }}\\
&=&{\cos (\alpha/2)-\sin(\alpha/2)\over \cos (\alpha/2)+\sin(\alpha/2) }\\ &=&\color{red}{{1-\tan(\alpha/2)\over 1+\tan(\alpha/2) }}\\  
&=& \tan ({\pi\over 4}-\alpha/2) \end{eqnarray}
Since $\alpha,\beta \in (-\pi/2,\pi/2)$ we have $$\beta = {\pi\over 4}-\alpha/2$$ and we are done.