01 / 20

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.

IB Math AI HL AHL 2.9

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.

Algebraic
Exact solutions: quadratic formula, factoring, completing the square
Numerical
Approximate solutions: iteration, graphing, technology-assisted computation

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.

\( x_0 \)
\( x_1 \)
\( x_2 \)
\( x_n \to r \)
Initial guess Apply rule Repeat Converges Iterative Process

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.

x y a b
\( f(a) < 0 \)
\( f(b) > 0 \)
Root in \( [a, b] \)
\( y = f(x) \)

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).

x y
\( y = x \)
\( y = g(x) \)
Fixed point
\( x_0 \)

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

x y
\( f(x) = x^2 - 3 \)
\( \sqrt{3} \)
\( x_0 = 2.5 \)
\( x_1 = 1.85 \)
\( x_2 \approx 1.733 \)
Tangent line

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

1
Identify the equation. Write it as \( f(x) = 0 \).
2
Choose a method. Fixed-point: rearrange to \( x = g(x) \). Newton-Raphson: find \( f'(x) \).
3
Pick an initial guess \( x_0 \). Use a graph or sign-change argument to choose wisely.
4
Iterate. Apply the formula repeatedly, recording each \( x_n \). Use your GDC or spreadsheet.
5
Check convergence. Stop when \( |x_{n+1} - x_n| < \) tolerance (e.g., \( 10^{-5} \)) or values agree to the required decimal places.

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}| \)
00.500000—
10.7937010.293701
20.5908940.202807
30.7423330.151439
40.6363380.105995
50.7137330.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}| \)
00.500000—
10.7142860.214286
20.6831800.031106
30.6823280.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) \)
00.5000000.106531
10.5663110.001378
20.5671430.000000

When Methods Fail

Not every iteration converges. Understanding when and why methods fail is crucial for choosing the right approach.

Fixed-Point Divergence
If \( |g'(r)| \geq 1 \), iterates spiral away from the root. Try a different rearrangement.
Newton Failure
If \( f'(x_n) \approx 0 \) (near a turning point), the tangent is nearly flat: the next iterate flies off. Choose a different \( x_0 \).
Cycling
Newton-Raphson can enter a loop, jumping between two values and never converging. A graph reveals this.

Common Mistakes

✕ Wrong Rearrangement
Choosing a \( g(x) \) where \( |g'(r)| \geq 1 \) leads to divergence. Always check the derivative condition before iterating.
✕ Poor Initial Guess
Starting far from the root can cause Newton-Raphson to converge to a different root or diverge entirely. Use a graph first.
✕ Forgetting the Derivative
In Newton-Raphson, students often differentiate \( f(x) \) incorrectly. A wrong \( f'(x) \) produces wrong iterates and may look like convergence.

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: