Lessons and exercises follow the school system and stay in its language.Les leçons et les exercices suivent le système scolaire et restent dans sa langue.Lektionen und Übungen folgen dem Schulsystem und bleiben in seiner Sprache.

Techniques: substitution

Print the chapter

Every lesson of the chapter, ready for paper. Exercise sets are lettered A, B, C… and answered at the end.

To save a PDF, choose “Save as PDF” in the print dialog.

1. Integration by substitution

Warm-up

Three quick questions from earlier lessons.

  1. f(x)=(3x+6)2f(x) = (3x + 6)^{ 2 }. Find f′(x)f'(x).
  2. f(x)=sin⁡(3x2)f(x) = \sin(3x^2). Find f′(x)f'(x).
  3. f(x)=e3x2f(x) = e^{ 3x^2}. Find f′(x)f'(x).

Discover

By the chain rule, (sin⁡(x2))′=cos⁡(x2)⋅2x\big(\sin(x^2)\big)' = \cos(x^2) \cdot 2x. So what is an antiderivative of 2xcos⁡(x2)2x\cos(x^2)?

  1. sin⁡(x2)\sin(x^2)
  2. 2xsin⁡(x2)2x\sin(x^2)

Key idea

Substitution is the chain rule in reverse.

If the integrand has the form f(g(x)) g′(x)f(g(x))\,g'(x), put u=g(x)u = g(x), du=g′(x) dxdu = g'(x)\,dx: ∫f(g(x)) g′(x) dx=∫f(u) du\displaystyle\int f(g(x))\,g'(x)\,dx = \int f(u)\,du. If only a constant multiple of g′(x)g'(x) is present, adjust with that constant.

Worked example

∫x2(x3+1)4 dx\displaystyle\int x^2 (x^3 + 1)^4\,dx.

u=x3+1u = x^3 + 1, x2 dx=13dux^2\,dx = \tfrac{1}{3}du
Inside u = x³ + 1; du = 3x² dx, so x² dx = ⅓ du.
∫13u4 du=115u5+C\displaystyle\int \tfrac{1}{3}u^4\,du = \tfrac{1}{15}u^5 + C
Substitute.
115(x3+1)5+C\tfrac{1}{15}(x^3 + 1)^5 + C
Back to x.

Your turn, guided

Your turn: ∫3x2ex3 dx\displaystyle\int 3x^2 e^{x^3}\,dx with u=x3u = x^3.

ex3+Ce^{x^3} + C
du = 3x² dx exactly.

Practice ★

  1. Find FF with F′(x)=2xcos⁡(x2)+3F'(x) = 2x\cos(x^2) + 3 and F(0)=0F(0) = 0.
  2. Find FF with F′(x)=2xcos⁡(x2)+42F'(x) = 2x\cos(x^2) + 42 and F(0)=0F(0) = 0.
  3. Find FF with F′(x)=2xcos⁡(x2)+1F'(x) = 2x\cos(x^2) + 1 and F(0)=0F(0) = 0.

Watch out!

Practice ★★

  1. Find FF with F′(x)=x ex2F'(x) = x\,e^{x^2} and F(0)=3F(0) = 3.
  2. Find FF with F′(x)=x ex2F'(x) = x\,e^{x^2} and F(0)=6F(0) = 6.
  1. Find FF with F′(x)=(5x+2)2F'(x) = (5x + 2)^{ 2 } and F(0)=0F(0) = 0.
  2. Find FF with F′(x)=(3x+3)2F'(x) = (3x + 3)^{ 2 } and F(0)=0F(0) = 0.

Exit ticket

Three questions to check you have got it.

  1. Find FF with F′(x)=2xcos⁡(x2)+3F'(x) = 2x\cos(x^2) + 3 and F(0)=0F(0) = 0.
  2. Find FF with F′(x)=2xcos⁡(x2)+42F'(x) = 2x\cos(x^2) + 42 and F(0)=0F(0) = 0.
  3. Find FF with F′(x)=2xcos⁡(x2)+1F'(x) = 2x\cos(x^2) + 1 and F(0)=0F(0) = 0.

Summary card

Substitution

  1. Choose the inside u=g(x)u = g(x).
  2. Replace g′(x) dxg'(x)\,dx by dudu (adjust a constant).
  3. Integrate in uu, then return to xx.

Watch out: keep track of constant factors from dudu.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. Find FF with F′(x)=8sin⁡xcos⁡xF'(x) = 8\sin x\cos x and F(0)=0F(0) = 0.

