Here is a solution I read when trying to solve a problem, and I can't figure out how it jumped in this step here:
$$ \frac{1}{x}\left(\frac{\pi}{2} - \arctan\frac{1}{x}\right) = \frac{1}{x} \arctan x $$
This was related to a limit and integral problem where $x \to 0^+$. Please let me know if more information are needed and I will edit!
I assume you mean this holds for all $x>0$.
which is a known identity.
One way (maybe not the most elegant) to prove this last identity is to observe that the function $f\colon (0,\infty)\to \mathbb{R}$ defined by $f(x) = \arctan \frac{1}{x} + \arctan x$ is differentiable, and (using the derivative $\arctan' x = \frac{1}{1+x^2}$) that $f'(x) = 0$ for all $x>0$. So $f$ is constant, and since $$\lim_{x\to\infty} f(x) = \arctan 0 + \lim_{x\to\infty}\arctan x = \lim_{x\to\infty}\arctan x = \frac{\pi}{2}$$ you get the result.