0
$\begingroup$

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.

  • 4
    Why not break it down to $2\log x + x$?2017-01-08
  • 0
    it is $$\ln(x^2)=2\ln(|x|)$$2017-01-08

3 Answers 3

1

$\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$

3

You've made a mistake with your integration by parts.

Let $u=\ln(x^2 e^x)$ and $v'=1$.

Hence, $u'=\frac{x+2}{x}$ and $v=x$.

Substituing into $\int uv'= uv-\int vu'$ gives:

$$x\ln(x^2 e^x)-\int (x+2)~dx$$

Can you take it from here?

Keep in mind that $\ln(x^2 e^x)$ can be simplified by using the identity $\ln(ab)=\ln(a)+\ln(b)$ to give $\ln(x^2 e^x)=\ln(x^2)+\ln(e^x)=2\ln{|x|}+x$ to give the form of the answer similar to your book.

  • 1
    Omg, I see. Wrong derivation... Thanks.2017-01-08
2

To do by parts, your choice of $f $ and $g $ is perfect, but for the implementation. We have $$I = x [2\ln x +x]-\int (x)(\frac {2}{x} +1) dx $$ giving us the answer as in the book.

  • 0
    $\ln(x^2)=2\ln(|x|)$.2017-01-08
  • 0
    I did wrong derivation. Thank you :)2017-01-08
  • 0
    @0ndre_ No problem.2017-01-08