Integration by substitution and by parts
When a function is not a simple power, you need a technique. You might spot a reverse chain rule, substitute a new variable, integrate by parts or use partial fractions. Choosing the right technique is half the skill.
Key facts
- Reverse chain rule: ∫ f′(x)(f(x))^n dx = ((f(x))^(n+1))/(n + 1) + c and ∫ (f′(x))/(f(x)) dx = ln|f(x)| + c.
- Standard results: ∫ e^(kx) dx = (e^(kx))/k, ∫ cos(kx) dx = (sin(kx))/k, ∫ sin(kx) dx = −(cos(kx))/k, ∫ 1/(ax + b) dx = 1/a ln|ax + b|.
- Substitution: choose u and replace dx using du/dx. Change the limits to u-values too.
- By parts: ∫ u dv/dx dx = uv − ∫ v du/dx dx. Let u be the part that gets simpler when differentiated (a power of x, or ln x).
- Partial fractions: split (px + q)/((x + a)(x + b)) into A/(x + a) + B/(x + b) before integrating.
- Powers of trig: use sin^2 x = (1 − cos 2x)/2 and cos^2 x = (1 + cos 2x)/2.
Worked examples
Example 1
Find ∫ x(x^2 + 3)^4 dx.
- Let u = x² + 3. du/dx = 2x ⇒ x dx = 1/2 du
- The integral becomes 1/2 ∫ u^4 du = (u^5)/10
- Substitute back. ((x^2 + 3)^5)/10 + c
Answer: ((x² + 3)⁵)/10 + c
Example 2
Evaluate ∫ x e^(2x) dx from 0 to 1.
- Let u = x, which gets simpler. Let dv/dx = e^(2x). du/dx = 1, v = (e^(2x))/2
- Use uv − ∫ v du/dx dx. [(x e^(2x))/2] − ∫ (e^(2x))/2 dx
- Put in the limits 0 and 1. (e^2)/2 − [(e^(2x))/4] = (e^2)/2 − (e^2 − 1)/4
- Simplify. (e^2 + 1)/4 ≈ 2.097
Answer: (e² + 1)/4 ≈ 2.097
Example 3
Evaluate ∫ 3/((x + 1)(x − 2)) dx from x = 3 to x = 5.
- Split into partial fractions. 3/((x + 1)(x − 2)) = A/(x − 2) + B/(x + 1)
- Cover up x − 2 and put x = 2. A = 3/3 = 1
- Cover up x + 1 and put x = −1. B = 3/(−3) = −1
- Integrate. [ln(x − 2) − ln(x + 1)]
- Put in the limits 3 and 5. (ln 3 − ln 6) − (ln 1 − ln 4) = ln(1/2) + ln 4 = ln 2
Answer: ln 2 ≈ 0.693
Example 4
Find ∫ cos(2x) dx.
- Differentiating sin(2x) gives 2cos(2x).
- So divide by 2. ½ sin(2x) + c
Answer: (1/2) sin(2x) + c