1.5 Numerical Methods, Root-Finding, and Numerical Integration
Key Takeaways
The Bisection method is a guaranteed bracketing algorithm that halves the interval size each iteration, requiring .
Newton-Raphson method achieves rapid quadratic convergence using , but fails if or near inflection points.
Trapezoidal Rule approximates definite integrals using linear interpolations with global truncation error proportional to step size squared .
Simpson's 1/3 Rule uses parabolic interpolations over an even number of subintervals , achieving higher accuracy with error .
Euler's method provides a simple first-order numerical solution for ODE initial value problems with cumulative global error .
1.5 Numerical Methods, Root-Finding, and Numerical Integration
Engineering systems frequently involve non-linear equations, complicated experimental datasets, or differential equations lacking analytical closed-form solutions. Numerical methods provide approximate algorithms to solve such mathematical models within specified tolerances.
1. Numerical Root-Finding Algorithms
Root-finding algorithms locate values of for which .
Bisection Method (Bracketing Method)
Requires an initial interval where and have opposite signs (). By the Intermediate Value Theorem, a root exists in .
- Midpoint calculation: .
- Evaluate :
- If , the root lies in .
- If , the root lies in .
- Maximum absolute error bound after iterations:
Newton-Raphson Method (Open Method)
Uses the tangent line at current guess to find the next approximation :
Convergence & Limitations
- Convergence Rate: Quadratic convergence () near simple roots.
- Failure Modes: Fails if (horizontal tangent), oscillates near local extrema, or diverges if initial guess is too far from the root.
Secant Method
Replaces derivative in Newton-Raphson with a backward finite difference approximation using two points and :
2. Numerical Integration (Quadrature)
Numerical integration estimates definite integrals over subintervals of equal width with grid points .
Trapezoidal Rule
Approximates as linear segments between grid points:
- Global Truncation Error: , where . Error is .
Simpson's 1/3 Rule
Approximates using parabolic arcs across pairs of subintervals. Strict Requirement: The number of subintervals must be an even integer.
- Global Truncation Error: . Error is .
- Exact for polynomials up to degree 3!
3. Numerical Solution of Initial Value ODEs
For first-order initial value problem with and step size :
Euler's Method (Explicit First-Order)
- Local Error: , Global Error: (First-order accurate).
Improved Euler Method (Heun's Method - Predictor-Corrector)
- Predictor:
- Corrector:
- Global Error: (Second-order accurate).
4. Linear Interpolation Formula
For a tabular dataset where and , the interpolated value at () is:
5. Worked Engineering Problems
Worked Example 1: Newton-Raphson Iteration
Problem: Solve using two iterations of Newton-Raphson starting with .
Solution:
Step 1: Compute derivative .
Step 2: First Iteration ().
Step 3: Second Iteration ().
Worked Example 2: Numerical Integration Comparison
Problem: Estimate using (a) Trapezoidal Rule with subintervals () and (b) Simpson's 1/3 Rule with (). Compare both against the exact analytical solution.
Solution:
Grid points & Function evaluations ():
(a) Trapezoidal Rule:
(b) Simpson's 1/3 Rule:
(c) Exact Analytical Integral:
Notice: Simpson's 1/3 Rule yields the exact value (72.0) because its truncation error is zero for cubic polynomials!
Perform one iteration of the Newton-Raphson method for f(x) = x^2 - 5 with an initial guess of x0 = 2.0. What is the updated estimate x1?
2.15
2.25
2.35
2.45
Estimate the integral integral from 0 to 2 of x^2 dx using the Trapezoidal Rule with n = 2 subintervals (step size h = 1.0).
2.33
2.67
2.85
3.00
Using Euler's method with step size h = 0.1, estimate y(0.2) for the initial value problem dy/dx = x + y with y(0) = 1.0.
1.220
1.110
1.340
1.250
Which of the following conditions is strictly required to apply Simpson's 1/3 Rule for numerical integration?
The function f(x) must be a second-order polynomial
The step size h must approach zero
The number of subintervals n must be an even integer
The integration domain [a, b] must be symmetric about the origin
Sections you finish are checked off in the contents.