Further Numerical
Methods
Master iterative root-finding and numerical integration techniques: from fixed-point iteration to the trapezoid rule and Simpson's rule using technology.
Why Numerical Methods?
Most real-world equations cannot be solved exactly. When an algebraic or analytic solution is impossible or impractical, we turn to numerical methods: systematic algorithms that produce approximate answers to any desired accuracy.
Fixed-Point Iteration
To solve \( f(x) = 0 \), we rearrange it into the form \( x = g(x) \). Starting from an initial guess \( x_0 \), we iterate:
If the sequence converges, then the limit \( L \) satisfies \( L = g(L) \), meaning \( f(L) = 0 \). The point \( L \) is called a fixed point of \( g \).
Visualising Convergence
Newton-Raphson Method
The Newton-Raphson method is a powerful iterative technique that uses the tangent line at each estimate to find a better approximation of the root:
Newton-Raphson Geometry
Numerical Integration
When we cannot find an antiderivative for \( f(x) \), we approximate the definite integral \( \int_a^b f(x)\,dx \) by dividing \( [a, b] \) into subintervals and summing the areas of simple shapes.
The Trapezoid Rule
The more subintervals \( n \), the closer the straight-line tops approximate the actual curve, and the more accurate the estimate.
Simpson's Rule
Simpson's rule fits a parabola through each consecutive triple of points. This captures curvature far better than straight-line segments, giving higher accuracy for the same number of subintervals.
Iteration vs Integration
| Iterative Methods | Numerical Integration | |
|---|---|---|
| Goal | Find roots: \( f(x) = 0 \) | Approximate \( \int_a^b f(x)\,dx \) |
| Key idea | Refine a guess repeatedly | Sum areas of simple shapes |
| Examples | Fixed-point, Newton-Raphson | Trapezoid, Simpson's |
| Accuracy | More iterations = better | More subintervals = better |
| Tech role | GDC solver / spreadsheet | GDC numerical integrate |
How to Apply These Methods
Example: Fixed-Point Iteration
Solve \( x^3 - 2x - 5 = 0 \) near \( x = 2 \) by rearranging to \( x = (2x + 5)^{1/3} \).
| \( n \) | \( x_n \) | \( x_{n+1} = (2x_n + 5)^{1/3} \) |
|---|---|---|
| 0 | 2.000000 | 2.080084 |
| 1 | 2.080084 | 2.094551 |
| 2 | 2.094551 | 2.097847 |
| 3 | 2.097847 | 2.098596 |
| 4 | 2.098596 | 2.098766 |
Example: Newton-Raphson
Find the root of \( f(x) = e^x - 3x \) near \( x = 1.5 \).
| \( n \) | \( x_n \) | \( f(x_n) \) | \( x_{n+1} \) |
|---|---|---|---|
| 0 | 1.500000 | −0.01831 | 1.512135 |
| 1 | 1.512135 | 0.00003 | 1.512134 |
| 2 | 1.512134 | ≈ 0 | 1.512134 |
Example: Trapezoid Rule
Estimate \( \displaystyle\int_0^1 e^{-x^2}\,dx \) using the trapezoid rule with \( n = 4 \).
| \( x_i \) | 0 | 0.25 | 0.50 | 0.75 | 1.00 |
|---|---|---|---|---|---|
| \( f(x_i) \) | 1.0000 | 0.9394 | 0.7788 | 0.5698 | 0.3679 |
| Coeff | 1 | 2 | 2 | 2 | 1 |
Example: Simpson's Rule
Using the same data from the previous slide, apply Simpson's rule with \( n = 4 \).
| \( x_i \) | 0 | 0.25 | 0.50 | 0.75 | 1.00 |
|---|---|---|---|---|---|
| Coeff | 1 | 4 | 2 | 4 | 1 |
| Product | 1.0000 | 3.7576 | 1.5576 | 2.2792 | 0.3679 |
Common Mistakes
Question 1 of 5
The Newton-Raphson iteration formula for finding a root of \( f(x) = 0 \) is:
Question 2 of 5
Using the trapezoid rule with \( n = 2 \) to estimate \( \int_0^2 x^2\,dx \), what value do you get?
Question 3 of 5
For a fixed-point iteration \( x_{n+1} = g(x_n) \) to converge near a root, which condition must hold?
Question 4 of 5
Simpson's rule requires that the number of subintervals \( n \) is:
Question 5 of 5
Which method typically achieves greater accuracy for the same number of subintervals?