Example in Notes:
Consider the error function defined in terms of the integral:
$$erf\left( x\right) =\dfrac {2} {\sqrt {\pi }}\int _{0}^{x}e^{-t^{2}}dt. \tag1$$
The Taylor expansion for $e^{-t^{2}}$ is given by
$$e^{-t^{2}}=\sum _{n=0}^{\infty }\dfrac {\left( -t^{2}\right) ^{n}} {n!}, \tag2$$
Quoting:
"which converges for all $t$ i.e. it has an infinite radius of convergence. Thus, we can simply substitute $(1)$ into $(2)$ and integrate term-by-term to obtain a series that converges for all values of $x$. This is given by $$erf\left( x\right) =\dfrac {2} {\sqrt {\pi }}\sum _{n=0}^{\infty }\dfrac {\left( -1\right) ^{n}x^{2n+1}} {\left( 2n+1\right) n!}"$$
My Question:
How do you do the step in the quotation marks in full?