Fundamentals / Numerical mathematics / Approximation and quadrature

Approximation and quadrature · Notation and assumptions

Read each defining equation with its assumptions and units, then follow the link to the argument that gives the equation its meaning.

Barycentric weight

\[w_j=\prod_{i\ne j}(x_j-x_i)^{-1}\]

Only relative weights enter the rational expression for the interpolating polynomial. At a node return the recorded value directly.

Derivation · Evaluating an interpolant without rebuilding its polynomial

Fourier alias

\[e^{2\pi i(k+n)j/n}=e^{2\pi ikj/n}\]

On n equally spaced periodic samples two distinct continuum frequencies can yield precisely the same observations. Interpolation cannot disambiguate them without more information.

Derivation · When a trapezoidal sum counts the wrong frequency perfectly

Interpolation condition

\[p(x_i)=f_i\]

The polynomial matches the tabulated values at distinct nodes. Small nodal discrepancies do not guarantee a small error between nodes.

Derivation · Polynomial interpolation and node placement

Monte Carlo standard error

\[\mathrm{SE}(\bar f)=\sigma_f/\sqrt{N}\]

Independent samples with finite variance give this ideal error scale. Importance weights and correlations can substantially alter the variance of the actual estimator.

Derivation · Where should a random quadrature spend its samples?

Quadrature degree

\[Q[x^j]=\int_a^b x^j\,dx\quad(0\le j\le d)\]

Exactness through degree d is an algebraic property. For a nonsmooth or poorly sampled integrand the observed rate can be much lower.

Derivation · Gaussian quadrature and exactness

Richardson extrapolation

\[I\approx I_{h/2}+(I_{h/2}-I_h)/(2^p-1)\]

This cancels an assumed leading error proportional to h to power p. Several refinements can test whether that asymptotic regime is present.

Derivation · Deriving Romberg integration and recognising a broken error model