



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Algorithms with their convergence, error and stability written down Mathematics | Undergraduate (Level 5) | December 2026
WHAT IS INSIDE
Numerical methods are examined through the three questions that decide whether a computation can be trusted: does it converge, how fast, and what happens to the error. The table gives the eight methods and the properties required in an answer.
Method Iteration or rule Convergence Cost per step Bisection Halve a bracketing interval
Linear, one bit per step One function evaluation
Fixed point x = g(x) Linear if the derivative is below one near the root
One evaluation
Newton-Raphson x minus f over f prime
Quadratic near a simple root Function and derivative
Secant Newton with a finite difference
Superlinear, order about 1.618 One evaluation after start
Lagrange interpolation Basis polynomials Exact at nodes; error from the next derivative
Evaluations grow with degree
Simpson's rule Parabolic fit on pairs of intervals
Error of order h to the fourth Odd number of nodes
Euler's method One-step explicit update
First order, unstable for stiff problems One derivative evaluation
Runge-Kutta 4 Weighted average of four slopes
Fourth order for smooth problems Four evaluations
Two habits separate good answers. First, always state the assumptions : Newton requires a derivative and a good starting point, bisection requires a sign change, and Simpson requires a smooth integrand. Second, distinguish truncation error , from the method's approximation, from rounding error , which grows when subtracting nearly equal numbers.
Bisection requires a continuous function with a sign change on an interval. It halves the interval each step, so the error is bounded by the interval width, and the number of steps needed for a given tolerance follows from the logarithm of the ratio of the initial width to the tolerance. Its great advantage is guaranteed convergence; its disadvantage is slowness and indifference to the shape of the function.
Newton-Raphson uses the tangent line to extrapolate to the axis, requiring the derivative. Near a simple root the error is roughly squared each step, which is quadratic convergence, but the method can diverge or cycle where the derivative is small or the starting point is poor. The secant method replaces the derivative with a finite difference, achieving superlinear convergence without the derivative, at the cost of two initial points.
Fixed-point iteration rewrites the equation as x equals g of x and iterates. Convergence depends on the magnitude of the derivative of g near the fixed point: below one, the iteration contracts and converges; above one, it diverges. The contraction mapping theorem states this precisely, and the practical lesson is that a rearrangement which converges is not guaranteed by the algebra but by the derivative.
Method Requires Order Failure mode Bisection Sign change, continuity 1 (linear) Slow; fails without bracket Newton Derivative, good start 2 (quadratic) Divergence, division by small derivative Secant Two starts 1.618 Instability near flat regions Fixed point Contraction 1 Divergence if derivative exceeds one False position Sign change Superlinear One-sided convergence
Interpolation constructs a function that passes exactly through given points. Lagrange's form gives an explicit polynomial through n points, with the error term proportional to the product of the distances to the nodes and to the n-th derivative. The product form of the error is the standard justification for choosing nodes that minimise it.
High-degree polynomial interpolation is dangerous because of Runge's phenomenon: equally spaced nodes produce oscillations near the ends of the interval. Two responses exist. One is to use nodes clustered at the ends, as with Chebyshev nodes, which reduce the maximum error. The other is to abandon a single high-degree polynomial in favour of piecewise interpolation, using cubic splines that are smooth and local, so a change in one data point affects only nearby intervals.
Approximation differs from interpolation in that the curve need not pass through the points. Least squares minimises the sum of squared residuals and is the correct method when the data contain noise; the normal equations give the closed-form solution for a linear model, though solving them directly is numerically inferior to orthogonal methods such as QR decomposition.
Numerical integration approximates the area under a curve. The trapezium rule fits straight lines between points and has error of order h squared. Simpson's rule fits parabolas over pairs of intervals and has error of order h to the fourth, which makes it substantially more accurate for the same number of evaluations when the integrand is
The calculation shows why bisection is described as linear with one bit of accuracy per step. It also shows the guarantee: the error bound is known before any evaluation.
Example 2: Newton-Raphson and a bad starting point For the function x cubed minus 2x plus 2, the derivative is 3x squared minus 2. Starting at zero, the first iteration moves to one, and the derivative at one is positive one, so the next step moves to zero again. The iteration cycles and never converges.
The lesson is that quadratic convergence is local, not global. A sketch of the function before iterating would have revealed the cycle, and a bracketing method would have found the root without difficulty.
Example 3: Simpson's rule versus the trapezium rule Integrating a cubic polynomial over a single pair of intervals, Simpson's rule is exact because the error term involves the fourth derivative, which vanishes for a cubic. The trapezium rule is not exact, with an error proportional to the second derivative.
The example is the standard demonstration of why the error order matters: an additional derivative evaluation buys a much higher order of accuracy for smooth functions.
The table collects the error orders and the practical condition for each method.
Problem Method Order Condition or caveat Root, bracketed Bisection 1 Sign change required Root, smooth Newton 2 Derivative and good start Interpolation, few nodes Lagrange Exact at nodes High degree oscillates Interpolation, many nodes Cubic spline Fourth order Requires boundary conditions Integration, smooth Simpson 4 Odd number of nodes ODE, non-stiff Runge-Kutta 4 4 Four evaluations per step ODE, stiff Backward Euler 1 Implicit solve each step
The order column is not a ranking of quality. A first-order method that is guaranteed to converge can be the right choice when reliability matters more than speed.
These errors recur in numerical methods examinations.
Answer technique
A complete answer names the method, states its assumptions, derives or states its error order, and interprets the result. That four-part structure applies to every question in this paper.
Answer in eight minutes each before reading the model answer.
Question 1. Compare bisection and Newton-Raphson for finding a root. Model answer. Bisection needs only a sign change and converges linearly with a known error bound, so it is reliable but slow. Newton needs a
derivative and a good starting point but converges quadratically near a simple root, so it is fast but can diverge or cycle. Practice often combines them: bisection to bracket, then Newton for speed.
Question 2. Why does polynomial interpolation oscillate at the ends of an interval? Model answer. Runge's phenomenon: for equally spaced nodes and high degree, the interpolation error, which involves the product of distances to the nodes and the high derivative, becomes large near the ends. Clustered nodes such as Chebyshev points, or piecewise splines, control the oscillation.
Question 3. What makes a differential equation stiff and how does it affect explicit methods? Model answer. Stiffness arises when the solution contains components with very different rates of change, so the stability region of an explicit method forces a step size set by the fastest component even though the solution varies slowly. Explicit methods then become impractically slow, and implicit methods are used instead.
Question 4. Derive the error order of the trapezium rule in one line. Model answer. The trapezium rule integrates the linear interpolant, which is exact for linear functions; the error term is proportional to the second derivative of the integrand and to the cube of the interval width per panel, giving a composite error of order h squared.
Question 5. When would you use Monte Carlo integration? Model answer. For high-dimensional integrals where grid-based quadrature is infeasible, and for integrands that are irregular or defined only by simulation. Its error decreases as the inverse square root of the number of samples, independent of dimension, which is why it wins in high dimensions despite slow convergence in low ones.
Question bank with marking checkpoints Checkpoint questions for revision.