Problem 229
Easy Roots and Binomials

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

Evaluate the integral: $$ I = \int \frac{x^2}{x^2-3x+2}\,dx. $$

Explanation of Method

Since the numerator and denominator have equal degree, polynomial long division peels off a constant term first; partial fractions handle what remains.

  1. Divide $x^2$ by $x^2-3x+2$.
  2. Factor the denominator and decompose the remainder into partial fractions.
  3. Integrate term by term.

Step 1 · Polynomial long division

$$ \frac{x^2}{x^2-3x+2} = 1 + \frac{3x-2}{x^2-3x+2}. $$

Step 2 · Factor and decompose the remainder

$$ x^2-3x+2=(x-1)(x-2), \qquad \frac{3x-2}{(x-1)(x-2)} = \frac{A}{x-1}+\frac{B}{x-2}. $$

Multiplying through: $3x-2=A(x-2)+B(x-1)$. Setting $x=1$: $1=-A$, so $A=-1$. Setting $x=2$: $4=B$.

Step 3 · Integrate

$$ I = \int 1\,dx + \int \left(\frac{-1}{x-1}+\frac{4}{x-2}\right) dx = x - \ln|x-1| + 4\ln|x-2| + C. $$

Step 4 · Combine logarithms

$$ I = x + \ln\left(\frac{(x-2)^4}{|x-1|}\right) + C. $$


Summary Table

Coefficient Value
$A$$-1$
$B$$4$

Additional Notes

Result

The solution to the integral is:

$$ I = x + \ln\left(\frac{(x-2)^4}{|x-1|}\right) + C. $$