Solution:
Key idea: A proper rational function whose denominator factorises can be split into partial fractions: a linear factor (x−p) gets x−pA, a repeated factor (x−p)2 gets x−pA+(x−p)2B, and an irreducible quadratic gets quadraticBx+C. Each piece then integrates using ∫x−pdx=log∣x−p∣+C.
Step 1 — Set up the partial fractions.
The denominator has two different linear factors, so we look for constants A and B.
(x+1)(x−2)x−1=x+1A+x−2B
Multiplying both sides by (x+1)(x−2) gives an identity true for every x.
x−1=A(x−2)+B(x+1)
Step 2 — Find A and B.
Putting x=−1 removes the B term, and putting x=2 removes the A term.
x=−1:−2Ax=2:1B=−3A=32=3B=31
Step 3 — Integrate each fraction.
Each fraction has the form x−pk, which integrates to klog∣x−p∣.
∫(x+1)(x−2)x−1dx=32log∣x+1∣+31log∣x−2∣+C
Therefore, ∫(x+1)(x−2)x−1dx=32log∣x+1∣+31log∣x−2∣+C, for x=−1,2.