Calculus II / Techniques of integration
Numerical Integration & Error
Estimate accumulated quantities when an antiderivative is inconvenient or your information comes as sampled data.
Contents 4 sections
By the end you can
- Construct trapezoidal and Simpson estimates
- Interpret the step size and signed area
- Recognize when error formulas do not apply
Helps to know: Definite Integrals, Riemann Sums
§1Replace a curve with manageable pieces
A Riemann sum uses rectangles. The trapezoidal rule instead joins neighboring sample heights with straight lines, integrating each small trapezoid exactly. This often improves the estimate, but a better picture is not automatically a proof of accuracy.
Divide [a,b] into n equal pieces, with h=(b−a)/n and xᵢ=a+ih. The endpoints receive half the weight of interior samples because an interior sample belongs to two neighboring trapezoids.
§2Use parabolas with Simpson’s rule
Simpson’s rule fits a quadratic across each pair of subintervals. It requires an even n when the steps have equal width. Starting at the left endpoint, the weights are 1,4,2,4,2,…,4,1.
§3Compare estimates for ∫₀¹ x² dx
Example 1Take n=2, so h=1/2
- The sample heights are 0, 1/4, and 1.
§4What a numerical result can promise
If |f″|≤M₂ on [a,b], the composite trapezoidal error is at most M₂(b−a)³/(12n²). If the fourth derivative is continuous and bounded by M₄, Simpson’s error is at most M₄(b−a)⁵/(180n⁴). These hypotheses matter: a pole inside the interval invalidates both formulas.
Doubling n is a useful check, but close successive estimates do not prove convergence. Oscillations can fall between sample points. For improper integrals, handle the singularity or infinite endpoint as a limit before trusting quadrature.