IB MATHEMATICS: APPLICATIONS AND INTERPRETATION • FUNCTIONS

Iterative & Numerical Methods — AHL 2.9 Iterative methods and numerical solutions using technology (HL extension)

Discover how technology-driven iteration finds solutions that algebra alone cannot reach.

Historical Context & Motivation

Mathematics has always aimed to solve equations exactly, but many equations resist neat, closed-form solutions. As early as ancient Babylon, mathematicians discovered that repeatedly refining a guess could lead to remarkably accurate answers. This approach — called iteration — means applying a process again and again, each time getting closer to the true answer. For centuries, these methods were tedious to carry out by hand, but the rise of computers and graphing calculators transformed them into powerful, practical tools.

~2000 BCE
Babylonian Square Roots
Babylonian scribes used an iterative averaging method to approximate square roots on clay tablets — the same idea behind the algorithm you may know as Heron's method.
1669
Newton's Method
Isaac Newton developed an iterative technique using tangent lines to find roots of equations. Later refined by Joseph Raphson, it became the celebrated Newton–Raphson method.
1795
Fixed-Point Iteration Formalized
Mathematicians formalized the idea of rewriting an equation as x = g(x) and iterating. Conditions for convergence were studied, laying the groundwork for modern fixed-point iteration.
1950s
The Computer Revolution
Electronic computers made thousands of iterations possible in seconds. Numerical methods moved from theoretical curiosity to essential engineering and scientific practice.
Today
GDC & CAS in the Classroom
Graphing display calculators (GDCs) and computer algebra systems let IB students apply iterative methods to solve equations that resist algebraic techniques.

The central question that drives this topic is straightforward: When an equation has no exact algebraic solution, how can we still find accurate numerical answers? Iterative methods provide the answer by turning guessing into a systematic, convergent process.

Core Principles & Definitions

Before diving into calculations, it helps to understand the foundational ideas that make iterative methods work. These principles apply whether you are solving equations by hand, on a GDC, or with software.

1

Iteration

Repeating a calculation using the output of one step as the input for the next. Each cycle is called an iterate, and the sequence of iterates (x₀, x₁, x₂, …) ideally approaches the solution.
2

Fixed Point

A value x* such that g(x*) = x*. When the iteration formula xn+1 = g(xn) converges, it settles at this fixed point.
3

Convergence vs. Divergence

A sequence converges when successive iterates get closer to the solution. It diverges when they move away — meaning the rearrangement or starting value must be changed.
4

Graphical Interpretation

A root of f(x) = 0 is where the graph crosses the x-axis. This graphical view helps you pick a good initial estimate (x₀) before iterating.
5

Technology as a Tool

Your GDC's equation solver, table function, or spreadsheet can execute dozens of iterations instantly, making numerical solutions practical and reliable in exam settings.
KEY TAKEAWAY
Think of iteration like adjusting the temperature dial on a shower. You start with a guess, check the result, and adjust — each time getting closer to the perfect setting. In mathematics, the 'guess-and-adjust' cycle is automated by a formula, and the 'perfect setting' is the fixed point of that formula.

Visual Explanation — The Cobweb Diagram

The best way to understand how iteration converges to a fixed point is through a cobweb diagram (also called a staircase diagram). This diagram plots both y = g(x) and y = x on the same axes. Starting from your initial guess x₀, you trace a vertical line up to the curve y = g(x), then a horizontal line to the line y = x, then repeat. The path spirals or staircases toward the fixed point where the curve and line intersect.

Starting from x₀, the pink cobweb path traces vertical steps to the curve y = g(x) and horizontal steps to the line y = x. The path spirals inward toward the fixed point (yellow dot), showing convergence.

In the diagram above, notice how each successive iterate (x₁, x₂, …) is closer to the fixed point than the one before. The key geometric insight is that convergence occurs when the curve y = g(x) is less steep than y = x near the fixed point. More precisely, the iteration converges when |g′(x*)| < 1 — that is, the slope of g at the fixed point has an absolute value less than one. If the curve is steeper than y = x at the crossing, the cobweb spirals outward and the iteration diverges.

Mathematical Framework

The mathematics of iterative methods centers on rearranging an equation f(x) = 0 into the form x = g(x), then generating a sequence of approximations. Below are the core formulas you need for AHL 2.9.

FIXED-POINT ITERATION FORMULA
x_{n+1} = g(x_n), n = 0, 1, 2, …
x₀ is the initial estimate (your starting guess). Each xn+1 is computed from the previous xn by applying the function g.
CONVERGENCE CONDITION
|g′(x*)| < 1
The iteration converges to the fixed point x* provided the absolute value of the derivative g′ at x* is strictly less than 1. If |g′(x*)| ≥ 1, the iteration may diverge and you need to try a different rearrangement.
REARRANGEMENT STRATEGY
f(x) = 0 → x = g(x)
Isolate x on one side to create the iteration function g(x). For example, x³ + x − 5 = 0 can be rearranged to x = (5 − x)^(1/3) or x = 5 − x³, each giving a different g(x) with different convergence behavior.
NEWTON–RAPHSON METHOD (for reference)
x_{n+1} = x_n − f(x_n) / f′(x_n)
A powerful special case of iteration where the tangent line is used to find a better approximation. While not always required in AHL 2.9, your GDC's equation solver often uses this method internally.
💡 GDC Tip
On most graphing calculators, you can set up iteration using the Ans key. Enter your initial guess, press ENTER, then type the formula using Ans in place of xn. Each press of ENTER generates the next iterate. Alternatively, use the TABLE or SEQUENCE mode for a full list of values.

Convergence, Divergence & Choosing the Right Rearrangement

Not every rearrangement of an equation will produce a convergent iteration. The same equation f(x) = 0 can be rewritten as x = g(x) in multiple ways, and some rearrangements converge beautifully while others send your iterates flying off to infinity. Understanding why this happens — and how to choose the right form — is one of the most important skills in AHL 2.9.

Left panel: when the curve y = g(x) is shallower than y = x at the fixed point, the cobweb spirals inward (convergent). Right panel: when the curve is steeper than y = x, the cobweb spirals outward (divergent).

How to Choose a Good Rearrangement

Consider the equation x³ + x − 5 = 0. You could rearrange it as x = 5 − x³, giving g(x) = 5 − x³. Near the root (around x ≈ 1.5), the derivative g′(x) = −3x² ≈ −6.75, so |g′| ≈ 6.75 > 1 — this will diverge. Instead, rearranging to x = ∛(5 − x) gives g(x) = (5 − x)^(1/3), with g′(x) = −1/(3(5 − x)^(2/3)) ≈ −0.13 near the root, so |g′| ≈ 0.13 < 1 — this will converge. When in doubt, graph both y = g(x) and y = x on your GDC and check which crossing has a shallower curve.

Comparing rearrangements of x³ + x − 5 = 0
Rearrangementg(x)|g′(x*)| (approx.)Converges?
x = 5 − x³5 − x³6.75No
x = ∛(5 − x)(5 − x)^(1/3)0.13Yes ✓
x = 5/(x² + 1)5/(x² + 1)0.65Yes ✓

Worked Example

Let's work through a complete example using fixed-point iteration to solve an equation that cannot be solved algebraically.

Solving e^(−x) = x using iteration
1
Step 1 — Identify the equation and rearrangeWe want to solve e−x = x. This equation mixes an exponential and a linear term, so there is no algebraic solution. The equation is already in the form x = g(x) with g(x) = e−x. We check convergence: g′(x) = −e−x, and near x ≈ 0.57, |g′| ≈ 0.57 < 1, so this rearrangement will converge.
g(x) = e^(−x), |g′(x*)| < 1 ✓
2
Step 2 — Choose an initial estimateGraph y = e−x and y = x on your GDC. They intersect near x ≈ 0.5 to 0.6. We choose x₀ = 0.5 as our starting value.
x₀ = 0.5
3
Step 3 — Iterate using your GDCOn your GDC, enter 0.5, press ENTER, then type e^(−Ans) and press ENTER repeatedly. Alternatively, use a spreadsheet or the sequence mode. The iterates are: x₁ = e−0.5 = 0.6065, x₂ = e−0.6065 = 0.5452, x₃ = 0.5797, x₄ = 0.5601, x₅ = 0.5712, x₆ = 0.5649, x₇ = 0.5685, x₈ = 0.5664, x₉ = 0.5676, x₁₀ = 0.5669.
The iterates are settling around 0.567
4
Step 4 — Determine the solution to required accuracyBy x₁₅, the iterates agree to four decimal places: 0.5671. The solution to three significant figures is x ≈ 0.567. This value is known as the Omega constant in mathematics (approximately 0.5671).
x ≈ 0.567 (3 s.f.)
5
Step 5 — Verify using the GDC's equation solverUse the solve function on your GDC: solve(e^(−x) − x = 0, x). The calculator returns x = 0.56714329..., confirming our iterative answer. Always verify when possible!
Verified: x = 0.5671 (4 d.p.)

Strengths, Limitations & Method Comparison

Iterative methods are incredibly useful, but they are not perfect. Understanding their strengths and limitations helps you decide when to use them and how to avoid common pitfalls.

Strengths and limitations of iterative methods
AspectStrengthLimitation
ScopeCan solve equations that have no algebraic solution (e.g., e^x = 3x)Only gives a numerical approximation, not an exact answer
SpeedWith a GDC, hundreds of iterations take secondsBy hand, each iteration requires careful arithmetic
ConvergenceWhen |g′(x*)| < 1, convergence is guaranteed near x*Wrong rearrangement → divergence; wrong x₀ → converging to wrong root
AccuracyCan achieve any desired level of precision by doing more iterationsRounding errors on calculators can accumulate over many steps
Multiple RootsCan find different roots by choosing different starting valuesMay miss a root if your initial estimate is too far away
KEY TAKEAWAY
Iterative methods are like GPS navigation for equations: they don't tell you the road map formula — they guide you turn by turn to the destination. The catch is that you need a reasonable starting location and a set of directions (the rearrangement) that actually leads somewhere. A bad rearrangement is like faulty GPS instructions that send you in circles or off a cliff.

Connections to Advanced Theory & Other IB Topics

The iterative methods you learn in AHL 2.9 connect to several other areas of mathematics and the wider IB curriculum. The table below maps out these connections.

Cross-topic connections within IB Mathematics AI HL
AHL 2.9 ConceptConnectionWhere It Appears
Fixed-point iterationRecursive sequences and seriesAHL 1.12 — Sequences defined recursively
Graphical root-findingIntersections of function graphsSL 2.5 — Solving equations graphically
Newton–Raphson methodTangent lines and derivativesAHL 5.9 — Differential calculus
Convergence conditionsLimits and behavior of sequencesAHL 1.13 — Limits of sequences
Numerical solutions with technologyModeling real-world problemsAll HL topics — Internal Assessment

Looking ahead, iterative methods are foundational in university-level numerical analysis, a branch of mathematics essential for engineering, physics simulations, machine learning, and financial modeling. The Newton–Raphson method, for instance, underpins many of the optimization algorithms used to train artificial neural networks. Mastering the core idea of iteration now gives you a head start in these fields.

📝 IB Exam Advice
In the exam, you may be asked to: (1) set up an iteration formula from a given equation, (2) perform several iterations by hand or on your GDC, (3) state the solution to a given number of decimal places or significant figures, and (4) explain whether a particular rearrangement converges or diverges. Always show your iteration values clearly in a table.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain in your own words what it means for an iteration xn+1 = g(xn) to converge. Why does the condition |g′(x*)| < 1 matter?
PROBLEM 2BASIC CALCULATION
The equation x² − 3 = 0 is rearranged to x = (x + 3/x)/2. Starting with x₀ = 2, perform three iterations and give x₃ to five decimal places.
PROBLEM 3INTERMEDIATE
The equation x³ + 2x − 7 = 0 has a root near x = 1.4. (a) Show that the equation can be rearranged to x = (7 − x³)/2. (b) Explain why the rearrangement x = ∛(7 − 2x) is a better choice for iteration. (c) Use x₀ = 1.4 with the better rearrangement and perform four iterations, giving your answer to 4 decimal places.
PROBLEM 4APPLIED
A population model predicts that the steady-state population P (in thousands) satisfies the equation P = 5 × ln(P + 2). Use your GDC with x₀ = 8 to find the steady-state population to 3 significant figures. How many iterations does it take for the answer to stabilize to 3 significant figures?
PROBLEM 5CRITICAL THINKING
The equation cos(x) = x has exactly one real root. (a) Explain why a root must exist between x = 0 and x = 1. (b) A student uses the rearrangement x = cos(x) with x₀ = 0 and another student uses x = arccos(x) with x₀ = 0.5. Both converge. Investigate which converges faster by computing five iterates of each. (c) Explain your findings in terms of |g′(x*)| for each method.

Lesson Summary

In this lesson, you learned that iterative methods provide a systematic way to solve equations that resist algebraic techniques. The process begins by rearranging f(x) = 0 into the form x = g(x), choosing an initial estimate x₀ (informed by a graph), and applying the fixed-point iteration formula x_{n+1} = g(x_n) repeatedly until the values stabilize to the required accuracy.

The convergence condition |g′(x*)| < 1 determines whether a rearrangement will work — visually captured by the cobweb diagram where convergent iterations spiral inward and divergent ones spiral outward. Your GDC is essential for performing iterations efficiently, graphing functions to locate roots, and verifying answers with built-in solvers. Remember: always show your iteration values clearly, state your answer to the required degree of accuracy, and check that your rearrangement satisfies the convergence condition.

Varsity Tutors • IB Mathematics: Applications and Interpretation • Iterative & Numerical Methods — AHL 2.9