Numerical Integration
When we need to evaluate , an exact antiderivative is not always available. The function may be known only at a discrete set of measured data points, or its antiderivative may be too complicated to express in closed form. Numerical integration (also called quadrature) solves this by approximating with a polynomial that passes through selected nodes on the interval and integrating that polynomial instead.
This chapter develops the two most widely used Newton-Cotes rules: the Trapezoidal Rule (which fits a straight line through two nodes) and Simpson’s Rule (which fits a parabola through three nodes). Both rules are derived rigorously from Lagrange interpolation, so their weights fall out naturally rather than being stated without justification. We also study the Composite Trapezoidal Rule, which subdivides the interval and applies the basic rule on each sub-interval to achieve better accuracy.
Learning Objectives
By the end of this chapter you should be able to:
- Explain how replacing with a Lagrange polynomial converts a definite integral into a weighted sum of function values.
- Define the Newton-Cotes weights and state what they represent geometrically.
- Distinguish between the closed Newton-Cotes formulas (which include the endpoints and ) and the open forms (which exclude them), and state the step size formula for each.
- Derive the Trapezoidal Rule by computing and directly and arrive at .
- Construct the Composite Trapezoidal Rule by partitioning into equal sub-intervals and explain why interior nodes appear with coefficient 2.
- Derive Simpson’s Rule by computing all three weights , , and arrive at .
- Recognize the coefficient pattern in Simpson’s Rule and explain why the midpoint carries four times the weight of each endpoint.
- State the general error bound and apply the specialization for .
- Apply the Trapezoidal Rule, Composite Trapezoidal Rule, and Simpson’s Rule to a given function, compute relative errors, and compare the accuracy of each method.
Chapter Sections
| # | Section | Key Concepts |
|---|---|---|
| 1 | Newton-Cotes Framework | Lagrange interpolant, weights , closed vs. open forms |
| 2 | Trapezoidal Rule | Derivation of and , final formula, geometric interpretation |
| 3 | Composite Trapezoidal Rule | Subdividing the interval, assembling sub-trapezoids, formula |
| 4 | Simpson’s Rule | Derivation of all three weights, pattern, final formula |
| 5 | Error Analysis | General upper bound, specialization to , effect of higher-degree rules |
| 6 | Worked Examples | Comparing all methods on over ; relative error analysis |