Originally Posted by

**chug1** Hi we were asked to solve the following integral by substitution

$\displaystyle \int_{}^{}\frac{x+1}{2x^2+4x}dx$

I first took a factor of 1/2 out, to give

$\displaystyle \frac{1}{2}\int_{}^{}\frac{x+1}{x^2+2x}dx$

I then let

$\displaystyle u=x^2+2x$

so

$\displaystyle \frac{du}{dx}=2x+2$

$\displaystyle \frac{1}{2}\frac{du}{dx}=x+1$

substituting for u and du/dx gives

$\displaystyle \frac{1}{2}\int_{}^{}\frac{\frac{1}{2}\frac{du}{dx }}{u}dx$

$\displaystyle \frac{1}{2}\int_{}^{}\frac{1}{2}\frac{1}{u}\frac{d u}{dx}dx$

$\displaystyle \frac{1}{4}\int_{}^{}\frac{1}{u}du$

$\displaystyle \frac{1}{4}ln\left|u\right|+c$

$\displaystyle \frac{1}{4}ln\left|x^2+2x\right|+c$

Anything wrong there?

Because if I integrate WITHOUT taking the first 1/2 factor out, leaving u as 2x^2 + 4x, i get the same answer but with 2x^2 + 4x inside the ln. These answers are surely different, yet both make sense so what's gone wrong?

I've run this past my classmate and teacher and none of use can find the mistake, so any help is greatly appreciated.