I have two i.i.d. $N(0, \sigma^2)$ random variables $X_1$ and $X_2$. Let $Z = \sqrt{X_1^2 + X_2^2}$. I am told that $R$ follows the Rayleigh distribution.
The Rayleigh distribution has PDF
$$f_{\sigma}(x) = \dfrac{x}{\sigma^2} e^{-\dfrac{x^2}{2\sigma^2}},$$
where $x \ge 0$.
My understanding is that, since $X_1$ and $X_2$ are independent $N(0, \sigma^2)$ random variables, we have that
$$Z = \sqrt{\left( \dfrac{X_1 - 0}{\sigma} \right)^2 + \left( \dfrac{X_2 - 0}{\sigma} \right)^2}$$
It is then said that this means that $Z$ has a Rayleigh distribution. But how does $Z = \sqrt{\left( \dfrac{X_1 - 0}{\sigma} \right)^2 + \left( \dfrac{X_2 - 0}{\sigma} \right)^2}$ imply that $Z$ has a Rayleigh distribution? (That is, what is the reasoning here?) And, in particular, how does this imply that $Z$ has density $f_{\sigma}(x) = \dfrac{x}{\sigma^2} e^{-\dfrac{x^2}{2\sigma^2}}$, $x \ge 0$?