Problem 210
Easy Roots and Binomials

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

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

Explanation of Method

Factoring the denominator and decomposing into partial fractions reduces the integral to two elementary logarithms.

  1. Factor $x^2+x-2=(x-1)(x+2)$.
  2. Decompose into partial fractions.
  3. Integrate term by term and combine logs.

Step 1 · Factor and set up partial fractions

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

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

Step 2 · Integrate

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

Step 3 · Combine logarithms

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


Summary Table

Coefficient Value
$A$$3$
$B$$-1$

Additional Notes

Result

The solution to the integral is:

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