Numerical Integration
The Newton-Leibniz formula requires us to “be able to find an antiderivative”. But in reality many important integrals — such as (the normal distribution) and — have no elementary antiderivative. At that point you have to return to the essence of integration: computing the area approximately. That is what numerical integration is.
The definition of a definite integral is itself an approximation: divide the interval up and sum the areas of the rectangles.
Definition
A definition is a precise description of what a concept, a term, or an object means. Understanding definitions is the foundation of learning any field, and every concept has its own exact meaning.
Divide the interval into equal parts, each of width , and take the division points . Then
When , if the limit exists, it is the definite integral .
In actual computation, with a finite is an approximation to the integral. According to how the sample point is chosen, there are:
- The left-endpoint Riemann sum: , usually on the small side (for an increasing function)
- The right-endpoint Riemann sum: , usually on the large side (for an increasing function)
- The midpoint Riemann sum: , which is more accurate
A slightly cleverer approach: approximate each small interval by a trapezoid rather than a rectangle.
Mathematical formula
A formula is a symbolic expression of quantitative relations and structural patterns, and an essential tool for solving mathematical problems. Key formulas should be mastered and applied flexibly.
Here . The values at the two ends are multiplied by one only, while each value in the middle appears twice (because two neighbouring trapezoids share an endpoint).
The trapezoidal rule joins adjacent points with straight lines; Simpson’s rule goes a step further: every three points (two small intervals) are approximated by a single parabola. This raises the accuracy considerably.
Mathematical formula
A formula is a symbolic expression of quantitative relations and structural patterns, and an essential tool for solving mathematical problems. Key formulas should be mastered and applied flexibly.
Note: Simpson’s rule requires to be even. The coefficients alternate , with a at each end.
Comparing the Accuracy of the Three Methods
The error of the rectangular method is , of the trapezoidal rule , and of Simpson’s rule . So for the same number of divisions, Simpson’s rule is usually the most accurate.
- Statistics: the probability of the normal distribution has no elementary antiderivative, so numerical integration is the only way.
- Physics: many potential-energy, electric-field and radiation integrals have no analytic solution.
- Engineering computation: areas, volumes and centroids bounded by curves whose antiderivatives cannot be found analytically.
Application: Approximating by Three Methods ()
Approach:
With , , and the division points . Compute the value of the function at each point and substitute into the formulas.
Steps:
- Function values: , , , ,
- Trapezoidal rule:
- Simpson’s rule:
- The exact value is about , so Simpson’s result is already very close
Answer: , (the exact value is about )
Symbols Used in This Article
| Symbol | Type | Pronunciation/Explanation | Meaning in This Article |
|---|---|---|---|
| mathematical symbol | delta x | The width of a small interval (the step size) | |
| mathematical symbol | n | The number of equal divisions of the interval | |
| mathematical symbol | x-sub-i | The -th division point | |
| Greek letter | Xi-sub-i | The sample point on the -th small interval | |
| mathematical symbol | R-sub-n | The Riemann sum | |
| mathematical symbol | T-sub-n | The approximation given by the trapezoidal rule | |
| mathematical symbol | S-sub-n | The approximation given by Simpson’s rule | |
| mathematical symbol | sum from i=1 to n | The summation sign | |
| mathematical symbol | Euler’s number | The base of the natural logarithm | |
| Greek letter | Pi | The ratio of a circle’s circumference to its diameter | |
| mathematical symbol | probability | The probability that a random variable falls in the interval |
