Mathematics I / Numerical Integration
Practice question · Put in order

Order the steps of estimating an integral by the trapezoidal rule.

Hints
  1. The grid must exist before the function can be sampled on it.
  2. The step size multiplies the assembled sum of heights at the end.
Show the answer
  1. Choose the number of strips and compute the step size
  2. Evaluate the function at every grid point
  3. Add the two end heights, each counted half
  4. Add every interior height at full weight
  5. Multiply the running total by the step size
Why

Choose the grid, sample, weight the ends at half and the interior at full, then scale by h. The weighting step is where the rule actually lives, everything else is bookkeeping.

Read the lesson: Numerical Integration →

Practise Numerical Integration

The app has 5 more questions on this lesson, and keeps your place in the course. Mathematics I is free to start.

More questions on Numerical Integration