I am trying to derive Chi-square distribution. The random variale is
$$ U^2=\sum_{i=1}^k X_i^2 $$
where $X$ is a random variable with normal standard distribution.
What is the distribution of $X^2$? I am trying to derive it using characteristic functions, but I cannot understand why $X^2$ charateristic function is:
$$\phi(t)=\frac{1}{\sqrt{2\pi}} \int_{-\infty}^\infty e^{-\frac{x^2}{2}}e^{itx^2}dx.$$
Where did this $x^2$ in $e^{itx^2}$ come from?