Last reviewed 16 Sept 2026 · 7 min read
Finite differences
For equally spaced values with :
| Operator | Definition |
|---|---|
| Forward difference | |
| Backward difference | |
| Central difference | |
| Shift operator | |
| Averaging operator |
Relations: ; ; ; ().
- The nth differences of a polynomial of degree n are constant, and higher differences are zero.
Interpolation
Newton's forward difference formula
For near the beginning of the table, :
Newton's backward difference formula
For near the end of the table, :
(Central difference formulas — Gauss, Stirling, Bessel, Everett — are used near the middle.)
Lagrange's interpolation formula
For unequally spaced points:
Newton's divided difference formula
with , etc. — convenient for adding points.
- Interpolation error ; high-degree polynomials on equally spaced points may oscillate (Runge phenomenon) — spline interpolation is often preferred.
- Extrapolation (outside the data range) is unreliable.
Numerical differentiation
From Newton's forward formula at :
Simple approximations: forward (error ); central (error ); second derivative .
Numerical integration
Trapezoidal rule:
Error (global); exact for linear functions.
Simpson's 1/3 rule ( even):
Error ; exact for polynomials up to degree 3.
Simpson's 3/8 rule ( a multiple of 3):
Error .
Weddle's rule ( multiple of 6): per 6 intervals.
Gaussian quadrature
- Chooses optimal points and weights — an -point Gauss–Legendre rule is exact for polynomials of degree up to .
- Two-point rule on : .
- For , substitute .
- Widely used in finite element stiffness computations.
Romberg integration
Richardson extrapolation of trapezoidal results with successively halved step sizes: (gives Simpson accuracy), repeated for higher accuracy.