SECTION 1
Historical Context & Motivation
Most equations you encounter in a math classroom have neat, closed-form solutions — you can rearrange, factor, or apply a formula and arrive at an exact answer. But the real world is not always so tidy. Engineers designing bridges, scientists modeling populations, and economists predicting markets frequently face equations that cannot be solved exactly. Similarly, many integrals arising in physics and statistics have no antiderivative that can be written in terms of elementary functions. Numerical methods were invented precisely to fill this gap — they give us systematic procedures to approximate solutions to any desired degree of accuracy, especially when paired with modern technology.
~250 BCE • Archimedes' Method of Exhaustion
1685 • Newton's Iterative Method
1768 • Euler's Numerical ODE Solving
1859 • Simpson's Rule Formalized
1960s–present • Computers Transform Numerical Analysis
The central question that drives this topic is: When we cannot find an exact analytical answer, how can we systematically approximate one — and how accurate can we make that approximation? In IB Mathematics HL, you will use your GDC (graphing display calculator) and spreadsheet technology to implement these approximation strategies for both solving equations via iteration and evaluating definite integrals numerically.
SECTION 2
Core Principles & Definitions
Before diving into specific algorithms, it helps to understand the foundational ideas that underpin all numerical methods. These methods share a common philosophy: start with a rough guess, then refine it systematically until you reach the desired precision.
Iteration
Fixed-Point Iteration
Newton-Raphson Method
Numerical Integration
Error and Convergence
KEY TAKEAWAY
SECTION 3
Visual Explanation — Newton-Raphson Iteration
The diagram below illustrates how the Newton-Raphson method zeroes in on a root of f(x) = 0. Starting from an initial guess x₀, you draw the tangent line to the curve at (x₀, f(x₀)). Where that tangent crosses the x-axis becomes your next estimate x₁. The process repeats, and each new tangent brings you dramatically closer to the root.
Notice how the distances between successive estimates and the root shrink dramatically. This is a hallmark of quadratic convergence — the number of correct decimal places roughly doubles with each iteration. In practice, three or four iterations often yield an answer accurate to many decimal places. On your GDC, you can set up a recurrence relation and watch the values stabilize before your eyes.
SECTION 4
Mathematical Framework
Iterative Methods for Solving Equations
NEWTON-RAPHSON FORMULA
where is the current estimate, f() is the function value at that estimate, and f'() is the derivative evaluated at that estimate. The formula finds where the tangent line at crosses the x-axis.
The idea is beautifully geometric: the tangent line at the point (xn, f(xn)) has slope f'(xn). Setting y = 0 and solving for x gives the Newton-Raphson formula above. When the starting guess is close enough to the root and f'(x) ≠ 0 near the root, convergence is extremely rapid.
FIXED-POINT ITERATION
Rearrange f(x) = 0 into the form x = g(x). The iteration converges when |g'(x)| < 1 near the fixed point. A smaller |g'(x)| means faster convergence.
Numerical Integration Methods
TRAPEZOIDAL RULE
where h = (b − a)/n is the width of each strip, n is the number of strips, and xk = a + kh. Each strip is a trapezoid whose parallel sides are the function values at consecutive x-values.
SIMPSON'S RULE (n EVEN)
Simpson's rule fits parabolic arcs through consecutive triplets of points. The coefficients follow the pattern 1, 4, 2, 4, 2, …, 4, 1. The number of strips n must be even. This method is generally far more accurate than the trapezoidal rule for the same n.
GDC / Technology Tip
SECTION 5
Numerical Integration — Trapezoids vs. Parabolas
The diagram below compares the two main numerical integration strategies side by side. On the left, the trapezoidal rule approximates the area under the curve using straight-line segments connecting consecutive points, forming trapezoids. On the right, Simpson's rule uses parabolic arcs that hug the curve more closely, resulting in much better accuracy for the same number of function evaluations.
| Feature | Trapezoidal Rule | Simpson's Rule |
|---|---|---|
| Shape used | Straight-line segments (trapezoids) | Parabolic arcs through triplets of points |
| Coefficient pattern | 1, 2, 2, 2, …, 2, 1 | 1, 4, 2, 4, 2, …, 4, 1 |
| Multiplier | h / 2 | h / 3 |
| Number of strips | Any positive integer n | Must be even |
| Error order | O(h²) — error proportional to h² | O(h⁴) — error proportional to h⁴ (much smaller) |
Comparison of the two primary numerical integration techniques used in AHL 5.10.
SECTION 6
Worked Examples
Example 1: Newton-Raphson Iteration
Find the root of f(x) = x³ − 2x − 5 near x = 2 using the Newton-Raphson method. Give your answer correct to four decimal places.
Newton-Raphson: Solving x³ − 2x − 5 = 0
- 1
Step 1 — Identify f(x) and f'(x)
We have f(x) = x³ − 2x − 5. Taking the derivative: f'(x) = 3x² − 2. The Newton-Raphson formula is xn+1 = xn − f(xn) / f'(xn) = xn − (xn³ − 2xn − 5) / (3xn² − 2). - 2
Step 2 — First Iteration (x₀ = 2)
f(2) = 8 − 4 − 5 = −1. f'(2) = 12 − 2 = 10. So x₁ = 2 − (−1)/10 = 2 + 0.1 = 2.1.x₁ = 2.1 - 3
Step 3 — Second Iteration (x₁ = 2.1)
f(2.1) = 9.261 − 4.2 − 5 = 0.061. f'(2.1) = 3(4.41) − 2 = 13.23 − 2 = 11.23. So x₂ = 2.1 − 0.061/11.23 ≈ 2.1 − 0.00543 ≈ 2.09457.x₂ ≈ 2.0946 - 4
Step 4 — Third Iteration (x₂ ≈ 2.0946)
f(2.0946) = (2.0946)³ − 2(2.0946) − 5 ≈ 9.1913 − 4.1892 − 5 = 0.0021. f'(2.0946) ≈ 3(4.3874) − 2 = 11.162. x₃ ≈ 2.0946 − 0.0021/11.162 ≈ 2.0946 − 0.000188 ≈ 2.09455.x₃ ≈ 2.0946 - 5
Step 5 — Conclusion
Since x₂ and x₃ agree to four decimal places, the root is approximately 2.0946. After just three iterations from x₀ = 2, we have four-decimal-place accuracy — a testament to the speed of the Newton-Raphson method.Root ≈ 2.0946 (to 4 d.p.)
Example 2: Trapezoidal Rule
Estimate ∫₀² dx using the trapezoidal rule with n = 4 strips.
Trapezoidal Rule: Estimating ∫₀² dx
- 1
Step 1 — Determine h and x-values
h = (b − a)/n = (2 − 0)/4 = 0.5. The x-values are: x₀ = 0, x₁ = 0.5, x₂ = 1.0, x₃ = 1.5, x₄ = 2.0.h = 0.5 - 2
Step 2 — Evaluate f(x) = at each x
f(0) = e⁰ = 1.0000, f(0.5) = ≈ 0.7788, f(1.0) = ≈ 0.3679, f(1.5) = ≈ 0.1054, f(2.0) = ≈ 0.0183. - 3
Step 3 — Apply the trapezoidal formula
T = (h/2)[f(x₀) + 2f(x₁) + 2f(x₂) + 2f(x₃) + f(x₄)] = (0.5/2)[1.0000 + 2(0.7788) + 2(0.3679) + 2(0.1054) + 0.0183] = 0.25 × [1.0000 + 1.5576 + 0.7358 + 0.2108 + 0.0183] = 0.25 × 3.5225.T ≈ 0.8806 - 4
Step 4 — Compare with GDC value
Using the GDC's built-in integration function, ∫₀² dx ≈ 0.8821. Our trapezoidal estimate of 0.8806 is quite close, with an error of about 0.0015 — less than 0.2%. Using more strips would reduce the error further.Error ≈ 0.17%
SECTION 7
Strengths, Limitations & When to Use Each Method
No single numerical method is universally best. Choosing the right tool depends on what you're trying to solve, how much information you have (can you compute derivatives?), and how accurate you need the answer to be. The table below summarizes the trade-offs.
| Method | Strengths | Limitations |
|---|---|---|
| Fixed-Point Iteration | Simple to set up; no derivative needed; easy to implement on a GDC using the ANS key. | May diverge if |g'(x)| ≥ 1 near the root; convergence can be slow (linear rate); requires careful rearrangement of the equation. |
| Newton-Raphson | Very fast convergence (quadratic); typically needs only a few iterations; widely applicable. | Requires f'(x) ≠ 0 at the root; can fail or diverge if the initial guess is poor or near a turning point; may cycle for some functions. |
| Trapezoidal Rule | Easy to apply; works with any number of strips; useful when only tabulated data points are available. | Only O(h²) accuracy; systematically underestimates concave-up regions and overestimates concave-down regions. |
| Simpson's Rule | O(h⁴) accuracy — far more precise for the same number of evaluations; exact for polynomials up to degree 3. | Requires an even number of strips; slightly more complex coefficient pattern; less intuitive geometrically than trapezoids. |
Strengths and limitations of each numerical method in the AHL 5.10 toolkit.
KEY TAKEAWAY
SECTION 8
Connections to Advanced Theory & Euler's Method
The numerical methods in AHL 5.10 connect directly to Euler's method for differential equations (covered in AHL 5.11) and to the broader field of numerical analysis studied at university level. Understanding iteration and numerical integration here lays the groundwork for more sophisticated algorithms like Runge-Kutta methods and adaptive quadrature, which are the workhorses of modern scientific computing.
| Concept in AHL 5.10 | Advanced Extension |
|---|---|
| Fixed-point iteration xn+1 = g(xn) | Banach fixed-point theorem (contraction mappings); used in economics (equilibrium computation) and computer graphics (fractal generation). |
| Newton-Raphson method | Generalizes to systems of equations via the Jacobian matrix (Newton's method in ℝⁿ); essential in optimization, machine learning, and engineering simulations. |
| Trapezoidal rule | Forms the basis for the trapezoidal method in ODE solving (implicit Euler); leads to Romberg integration which extrapolates to higher accuracy. |
| Simpson's rule | Part of the Newton-Cotes family of quadrature rules; extends to Gaussian quadrature for optimal node placement and maximum accuracy. |
How AHL 5.10 concepts connect to university-level numerical analysis.
As you progress to AHL 5.11 and beyond, you'll see that Euler's method is essentially the trapezoidal idea applied to differential equations — instead of approximating the area under a curve, you approximate the trajectory of a solution curve by taking small steps along the tangent. The iterative mindset you develop here — start, refine, converge — is the universal language of computational mathematics.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Summary — Further Numerical Methods
Summary
In AHL 5.10, you learned two families of numerical techniques. For solving equations, fixed-point iteration uses xn+1 = g(xn) and converges when |g'(x)| < 1 near the root, while the Newton-Raphson method uses xn+1 = xn − f(xn)/f'(xn) and achieves quadratic convergence by exploiting the tangent line at each step.
For numerical integration, the trapezoidal rule approximates the area under a curve using straight-line segments with O(h²) error, while Simpson's rule fits parabolic arcs and achieves O(h⁴) error — far superior accuracy for the same number of strips. Your GDC is your most important tool: use it to perform iterations, evaluate function values, and verify numerical estimates against built-in integration features. Mastering these methods prepares you for Euler's method in AHL 5.11 and for the computational thinking that underlies modern science and engineering.