Practice question · Put in order
Order the steps of estimating an integral by the trapezoidal rule.
- Add the two end heights, each counted half
- Evaluate the function at every grid point
- Multiply the running total by the step size
- Choose the number of strips and compute the step size
- Add every interior height at full weight
Hints
- The grid must exist before the function can be sampled on it.
- The step size multiplies the assembled sum of heights at the end.
Show the answer
- Choose the number of strips and compute the step size
- Evaluate the function at every grid point
- Add the two end heights, each counted half
- Add every interior height at full weight
- 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.
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
- The exact value of the integral of x squared from 0 to 2 is 8/3. The trapezoidal estimate with two strips is…
- Select every statement about numerical integration that is TRUE.
- Simpson's rule has error scaling like h⁴ against the trapezoidal rule's h². Why does fitting parabolas…
- Simpson's rule is exact for cubics although it fits only parabolas. Why does it get a free degree of accuracy?
- Measured values of a function at x = 0, 1, 2, 3 are 1, 3, 5 and 9. Apply the trapezoidal rule with step size…