2. Substitution in definite integrals

Warm-up

Three quick questions from earlier lessons.

  1. Evaluate ∫03x2 dx\displaystyle\int_0^{ 3 } x^2\,dx.
  2. Evaluate ∫0π/5cos⁡x dx\displaystyle\int_0^{\pi/5} \cos x\,dx. Give an exact value.
  3. Evaluate ∫−14(2x+1) dx\displaystyle\int_{ -1 }^{ 4 } (2x + 1)\,dx.

Discover

In ∫022x(x2+1)3 dx\displaystyle\int_0^2 2x(x^2 + 1)^3\,dx you put u=x2+1u = x^2 + 1. When xx goes from 0 to 2, where does uu go?

  1. From 1 to 5
  2. From 0 to 2

Key idea

Change the limits with the variable.

∫abf(g(x)) g′(x) dx=∫g(a)g(b)f(u) du\displaystyle\int_a^b f(g(x))\,g'(x)\,dx = \int_{g(a)}^{g(b)} f(u)\,du. Then there is no need to go back to xx.

Worked example

∫022x(x2+1)3 dx\displaystyle\int_0^2 2x(x^2 + 1)^3\,dx.

∫15u3 du\displaystyle\int_1^5 u^3\,du
u = x² + 1 from 1 to 5.
625−14\dfrac{625 - 1}{4}
u⁴/4 from 1 to 5.
=156= 156
Compute.

Your turn, guided

Your turn: ∫0πcos⁡x sin⁡2x dx\displaystyle\int_0^{\pi} \cos x\,\sin^2 x\,dx with u=sin⁡xu = \sin x.

∫00u2 du=0\displaystyle\int_0^0 u^2\,du = 0
u runs from sin 0 = 0 to sin π = 0.

Practice ★

  1. Evaluate ∫012x(x2+1)4 dx\displaystyle\int_0^1 2x(x^2 + 1)^{ 4 }\,dx.
  2. Evaluate ∫012x(x2+1)3 dx\displaystyle\int_0^1 2x(x^2 + 1)^{ 3 }\,dx.
  3. Evaluate ∫012x(x2+1)2 dx\displaystyle\int_0^1 2x(x^2 + 1)^{ 2 }\,dx.

Watch out!

Practice ★★

  1. Evaluate ∫0π/2sin⁡6xcos⁡x dx\displaystyle\int_0^{\pi/2} \sin^{ 6 } x \cos x\,dx.
  2. Evaluate ∫0π/2sin⁡3xcos⁡x dx\displaystyle\int_0^{\pi/2} \sin^{ 3 } x \cos x\,dx.
  1. Evaluate ∫1e(ln⁡x)1x dx\displaystyle\int_1^{e} \dfrac{(\ln x)^{ 1 } }{x}\,dx.

Exit ticket

Three questions to check you have got it.

  1. Evaluate ∫012x(x2+1)4 dx\displaystyle\int_0^1 2x(x^2 + 1)^{ 4 }\,dx.
  2. Evaluate ∫012x(x2+1)3 dx\displaystyle\int_0^1 2x(x^2 + 1)^{ 3 }\,dx.
  3. Evaluate ∫012x(x2+1)2 dx\displaystyle\int_0^1 2x(x^2 + 1)^{ 2 }\,dx.

Summary card

Definite integrals by substitution

  • New limits: u(a)u(a) and u(b)u(b).
  • Integrate in uu between them.

Watch out: never mix xx-limits with a uu-integral.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. Evaluate ∫0π/26cos⁡x esin⁡x dx\displaystyle\int_0^{\pi/2} 6\cos x\,e^{\sin x}\,dx (exact).

3. Integrals giving logarithms; exponentials and tangent

Warm-up

Three quick questions from earlier lessons.

  1. Find FF with F′(x)=2xcos⁡(x2)+3F'(x) = 2x\cos(x^2) + 3 and F(0)=0F(0) = 0.
  2. Find FF with F′(x)=x ex2F'(x) = x\,e^{x^2} and F(0)=3F(0) = 3.
  3. Find FF with F′(x)=(5x+2)2F'(x) = (5x + 2)^{ 2 } and F(0)=0F(0) = 0.

Discover

In ∫2xx2+1 dx\displaystyle\int \dfrac{2x}{x^2 + 1}\,dx, the top is the derivative of the bottom. With u=x2+1u = x^2 + 1 it becomes ∫duu\displaystyle\int \dfrac{du}{u}. What is that?

  1. ln⁡∣u∣+C\ln|u| + C
  2. u00+C\dfrac{u^0}{0} + C

