Back to Computer Fundamentals And Programming repository
Computer Fundamentals And Programming2D

Numerical Methods - Theory & Concepts - Numerical Integration

An introduction to numerical methods for solving engineering problems: root finding, linear systems, integration, ODEs, and error analysis.

Open the complete lesson

Numerical Integration Simulator: f(x) = sin(x) + 2

yx
Actual Area (Analytic):

21.8391

Approximate Area:

13.8453

Absolute Error:

7.99375

Notice how the error decreases as you increase the number of segments ($n$). Simpson's 1/3 rule generally provides a more accurate approximation than the Trapezoidal rule for the same number of segments by using parabolic arcs instead of straight lines.