Grade by GradeEssential student suppliesSign in
C. Content · Calculus 12: Functions, Limits, Derivatives, Integrals and Their Applications

Methods of Integration: Substitution and Integration by Parts

BC CALC 12: substitution BC CALC 12: by partsAbout 80 minutes
Learning goals
  • I can integrate by substitution, including changing the limits of a definite integral.
  • I can integrate by parts and choose u and dv well.
  • I can decide which method fits an integral and check my answer by differentiating.

Words to know

substitution
Replacing an inner expression with u, so that ∫ f(g(x)) g'(x) dx becomes ∫ f(u) du. It reverses the chain rule.
differential
du = u'(x) dx, the small change in u that goes with a small change dx.
integration by parts
∫ u dv = uv - ∫ v du. It reverses the product rule.
LIATE
A common teaching tool for choosing u in by parts: Logarithmic, Inverse trig, Algebraic, Trig, Exponential (choose u from the earliest type).
elementary function
A function built from powers, roots, exponentials, logs and trig functions using the usual operations.

Substitution: the chain rule backwards

The chain rule says d/dx F(g(x)) = F'(g(x)) · g'(x). Reading it backwards: if an integrand is a function of an inner expression times the inner expression's derivative, let u be the inner expression.

  1. Choose u (usually the inside of a power, root, exponential or trig function).
  2. Find du = u' dx, and solve for the dx-part you need.
  3. Rewrite the whole integral in u (no x left!), integrate, then substitute back.
Is it in the basic table?Yes: use itNo: is (a multiple of) u' next to f(u)?Yes: substituteu = insideNo: a product?try by parts
A common way to choose a method of integration.
Worked example

Example 1: A power

Find ∫ 2x(x^2 + 1)^4 dx.

  1. Let u = x^2 + 1. Then du = 2x dx.
  2. The integral becomes ∫ u^4 du = u^5/5 + C.
  3. Substitute back. Check: d/dx [(x^2 + 1)^5/5] = (x^2 + 1)^4 · 2x ✓

(x^2 + 1)^5/5 + C

Worked example

Example 2: Adjusting a constant

Find (a) ∫ x e^(x^2) dx and (b) ∫ cos(3x) dx.

  1. (a) u = x^2, du = 2x dx, so x dx = du/2. ∫ e^u du/2 = e^u/2 + C.
  2. (b) u = 3x, du = 3 dx, so dx = du/3. ∫ cos u du/3 = (sin u)/3 + C.

(a) e^(x^2)/2 + C (b) sin(3x)/3 + C

Worked example

Example 3: A definite integral

Evaluate ∫ from 0 to 1 of x sqrt(1 - x^2) dx.

  1. u = 1 - x^2, du = -2x dx, so x dx = -du/2.
  2. Change the limits: x = 0 gives u = 1; x = 1 gives u = 0.
  3. ∫ from 1 to 0 of sqrt(u)(-du/2) = (1/2)∫ from 0 to 1 of u^(1/2) du = (1/2)(2/3)[u^(3/2)] from 0 to 1 = 1/3.

1/3

Integration by parts: the product rule backwards

From (uv)' = u'v + uv', integrating gives

∫ u dv = uv - ∫ v du.

Use it for products like x e^x, x cos x or x ln x. Choose u to be the part that gets simpler when you differentiate it, and dv to be a part you can integrate. The goal is a new integral ∫ v du that is easier than the one you started with.

IntegralChoose uChoose dvWhy
∫ x e^x dxxe^x dxx gets simpler (becomes 1)
∫ x cos x dxxcos x dxx gets simpler
∫ x^2 ln x dxln xx^2 dxln x differentiates to 1/x
∫ ln x dxln xdxthe only choice that works
∫ arctan x dxarctan xdx1/(1 + x^2) is easier to handle
Choosing u and dv. The LIATE order (a common teaching tool) gives the same choices.
Worked example

Example 4: x e^x

Find ∫ x e^x dx.

  1. u = x, dv = e^x dx. Then du = dx and v = e^x.
  2. ∫ x e^x dx = x e^x - ∫ e^x dx = x e^x - e^x + C.
  3. Check: d/dx (x e^x - e^x) = e^x + x e^x - e^x = x e^x ✓

e^x(x - 1) + C

Worked example

Example 5: ln x

Find ∫ ln x dx, then evaluate ∫ from 1 to e of ln x dx.

  1. u = ln x, dv = dx. Then du = (1/x) dx and v = x.
  2. ∫ ln x dx = x ln x - ∫ x · (1/x) dx = x ln x - x + C.
  3. Definite: [x ln x - x] from 1 to e = (e · 1 - e) - (1 · 0 - 1) = 0 + 1.

x ln x - x + C; the definite integral is 1

Worked example

Example 6: Parts with a trig function

Find ∫ x cos x dx.

  1. u = x, dv = cos x dx, so du = dx and v = sin x.
  2. ∫ x cos x dx = x sin x - ∫ sin x dx = x sin x + cos x + C.

x sin x + cos x + C

Differentiate to check

You can always check an indefinite integral by differentiating your answer. If you get the integrand back, you're right. This takes 30 seconds and catches most sign errors.

Hands-on activity

Method sort

Write each integral on its own card: ∫ 3x^2 cos(x^3) dx, ∫ x sin x dx, ∫ (2x + 3)^7 dx, ∫ x^3 dx, ∫ x ln x dx, ∫ e^x/(1 + e^x) dx, ∫ x e^(-x) dx, ∫ sec^2 x dx. Sort them into three piles: basic table, substitution and by parts. Then solve one from each pile and check by differentiating. Make up two cards of your own for a classmate.

Just for fun

Some integrals can't be done by any method in this lesson. ∫ e^(-x^2) dx has no elementary antiderivative at all (this was proved in the 1800s). Yet the area under the whole bell curve y = e^(-x^2), from -∞ to ∞, is exactly sqrt(pi). That bell curve is the shape behind the normal distribution in statistics.

Your turn

1

Find ∫ 3x^2(x^3 - 5)^6 dx.

2

Find ∫ e^(5x) dx.

3

Find ∫ x/(x^2 + 4) dx.

4

Find ∫ sin x cos^3 x dx.

5

Find ∫ x sin x dx.

6

Evaluate ∫ from 0 to 2 of x e^x dx.

More practice

1

Find ∫ x^2 e^x dx (use parts twice).

2

Find ∫ (ln x)/x dx.

3

Evaluate ∫ from 0 to pi/2 of sin x cos x dx.

4

Find ∫ x ln x dx.

5

Find ∫ arctan x dx.

6

Find ∫ 1/(2x + 1) dx.

Check your understanding

Quiz

1.

What is ∫ 2x cos(x^2) dx?

2.

What is ∫ x e^x dx?

3.

Which is the integration by parts formula?

4.

Evaluate ∫ from 0 to 1 of 2x(x^2 + 1)^3 dx.

5.

What is ∫ e^(2x) dx?

For parents and teachers

How to help: Ask your teen to check answers by differentiating; it builds confidence and catches errors. When they are stuck, ask: "Is there an inside function whose derivative is also here?"

Common mistakes:

  • Leaving some x's in the integral after substituting.
  • Forgetting to change the limits (or to substitute back) in a definite integral.
  • Choosing u and dv the wrong way round in by parts, so the new integral is harder.
  • Losing a minus sign, especially with ∫ sin x dx = -cos x.