Clamped cubic spline 2026-10-31
A clamped cubic spline is a cubic spline whose endpoint first derivatives are prescribed. A clamped cubic spline interpolant additionally matches prescribed values at its spline knots. Distinct spline knots, arbitrary nodal values and arbitrary endpoint slopes determine one such interpolant. The minimum roughness property of a clamped cubic spline proves uniqueness. Unlike the natural cubic spline, this construction prescribes endpoint slopes rather than zero endpoint second derivatives.
Divided difference table 2026-10-18
A divided difference table arranges divided differences by starting interpolation node and order . Its base column is ; every later entry uses two neighboring entries from the previous column:
The denominator spans all interpolation nodes of that entry, even though the numerator uses adjacent table entries. The interpolation nodes must be distinct; they need not be equally spaced or sorted.[ref]
Take the polynomial at the interpolation nodes , giving values . Its divided difference table is
The first divided differences are , , and . The second divided differences use the wider spans: and . The third divided difference is . Reading the top row gives the Newton polynomial coefficients , rather than all the entries in any one column.
The resulting Newton polynomial grows through four partial interpolants:
At , misses by ; the correction supplies exactly there and vanishes at the earlier interpolation nodes . At , misses by ; the correction supplies exactly there and vanishes at all three earlier interpolation nodes. Each added term therefore preserves the previous agreements while satisfying the next one.
Figure 1.
Divided-difference triangle and successive Newton interpolants for the constructed polynomial x cubed minus 2x plus 1
. Details.
For interpolation nodes, the triangle contains recurrence steps. Once the top row is known, nested evaluation of the Newton polynomial uses only multiplications and additions per argument. The triangle organizes the work; the factors explain why the construction works.
Equally spaced interpolation Created 2026-09-24 Updated 2026-11-05
Equally spaced interpolation constructs an interpolant from data at nodes . It is convenient when measurements or a computational grid already have uniform spacing. The degree-at-most- polynomial interpolant through distinct nodes is unique, but uniqueness does not imply good approximation as increases.
For on , high-degree polynomial interpolation at equally spaced nodes exhibits Runge's phenomenon near the endpoints. Chebyshev nodes reduce that endpoint instability by clustering there; piecewise spline interpolation offers another alternative. The data locations and the degree must therefore be treated as approximation choices, rather than assuming that more uniformly spaced data always improve a global polynomial.
Interpolation Created 2026-10-14 Updated 2026-10-18
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 . Then
are 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 are
At , 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.
Figure 1.
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 imply
so 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] [ref]
Let be a clamped cubic spline interpolant and let have the same values at all spline knots and the same endpoint slopes. For , or more generally an absolutely continuous function with square-integrable second derivative, the exact displayed identity holds. In particular uniquely minimizes the second derivative roughness penalty among these competitors.
To prove the identity, put . On each knot interval, two applications of integration by parts give , since the cubic piece has zero fourth derivative. Terms containing vanish at the spline knots; terms containing cancel at interior spline knots because and are continuous. The endpoint terms vanish because is zero there. Thus , and expanding proves the identity. Equality makes , so is an affine function; a prescribed endpoint value and slope force .
If also matches the first derivative of at every spline knot, both and vanish at the ends of each knot interval. For a sufficiently differentiable , integration by parts separately on that interval gives the stronger local identity .
Reordering the interpolation nodes changes the successive subsets used for the divided differences and the factors of the Newton polynomial. The final interpolation polynomial remains unchanged in exact arithmetic. For , reversing gives and values . The successive divided difference columns are now
For example, the first second divided difference is . The top row becomes , giving
The earlier partial interpolants differ because they fit different subsets: fits , whereas fits . The highest divided difference is invariant because both complete top rows finish with the same set of four interpolation nodes; this is symmetry of divided differences.
Figure 1.
Reversing the interpolation nodes changes the Newton construction but gives the same final polynomial
. Details.
This distinction is useful when checking a divided difference table: permuting all the interpolation nodes must preserve its final divided difference, even though the intermediate entries change. It also explains why data can be appended in their arrival order. In floating-point arithmetic, the subtractions and divisions may accumulate different rounding errors in different orders; exact invariance describes the mathematical polynomial, rather than guaranteeing bit-for-bit equality of numerical results.
Numerical integration Created 2026-10-03 Updated 2026-10-18
Numerical integration approximates a definite integral using finitely many sampled function values. For an integrand on a finite interval , , a quadrature rule has the form
The 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]
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]
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 give
In 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.
Figure 1.
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.
Figure 2.
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]
Solutions to all three questions of the finite element methods for partial differential equations course of the University of Oxford Part C examination, sat on 6 June 2023. Source: original released PDF, bundle pages 325–328; paper pages 1–4. The original numbering is retained; question statements are not reproduced.
All function spaces and bilinear forms below are real. Write for the L2 inner product, and for the first-order Sobolev norm; the notation applies componentwise to vector fields. We use the Poincaré inequality explicitly allowed by the paper. On an arbitrary unbounded Lipschitz domain that inequality would need an additional assumption. The convergence assertions use the usual full conforming finite element spaces, or vector subspaces containing the indicated interpolants; merely being a vector subspace of the stated piecewise polynomial functions is insufficient. Part 1(d) explains the intended meaning of positivity for its nonsymmetric matrix.
Use the continuous piecewise-linear nodal interpolants and on the shape-regular mesh. Since in two dimensions, the Sobolev embedding theorem supplies continuous representatives, so the nodal values are well-defined. Their zero Sobolev traces imply zero boundary nodal values. Hence and for the usual full conforming finite element spaces.
The permitted finite element interpolation estimates give constants determined by the shape regularity and , independent of , such that
Substitute these choices in the best approximation bound from part (b):
For fixed , this constant is independent of . A shape-regular mesh suffices; no uniformity of the individual element sizes is needed, since is their maximum diameter.
The inclusion of these interpolants is an essential assumption. If the wording “consist of” were read as permitting arbitrary smaller vector subspaces, taking for every would prevent the claimed convergence for a nonzero solution. The full conforming finite element space interpretation is also needed for the dimension assertion in part (d).
Let . Subtracting the two weak formulations gives Galerkin orthogonality, for every . Since is the first-order Sobolev inner product, for every we have
If , division proves ; if , the same conclusion is immediate. Thus the Céa lemma has constant one in this case.
Use the quadratic nodal interpolant . The assumed regularity gives continuous nodal values by the Sobolev embedding theorem, and its zero Sobolev trace makes the nodal values on zero. The quadratic Lagrange triangle construction then gives . The allowed quadratic finite element interpolation estimate on a shape-regular mesh is
where depends on the fixed triangle and shape regularity, but not on . Therefore
This step uses the inclusion explicitly permitted by the question. Arbitrary smaller vector subspaces without the same approximation property would not give this rate.
Put . The Aubin–Nitsche duality argument uses the dual weak formulation
By symmetry of and the Lax-Milgram theorem, this has a unique solution. Taking and using the Cauchy-Schwarz inequality shows
We must justify elliptic regularity for this dual problem from the result actually supplied. That result concerns , whereas the dual equation is . Put . The given result produces with , zero normal derivative on , and
By Green's first identity, for every ,
Set . Then . On the connected triangle, a Sobolev function with zero weak gradient is constant, and its zero Sobolev trace on forces that constant to be zero. Hence , proving
This proves the needed reaction-diffusion regularity from Laplacian regularity without assuming the dual solution already has second derivatives in the L2 space.
Only regularity is available for . Use its continuous piecewise-linear interpolant , which belongs to the quadratic conforming finite element space because . It has the same zero Dirichlet boundary condition and satisfies the finite element interpolation estimate
Thus no assumption on the dual solution is necessary. Taking in the dual weak formulation and using Galerkin orthogonality gives
If , the desired bound holds. Otherwise divide by and use part (d):
All constants depend only on the fixed triangle and shape regularity. The acute-angle assumption enters through the supplied mixed-boundary elliptic regularity result.
Write and for the quantities computed from the perturbed second sample. The endpoint linear interpolation and its derivative are
Compare them on their interpolation interval , with fixed . Put , . The Taylor series of the sine gives, uniformly in ,
Here the second equality compares with . More generally, the exact derivative is and
The input perturbation itself changes the value interpolant by exactly , and changes its derivative by exactly . Thus
For fixed nonzero , the value approximation has a bounded noise floor: its maximum error approaches , and at that error is exactly . It does not converge uniformly to the exact values as . However, it does not amplify the absolute sample perturbation on . The derivative error instead grows without bound like .
With exact samples, , both approximations do converge on the shrinking interval: the value error is for this particular sine, and the derivative error is . With step-dependent noise, value convergence requires , whereas derivative convergence requires the stronger , where denotes little o notation.
This is noise amplification by differentiation of a linear interpolant. Value interpolation has an absolute perturbation bound independent of on the sampled interval. Numerical differentiation has a perturbation factor , expressing the ill-posedness of numerical differentiation from values with fixed absolute uncertainty. The amplification follows from the mathematical data map even in exact arithmetic; it is distinct from additional roundoff error in a particular implementation. For fixed outside , the operation becomes extrapolation, and the value perturbation can also diverge.
Figure 1.
Fixed sample noise gives a bounded value-error floor while differentiation amplifies it as
. Details.
The product rule applied at the interpolation node gives
Thus Lagrange interpolation gives, away from the interpolation nodes,
Apply the same Lagrange interpolation formula to the constant polynomial one. Since its interpolant is itself,
Dividing the preceding two identities proves the barycentric interpolation formula
The denominator is exactly , so is nonzero away from the interpolation nodes. At , multiply numerator and denominator by and take the limit: their values tend to and , respectively. The removable singularity therefore has value ; in numerical evaluation return the stored value directly at an interpolation node.
A Newton-Cotes quadrature integrates a Lagrange interpolation polynomial at equally spaced quadrature nodes. For the Newton-Cotes closed quadrature, the endpoints are included: write , , and use
These quadrature weights depend on the quadrature nodes, not on the sampled function. Open Newton-Cotes quadrature uses equally spaced interior quadrature nodes instead.
For Simpson's rule, use and set , so . The Lagrange cardinal polynomials become
Integrating these quadratic polynomials gives , , , respectively. The change of variable contributes , so
Its degree of precision of a quadrature rule is three: it integrates every quadratic polynomial by construction, and also the cubic nodal polynomial , whose integral vanishes by odd symmetry about . Any cubic polynomial differs from its quadratic polynomial interpolant by a constant multiple of this nodal polynomial.