Thomas’ Calculus · Chapter 08 · Section 8.7
By Muhammad Abdullah Athar · SymPy Verified
Numerical Integration
Read this page the way you would a book: first the notes, then the key ideas, then every worked example in order — each step explains not only what to do, but why it works.
Part One
Section Notes
Section 8.7: Numerical Integration
When a function lacks an elementary antiderivative (e.g. , ), numerical quadrature approximates the definite integral.
1. Quadrature Formulas
- Trapezoidal Rule: Weights scaled by .
- Simpson's Rule: Weights scaled by ( even).
2. Error Bounds
- where .
- where .
Part Two
Key Ideas to Remember
1 essential statements for this section, each with a plain-words explanation.
Trapezoidal Rule and Simpson's Rule
Numerical quadrature algorithms to approximate definite integrals when antiderivatives cannot be expressed in elementary terms. Simpson's Rule fits parabolic arcs across pairs of subintervals (n must be even).
Conditions: Delta x = (b - a)/n; n is even for Simpson's Rule
Remember — Simpson's Rule integrates cubic polynomials with zero error.
Part Three
Worked Examples
5 exercises, solved in full. Every answer has been checked symbolically with SymPy before printing.
Example 01(Section 8.7, Exercise 1)
Warm-upProblem. Use the Trapezoidal Rule with n = 4 to approximate int_1^2 1/x dx.
Step-by-Step Derivation (3 steps)
Compute Delta x and Grid Points
Partition [1, 2] into 4 equal slices.
Evaluate Function Values
Evaluate f(x) = 1/x at all grid points.
Apply Trapezoidal Formula
Sum weighted values and multiply by Delta x / 2.
Answer:
✓ Verified by SymPy CAS
Example 02(Section 8.7, Exercise 2)
Warm-upProblem. Use Simpson's Rule with n = 4 to approximate int_1^2 1/x dx.
Step-by-Step Derivation (3 steps)
Identify Ordinates and Weights
Simpson's 1-4-2-4-1 pattern.
Apply Formula
Multiply sum by Delta x / 3.
Calculate Rational Value
Simpson's rule matches ln(2) to 3 decimal places.
Answer:
✓ Verified by SymPy CAS
Example 03(Section 8.7, Exercise 3)
Core practiceProblem. Determine the minimum number of subintervals n required to ensure the Trapezoidal Rule approximation of int_1^2 1/x dx has error <= 10^(-4).
Step-by-Step Derivation (3 steps)
Find Maximum of Second Derivative M_2
On [1, 2], f''(x) achieves its maximum at x = 1.
State M_2 and Error Bound Inequality
Substitute M_2 = 2 and b - a = 1.
Solve for n
Round up to the nearest integer.
Answer:
✓ Verified by SymPy CAS
Example 04(Section 8.7, Exercise 4)
Core practiceProblem. Verify that Simpson's Rule with n = 2 gives the exact value for int_0^2 x^3 dx.
Step-by-Step Derivation (3 steps)
Evaluate Definite Integral Exactly
Standard FTC evaluation.
Compute Simpson's Rule with n = 2
Grid points and function values.
Calculate S_2
S_2 = 4 matches exact value 4 identically.
Answer:
✓ Verified by SymPy CAS
Example 05(Section 8.7, Exercise 5)
ChallengeProblem. Find the maximum error when approximating int_0^1 e^(x^2) dx with Simpson's Rule if M_4 = max |f^(4)(x)| = 76 and n = 10.
Step-by-Step Derivation (3 steps)
State Simpson's Error Bound Formula
Standard fourth-order error bound.
Substitute Given Parameters
Calculate denominator 180 * 10000 = 1,800,000.
Compute Bound
Fraction reduces to 19/450000.
Answer:
✓ Verified by SymPy CAS