x2−x−2=(x−2)(x+1), two distinct linear factors. The numerator has degree 1 and the denominator degree 2, so the fraction is proper and no division is needed.
2
Set up the decomposition
Each linear factor gets one constant over it. Write (5x−1)/((x−2)(x+1))=A/(x−2)+B/(x+1). Multiplying both sides by the denominator clears the fractions and gives 5x−1=A(x+1)+B(x−2).
3
Find A and B
The equation holds for every x, so choose values that remove one constant at a time. x=2 gives 9=3A, so A=3, and x=−1gives −6=−3B, so B=2. Covering up each factor and substituting its zero gives the same numbers.
2+15(2)−1=3−1−25(−1)−1=2
4
Check the split
Recombining the two fractions returns the original one, 3(x+1)+2(x−2)=5x−1.
x2−x−25x−1x−23+x+12
5
Integrate
Each term integrates to a logarithm of its factor, with the absolute value kept because x−2 and x+1 can be negative.
∫x2−x−25x−1dx=3ln∣x−2∣+2ln∣x+1∣+C
∫x2−x−25x−1dx=3ln∣x−2∣+2ln∣x+1∣+C
Result
∫(5x−1)/(x2−x−2) dx=3ln∣x−2∣+2ln∣x+1∣+C, on any interval that avoids x=2 and x=−1.
Your turn
1. One like the example
Find ∫(x+7)/(x2−x−6) dx.
Show the answer and explanation
2ln∣x−3∣−ln∣x+2∣+C.
x2−x−6=(x−3)(x+2), so x+7=A(x+2)+B(x−3). At x=3,10=5A, so A=2. At x=−2,5=−5B, so B=−1. The pieces 2/(x−3)and −1/(x+2) integrate to logarithms.
∫x2−x−6x+7dx2ln∣x−3∣−ln∣x+2∣+C
2. A variation
Find ∫(x2+2x−1)/(x3−x) dx. The denominator factors into three linear pieces.
Show the answer and explanation
ln∣x∣+ln∣x−1∣−ln∣x+1∣+C.
x3−x=x(x−1)(x+1), so x2+2x−1=A(x−1)(x+1)+Bx(x+1)+Cx(x−1). At x=0,−1=−A, so A=1. At x=1,2=2B, so B=1. At x=−1,−2=2C, so C=−1. The split is 1/x+1/(x−1)−1/(x+1).
A reaction A+B→products starts with 3 mol/L of A and 5 mol/L of B. The time t to use up 1 mol/L of each satisfies kt=∫01dx/((3−x)(5−x)), with k the rate constant. Evaluate the integral.
Show the answer and explanation
(1/2)ln(6/5)≈0.0912 L/mol.
1/((3−x)(5−x)) splits as (1/2)/(3−x)−(1/2)/(5−x). Each piece integrates to a logarithm with a minus sign from the −x, which gives (1/2)ln((5−x)/(3−x)). At x=1 that is (1/2)ln2, and at x=0 it is (1/2)ln(5/3). The difference is (1/2)ln(6/5)≈0.0912.