Iterative & Numerical Methods
Master the art of approximating solutions when algebra alone cannot find exact answers: fixed-point iteration, Newton's method, and technology-driven numerical techniques.
Why Do We Need Numerical Methods?
Many real-world equations cannot be solved exactly with algebra. Consider \( e^x = 3x \): there is no algebraic formula for the solution. Numerical methods give us a systematic way to approximate roots to any desired accuracy.
What Is an Iterative Method?
An iterative method starts with an initial guess \( x_0 \) and repeatedly applies a rule to generate a sequence \( x_0, x_1, x_2, \ldots \) that (hopefully) converges to the true solution.
Visualizing Root-Finding
Solving \( f(x) = 0 \) means finding where the graph crosses the x-axis. A sign change between \( f(a) \) and \( f(b) \) guarantees a root in \( [a, b] \) by the Intermediate Value Theorem.
Fixed-Point Iteration
To solve \( f(x) = 0 \), rearrange into the form \( x = g(x) \). A fixed point of \( g \) satisfies \( x = g(x) \), which is exactly the root of \( f \).
Staircase & Cobweb Diagrams
When we plot \( y = g(x) \) and \( y = x \), the fixed point is their intersection. The iteration path forms a staircase (monotone convergence) or cobweb (oscillating convergence).
Newton-Raphson Method
Newton-Raphson uses the tangent line at each approximation to find where it crosses the x-axis: a much faster convergence than simple iteration.
Newton-Raphson Visualized
Each tangent line gives a better approximation. Starting from \( x_0 = 2.5 \), one step yields \( x_1 = 1.85 \), and the next gives \( x_2 \approx 1.733 \): already very close to \( \sqrt{3} \approx 1.7321 \).
Fixed-Point vs. Newton-Raphson
| Fixed-Point Iteration | Newton-Raphson | |
|---|---|---|
| Formula | \( x_{n+1} = g(x_n) \) | \( x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)} \) |
| Requires | Rearrangement \( x = g(x) \) | Derivative \( f'(x) \) |
| Convergence rate | Linear | Quadratic |
| Converges when | \( |g'(r)| < 1 \) | \( f'(r) \neq 0 \) |
| Speed | Slower (many iterations) | Faster (few iterations) |
| Risk | Divergence if \( |g'| \geq 1 \) | Division by zero if \( f'(x)=0 \) |
Step-by-Step: Applying Iteration
Example 1: Fixed-Point Iteration
Solve \( x^3 + x - 1 = 0 \) using the rearrangement \( x = (1 - x)^{1/3} \). Start with \( x_0 = 0.5 \).
| n | \( x_n \) | \( |x_{n} - x_{n-1}| \) |
|---|---|---|
| 0 | 0.500000 | — |
| 1 | 0.793701 | 0.293701 |
| 2 | 0.590894 | 0.202807 |
| 3 | 0.742333 | 0.151439 |
| 4 | 0.636338 | 0.105995 |
| 5 | 0.713733 | 0.077395 |
Example 2: Newton-Raphson
Solve the same equation \( x^3 + x - 1 = 0 \) using Newton-Raphson with \( x_0 = 0.5 \).
| n | \( x_n \) | \( |x_{n} - x_{n-1}| \) |
|---|---|---|
| 0 | 0.500000 | — |
| 1 | 0.714286 | 0.214286 |
| 2 | 0.683180 | 0.031106 |
| 3 | 0.682328 | 0.000852 |
Example 3: Solving \( e^{-x} = x \)
Find the solution of \( e^{-x} = x \) (i.e. \( e^{-x} - x = 0 \)) using Newton-Raphson from \( x_0 = 0.5 \).
| n | \( x_n \) | \( f(x_n) \) |
|---|---|---|
| 0 | 0.500000 | 0.106531 |
| 1 | 0.566311 | 0.001378 |
| 2 | 0.567143 | 0.000000 |
When Methods Fail
Not every iteration converges. Understanding when and why methods fail is crucial for choosing the right approach.
Common Mistakes
Summary of Numerical Methods
| Fixed-Point | Newton-Raphson | Graphical / GDC | |
|---|---|---|---|
| Idea | Rearrange to \( x = g(x) \) | Use tangent lines | Plot and read intersection |
| Accuracy | Any (with patience) | Very high, very fast | Limited by screen resolution |
| Needs | Good rearrangement | \( f'(x) \) and good \( x_0 \) | Graphing calculator |
| IB Use | Paper 1 & 2 | Paper 1 & 2 | Paper 2 (with GDC) |
Question 1 of 5
For the iteration \( x_{n+1} = g(x_n) \), the sequence converges to a fixed point \( r \) if:
Question 2 of 5
Using Newton-Raphson to solve \( x^2 - 5 = 0 \) with \( x_0 = 2 \), what is \( x_1 \)?
Question 3 of 5
An iterative sequence produces the values: 3.0, 2.5, 2.8, 2.6, 2.72, 2.65, …. This is an example of:
Question 4 of 5
Newton-Raphson may fail when applied at a point where:
Question 5 of 5
Newton-Raphson converges quadratically. This means that near the root, the number of correct decimal places approximately: