Wiki

Search Numerical Methods

Type a method, property or formula. Search spans articles, exercises, derivations, comparisons and glossary terms.

129 results

Errors in numerical computing

Why every numerical solution is approximate, the two error families (round-off and truncation) and how to measure it: numerical, percentage and iterative error.

Significant figures and round-off

How to count significant figures for numbers larger and smaller than 1 and in scientific notation, and where a machine's round-off errors come from.

Taylor and the truncation error

Taylor's theorem and its remainder, why the remainder is the truncation error, and how finite differences arise from it.

Interpolation: idea, existence and error

What interpolation is, why polynomials are used, the Weierstrass theorem, uniqueness of the interpolating polynomial and the error bound shared by Newton, Lagrange and Hermite.

Newton interpolation and divided differences

The Newton polynomial built in layers with divided differences: linear, quadratic and general form, the difference table, the error and a worked example with real data.

Lagrange interpolation

The Lagrange basis functions, the cardinal property that defines them, the polynomial as a direct combination of the data, its error and a worked example with the census data.

Hermite interpolation

Interpolation that imposes value and derivative at each node: the polynomial H2n+1H_{2n+1}, its construction from the Lagrange bases, the error, the practical route via divided differences with repeated nodes and a Bessel-function example.

Cubic splines

Piecewise interpolation with one cubic per interval: the continuity conditions, the tridiagonal system that fixes the coefficients, natural splines and how to solve them.

Finite differences: the first derivative

Forward, backward and central formulas for the first derivative, their three- and five-point versions, the order of the error and a surprising numerical comparison.

Higher-order derivatives

Approximations of the second (and third) derivative by forward, backward and central finite differences, with their error order.

Richardson extrapolation

How to combine two approximations with steps hh and h/2h/2 to cancel the dominant error term and raise the order, with the formulas for all terms and for even powers.

Numerical quadrature from Lagrange

The general idea of numerical integration: approximate an integral by a weighted sum of function values, obtained by integrating the Lagrange polynomial.

Open Newton-Cotes and midpoint

Open rules that avoid the endpoints of the interval, with special attention to the simple and composite midpoint rule.

Gaussian quadrature

How Gaussian quadrature chooses optimal nodes and weights using orthogonal polynomials: Legendre, Chebyshev, Laguerre and Hermite.

Numerical multiple integration

How trapezoid, Simpson and Gauss-Legendre extend to double integrals through product rules and changes of variables.

Initial value problems

What an IVP is, when it has a unique solution (Lipschitz condition), how it is discretized, and how systems and higher-order equations reduce to the same scheme.

Euler's method

The simplest one-step method: advance with the slope at the current node. Full derivation along three routes (Taylor, incremental quotient and integration), order, a worked example and the implicit variant.

Heun's method

Averaging the initial slope and a predicted slope yields a second-order method. Full derivation via second-order Taylor and via the trapezoidal rule with an Euler prediction.

Runge-Kutta method (RK4)

The classical Runge-Kutta combines four slopes per step to reach order 4. Full derivation from Simpson's rule and direct extension to ODE systems.

Convergence, consistency and order

Local and global truncation errors, the definition of convergence and consistency, theoretical orders of the one-step methods and how to estimate the order numerically, with or without an exact solution.

Adams-Bashforth methods

Explicit multistep methods that integrate the ODE by approximating f with its interpolating polynomial over already-computed nodes: full derivation of AB2 with Lagrange, the AB3 and AB4 formulas, their order and how to start them.

Adams-Moulton methods

Implicit multistep methods that include the new node in the interpolation: full derivation of AM2 (implicit trapezoid), AM4, why they require solving a nonlinear equation and what they gain in exchange.

Predictor-corrector methods

Combining an explicit method (predictor) with an implicit one of the same order (corrector) to get the accuracy and stability of the implicit without solving equations: ABM2 and ABM4.

Stiff problems and stability

What makes an ODE stiff, why explicit methods become unstable with few points, and why implicit, low-order and adaptive-step methods are preferred.

Linear systems: error, residual and conditioning

Direct versus iterative methods for Ax=b, the difference between error and residual, the residual stopping criterion and why the condition number decides whether it is reliable.

Jacobi method

The splitting A=L+D+U, the choice M=D that defines Jacobi, its component-wise iterative scheme and a worked example.

Gauss-Seidel method

The choice M=D+L, which reuses each freshly computed component within the same iteration, and why it often converges faster than Jacobi.

Convergence and spectral radius

The condition ρ(H)<1\rho(H)<1 that decides convergence, the sufficient strictly-diagonally-dominant criterion, and the convergence radius that measures speed.

Over-relaxation methods (SOR)

How a relaxation parameter ω speeds up the classical methods: relaxed Jacobi (JSOR) and SOR, which generalizes Gauss-Seidel (ω=1).

Bisection method

The most robust method: halve the interval bracketing the root and keep the half where the sign changes. Explicit error bound and guaranteed convergence.

Fixed-point iteration

Rewrite f(x)=0f(x)=0 as x=ϕ(x)x=\phi(x) and iterate: when it converges (ϕ(α)<1|\phi'(\alpha)|<1), how fast, and the theorem giving the method's order from which derivatives of ϕ\phi vanish at the solution.

Newton-Raphson method

The reference iterative method: linearize f at the current iterate and jump to the tangent's root. Full derivation along three routes and proof of quadratic order with its error equation.

Derivative-free methods: secant and Steffensen

When ff' is unavailable it is replaced by a divided difference: with two previous iterates (secant, order 1.618\approx1.618) or with an auxiliary evaluation (Steffensen, order 2).

Convergence order and efficiency

Definition of convergence order and the error equation, their computational estimators COC and ACOC, the efficiency indices and the Kung-Traub conjecture defining optimal methods.

Systems of nonlinear equations

The problem F(X)=0F(X)=0 in several variables: vector fixed-point methods, convergence order with norms, multidimensional ACOC and stopping criteria.

Newton for nonlinear systems

The vector version of Newton's method: the derivative becomes the Jacobian matrix, the quotient becomes one linear system per iteration, and the quadratic order is preserved.

Cost and efficiency in dimension n

Accounting of per-iteration cost in systems: nn evaluations per FF, n2n^2 per Jacobian, cost of the linear solves, efficiency indices and the multidimensional optimality conjecture.

Derivation: three-point forward O(h²)

How to combine two Taylor expansions to eliminate the second derivative and get an order-2 forward difference for the first derivative.

Derivation: Richardson raises the order

From the error form to the extrapolation formula: why combining N1(h)N_1(h) and N1(h/2)N_1(h/2) removes the O(h)\mathcal{O}(h) term.

Derivation: trapezoid rule

Integrating the linear Lagrange interpolant on [a,b] to obtain the trapezoid rule and its geometric interpretation.

Derivation: simple midpoint

Replacing the function by a central height to obtain the centred rectangle rule and its error.

Derivation: composite midpoint

Generalising midpoint to n subintervals by using the centre of each block and summing local errors.

Derivation: Simpson 1/3

From three equally spaced nodes to Simpson's 1, 4, 1 weights by integrating the quadratic Lagrange polynomial.

Derivation: Euler's method and its order

Three independent routes lead to Euler's formula (Taylor, incremental quotient and integration), and the analysis of the Taylor remainder proves the method is first order.

Derivation: implicit Euler

Approximating the derivative at the new node with a backward difference produces the implicit Euler method and the nonlinear equation to solve at each step.

Derivation: Heun's method

Full derivation of Heun: via the Taylor expansion to second order combined with the two-variable Taylor of f, and via the trapezoidal rule with an Euler prediction.

Derivation: fourth-order Runge-Kutta

Applying Simpson's rule to the integral form of the IVP and approximating the unknown slopes with chained internal evaluations produces the classical RK4 and explains its 1, 2, 2, 1 weights.

Derivation: two-step Adams-Bashforth (AB2)

Full construction of AB2: integral form of the IVP, Lagrange interpolant of f at the two previous nodes, change of variable, integrals computed term by term, local error and generalization to AB3 and AB4.

Derivation: one-step Adams-Moulton (AM2)

Full construction of AM2: Lagrange interpolant including the new node, change of variable, computed 1/2-1/2 weights, connection with the trapezoidal rule and local error.

Derivation: bisection error bound

Why the bisection error halves at every iteration, and how to predict in advance how many iterations a given tolerance requires.

Derivation: fixed-point convergence and order

Expanding ϕ\phi by Taylor around the fixed point yields the method's error equation and proves both the ϕ(α)<1|\phi'(\alpha)|<1 criterion and the order theorem.

Derivation: Newton for systems by linearization

The first-order multivariate Taylor expansion linearizes F around the current iterate; setting that linearization to zero gives the Newton step, with the Jacobian in the role of the derivative.

Exercise: Newton with population data

Full divided-difference table for the 1971–2011 census and estimate of the 2005 population with the degree-4 Newton polynomial.

Exercise: comparing derivative formulas

Computing f(0.5)f'(0.5) for f(x)=x2exf(x)=x^2e^{-x} with the six finite-difference formulas and comparing their errors against the exact value 0.45490.4549.

Exercise: Richardson on ln(x)

Approximating f(1.8)f'(1.8) for f(x)=lnxf(x)=\ln x with O(h)\mathcal{O}(h) forward differences and improving to O(h2)\mathcal{O}(h^2) via Richardson extrapolation.

Exercise: stability of explicit and implicit Euler

Full analysis of y=λyy'=\lambda y: the amplification factor of each method, the explicit method's stability condition h<2/λh<-2/\lambda, the unconditional stability of the implicit one and a numerical check with λ=10\lambda=-10.

Exercise: AB2 and order estimation

Solving a logistic IVP (Verhulst) with AB2 started with Heun and estimating the order numerically by doubling the number of subintervals.

Exercise: convergence by spectral radius

A non-diagonally-dominant matrix where Jacobi diverges but Gauss-Seidel converges, decided by computing the spectral radius of each iteration matrix.

Exercise: bisection by hand

Six bisection iterations for cos²x−x=0 on [0,1], with the chain of intervals, the error bound at each step and the prediction of the required number of iterations.

Exercise: Newton on x=cos²x

Full application of Newton's method to x=cos²x from x0=0.3: table of iterates, residuals, increments and ACOC tending to the theoretical order 2.

Exercise: the secant by hand

The secant method applied to cos²x−x=0 from x0=0, x1=1: five iterations with explicit divided differences and superlinear convergence on display.

Exercise: numerical comparison of iterative methods

Newton, Halley, Ostrowski, Traub, midpoint, Jarratt and double Newton on test functions with tolerance 10⁻¹⁰⁰: iterations, residuals and ACOC confirming the theoretical orders.

Exercise: Newton for a system, by hand

Two Newton steps by hand on the system x2+y2=1x^2+y^2=1, x=yx=y: building the Jacobian, solving each step's 2×22\times2 linear system and visible quadratic convergence towards (2/2,2/2)(\sqrt2/2,\sqrt2/2).

Exercise: Newton on a 2×2 system with iteration table

Full solution of exey+xcosy=0e^x e^y+x\cos y=0, x+y=1x+y=1 with Newton from [2,1][2,-1]: table of iterates, residual and increment norms, and ACOC settling at 2.

Exercise: numerical comparison on systems

Newton, Trapezoids, Golden Ratio, NA, Jarratt and RN on two test systems with tolerance 10⁻¹²: iterations, norms and ACOC, with RN (order 6) as the most effective method.

Consistency

A method is consistent if its local error tends to zero as the step size shrinks.

Stability

Control over how small errors are amplified during the computation.

Convergence

The property that approximations approach the target value.

Order

The asymptotic rate at which the error decreases.

Conditioning

Sensitivity of the exact problem to perturbations in the data.

Residual

The defect left after substituting an approximation into the original equation.

Truncation error

Error introduced by cutting off an expansion or replacing a continuous object with a discrete one.

Rounding error

Error caused by representing and operating on numbers with finite precision.

Machine epsilon

The rounding unit of the floating-point system: the maximum relative error of representing a number.

Significant figures

The digits of an approximation that carry reliable information about the exact value.

Taylor polynomial

The local polynomial approximation of a function built from its derivatives at a point.

Nodes

The points of the domain where the function is known or evaluated.

Divided differences

The recursive coefficients that build the interpolating polynomial in Newton form.

Spline

A piecewise-polynomial interpolant with smoothness conditions at the joints.

Runge phenomenon

Growing oscillations near the endpoints when interpolating with high degree at equispaced nodes.

Quadrature

Approximating a definite integral by a weighted sum of function values.

Degree of precision

The highest polynomial degree that a quadrature formula integrates exactly.

Richardson extrapolation

Combining two approximations with different steps to cancel the leading error term.

Step size ($h$)

The distance between consecutive points of the discretization.

Stiffness

A property of an ODE that forces explicit methods to take tiny steps for stability.

Fixed point

A value the iteration function leaves unchanged: g(α)=αg(\alpha)=\alpha.

Stopping criterion

The rule that decides when an iteration has reached sufficient accuracy.

Spectral radius

The largest absolute value of a matrix's eigenvalues; it decides the convergence of linear iterations.

Jacobian matrix

The matrix of partial derivatives that generalizes ff' to systems of several variables.

Vector and matrix norms

The size measures used to quantify errors and convergence in several dimensions.

Euler vs Heun vs RK4

One-step IVP methods: accuracy, evaluations of ff and practical use.

Jacobi vs Gauss-Seidel vs SOR

Linear iterative methods viewed as splittings A=MNA=M-N and through their iteration matrix.