Numerical Integration
Visualizing Riemann sums, Trapezoidal, and Simpson's rules to approximate definite integrals.
Free theory articleVisualizing Riemann sums, Trapezoidal, and Simpson's rules to approximate definite integrals.
Concept & interpretation
Two methods can give the same answer and still miss an integral. Use the quadratic f(x) = x2 + 1 on [−2, 2] to calculate five approximations, compare them with an antiderivative, and explain the direction of the error. These inputs are available in the actual Riano module.
Compare the native methods
Open Numerical Integration. The Function selector supplies fixed functions and intervals; it is not a general-purpose expression editor.
- Select “f(x) = x^2 + 1” and set Intervals (N) to 4. Compare Left Riemann Sum and Right Riemann Sum with the value 10.0000.
- Select Midpoint Rule, then Trapezoidal Rule. Check 9.0000 and 10.0000 against the independent exact value 9.3333.
- Select Simpson's Rule and keep the displayed N at 4. Compare the result and reported absolute error, then repeat with N = 8.
- Return to Midpoint Rule and compare N = 4 with N = 8. Its error falls from 1/3 to 1/12, a factor of four for this example.
The interface uses an even interval count for Simpson's rule. If you switch methods after choosing an odd N, inspect the effective N printed beside the slider before comparing results.