e^(i Pi)+1=0
- 246
- 1
Homework Statement
f(x)=\int\frac{x+1}{x^2+2x}
The Attempt at a Solution
I know that this can be solved with substitution. I'm wondering why I get the wrong answer when using this other method...
f(x)=\int\frac{x+1}{x^2+2x}
=\int\frac{x}{x^2+2x}+\frac{1}{x^2+2x}
=\int\frac{1}{x+2}+\int\frac{1}{x^2+2}
=ln(x+2)+ln(x^2+2) + c
I could simplify more, but it's wrong. It should be .5(x^2+2) + c
I'm guessing that \int\frac{1}{x^2+2}\neq ln(x^2+2) so in what cases does \int \frac{1}{x} = ln(x) + c not hold?? I just learned this stuff today so any answers will have to be rather explicit please.