I'm trying to integrate the following:
$$ 2\lambda\cdot \int_0^\infty x^2e^{-2\lambda x} $$
The answer is supposed to be $\frac 1{4\lambda^2}$ however I'm attempting to solve it via a simple double application of integration by parts and keep getting $2$.
I'm unsure how to solve this otherwise, but mostly I'm not sure why a double application of integration by parts doesn't produce the solution. I've run through my work a few times now and can't find a mistake so I feel like there must be a greater principle I'm missing. Why can't I just integrate by parts twice to nuke the first term?
My attempt at solution:
Taking the integral of the first expression, I apply integration by parts for:
$$ \frac {-x^2*e^{-2\lambda x}}{2\lambda} - 2\int xe^{-2\lambda x}$$
This done, I do the same to the second term, receiving:
$$ \frac {-x*e^{-2\lambda x}}{\lambda} - 2\int {e^{-2\lambda x}} $$
Evaluating the last integral and pulling it all together, accounting for sign carryover, gives me:
$$ \frac {-x^2*e^{-2\lambda x}}{2\lambda} + \frac {xe^{-2\lambda}}{2\lambda} - \frac {-e^{-2\lambda x}}{\lambda} $$
As a solution to the indefinite integral. When I evaluate the boundary conditions and multiply by $2\lambda$, I get $2$.