4

I've first transformed the integral to

$$\int\frac{5x^2+3x+2}{x(x^2+2x+1)}dx$$

Which gave me

$$\frac{A}{x}+\frac{Bx+C}{x^2+2x+1}$$ $$=\frac{A(x^2+2x+1)+Bx^2+Cx}{x(x^2+2x+1)}$$ $$\frac{5x^2+3x+2}{x(x^2+2x+1)}=\frac{(A+B)x^2+(2A+C)x+A)}{x(x^2+2x+1)}$$

So I've found the corresponding variables

$$A = 2$$ $$A+B = 5, B = 3$$ $$2A+C=3, C=-1$$

So the final integral is

$$2\int\frac{dx}{x}+3\int\frac{xdx}{x^2+2x+1}-\int\frac{dx}{x^2+2x+1}$$ $$=2ln(x) -ln(x^2+2x+1)+\frac{3}{x+1}+3ln(x+1)$$

However, the expected answer is

$$2ln(x)+3ln(x+1)+\frac{4}{x+1}$$

What is my error ?

student
  • 668
  • 2
    Your partial fractions decomposition, though correct, is not optimal for the integration (please see the answers). But let's continue on your path. We need to find $\int\frac{3x-1}{(x-1)^2},dx$. Rewrite this as $\int\frac{3x+3}{(x+1)^2},dx-\int\frac{4}{(x+1)^2},dx$. The first integral can be done using the substitution $u=(x+1)^2$, and the second can probably be written down directly. – André Nicolas Mar 15 '15 at 16:38
  • 3
    What is up with all of the downvotes on the answers to this question...? I've flagged this post for moderator attention. – Cameron Williams Mar 15 '15 at 16:48
  • @CameronWilliams Honestly, I have no idea! – Aaron Maroja Mar 15 '15 at 16:49
  • @CameronWilliams Superiority Wars – RE60K Mar 15 '15 at 16:55

4 Answers4

2

Hint: Notice that $x^2 + 2x + 1 = (x+1)^2$ then

$$\frac{5x^2 + 3x + 2}{x(x+1)^2} = \frac{A}{x} + \frac{B}{(x+1)} + \frac{C}{(x+1)^2}$$

Aaron Maroja
  • 17,571
2

I found your mistake $$\scriptsize2\int\frac{dx}{x}+3\int\frac{xdx}{x^2+2x+1}-\int\frac{dx}{x^2+2x+1}\color{red}{\ne}2ln(x) -ln(x^2+2x+1)+\frac{3}{x+1}+3ln(x+1)$$ But: $$2\int\frac{dx}{x}=2\ln|x|+c\\ 3\int\frac{xdx}{x^2+2x+1}\stackrel{t=x+1}=3\int\frac{(t-1)dt}{t^2}=3\int\left(\frac1t-\frac1{t^2}\right)dt=3\ln|x+1|+\frac3{x+1}+c\\ -\int\frac{dx}{x^2+2x+1}=\frac1{x+1}+c$$ Add them.

RE60K
  • 17,716
2

You may use this:

$$\frac{5 x^2+3 x+2}{x (x+1)^2}=\frac{2}{x}+\frac{3}{x+1}-\frac{4}{(x+1)^2}$$

Frieder
  • 1,655
2

you can see that $$\frac{5x^2 + 3x+2}{x(x+1)^2} = \frac 2 x + \frac{B}{x+1} - \frac 4{(x+1)^2}$$ by looking at the behavior of the two sides near the singularities $x = 0, x = -1.$ to find $B,$ put $x = 1.$ you will find $B = 3.$

you can now integrate $$ \int \frac{5x^2 + 3x+2}{x(x+1)^2} \, dx = 2 \ln x + 3 \ln(x+1) + \frac 4{x+1} + C$$

abel
  • 29,170
  • Where does the 2 and 4 comes from ? – student Mar 15 '15 at 17:01
  • 1
    see what happens when $x$ is close to $0.$ the left hand side is $\frac{5 \times 0^2 + 3 \times 0 + 2}{x \times 1^2} = \frac{2}{x} + \cdots.$ you can do the same when $x$ is close to $-1$ – abel Mar 15 '15 at 17:04