Numerical Integrals
Numerical integration (quadrature) approximates definite integrals ∫ₐᵇ f(x) dx when analytical integration is impossible, impractical, or when f(x) is known only at discrete points (experimental data, tabulated values). The integral represents the area under the curve y = f(x) from x = a to x = b. The trapezoidal rule approximates f(x) as straight-line segments between points. For a single interval: ∫ₐᵇ f(x) dx ≈ (b − a)[f(a) + f(b)] / 2. For n equal subintervals with step size h = (b − a)/n, the composite trapezoidal rule is: ∫ₐᵇ f(x) dx ≈ (h/2)[f(x₀) + 2f(x₁) + 2f(x₂) + ... + 2f(x_{n−1}) + f(x_n)], where x₀ = a and x_n = b. The error is O(h²), meaning halving h reduces error by approximately a factor of 4. Simpson's 1/3 rule uses quadratic (parabolic) approximation through three points, requiring an even number of subintervals. For n subintervals (n must be even): ∫ₐᵇ f(x) dx ≈ (h/3)[f(x₀) + 4f(x₁) + 2f(x₂) + 4f(x₃) + 2f(x₄) + ... + 4f(x_{n−1}) + f(x_n)]. The pattern of coefficients is 1, 4, 2, 4, 2, ..., 4, 1. Simpson's 1/3 rule has error O(h⁴), making it much more accurate than trapezoidal for smooth functions. Simpson's 3/8 rule uses cubic approximation through four points and requires n to be a multiple of 3: ∫ₐᵇ f(x) dx ≈ (3h/8)[f(x₀) + 3f(x₁) + 3f(x₂) + 2f(x₃) + 3f(x₄) + 3f(x₅) + 2f(x₆) + ... + f(x_n)]. The coefficient pattern is 1, 3, 3, 2, 3, 3, 2, ..., 1. Error is also O(h⁴). Romberg integration applies Richardson extrapolation to trapezoidal estimates with different step sizes, systematically eliminating error terms to achieve higher accuracy without additional function evaluations. Gaussian quadrature selects optimal evaluation points (not equally spaced) and weights to integrate polynomials of degree 2n−1 exactly using only n points, achieving high accuracy with fewer function evaluations for smooth integrands.
Knowledge Check
1.What does numerical integration approximate?
2.Using the trapezoidal rule with h = 1, f(0) = 1, f(1) = 4, f(2) = 9, what is ∫₀² f(x) dx?
3.For Simpson's 1/3 rule, what is the requirement on the number of subintervals n?
4.Using Simpson's 1/3 rule with h = 0.5, f(0) = 1, f(0.5) = 2, f(1) = 3, what is ∫₀¹ f(x) dx?
5.What is the order of the global truncation error for the composite trapezoidal rule?
6.What is the order of the global truncation error for Simpson's 1/3 rule?
7.For Simpson's 3/8 rule, what is the requirement on n?
8.Which numerical integration method uses optimal (non-equally-spaced) points to achieve high accuracy?
9.A function is integrated using the trapezoidal rule with h = 0.5, giving result 10.0. With h = 0.25, the result is 10.5. What is the estimated exact value using Richardson extrapolation?
10.What is the coefficient pattern for Simpson's 1/3 rule with n = 4 subintervals (5 points)?