Problem 242
Easy Partial Fractions

Evaluate the integral: I = integral dx/(x(x-1)(x+2))

Evaluate the integral: $$ I = \int \frac{dx}{x(x-1)(x+2)}. $$

Explanation of Method

Decomposing into partial fractions over the three distinct linear factors reduces the integral to three elementary logarithms.

  1. Decompose $1/[x(x-1)(x+2)]$ into partial fractions.
  2. Solve for the coefficients.
  3. Integrate each term.

Step 1 · Set up partial fractions

$$ \frac{1}{x(x-1)(x+2)} = \frac Ax + \frac{B}{x-1} + \frac{C}{x+2}. $$

Multiplying through: $1=A(x-1)(x+2)+Bx(x+2)+Cx(x-1)$.

Step 2 · Solve for the coefficients

Setting $x=0$: $1=A(-1)(2)=-2A$, so $A=-\tfrac12$. Setting $x=1$: $1=B(1)(3)=3B$, so $B=\tfrac13$. Setting $x=-2$: $1=C(-2)(-3)=6C$, so $C=\tfrac16$.

Step 3 · Integrate each term

$$ I = \int \left(\frac{-1/2}{x} + \frac{1/3}{x-1} + \frac{1/6}{x+2}\right) dx = -\frac12\ln|x| + \frac13\ln|x-1| + \frac16\ln|x+2| + C. $$


Summary Table

Coefficient Value
$A$$-1/2$
$B$$1/3$
$C$$1/6$

Additional Notes

Result

The solution to the integral is:

$$ I = -\frac12\ln|x| + \frac13\ln|x-1| + \frac16\ln|x+2| + C. $$