Evaluate an indefinite integral Find the value of 
$$\int{\frac{x^2e^x}{(x+2)^2}} dx$$
My Attempt: I tried to arrange the numerator as follows:
$$ e^xx^2 =  e^x(x+2-2)^2 $$ but that didn't help.
Any guidance on this problem will be very helpful.

Hint: let $f(x) = x^2e^x$ and $g(x) = \frac{1}{(x + 2)^2}$ and integrate by parts.
