I need help with this integral,
$$\int \ln(x^2 e^x)\, dx $$
What I have:
I know ,that I can not integer $\ln$ so I rewrite it like this:
$$\int 1 \ln(x^2 e^x)\, dx = \left| \begin{array}{cc} u=\ln(x^2 e^x) & v'=\frac{1}{x^2 e^x} \\ u'=1 & v=x \end{array} \right| = x\ln(x^2 e^x)- \int \frac{1}{x^2 e^x}x = ?$$
Now I am not sure what to do.
The result is:
$$2 (x\ln x -x)+\frac{1}{2}x^2 + C $$
Thank you very much.
$\int \ln{(x^2e^x)}$ $dx$
$=x \ln {(x^2e^x)}-\int x[\frac{2xe^x+x^2e^x}{x^2e^x}]$ $dx$
$=x\ln {(x^2e^x)}- \int (2+x)$ $dx$
$=x\ln {(x^2e^x)}-2x-\frac{x^2}{2}$
$=x\ln{x^2}+x \ln{e^x}- 2x- \frac{x^2}{2}$
$=2x\ln{x}+x^2-2x-\frac{x^2}{2}+C$
$=2(x\ln{x}-x)+ \frac{x^2}{2} +C$