Let $X$ be a Cauchy random variable with parameter $1$ i.e. with density $\dfrac{1}{\pi(1+x^2)}$. What is the density function of $Z:=\dfrac{1}{1+X^2}$?
My attempt:
Say $\phi(x) = \frac{1}{1+x^2}$ so then $\phi^{-1}(z) = \sqrt{\frac{1}{z}-1}$ and $\phi^{-1}\prime(z) = \frac{1}{2}\left(\frac{1}{z}-1\right)^{-\frac{1}{2}} .\frac{-1}{z^2}$
Finally we can say $$f_Z(z)=f_X(\phi^{-1}(z)) \left|\frac{d}{dz}\phi^{-1}(z)\right|= \left|\frac{-1}{2z^2\sqrt{\frac{1}{z}-1}}\right| \sqrt{\frac{1}{z}-1} = \frac{1}{2z^2}$$
Firstly is this right? If so do I need to exclude $z=0$ or adjust the range? I think the Cauchy distribution works over all $\mathbb{R}$ but am not sure I am ok if $z=0$.