Question

How to integrate 1 over x^2(x+1) using partial fractions

Original question: Can someone help me in this question \[ \int \frac{dx}{x^2(x+1)} \] \[ \frac{1}{x^2(x+1)}=\frac{Ax+B}{x^2}+\frac{C}{1+x} \] \[ 1=(Ax+B)(1+x)+Cx^2 \] \[ 1=Ax+Ax^2+B+Bx+Cx^2 \] \[ 1=x(A+B+?)+x(A+C)+B \] \[ B=1\qquad A+C=0 \] \[ A=-C\qquad A=B \] \[ 1=-C\qquad C=-1 \] \[ \int\left(\frac{x+?}{x^2}-\frac{1}{1+x}\right)dx \]

Expert Verified Solution

thumb_up100%(1 rated)

Expert intro: This is a classic partial-fractions integral. The main thing is to split the denominator carefully, then integrate each simple term without rushing the algebra.

Detailed walkthrough

Let

1x2(x+1)=Ax+Bx2+Cx+1.\frac{1}{x^2(x+1)}=\frac{A}{x}+\frac{B}{x^2}+\frac{C}{x+1}.

Multiply both sides by x2(x+1)x^2(x+1):

1=Ax(x+1)+B(x+1)+Cx2.1=A x(x+1)+B(x+1)+Cx^2.

Expand:

1=Ax2+Ax+Bx+B+Cx2.1=Ax^2+Ax+Bx+B+Cx^2.

Collect like terms:

1=(A+C)x2+(A+B)x+B.1=(A+C)x^2+(A+B)x+B.

Now match coefficients with the constant polynomial 11:

  • A+C=0A+C=0
  • A+B=0A+B=0
  • B=1B=1

So

B=1,A=1,C=1.B=1,\quad A=-1,\quad C=1.

Thus

1x2(x+1)=1x+1x2+1x+1.\frac{1}{x^2(x+1)}=-\frac{1}{x}+\frac{1}{x^2}+\frac{1}{x+1}.

Integrate term by term:

dxx2(x+1)=(1x+1x2+1x+1)dx.\int \frac{dx}{x^2(x+1)}=\int\left(-\frac1x+\frac1{x^2}+\frac1{x+1}\right)dx.

So

=lnx1x+lnx+1+C.= -\ln|x| - \frac{1}{x} + \ln|x+1| + C.

A neat final form is

lnx+1x1x+C.\boxed{\ln\left|\frac{x+1}{x}\right| - \frac{1}{x} + C}.

💡 Pitfall guide

A common slip is to write the partial fraction as Ax+Bx2+Cx+1\frac{Ax+B}{x^2}+\frac{C}{x+1} and then forget that Ax+Bx2=Ax+Bx2\frac{Ax+B}{x^2}=\frac{A}{x}+\frac{B}{x^2}. That still works, but the coefficient matching is easier if you expand into Ax+Bx2+Cx+1\frac{A}{x}+\frac{B}{x^2}+\frac{C}{x+1} straight away. Also remember the integral of x2x^{-2} is x1-x^{-1}, not lnx\ln x.

🔄 Real-world variant

If the denominator were x2(xa)x^2(x-a) instead of x2(x+1)x^2(x+1), the same method would work with

1x2(xa)=Ax+Bx2+Cxa.\frac{1}{x^2(x-a)}=\frac{A}{x}+\frac{B}{x^2}+\frac{C}{x-a}.

The coefficients would change with aa, but the structure of the answer would still be a mix of logarithms from the simple linear factors and a reciprocal term from x2x^2.

🔍 Related terms

partial fractions, rational functions, logarithmic integration

FAQ

How do you integrate 1/(x^2(x+1))?

Use partial fractions: 1/(x^2(x+1)) = -1/x + 1/x^2 + 1/(x+1), then integrate term by term to get ln| (x+1)/x | - 1/x + C.

Why is 1/x^2 integrated as -1/x?

Because x^-2 has antiderivative x^-1/(-1) = -x^-1. This is the power rule for integration.

chat