Is this possible? Integrating a power series…

calculuspower series

Work

$$\int_{0}^{\infty} \mathrm{e}^{-x^2}\, dx = \frac{\sqrt \pi}{2}$$
$$\int_{0}^{\infty} \sum_\limits{k=0}^\infty\frac{(-1)^k(x^{2k})}{k!}dx=\frac{\sqrt{\pi}}2$$

I don't know much about this I just thought hey right we have the function what if we wrote it as the power series and integrated that and got the sum would it work? On a limb I saw this post

Best Answer

If you exchange the integral and the series blindly, the integral of each term is infinite, showing that it was not allowable to exchange the series and the integral.

Remember that $\int_0^\infty e^{-x^2}\,dx$ means $$ \lim_{N\to\infty}\int_0^N e^{-x^2}\,dx. $$ Now you can do (as you saw in the post you mention, because the convergence of the series is uniform on closed intervals) $$ \lim_{N\to\infty}\int_0^N\sum_{k=0}^\infty \frac{(-1)^k x^{2k}}{k!}\,dx =\lim_{N\to\infty}\sum_{k=0}^\infty \int_0^N\frac{(-1)^k x^{2k}}{k!}\,dx =\lim_{N\to\infty}\sum_{k=0}^\infty \frac{(-1)^k N^{2k+1}}{k!(2k+1)}. $$ And now you need to calculate the new series. The best method is to notice that it is the anti-derivative of $e^{-x^2}$ at $x=N$, so $$ \sum_{k=0}^\infty \frac{(-1)^k N^{2k+1}}{k!(2k+1)}=\int_0^Ne^{-x^2}\,dx. $$ Not super useful.

Related Question