Numerical Integration: Approximating Definite Integrals
Numerical Integration
Learning Objectives
By the end of this study guide, you should be able to:
- Approximate the value of a definite integral using the midpoint and trapezoidal rules.
- Determine the absolute and relative error when utilizing numerical integration techniques.
- Estimate the absolute and relative error using standardized error-bound formulas.
- Recognize graphical conditions that cause the midpoint and trapezoidal rules to over- or underestimate the true value.
- Use Simpson’s rule to approximate definite integrals to a higher degree of given accuracy.
Key Terms & Glossary
- Numerical Integration: A family of computational methods used to estimate the value of a definite integral when exact closed-form antiderivatives are impossible or impractical to find.
- Absolute Error: The precise magnitude of the difference between an estimated value and the exact actual value.
- Relative Error: The absolute error expressed as a fraction or percentage of the exact actual value, providing context to the error's scale.
- Midpoint Rule: A numerical approximation method that estimates the area under a curve using Riemann sum rectangles, where the height of each rectangle is evaluated at the exact midpoint of its subinterval.
- Trapezoidal Rule: An approximation rule that calculates the area under a curve by dividing the region into vertical trapezoids rather than flat-topped rectangles.
- Simpson’s Rule: An advanced numerical method that approximates the integrand using piecewise quadratic functions (parabolas), yielding extremely accurate area estimates.
The "Big Idea"
While the Fundamental Theorem of Calculus allows us to evaluate definite integrals easily if we can find an antiderivative, many real-world functions (like the standard normal distribution ) cannot be expressed in a simple closed form.
Numerical integration solves this by returning to the fundamental concept of an integral: area under a curve. By dividing the area into familiar geometric shapes (rectangles, trapezoids, or parabolas), we can calculate a highly accurate numerical estimate. The more slices (subintervals) we use, the smaller our approximation error becomes.
Formula / Concept Box
| Concept | Mathematical Formula / Equation |
|---|---|
| Subinterval Width | |
| Midpoint Rule () | (where $\bar{x}_i is the midpoint of the i-th subinterval) |
| Trapezoidal Rule (T_n$) | |
| Simpson’s Rule () | (Note: must be an even integer) |
| Absolute Error | $$ |
| Relative Error | $$\text{Relative Error} = \frac{ |
[!TIP] Pattern Memorization Notice the specific coefficient patterns in the brackets:
- Trapezoidal:
1, 2, 2, 2... 2, 1- Simpson's:
1, 4, 2, 4, 2... 4, 1
Hierarchical Outline
- 1. The Need for Numerical Integration
- Limitations of closed-form antiderivatives (e.g., complex integrals).
- Use cases in real-world data (integrating discrete experimental data points).
- 2. Linear Approximations
- The Midpoint Rule: Evaluating Riemann sums at interval centers.
- The Trapezoidal Rule: Averaging left and right Riemann sums using trapezoids.
- Error Behavior: Concavity determines over/underestimation.
- 3. Quadratic Approximation
- Simpson's Rule: Connecting points via piecewise parabolas.
- Requirement: Number of subintervals () must be even.
- 4. Error Analysis
- Calculating Absolute Error.
- Calculating Relative Error.
- Utilizing error-bound formulas to guarantee approximation precision.
Visual Anchors
1. Strategy Decision Flow
2. Geometric Representation: Trapezoidal Rule
Definition-Example Pairs
- Midpoint Rule
- Definition: Estimating integral area using rectangles whose heights touch the curve precisely at the horizontal middle of the interval.
- Real-World Example: Estimating total water consumption over a day by checking the flow rate exactly at the top/middle of every hour (12:30, 1:30, etc.) rather than the start or end.
- Trapezoidal Rule
- Definition: Estimating area by connecting the function's endpoints on each subinterval with a straight line, forming a trapezoid.
- Real-World Example: Calculating the total distance a car traveled using speedometer readings taken every 10 seconds, assuming acceleration was steady (linear) between those 10-second checks.
- Absolute vs. Relative Error
- Definition: Absolute error is the raw numerical discrepancy; Relative error scales that discrepancy against the true value.
- Real-World Example: If an engineer estimates a bridge cable needs to be 100 meters, but it actually needs to be 101 meters, the absolute error is 1 meter. The relative error is $1/101 \approx 0.99%$. A 1-meter absolute error on a 5-meter component, however, is a massive 20% relative error!
Comparison Tables
| Integration Method | Geometric Shape | Best Suited For... | Order of Accuracy |
|---|---|---|---|
| Midpoint Rule | Flat-topped rectangles | Functions with mild slopes | Moderate |
| Trapezoidal Rule | Slanted-roof trapezoids | Linear trends between data points | Moderate |
| Simpson's Rule | Curved-roof parabolas | Functions with curves/changes in slope | Extremely High |
[!WARNING] Don't Forget! Simpson's Rule cannot be used if you have an odd number of subintervals (). The formula relies on pairing intervals to build quadratic fits.
Worked Examples
▶Example 1: Approximating with the Trapezoidal Rule (Click to Expand)
Problem: Estimate using the Trapezoidal Rule with $n = 2 subintervals.
Step 1: Find the subinterval width (\Delta x$).
**Step 2: Identify the . , , .
Step 3: Apply the Trapezoidal Rule Formula.
Answer: The estimated area is 3.
▶Example 2: Calculating Absolute and Relative Error (Click to Expand)
Problem: Using the result from Example 1, determine the absolute and relative error of the approximation.
Step 1: Find the exact actual value.
Step 2: Calculate Absolute Error ().
Step 3: Calculate Relative Error.
Answer: The absolute error is $0.3333, and the relative error is 12.5%.
Checkpoint Questions
Test your knowledge with these active recall questions. If you struggle, review the sections above!
- Why do we need numerical integration if we already have the Fundamental Theorem of Calculus?
- In Simpson's Rule, what geometric shape is used to connect the evaluated points on the curve?
- If the function $f(x) is entirely concave up on an interval, will the Trapezoidal Rule overestimate or underestimate the exact integral? Why?
- What is the required condition for the number of subintervals (n) when applying Simpson’s Rule?
- Write out the multiplier pattern used in the brackets for a Trapezoidal Rule estimation with n=4$.