Numerical Integration using Rectangles, the Trapezoidal Rule, or Simpson's Rule

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

This Demonstration compares the results of integration of several elementary functions using three methods. The exact value is the best approximation as computed by Mathematica, contrary to the approximate value computed with the method selected from the buttons.


Simpson's method works only with odd number of points; the other two methods require at least two points.


Contributed by: Bartosz Naskrecki (March 2011)
Open content licensed under CC BY-NC-SA



Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.