What are the different numerical integration techniques and their accuracy?
Learn from Computational Mathematics

Numerical integration techniques are essential for approximating the definite integral of functions that may not have an analytical solution. Here are some of the primary techniques used, along with their accuracy characteristics:
1. Rectangular (Midpoint) Method
- Description: This method approximates the integral by summing the areas of rectangles with heights determined by the function's value at the midpoint of each subinterval.
- Accuracy: The error decreases linearly with the size of the subintervals. It is simple but less accurate compared to other methods for functions with varying curvature.
2. Trapezoidal Rule
- Description: This technique approximates the integral by dividing the area under the curve into trapezoids. The area of each trapezoid is calculated and summed.
- Accuracy: The error decreases quadratically with the number of intervals. It provides a more accurate approximation than the rectangular method, especially for smoother functions.
3. Simpson’s Rule
- Description: Simpson’s Rule uses parabolic segments to approximate the area under the curve. It is based on fitting a parabola to each pair of intervals.
- Accuracy: The error decreases cubically with the number of intervals, making it more accurate for functions that are well-approximated by parabolas.
4. Gaussian Quadrature
- Description: This method approximates the integral by using a weighted sum of function values at specific points within the integration interval, chosen to maximize accuracy.
- Accuracy: It achieves high accuracy with relatively fewer function evaluations compared to other methods. The error depends on the number of points (nodes) and weights used in the approximation.
5. Monte Carlo Integration
- Description: This stochastic method uses random sampling to estimate the integral. It is particularly useful for high-dimensional integrals.
- Accuracy: The accuracy improves with the number of random samples. While it provides good estimates, the error decreases proportionally to the square root of the number of samples.
6. Romberg Integration
- Description: This technique uses the trapezoidal rule in a recursive manner with a sequence of refinements to estimate the integral more accurately.
- Accuracy: It combines the trapezoidal rule with Richardson extrapolation to achieve high accuracy with fewer function evaluations. The error decreases exponentially with the number of refinements.
7. Adaptive Quadrature
- Description: Adaptive quadrature methods adjust the size of the subintervals dynamically based on the function's behavior to achieve accurate results.
- Accuracy: The method adapts to the function’s complexity, providing high accuracy by refining intervals where the function changes rapidly.
8. Newton-Cotes Formulas
- Description: These are a family of integration methods based on polynomial interpolation of various degrees, including the trapezoidal rule and Simpson’s rule as special cases.
- Accuracy: The accuracy varies with the degree of polynomial used. Higher-degree polynomials can provide better accuracy but require more function evaluations.
9. Clenshaw-Curtis Quadrature
- Description: This technique uses Chebyshev polynomial expansions to approximate the integral.
- Accuracy: It is highly accurate for smooth functions and converges rapidly with increasing polynomial degree.
Each numerical integration method has its strengths and is suited to different types of problems. The choice of method often depends on the function’s behavior, the required accuracy, and computational resources available.