Key idea

Three patterns come up again and again.

∫g′(x)g(x) dx=ln⁡∣g(x)∣+C\displaystyle\int \dfrac{g'(x)}{g(x)}\,dx = \ln|g(x)| + C; ∫ekx dx=ekxk+C\displaystyle\int e^{kx}\,dx = \dfrac{e^{kx}}{k} + C; ∫tan⁡x dx=−ln⁡∣cos⁡x∣+C\displaystyle\int \tan x\,dx = -\ln|\cos x| + C.

Worked example

∫cos⁡xsin⁡x+3 dx\displaystyle\int \dfrac{\cos x}{\sin x + 3}\,dx.

u=sin⁡x+3u = \sin x + 3, du=cos⁡x dxdu = \cos x\,dx
The top is the derivative of the bottom.
ln⁡(sin⁡x+3)+C\ln(\sin x + 3) + C
ln|u|; sin x + 3 > 0.

Your turn, guided

Your turn: ∫e5x dx\displaystyle\int e^{5x}\,dx.

e5x5+C\dfrac{e^{5x}}{5} + C
Divide by 5.

Practice ★

  1. Find FF with F′(x)=e2xF'(x) = e^{ 2x} and F(0)=0F(0) = 0.
  2. Find FF with F′(x)=e18xF'(x) = e^{ 18x} and F(0)=0F(0) = 0.
  1. Evaluate ∫012xx2+2 dx\displaystyle\int_0^1 \dfrac{2x}{x^2 + 2}\,dx.
  2. Evaluate ∫012xx2+12 dx\displaystyle\int_0^1 \dfrac{2x}{x^2 + 12}\,dx.

Watch out!

Practice ★★

  1. Find FF with F′(x)=tan⁡xF'(x) = \tan x on (−π2,π2)\left(-\tfrac{\pi}{2}, \tfrac{\pi}{2}\right) and F(0)=3F(0) = 3.
  2. Find FF with F′(x)=tan⁡xF'(x) = \tan x on (−π2,π2)\left(-\tfrac{\pi}{2}, \tfrac{\pi}{2}\right) and F(0)=−4F(0) = -4.

Exit ticket

Three questions to check you have got it.

  1. Find FF with F′(x)=e2xF'(x) = e^{ 2x} and F(0)=0F(0) = 0.
  2. Find FF with F′(x)=e18xF'(x) = e^{ 18x} and F(0)=0F(0) = 0.
  3. Find FF with F′(x)=e3xF'(x) = e^{ 3x} and F(0)=0F(0) = 0.

Summary card

Useful patterns

  • g′g→ln⁡∣g∣\dfrac{g'}{g} \to \ln|g|.
  • ekx→ekxke^{kx} \to \dfrac{e^{kx}}{k}.
  • tan⁡x→−ln⁡∣cos⁡x∣\tan x \to -\ln|\cos x|.

Watch out: a minus sign from dudu.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. Evaluate ∫0π/34tan⁡x dx\displaystyle\int_0^{\pi/3} 4\tan x\,dx exactly.

4. Algebra before integrating: division and completing the square

Warm-up

Three quick questions from earlier lessons.

  1. f(x)=ln⁡(9x)f(x) = \ln(9x) for x>0x > 0. Find f′(x)f'(x).
  2. f(x)=ln⁡(x2+2)f(x) = \ln(x^2 + 2). Find f′(x)f'(x).
  3. f(x)=arctan⁡(7x)f(x) = \arctan(7x). Find f′(x)f'(x).

Discover

1x2+4x+5\dfrac{1}{x^2 + 4x + 5} has no obvious inside function. Which rewriting helps?

  1. 1(x+2)2+1\dfrac{1}{(x + 2)^2 + 1}
  2. 1x2+14x+15\dfrac{1}{x^2} + \dfrac{1}{4x} + \dfrac{1}{5}

Key idea

Rewrite first, then integrate.

Divide when the top has a degree at least that of the bottom, or the bottom is one term: x2+1x=x+1x\dfrac{x^2 + 1}{x} = x + \dfrac{1}{x}. Complete the square to reach ∫duu2+a2=1aarctan⁡ua+C\displaystyle\int \dfrac{du}{u^2 + a^2} = \dfrac{1}{a}\arctan\dfrac{u}{a} + C.

Worked example

∫dxx2+6x+13\displaystyle\int \dfrac{dx}{x^2 + 6x + 13}.

x2+6x+13=(x+3)2+4x^2 + 6x + 13 = (x + 3)^2 + 4
x² + 6x + 9 + 4.
∫duu2+4\displaystyle\int \dfrac{du}{u^2 + 4}
u = x + 3, a = 2.
12arctan⁡x+32+C\tfrac{1}{2}\arctan\dfrac{x + 3}{2} + C
The arctan formula.

Your turn, guided

Your turn: ∫x2+2x dx\displaystyle\int \dfrac{x^2 + 2}{x}\,dx for x>0x > 0.

x22+2ln⁡x+C\dfrac{x^2}{2} + 2\ln x + C
x + 2/x.

Practice ★

  1. Find FF with F′(x)=1x2+9F'(x) = \dfrac{1}{x^2 + 9} and F(0)=0F(0) = 0.
  2. Find FF with F′(x)=1x2+4F'(x) = \dfrac{1}{x^2 + 4} and F(0)=0F(0) = 0.
  1. Evaluate ∫12x2+5x+1x dx\displaystyle\int_1^2 \dfrac{x^2 + 5x + 1}{x}\,dx.
  2. Evaluate ∫12x2+4x+1x dx\displaystyle\int_1^2 \dfrac{x^2 + 4x + 1}{x}\,dx.

Watch out!

Practice ★★

  1. Find FF with F′(x)=1x2+6x+10F'(x) = \dfrac{1}{x^2 + 6x + 10} and F(−3)=0F(-3) = 0.
  2. Find FF with F′(x)=1x2+8x+17F'(x) = \dfrac{1}{x^2 + 8x + 17} and F(−4)=0F(-4) = 0.

Exit ticket

Three questions to check you have got it.

  1. Find FF with F′(x)=1x2+9F'(x) = \dfrac{1}{x^2 + 9} and F(0)=0F(0) = 0.
  2. Find FF with F′(x)=1x2+4F'(x) = \dfrac{1}{x^2 + 4} and F(0)=0F(0) = 0.
  3. Find FF with F′(x)=1x2+36F'(x) = \dfrac{1}{x^2 + 36} and F(0)=0F(0) = 0.

Summary card

Algebra first

  • Divide term by term when the bottom is one term.
  • Complete the square for 1x2+bx+c\dfrac{1}{x^2 + bx + c}, then arctan.

Watch out: 1a+b≠1a+1b\dfrac{1}{a + b} \ne \dfrac{1}{a} + \dfrac{1}{b}.

One more step is optional: a challenge. Try it, or finish the lesson now.

Challenge ★★★

  1. Evaluate ∫1e9x+2x dx\displaystyle\int_1^{e} \dfrac{ 9x + 2 }{x}\,dx (exact).

5. The trapezoidal rule

Discover

Many integrals have no antiderivative you can write down, such as ∫01e−x2 dx\displaystyle\int_0^1 e^{-x^2}\,dx. How can we still get its value?

  1. Add up the areas of simple shapes under the curve
  2. It has no value

Key idea

The trapezoidal rule.

Cut [a,b][a, b] into nn strips of width h=b−anh = \dfrac{b - a}{n}. Then

∫abf(x) dx≈h2(f(x0)+2f(x1)+⋯+2f(xn−1)+f(xn))\displaystyle\int_a^b f(x)\,dx \approx \dfrac{h}{2}\big(f(x_0) + 2f(x_1) + \dots + 2f(x_{n-1}) + f(x_n)\big).

Worked example

Estimate ∫02x2 dx\displaystyle\int_0^2 x^2\,dx with 2 strips.

12(0+2×1+4)\dfrac{1}{2}(0 + 2 \times 1 + 4)
h=1h = 1; the values are f(0)=0f(0) = 0, f(1)=1f(1) = 1, f(2)=4f(2) = 4.
=3= 3
The exact value is 83≈2.67\tfrac{8}{3} \approx 2.67.

Your turn, guided

Your turn: estimate ∫02x dx\displaystyle\int_0^2 x\,dx with 2 strips.

22
12(0+2×1+2)\dfrac{1}{2}(0 + 2 \times 1 + 2).

Practice ★

  1. Estimate ∫02(x2+4) dx\displaystyle\int_0^2 (x^2 + 4)\,dx with the trapezoidal rule and 2 strips.
  2. Estimate ∫02(x2+6) dx\displaystyle\int_0^2 (x^2 + 6)\,dx with the trapezoidal rule and 2 strips.
  3. Estimate ∫02(x2+9) dx\displaystyle\int_0^2 (x^2 + 9)\,dx with the trapezoidal rule and 2 strips.

Practice ★★

  1. Estimate ∫04(x2+9) dx\displaystyle\int_0^4 (x^2 + 9)\,dx with the trapezoidal rule and 4 strips.
  2. Estimate ∫04(x2+0) dx\displaystyle\int_0^4 (x^2 + 0)\,dx with the trapezoidal rule and 4 strips.

Exit ticket

Two questions to check.

  1. Estimate ∫02(x2+4) dx\displaystyle\int_0^2 (x^2 + 4)\,dx with the trapezoidal rule and 2 strips.
  2. Estimate ∫02(x2+6) dx\displaystyle\int_0^2 (x^2 + 6)\,dx with the trapezoidal rule and 2 strips.

Summary card

Trapezoidal rule

  • Width hh; inner values count twice.
  • More strips give a better estimate.

Calculators and computers integrate this way, with refined rules.

6. History of the integral: from Archimedes to Riemann

Discover

Archimedes of Syracuse (287–212 BC) found the area of a segment of a parabola, and the volume of a sphere. He had no formulas for antiderivatives. How could he do it?

  1. By filling the shape with more and more pieces of known area
  2. By weighing water in a sphere

Key idea

From slices to the integral sign.

150010001500c. 250 BCEArchimedesc. 250 BCEArchimedes
  1. Step 1150010001500c. 250 BCEArchimedesc. 250 BCEArchimedesArchimedes c. 287 – 212 BCImagined portraitDomenico Fetti, about 1620. Public domainArchimedes (287–212 BC) squeezes areas and volumes between shapes he knows: the method of exhaustion.
  2. Step 2150010001500c. 250 BCEArchimedes1635Cavalieric. 250 BCEArchimedes1635CavalieriBonaventura Cavalieri 1598–1647Giuseppe Fusinati, 1837. CC0 1.01635: Cavalieri's indivisibles: shapes made of infinitely thin slices.
  3. Step 3150010001500c. 250 BCEArchimedes1635Cavalieri1675Leibnizc. 250 BCEArchimedes1635Cavalieri1675LeibnizGottfried Wilhelm Leibniz 1646–1716Christoph Bernhard Francke, before 1729. Public domain1675: Leibniz writes the integral sign for the first time.
  4. Step 4150010001500c. 250 BCEArchimedes1635Cavalieri1675Leibnizc. 1854Riemannc. 250 BCEArchimedes1635Cavalieri1675Leibnizc. 1854RiemannBernhard Riemann 1826–1866Unknown artist, 1863. Public domain1850s: Riemann defines the integral as a limit of sums of rectangles, the definition taught today.

Cavalieri (1635) thought of areas and volumes as made of infinitely thin slices, his indivisibles. Leibniz wrote ∫f(x) dx\displaystyle\int f(x)\,dx in 1675. Riemann gave the exact definition in the 1850s: the limit of sums of thin rectangles.

Worked example

Archimedes showed that a sphere's volume is 23\tfrac{2}{3} of the cylinder around it. Our check with a radius rr:

Vcyl=πr2×2r=2πr3V_{\text{cyl}} = \pi r^2 \times 2r = 2\pi r^3
The cylinder has radius rr and height 2r2r.
23×2πr3=43πr3\tfrac{2}{3} \times 2\pi r^3 = \tfrac{4}{3}\pi r^3, the sphere
Two thirds of it:

Practice ★

  1. What do we call Archimedes' way of finding areas, an early form of integration?
    1. The method of exhaustion
    2. The trapezoidal rule
    3. Riemann sums
  1. Archimedes: a sphere's volume is 23\tfrac{2}{3} of the cylinder around it. The cylinder holds 18 liters. How many liters does the sphere hold?
  2. Archimedes: a sphere's volume is 23\tfrac{2}{3} of the cylinder around it. The cylinder holds 51 liters. How many liters does the sphere hold?
  1. A Riemann sum, as Riemann defined it: estimate ∫03x dx\displaystyle\int_0^{ 3 } x\,dx with 3 rectangles of width 1, using the left end of each strip.

Summary card

Integrals today

  • Distance from speed, as in a car's trip computer.
  • Areas and volumes in design and medicine: a scanner adds up thin slices.
  • Probability: areas under curves give chances.

Sources: MacTutor biographies of Archimedes, Cavalieri, Leibniz and Riemann (see "Sources and credits").