I want to simplify the expression $$\sin\left(\arctan\frac x a\right)$$
I can do this with geometry. In a triangle $ABC$, let $AB=x$, $BC=a$ and $\angle B=90^\circ$. Then, $\arctan\frac xa=\angle C$ and $$\sin\left(\arctan\frac x a\right)=\frac{AB}{AC}=\frac{x}{\sqrt{a^2+x^2}}$$
But how to simplify this without geometry; i.e, using trigonometric formulas and algebra?
I tried using the formula: $$\sin x=\frac{2\tan\frac x2}{1+\tan^2\frac x2}$$ and got the expression $$\sin\left(\arctan\frac x a\right)=\frac{2\tan\left(\dfrac {\arctan\frac xa}2\right)}{1+\tan^2\left(\dfrac {\arctan\frac xa}2\right)}$$ But this doesn't seem to work.


By the Pythagorean identities, each trig function can be expressed in terms of the others. Here you can use the identity
$$\sin \theta =\pm \frac{\tan \theta}{\sqrt{ 1+\tan^2 \theta}}, $$
and the result follows (note the $\pm$).