I found this expression:
$$\int_0^\infty e^{-x^2}dx=-\int_0^\infty x de^{-x^2}$$
It's the first time I see an integration variable like $de^{-x^2}$. It is even legit to use it? What rule I have to follow to transform the first integral to the second?
Observe that by the chain rule : $$\frac {de^{-x^2}}{dx}=e^{-x^2}(-2x)$$ Multiply by $dx$ $$de^{-x^2}=-2xe^{-x^2}dx$$ $$\int de^{-x^2}=-2\int xe^{-x^2}dx$$ Therefore : $$\int e^{-x^2}dx=- \frac 12\int \frac {d(e^{-x^2})}{x}$$ Not what you have