Not sure where I've gone wrong in the following:
Consider the integral $$ \int_0^\infty e^{-2x}\:dx = \frac{1}{2} $$ Via some simple manipulation we find: \begin{align} \int_0^\infty e^{-2x}\:dx &= \int_0^\infty e^{-x} e^{-x} \:dx = \int_0^\infty e^{-x} \left[ \sum_{n = 0}^\infty (-1)^n\frac{x^n}{n!} \right] \:dx \\ &= \int_0^\infty \sum_{n = 0}^\infty \frac{(-1)^n}{n!} x^ne^{-x} = \sum_{n = 0}^\infty \frac{(-1)^n}{n!} \int_0^\infty x^ne^{-x} \:dx \\ &= \sum_{n = 0}^\infty \frac{(-1)^n}{n!} \Gamma(n + 1) = \sum_{n = 0}^\infty \frac{(-1)^n}{n!} n! = \sum_{n = 0}^\infty (-1)^n \end{align} And so, $$ \sum_{n = 0}^\infty (-1)^n = \frac{1}{2} $$ This is the famous Grandi's Series which is divergent.
My question: Where have I gone wrong here? What rule/axiom/etc have I violated in my work in achieving this 'result'?