Interpolation 2026-10-14
Interpolation constructs a function agreeing exactly with prescribed values at sample points. The resulting function is an interpolant. Choosing a family determines how missing values are filled: polynomial interpolation selects a polynomial, while linear interpolation joins adjacent samples by straight segments. The McShane extension theorem instead permits any Lipschitz function with a specified bound and provides envelopes controlling all allowed choices.
McShane extension theorem Created 2026-10-03 Updated 2026-10-14
Let be a nonempty subset of a metric space , and let satisfy a Lipschitz bound . Thenare real-valued Lipschitz functions on all of , agree with on , and obey the same bound . Every other extension satisfying that bound lies between them, . Despite the infimum in its formula, is the largest such extension: every given sample supplies an upper constraint .
Take three real samples , , , and allow the bound . Their least Lipschitz constant is only , so this is deliberately a looser permitted bound. The two extensions areAt , the allowable interval is . The interpolant obtained by linear interpolation is a piecewise linear function and has value there. Extending it constantly outside obeys the same bound on the entire real line. At , the allowable interval is . Thus the data and the bound control possible values without selecting a unique curve.
Each sample constrains a Lipschitz function; the upper and lower envelopes bound every allowed extension
. Details. The construction is useful when data are known only on a subset: it extends them without increasing an allowed Lipschitz bound. A short justification explains why the envelopes work. Fix . The triangle inequality and the bound on implyso the infimum is finite below; the term makes it finite above. At a sample , all upper terms are at least , while that term gives equality. Finally, gives after taking an infimum; exchanging proves the bound. The lower envelope follows by applying the same argument to .
E. J. McShane's paper Extension of range of functions appeared in the Bulletin of the American Mathematical Society, volume 40, in 1934, pp. 837–842. [ref]
https://www.ams.org/books/surv/012/surv012-endmatter.pdf. AMS bibliography: E. J. McShane, Extension of range of functions
[ref]https://doi.org/10.1090/S0002-9904-1934-05978-0. McShane's original publication
Numerical integration Created 2026-10-03 Updated 2026-10-14
Numerical integration approximates a definite integral using finitely many sampled function values. For an integrand on a finite interval , , a quadrature rule has the formThe quadrature nodes tell us where to evaluate ; the quadrature weights turn those values into an approximation to the accumulated signed area. The exact definite integral depends on the integrand throughout the interval, whereas the quadrature rule sees only these samples. Integrating a chosen interpolant exactly still generally approximates the original integrand's integral.[ref]
5.6 Numerical integration. Definition 5.6.1 and §5.6.1, equations 5.6.2–5.6.5: weighted samples and integration of an interpolant
The fundamental theorem of calculus evaluates as when an antiderivative is available. Numerical integration is useful when no convenient antiderivative is known, or each evaluation of the integrand requires an expensive computation. The task then becomes choosing informative quadrature nodes and controlling the quadrature error with as few evaluations as possible. Fixed data also permit a quadrature rule, but refinement cannot supply new information between observations.[ref]
5.6 Numerical integration. Opening discussion, Example 5.6.1 and the paragraph following Definition 5.6.1: antiderivatives, numerical evaluation and fixed data
For an exact comparison, take the polynomial on . Its antiderivative gives . On a partition of an interval into equal panels, the composite midpoint quadrature rule uses midpoint samples, each with quadrature weight ; the composite trapezoidal rule uses endpoint samples, with outer quadrature weights and interior quadrature weights . The existing derivations under these two quadrature rules giveIn particular, and already bracket ; two panels give and . The convex function explains the opposite signs. A midpoint rectangle can cross the curve within its panel, so its total signed area, rather than pointwise ordering, determines the underestimate.
One and two panels for numerical integration of : midpoint and endpoint samples with their quadrature weights
. Details. Define the signed approximation error as . In this example the absolute errors are and : doubling reduces each by exactly four. A plot with both axes on a logarithmic scale therefore has slope , expressing order two with respect to panel refinement. This is an exact calculation for this polynomial, including , rather than an observed rate extrapolated from a few computed answers.
Exact absolute errors for midpoint and trapezoidal numerical integration of : slope and a factor-four reduction
. Details. For a general integrand, the composite midpoint quadrature rule and composite trapezoidal rule give second-order quadrature error bounds when has two continuous derivatives on and a known bound on . These hypotheses describe behavior between samples. A formal error formula containing an unknown derivative is not a numerical accuracy certificate or a justified sample count. Finite samples do not certify quadrature accuracy makes the missing information explicit. Errors in the evaluations and roundoff error must also be considered; noise sensitivity of a quadrature rule treats the former.
More elaborate choices exploit other information: Gaussian quadrature obtains high polynomial exactness from carefully chosen quadrature nodes, and Simpson's rule uses a quadratic interpolant. Adaptive numerical integration compares approximations and concentrates samples where they disagree, often saving evaluations. Such a difference is an error estimate, not a certified bound without further assumptions: both approximations can miss the same feature.[ref]
5.7 Adaptive integration. Fundamentals of Numerical Computation by Tobin A. Driscoll and others; §5.7.1, equation 5.7.4: a difference-based error estimate; §5.7.2: interval bisection; Example 5.7.2 and concluding discussion: requested accuracy is not guaranteed


