01 / 21

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.

IB Math AI HL AHL 5.10

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.

Iteration
Repeatedly refine a guess to converge on a root of \( f(x) = 0 \).
Integration
Approximate \( \int_a^b f(x)\,dx \) when the antiderivative is unknown.

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

x y
\( y = x \)
\( y = g(x) \)
\( x_0 \)
\( x_1 \)
\( x_2 \)

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:

1
Choose an initial guess \( x_0 \) close to the suspected root.
2
Compute the tangent at \( (x_n, f(x_n)) \) and find where it crosses the \( x \)-axis.
3
Repeat until \( |x_{n+1} - x_n| \) is smaller than a chosen tolerance.

Newton-Raphson Geometry

x y
\( f(x) \)
root
\( x_0 \)
\( x_1 \)
\( x_2 \)

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.

Trapezoid Rule
Connects points with straight lines and sums trapezoid areas.
Simpson's Rule
Fits parabolic arcs through groups of three points for higher accuracy.

The Trapezoid Rule

a b
\( n = 4 \) trapezoids
x

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.

1
Coefficients follow the pattern: 1, 4, 2, 4, 2, ..., 4, 1.
2
\( n \) must be even. If you're given an odd number of subintervals, Simpson's rule does not apply directly.
3
For polynomials of degree \( \leq 3 \), Simpson's rule gives the exact answer.

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

1
Identify the task: Are you finding a root (\( f(x) = 0 \)) or estimating an integral (\( \int_a^b f(x)\,dx \))?
2
Choose the method: For roots: Newton-Raphson (if \( f' \) is available) or fixed-point. For integrals: Simpson's (higher accuracy) or trapezoid.
3
Set up parameters: Pick \( x_0 \) (iteration) or \( n \) and \( h \) (integration). Record all values in a table.
4
Iterate or compute: Use your GDC or spreadsheet. Show at least 3-4 iterations or the full coefficient pattern.
5
State accuracy: Give your answer to the required decimal places and note the error bound if asked.

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} \)
02.0000002.080084
12.0800842.094551
22.0945512.097847
32.0978472.098596
42.0985962.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} \)
01.500000−0.018311.512135
11.5121350.000031.512134
21.512134≈ 01.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

✕ Wrong rearrangement
Choosing a \( g(x) \) where \( |g'(x)| \geq 1 \) near the root causes divergence. Always check the convergence condition.
✕ Odd \( n \) in Simpson's
Simpson's rule requires an even number of subintervals. Using odd \( n \) gives an invalid result.
✕ Forgetting coefficients
In the trapezoid rule, interior points are multiplied by 2. In Simpson's, the pattern is 1, 4, 2, 4, ..., 1.

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?