Spot the inner function
Put t = a part whose derivative is also in the integrand.
No formula fits
Look at ∫ 2x sin (x² + 1) dx. None of our table formulas fits it as it stands. But look closely at 2x and x² + 1.
What do you notice?
What this lesson covers
The idea
Change the variable: put x = g(t), so dx = g′(t) dt and ∫ f(x) dx = ∫ f(g(t)) g′(t) dt; a good substitution is a function whose derivative also appears in the integrand.
No formula fits
Look at ∫ 2x sin (x² + 1) dx. None of our table formulas fits it as it stands. But look closely at 2x and x² + 1.
What do you notice?
- 2x is the derivative of x² + 1
- Integrate 2x and sin (x² + 1) separately, then multiply
- It cannot be integrated
- Expand sin (x² + 1)
Choose t
Tap the part you want to call t. The toy works out dt and shows what the integral turns into. These are the book's Example 5.
Change the variable
Integration by substitution: put x = g(t), so that dx = g′(t) dt. Then ∫ f(x) dx = ∫ f(g(t)) g′(t) dt. Usually we substitute for a function whose derivative also occurs in the integrand.
In ∫ 2x sin (x² + 1) dx, the part x² + 1 has derivative 2x, and 2x dx is sitting right there. So t = x² + 1 turns the whole integral into ∫ sin t dt.
Finish by putting the old variable back: t = x² + 1 gives −cos (x² + 1) + C. Check: d/dx [−cos (x² + 1)] = sin (x² + 1) × 2x. ✓
Notes
Integration by substitution: put x = g(t), dx = g′(t) dt, so ∫ f(x) dx = ∫ f(g(t)) g′(t) dt. Choose t to be a function whose derivative also occurs in the integrand. At the end, put the old variable back.
Check yourself
Exercise 7.2, Q2: for ∫ (log x)²/x dx, which is a good substitution?
Exercise 7.2, Q1: ∫ 2x/(1 + x²) dx = ?
Exercise 7.2, Q16: ∫ e²ˣ⁺³ dx = (1/k) e²ˣ⁺³ + C. Find k.
Answer: 2
t = 2x + 3, dx = dt/2: ∫ eᵗ dt/2 = (1/2) eᵗ + C = (1/2) e²ˣ⁺³ + C. So k = 2.
Exercise 7.2, Q4: ∫ sin x sin (cos x) dx = ?
- t = x². dt = 2x dx, and 2x is not in the integrand.
- t = log x — correct. Yes! dt = dx/x is there, and the integral becomes ∫ t² dt = t³/3 + C = (log x)³/3 + C.
- t = 1/x. dt = −dx/x², and log x is still left in x.
- t = x. That changes nothing.
- tan⁻¹x + C. That integrates 1/(1 + x²). Here the numerator 2x is the derivative of 1 + x².
- 2 tan⁻¹x + C. Its derivative is 2/(1 + x²), not 2x/(1 + x²).
- log (1 + x²) + C — correct. Yes! t = 1 + x², dt = 2x dx, so ∫ dt/t = log |t| = log (1 + x²) + C.
- x² + log x + C. We cannot split a fraction like that.
- cos (cos x) + C — correct. Yes! t = cos x, dt = −sin x dx, so the integral is −∫ sin t dt = cos t + C = cos (cos x) + C.
- −cos (cos x) + C. dt = −sin x dx brings a minus sign: −∫ sin t dt = +cos t.
- sin (cos x) + C. Differentiate it: you get −sin x cos (cos x).
- −cos x cos (cos x) + C. After t = cos x the integral is −∫ sin t dt; there is no extra cos x.