There is some formula that you are supposed to know but I can never remember it.
so I'll do it the long way.
$$\\let\quad \theta=atan(x/a)\\
tan\theta=\frac{x}{a}\\\\
x=a*tan\theta\\\\
\frac{dx}{d\theta}=a*sec^2\theta\\\\
\frac{d\theta}{dx}=\frac{cos^2\theta}{a}\\\\
\frac{d\theta}{dx}=\frac{\frac{a^2}{x^2+a^2}}{a}\\\\
\frac{d\theta}{dx}=\frac{a^2}{a(x^2+a^2)}\\\\
\frac{d\theta}{dx}=\frac{a}{a^2+x^2}\\\\$$

I expect it is more sensible to remember the formua LOL