The trapezoidal rule

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.

About this lesson

Calculus BC (AP-aligned) › Integration by parts and partial fractions

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

Sources and credits

Original sedifier lesson.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits

The trapezoidal rule

Integration by parts and partial fractions.

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.

Sources and credits

Original sedifier lesson.

Written with AI assistance; every answer is checked by our math engine. Not yet reviewed by a teacher.

This lesson: CC BY-SA 4.0, © sedifier · All credits