I have an improper integral as follows:
$$\int_0^\infty r^2 e^{-a\cdot r}dr.$$
I try to evaluate it by parts and get $ [ -(\dfrac{r^2}{a} + \dfrac{2r}{a^2} + \dfrac{2}{a^3}) \cdot e^{-a \cdot r} ]^\infty_0 $, which leads me to nowhere.
According to the given solution, this integral can be solved like this:
$\int_0^\infty r^2 e^{-a\cdot r} = \dfrac{\delta^2}{\delta r^2} \int_0^\infty e^{-a\cdot r} = ... = \dfrac{2}{a^3} $
Which rule did they apply here (for the derivative)?
OK, made a mistake for the second method (apologies): For the second method you have to consider $$I(a) = \int_0^\infty e^{-a\cdot r} \, dr$$ Then if you look at $\frac{\partial^2 }{\partial \, a^2} I(a)$ this is equal to the required integral. But you have $I(a)= \frac{1}{a}$ and you can easily work out $\frac{\partial^2 }{\partial \, a^2} \frac{1}{a}$. As an additional point, you can't really look at $\frac{\partial^2 }{\partial \, r^2} \int_0^\infty r^2 e^{-a\cdot r} \, dr$, since $r$ is an integration variable.