- #1

- 51

- 0

**Can some one explain why I am getting this wrong[SOLVED]**

## Homework Statement

Evaluate

[tex]\int ln(x+x^{2}) dx[/tex]

## Homework Equations

## The Attempt at a Solution

I integrated by parts to get down to [tex]xln(x+x^{2})-\int \frac{(2x-1)}{x+1}[/tex] I set [tex] u=1+x[/tex] which led to [tex]du=1 dx[/tex] and [tex]x=u-1[/tex] after so evaluation I got down to [tex]-(\int 2 du -\int \frac{1}{u} du)[/tex] and after more substitution and evaluation I got down to [tex]xln(x+x^{2})+ln\left|1+x \right|-2-2x +C[/tex], but my book says that I should have only got -2x and not that extra -2

Last edited: