GLOBAL KNOWLEDGE ARK

Mathematics · Article

Interpolation and approximation

Construct and assess polynomial, barycentric, minimax, least-squares, Hermite, spline, rational and tensor approximations with explicit error, conditioning and scientific assumptions.

Back to Mathematics

After reading, you can

  • Specify interpolation, uniform approximation and least squares as different problems, with an explicit domain, data model, norm and physical units.
  • Derive polynomial interpolation in Lagrange, Newton and barycentric form, and separate truncation, data, weight and arithmetic errors.
  • Prove the remainder, Lebesgue and Chebyshev estimates with their actual smoothness, node and analyticity assumptions, including aliasing and finite-sample limitations.
  • Establish best uniform approximation through existence and alternation, and compare weighted minimax and orthogonal least-squares projections.
  • Construct linear pieces, Hermite polynomials, natural cubic splines and smoothing splines, explaining endpoint conditions, derivative units, noise and shape limitations.
  • Assess rational, differentiated and tensor approximations using problem-specific error bounds and a scientific validation question distinct from fitting the observations.
01

From sampled values to a justified approximation

A table of measurements does not determine a unique continuous law between its entries. To construct an approximation, specify the admissible functions, the region where an answer is needed and what counts as error. Interpolation asks for exact agreement with selected data; uniform approximation controls the largest discrepancy on a domain; least squares measures an aggregate discrepancy. A smooth interpolant can fit every sample and still miss an unsampled feature or amplify uncertainty. These distinctions matter before a formula or a numerical routine is chosen.

We begin with polynomial interpolation and derive its representations, error formulas and conditioning. Chebyshev polynomials then connect node selection, oscillation, discrete cosine coefficients and analytic convergence. The advanced development proves uniform best-approximation and alternation results, constructs Bernstein approximation, and compares uniform and least-squares targets. Local pieces, Hermite data, natural and smoothing splines provide alternatives with different hypotheses and limitations. Every estimate names its domain, smoothness, norm and data assumptions; finite examples illustrate theorems without replacing them.

In computing and AI, these methods appear in surrogate models, sampled nonlinearities and data fitting. In physics, a reconstructed field may be differentiated or integrated, so a small value error need not be the relevant guarantee. In engineering, calibration tables can be queried outside their measured range or required to respect positivity, conservation or a physical operating region. We therefore examine extrapolation, derivative sensitivity, rational poles and higher-dimensional cost alongside approximation accuracy. The conditioning lesson supplies the distinction between a sensitive problem and an unstable computation; the root-finding lesson supplies a parallel lesson about certificates and honest stopping.

02

A target, samples and a norm

Suppose measurements y_i are associated with sample locations x_i, and the quantity of interest is a function f on a stated domain. Interpolation imposes p(x_i)=y_i exactly. Uniform approximation instead asks for a small supremum of |f-p| over the domain, and least squares minimizes a specified sum or integral of squared discrepancies. A polynomial satisfying the sample constraints need not minimize either error, and a least-squares fit generally need not pass through every sample.

The distinction matters even in exact arithmetic. Noisy values may be undesirable to interpolate, while exact boundary data can be constraints that a fit must respect. A physical response table may require positivity, monotonicity or a permitted operating interval in addition to a small numerical discrepancy. A regression model needs a statistical assumption before a fitted curve or residual acquires a probabilistic interpretation; the interpolation equations alone supply none.

We write P_n for the real polynomials of degree at most n and use the uniform norm ||g||_infinity=max over [a, b] of |g(x)| when g is continuous on a compact interval. Integration weights, discrete data weights and derivative norms are introduced separately. The abscissa has its own units: a kth derivative has output units divided by input units to the kth power, and interval factors in an error bound must restore the output units.

A complete problem statement therefore names the domain, samples, exact or noisy data model, approximation class, norm and any constraints. It also distinguishes interpolation inside the sampling interval from extrapolation beyond it. This lesson first establishes identities and approximation estimates in exact arithmetic, then shows which data and arithmetic assumptions would be needed to turn them into a scientific certificate. For the distinction between interpolation and approximation and their standard settings, see [Digital Library of Mathematical Functions, Section 3.3: Interpolation](https://dlmf.nist.gov/3.3); [Digital Library of Mathematical Functions, Section 3.11: Approximation Techniques](https://dlmf.nist.gov/3.11); the domain, norm and units are part of the particular problem specified here.

03

Distinct nodes and polynomial unisolvence

Let x_0, ..., x_n be distinct real numbers. If two members p, q of P_n agree at every node, their difference has n+1 distinct zeros. A nonzero polynomial of degree at most n cannot have that many distinct zeros, so p=q. This proves uniqueness before choosing a particular basis or solving a numerical linear system.

Existence follows constructively by setting l_i(x)=product over j not equal to i of (x-x_j)/(x_i-x_j). Every denominator is nonzero by distinctness, and l_i(x_j) is one when j=i and zero otherwise. Thus p(x)=sum_i y_i l_i(x) has degree at most n and takes the prescribed values. Both existence and uniqueness are exact algebraic statements; they do not bound the rounding error of a chosen implementation.

In the monomial basis the coefficient equations use the Vandermonde matrix V_ij=x_i^j. Its determinant is product over i<j of (x_j-x_i): the determinant is alternating in the nodes, vanishes when two coincide, has the same total degree as that product, and has coefficient one on the appropriate leading monomial by determinant expansion. Distinctness therefore also proves invertibility. A small product, however, is not by itself a complete condition estimate because coordinates and scales matter.

Repeated value nodes do not automatically impose derivative information. Two requests for the same value at the same location are redundant, while two different values there are inconsistent. Hermite interpolation supplies a different problem by explicitly imposing values of derivatives, with their own multiplicities, smoothness and units. Treating duplicated floating-point locations as distinct constraints or silently dividing by their zero difference changes or breaks the original problem. For the standard distinct-node interpolation framework, see [Digital Library of Mathematical Functions, Section 3.3: Interpolation](https://dlmf.nist.gov/3.3); [Barycentric Lagrange Interpolation](https://people.maths.ox.ac.uk/trefethen/barycentric.pdf); the root-count argument above gives unisolvence and identifies the duplicated-node exception.

04

Lagrange cardinal polynomials and a projector

For the distinct nodes, the cardinal functions l_i satisfy l_i(x_j)=delta_ij. Define the interpolation operator I_n by I_n f=sum_i f(x_i)l_i. Its dependence on the sample values is linear, and the formula is valid for any function whose values at those nodes exist. Continuity is needed for later uniform-error results, not for constructing the finite polynomial.

If q belongs to P_n, the polynomial I_n q agrees with q at all nodes and hence equals q by unisolvence. In particular, I_n 1=1, so sum_i l_i(x)=1 for every x. The same reasoning reproduces x, x^2, ..., x^n. These identities explain why interpolation is a projector onto P_n: applying it again to its own output changes nothing.

For a data error vector delta y, the exact output error is sum_i delta y_i l_i(x). The signs and magnitudes of the cardinal functions, rather than only the maximum data error, therefore determine amplification. Although their sum is one, individual l_i can be negative or much larger than one. The partition identity alone does not make a global polynomial interpolant a positive average.

A change of polynomial basis represents the same unique exact polynomial. It can change coefficient scales, intermediate cancellation, computational cost and numerical sensitivity, which are algorithmic questions to analyze separately. Preserving the original node and data model prevents a convenient basis choice from being mistaken for an improvement in the conditioning of the underlying interpolation problem. For the cardinal representation, see [Digital Library of Mathematical Functions, Section 3.3: Interpolation](https://dlmf.nist.gov/3.3); [Barycentric Lagrange Interpolation](https://people.maths.ox.ac.uk/trefethen/barycentric.pdf); its projector and partition identities follow directly from the preceding uniqueness proof.

05

Newton form and divided differences

Define f[x_i]=f(x_i) and, for distinct ordered nodes, f[x_0, ..., x_k]=(f[x_1, ..., x_k]-f[x_0, ..., x_(k-1)])/(x_k-x_0). The brackets denote divided differences, not ordinary derivatives. The Newton polynomial is p_n(x)=f[x_0]+sum from k=1 to n of f[x_0, ..., x_k] product from j=0 to k-1 of (x-x_j). It can be evaluated by nesting the factors rather than expanding monomials.

To justify the coefficients, first observe that the degree-k interpolant through x_0, ..., x_k has leading coefficient f[x_0, ..., x_k]. Inductively, combine the shifted degree-(k-1) interpolants as ((x-x_0)p_(1..k)(x)-(x-x_k)p_(0..k-1)(x))/(x_k-x_0). At every node this expression has the required value, and its leading coefficient obeys precisely the divided-difference recursion. The assertion begins at k=0 with the single function value.

The difference between successive interpolants p_k-p_(k-1) vanishes at x_0, ..., x_(k-1), so it is a constant times their nodal product. Its leading coefficient is the kth divided difference just derived. Summing these increments proves the Newton form. Comparing the leading coefficient with the Lagrange form also gives f[x_0, ..., x_k]=sum_i f(x_i)/product_(j not equal to i)(x_i-x_j). This expression proves symmetry in the distinct nodes despite the ordered recursion.

The evaluated point is distinct from the supplied nodesThree nonuniform nodes; The orange points are the data nodes. The green point is found by evaluating the completed polynomial and is not one of the declared samples.The evaluated point is distinct from the supplied nodes0.314-0.63.5The quadratic interpolantnodenodenodeData nodesP(2)=7Queried pointPhysical x and value coordinates
The orange points are the data nodes. The green point is found by evaluating the completed polynomial and is not one of the declared samples.

In the first column, adjacent differences divide by adjacent node widths. The second divided difference divides the change between those first differences by the full span. Start the Newton series with the first entry of each column. Distinct nodes guarantee uniqueness within degree at most two, and a zero second coefficient removes the quadratic term.

Exact polynomial certificate
QuantityExact result
First divided differences2, 5
Second divided difference1
Newton form1+2x+x(x−1)
Monomial formx²+x+1
Actual degree2
Reevaluation at nodes1, 3, 13
Queried value7
Exact inputs and supporting calculations
Declared inputs
ParameterValue
nodes[0,1,3]
values[1,3,13]
x2
Complete triangular divided differences
NodeValueFirst differenceSecond difference
0121
135
313

Symmetry is an exact-value property, not a statement that all floating-point evaluation paths are equivalent. Close node differences, cancellation in the table and poorly scaled coefficients can make different orderings behave differently. Adding a node extends a Newton representation conveniently, but the new interpolant and its data amplification still need their own error analysis. Confluent limits are introduced only with explicit derivative information. For the divided-difference and Newton formulas, see [Digital Library of Mathematical Functions, Section 3.3: Interpolation](https://dlmf.nist.gov/3.3); [Barycentric Lagrange Interpolation](https://people.maths.ox.ac.uk/trefethen/barycentric.pdf); symmetry for a fixed node set is distinguished above from order-dependent Newton prefixes.

06

A mean-value identity for divided differences

Take n+1 distinct real nodes in [a, b] and a real function f in C^n([a, b]), with n at least one. Let p_n be their interpolating polynomial. The function f-p_n has n+1 distinct zeros, so n repeated applications of Rolle's theorem give a point xi between the extreme nodes where (f-p_n)^(n)(xi)=0. Because p_n^(n) is n! times its leading coefficient, f[x_0, ..., x_n]=f^(n)(xi)/n!.

This is an existence statement for an intermediate point, not a formula for locating xi or evaluating an unknown derivative. It gives |f[x_0, ..., x_n]|<=max_[a, b]|f^(n)|/n! when a valid derivative bound is known. The derivative hypothesis and interval must cover all the nodes. For n=0 the corresponding identity is simply f[x_0]=f(x_0).

The real-valued hypothesis matters to the single-point conclusion. For the complex-valued function f(t)=exp(i t) at real nodes 0 and 2 pi, the first divided difference is zero, but f'(t)=i exp(i t) never vanishes. There is no real intermediate point giving that zero derivative. Componentwise real mean-value arguments or norm inequalities can remain useful, but they do not create one common complex mean-value point.

When nodes coalesce, derivative limits can sometimes be taken under the appropriate smoothness, leading to confluent divided differences and Hermite conditions. The displayed distinct-node formula itself should not be evaluated by inserting a zero denominator. An error bound derived from a derivative supremum is likewise only as reliable as the evidence for that supremum over the entire stated interval. For the real divided-difference mean-value identity, see [Digital Library of Mathematical Functions, Section 3.3: Interpolation](https://dlmf.nist.gov/3.3); the complex counterexample above explains why the real Rolle argument has its stated scope.

07

The interpolation remainder

Let f be real and C^(n+1) on an interval containing the distinct nodes and the evaluation point x. Write omega_(n+1)(t)=product from i=0 to n of (t-x_i), and let p_n interpolate f at those nodes. If x is not a node, choose C=(f(x)-p_n(x))/omega_(n+1)(x). The auxiliary function g(t)=f(t)-p_n(t)-C omega_(n+1)(t) has the n+1 node zeros and the additional distinct zero x.

Repeated Rolle application n+1 times gives g^(n+1)(xi_x)=0 at an intermediate point. The polynomial p_n has zero derivative of that order, while the monic nodal product has derivative (n+1)!. Therefore f(x)-p_n(x)=f^(n+1)(xi_x) omega_(n+1)(x)/(n+1)!. At a node the error is zero directly; no division by the nodal product is needed there.

Consequently, if |f^(n+1)|<=M_(n+1) throughout the enclosing interval, the absolute error at x is at most M_(n+1)|omega_(n+1)(x)|/(n+1)!. Taking the maximum of the product gives a uniform bound on a specified evaluation interval. The factors have input units and the derivative has inverse input units, so the product recovers the units of f. A bound for an interval excluding an extrapolation point cannot justify an error estimate at that point.

The theorem does not promise that the bound decreases with n: higher derivatives and the nodal product both change. It also assumes exact sample values and an exact interpolating polynomial. A noisy-data or arithmetic certificate must add its own amplification terms instead of attributing all observed error to this truncation formula. The intermediate point generally depends on x, n and the function. For the interpolation remainder, see [Digital Library of Mathematical Functions, Section 3.3: Interpolation](https://dlmf.nist.gov/3.3); the derivation above includes the enclosing interval and the separate evaluation-at-a-node case.

08

A kernel form of the error

An integral error representation is useful when a pointwise intermediate derivative is inconvenient. Here the linear functional is the finite evaluation combination E_x(g)=g(x)-sum_i l_i(x)g(x_i). It annihilates every member of P_n. Fix an integer m with 1<=m<=n+1 and suppose f is C^m on [a, b], containing x and all nodes. Taylor's integral formula about a writes f(t) as its degree-(m-1) Taylor polynomial plus the integral of (t-s)_+^(m-1) f^(m)(s)/(m-1)! from a to b.

The integral Taylor identity here can be obtained directly from the fundamental theorem of calculus. For m=1, the integral from a to t of f prime(s) is f(t)-f(a). For m>=2, integrate R_m(t)=integral from a to t of (t-s)^(m-1) f^(m)(s)/(m-1)! ds by parts once: R_m(t)=R_(m-1)(t)-f^(m-1)(a)(t-a)^(m-1)/(m-1)!. Repeating gives R_m(t)=f(t)-sum from j=0 to m-1 of f^(j)(a)(t-a)^j/j!. Extending the integral to b with the positive-part kernel recovers the representation above for every t in [a,b]. The C^m assumption supplies all required continuity and integrations.

For m=1, the zeroth truncated power means the indicator of t>s; its value at equality is irrelevant to the integral. For m>=2 it is the ordinary positive-part power. Apply E_x to the Taylor representation. The polynomial part disappears, and the finite sum of evaluations can be interchanged with the integral. This yields E_x(f)=integral from a to b of K_x(s) f^(m)(s) ds, where K_x(s)=((x-s)_+^(m-1)-sum_i l_i(x)(x_i-s)_+^(m-1))/(m-1)!.

The absolute error is thus at most ||f^(m)||_infinity times integral |K_x(s)| ds. The absolute value belongs inside the kernel integral unless a sign property has actually been proved. Different kernels and derivative orders can give different useful bounds for the same interpolation functional. Neither a formally named kernel nor polynomial annihilation removes the need for the smoothness, integration domain and interchange hypotheses used to obtain this identity.

This derivation applies directly to the finite evaluation functional just defined; analogous general-functional statements require their own continuity assumptions. It also explains why a derivative bound can provide a rigorous certificate without identifying a particular xi. The kernel is part of an exact linear error identity, while uncertainty in samples or in computed weights remains a separate perturbation problem. For the surrounding interpolation framework, see [Digital Library of Mathematical Functions, Section 3.3: Interpolation](https://dlmf.nist.gov/3.3); the integral Taylor identity and kernel estimate above are derived here rather than attributed to an unread general kernel theorem.

09

Barycentric formulas and removable node singularities

For distinct nodes define w_i=1/product_(j not equal to i)(x_i-x_j). Off the nodes, l_i(x)=omega_(n+1)(x) w_i/(x-x_i). Substitution into the Lagrange formula gives the first barycentric identity p_n(x)=omega_(n+1)(x) sum_i w_i y_i/(x-x_i). This is an algebraic representation of the polynomial, with the displayed exact normalization of the weights.

Since the cardinal functions sum to one, sum_i w_i/(x-x_i)=1/omega_(n+1)(x). The denominator is nonzero at every off-node point in exact arithmetic. Dividing the first identity by the partition identity produces the second barycentric formula p_n(x)=(sum_i w_i y_i/(x-x_i))/(sum_i w_i/(x-x_i)). A common nonzero scaling of all weights cancels in this quotient; the first formula would instead need its normalization adjusted.

At x=x_i the rational expression contains singular terms even though its polynomial continuation is y_i. Return that node value directly when the evaluation point equals the node. Declaring a merely nearby point identical to a node is a separate approximation policy and needs a stated tolerance and error justification. Duplicate nodes, overflowed weight products or a numerically cancelled denominator do not satisfy the exact formula's assumptions.

The second formula avoids repeatedly constructing the monomial coefficients, but an exact identity alone does not prove floating-point stability. Node placement, evaluation location, data cancellation, weight errors and arithmetic range can each matter. In particular, independently perturbed weights can define a rational function with an off-node pole even when the original exact quotient is a polynomial; the next error model quantifies the denominator margin. For the barycentric representations and cardinal identities, see [Digital Library of Mathematical Functions, Section 3.3: Interpolation](https://dlmf.nist.gov/3.3); [Barycentric Lagrange Interpolation](https://people.maths.ox.ac.uk/trefethen/barycentric.pdf); the node-return rule and nonzero denominator follow from the exact-weight polynomial identity used above.

10

Weight perturbations are a separate error model

Fix an off-node point x and the exact cardinal values l_i=l_i(x). Suppose only the barycentric weights change, to w_i(1+delta_i), with |delta_i|<=epsilon, while nodes and data remain exact. Divide the perturbed quotient by the exact denominator sum_i w_i/(x-x_i). The new denominator becomes D=1+sum_i l_i delta_i, and the new numerator is p(x)+sum_i l_i delta_i y_i.

Subtracting p(x) gives the exact identity p_tilde(x)-p(x)=(sum_i l_i delta_i (y_i-p(x)))/D. Let Lambda(x)=sum_i |l_i(x)|. If epsilon Lambda(x)<1, the triangle inequality gives |D|>=1-epsilon Lambda(x)>0. Consequently |p_tilde-p|<=epsilon sum_i |l_i||y_i-p(x)|/(1-epsilon Lambda(x)). This is an absolute output bound and does not divide by a possibly zero exact answer.

The sufficient margin also implies epsilon<1 because Lambda(x)>=1, so no individual weight is eliminated by a relative perturbation of size minus one. At a sample node the prescribed direct-return policy returns its exact data value; the displayed quotient analysis concerns off-node points. A common nonzero scaling of all weights leaves the quotient exactly unchanged, showing that the worst-case independent-weight bound need not be attained by linked perturbations.

If epsilon Lambda reaches one, the sufficient argument no longer supplies a denominator margin. This does not say every such perturbation creates a pole, but selected independent errors can do so even while preserving the signs of the individual weights. Finite arithmetic in the sums and errors in the node locations are additional models, not quantities already covered by this weight-only estimate. For the exact-weight barycentric framework, see [Digital Library of Mathematical Functions, Section 3.3: Interpolation](https://dlmf.nist.gov/3.3); [Barycentric Lagrange Interpolation](https://people.maths.ox.ac.uk/trefethen/barycentric.pdf); the relative-weight perturbation denominator and its error bound are derived separately above.

11

The Lebesgue function measures data amplification

For an exact interpolation operator define the pointwise Lebesgue function Lambda_n(x)=sum from i=0 to n of |l_i(x)| and its interval maximum Lambda_n. A data perturbation with max_i |delta y_i|<=epsilon changes the interpolant at x by at most epsilon Lambda_n(x). For a fixed real x, choose delta y_i=epsilon sign(l_i(x)), with any bounded choice when a cardinal value is zero. The resulting signed sum equals epsilon Lambda_n(x), proving the pointwise bound sharp.

Since sum_i l_i(x)=1, the triangle inequality gives Lambda_n(x)>=1. At a node it equals one. There is no requirement that it stay close to one between nodes, and it can be much larger outside their range. These are absolute data sensitivities in the chosen value units; a relative-output condition would also require a nonzero output and a stated input scale.

For continuous functions on [a, b], the operator inequality ||I_n f||_infinity<=Lambda_n ||f||_infinity follows by bounding each sampled value. Equality in the operator norm can be achieved: choose a point attaining the maximum of the continuous Lebesgue function and a continuous function whose node values have the required signs and whose norm is at most one. Piecewise linear joining of those bounded values provides such a function. Thus ||I_n||=Lambda_n.

The norm refers to exact interpolation from exact locations. Node errors alter the cardinal functions and can change the underlying data-to-answer map, while arithmetic errors depend on the evaluation algorithm. A low interpolation residual at the nodes is automatic and supplies no independent estimate of any of these between-node errors. For the Lebesgue function and data amplification, see [Barycentric Lagrange Interpolation](https://people.maths.ox.ac.uk/trefethen/barycentric.pdf); the continuous sign-interpolating construction above establishes sharpness of the operator norm.

12

Best approximation and interpolation error

Define E_n(f)=inf over q in P_n of ||f-q||_infinity on the specified interval. At this stage an infimum is enough; existence of a minimizing polynomial will be proved later. For any q in P_n, the projector identity gives f-I_n f=(f-q)-I_n(f-q). Taking uniform norms yields ||f-I_n f||<=||f-q||+Lambda_n ||f-q||.

Infimizing over q proves the Lebesgue inequality ||f-I_n f||_infinity<=(1+Lambda_n)E_n(f). It separates how well the function can be approximated by a degree-n polynomial from how much the chosen sample interpolation can amplify a discrepancy. The interpolant generally is not itself a best approximant; the inequality compares the two tasks rather than identifying them.

For a sequence of node sets and degrees, (1+Lambda_n)E_n(f) tending to zero is a sufficient convergence condition. Continuity alone does not give a rate in this expression, and knowing only that E_n(f) tends to zero is insufficient to conclude that this product does. Conversely, a nonvanishing upper bound does not prove divergence of the actual interpolation error. Both logical directions are important when interpreting a pessimistic derivative or norm estimate.

With independent value errors bounded by epsilon_n, an exact interpolant of noisy samples differs from I_n f by at most Lambda_n epsilon_n. Its total uniform discrepancy is therefore bounded by (1+Lambda_n)E_n(f)+Lambda_n epsilon_n, before accounting for arithmetic or node errors. Increasing degree can reduce the approximation term while worsening the data term; a degree choice needs both parts of the declared model. For the relation between interpolation sensitivity and best approximation, see [Barycentric Lagrange Interpolation](https://people.maths.ox.ac.uk/trefethen/barycentric.pdf); [Digital Library of Mathematical Functions, Section 3.11: Approximation Techniques](https://dlmf.nist.gov/3.11); the displayed inequality follows here by subtracting an arbitrary polynomial and using reproduction.

13

A finite Runge-type example and its limits

Consider f(x)=1/(1+25x^2) on [-1, 1] and the five equally spaced nodes -1, -1/2, 0, 1/2, 1. Symmetry and uniqueness make the degree-four interpolant even. Set p_4(x)=1+b x^2+a x^4. The node equations a+b=-25/26 and a/16+b/4=-25/29 give a=1250/377 and b=-3225/754. This exact polynomial fits all five data values.

At x=4/5, direct substitution gives p_4(4/5)=-143/377, while f(4/5)=1/17. Their difference is 2808/6409, larger than four tenths, and the interpolant is negative although the target is positive. The data residual is zero at every node. This concrete example therefore disproves a general claim that a low-degree global interpolant through accurate positive samples must preserve their range or be uniformly accurate between them.

The mechanism can also be inspected algebraically. Put omega_5(x)=x(x^2-1/4)(x^2-1). Multiplying the error by the denominator of f gives 1-(1+25x^2)p_4(x)=(-31250/377)x omega_5(x). The derivative-remainder theorem and this exact identity are compatible; neither replaces the data amplification or a domain-wide error analysis. The nearby complex poles explain why derivative or analyticity assumptions cannot be treated as degree-independent constants without checking them.

This is a finite Runge-type oscillation example. It is not, by itself, a proof that the complete sequence of equally spaced interpolants diverges as degree tends to infinity. An asymptotic statement needs a separate theorem or argument with its interval and limiting sequence specified. The actionable lesson already established here is to assess nodes, regularity, data error and the actual norm rather than relying on exact nodal fit. For Runge behavior and the interpolation formulas, see [Fundamentals of Numerical Computation: Stability of polynomial interpolation](https://fncbook.com/stability-1); [Digital Library of Mathematical Functions, Section 3.3: Interpolation](https://dlmf.nist.gov/3.3); the rational five-node example above proves a finite error statement and is not used as an asymptotic divergence proof.

14

Chebyshev polynomials and alternating extrema

Define T_0(x)=1 and T_1(x)=x. The trigonometric identity cos((k+1)theta)+cos((k-1)theta)=2 cos(theta)cos(k theta) shows that T_(k+1)(x)=2x T_k(x)-T_(k-1)(x) satisfies T_k(cos theta)=cos(k theta). Induction therefore constructs an ordinary polynomial of degree k, rather than a new function defined only by an inverse cosine.

For k>=1 the leading coefficient is 2^(k-1): it is one at k=1, and the recurrence doubles it at each subsequent degree. On [-1, 1], every x can be written cos(theta), so |T_k(x)|<=1. At x_j=cos(j pi/k), j=0, ..., k, its values alternate as (-1)^j. Its k roots are cos((2j+1)pi/(2k)), j=0, ..., k-1, and are distinct and interior.

The trigonometric representation also reveals that the roots cluster near the endpoints when viewed in x, because equally spaced angles are compressed by the cosine map. This distribution is connected to a uniform nodal-product optimization proved next. It should not be confused with a statistical sampling distribution or a guarantee that every function and noise model is best handled by these nodes.

Outside [-1, 1] the same polynomial need not remain bounded by one. For x=cosh(t)>=1, the recurrence yields T_k(x)=cosh(k t), and parity handles x<=-1. Thus excellent in-interval properties do not confer a harmless extrapolation. The interval mapping and the evaluation domain must remain part of every bound. For Chebyshev polynomials and their approximation role, see [Digital Library of Mathematical Functions, Section 3.11: Approximation Techniques](https://dlmf.nist.gov/3.11); [Fundamentals of Numerical Computation: Orthogonal polynomials](https://fncbook.com/orthogonal/); the recurrence, leading coefficient and extrema used here have been derived explicitly.

15

The smallest monic nodal product

Let N>=1 and C_N(x)=2^(1-N)T_N(x). This polynomial is monic of degree N and has uniform norm c=2^(1-N). Arrange its N+1 alternating extrema increasingly as t_j=cos((N-j)pi/N), j=0, ..., N. Then C_N(t_j)=c(-1)^(N-j). If another monic polynomial had smaller norm, subtracting it from C_N would force at least N sign-changing zeros despite a degree at most N-1, already proving minimality.

A leading-coefficient identity resolves uniqueness without assuming strict inequalities. For every polynomial r of degree at most N, Lagrange interpolation at these N+1 extrema gives the x^N coefficient as sum_j r(t_j)/d_j, where d_j=product_(k not equal to j)(t_j-t_k). Since the extrema are increasingly ordered, sign(d_j)=(-1)^(N-j), exactly the sign of C_N(t_j).

Applying the identity to C_N yields 1=c sum_j 1/|d_j|. For any monic r, 1=sum_j r(t_j)/d_j<=||r||_infinity sum_j 1/|d_j|, so ||r||>=c. If equality holds, every summand must attain its individual upper bound: r(t_j)=c sign(d_j) at all N+1 extrema. Unisolvence then forces r=C_N. This proves both the minimum value and its unique monic optimizer.

Every monic nodal product from N real nodes is a monic degree-N polynomial, while C_N has N distinct real roots in the interval. Hence those Chebyshev roots achieve the nodal-product minimum. The conclusion concerns the unweighted uniform norm on the fixed interval and a monic leading coefficient; a different weight, interval, endpoint constraint or approximation objective requires its own analysis. For the alternation framework behind minimax approximation, see [Digital Library of Mathematical Functions, Section 3.11: Approximation Techniques](https://dlmf.nist.gov/3.11); the signed leading-coefficient argument above also treats equality in this monic extremal problem.

16

Chebyshev nodes and interval scaling

Use N=n+1 roots of T_N on [-1, 1]. Their monic nodal product is 2^(1-N)T_N, so its uniform norm is 2^(1-N)=2^(-n). If |f^(N)|<=M_N over the interval, the real interpolation remainder gives ||f-I_n f||_infinity<=M_N 2^(1-N)/N!. This is a derivative-based bound, not a claim that M_N stays bounded when N grows.

For [a, b] with b>a, put h=(b-a)/2 and c=(a+b)/2 and map each root r_i to x_i=c+h r_i. The monic product in the physical x coordinate is h^N 2^(1-N)T_N((x-c)/h), with norm h^N 2^(1-N). The corresponding bound is M_N h^N 2^(1-N)/N!, where the derivative is taken with respect to x. Forgetting h^N would give both the wrong magnitude and the wrong units.

The minimax monic theorem means these nodes minimize the maximum nodal-product factor among real N-node choices on the interval. The actual error also contains the function-dependent derivative at an intermediate point, so this does not prove that they minimize every individual function's actual error. A constant or any degree-n polynomial is reproduced at all distinct node sets, illustrating why the distinction is necessary.

The nodal roots and the alternating extrema are different pointsFour nodes on [2,6]; The orange nodes lie at zeros, whereas the green extrema attain ±2. The endpoints belong to the extremal set. The derivative error bound is conditional on real f∈C^4 on the physical interval.The nodal roots and the alternating extrema are different points-2.7602.91.56.5Physical monic productInterpolation rootsmaxminmaxminmaxAlternating extremaPhysical x · monic nodal product
The orange nodes lie at zeros, whereas the green extrema attain ±2. The endpoints belong to the extremal set. The derivative error bound is conditional on real f∈C^4 on the physical interval.

The reference T_N has leading coefficient 2^(N−1), and the composition with the physical coordinate divides its leading term by h^N. The monic scaling is h^N/2^(N−1). Alternation proves this minimum nodal-factor norm on the interval. The derivative remainder gives a conditional interpolation bound, not a measured error for an unspecified target.

Exact mapped Chebyshev data
QuantityExact result
Reference variablet=(x−4)/2
Reference T_N8t⁴−8t²+1
Physical monic product(x−4)⁴−4(x−4)²+2
Nodes in increasing order4−√(2+√2), 4−√(2−√2), 4+√(2−√2), 4+√(2+√2)
Uniform monic norm2
Bound coefficient multiplying M_41/12
Interpolant maximum degree3
Smoothness assumptionFor real f∈C^4([a,b]), M_4 bounds |f^(4)| throughout the physical x interval.
Exact inputs and supporting calculations
Declared inputs
ParameterValue
degree4
a2
b6

Including both endpoints, as in a Chebyshev-extrema grid, is a different constraint and a useful but different node family. No endpoint condition should be silently discarded to obtain the root-grid theorem. Data amplification, derivative accuracy, shape constraints and noisy observations also require criteria beyond the nodal-product factor. For Chebyshev interpolation and approximation context, see [Digital Library of Mathematical Functions, Section 3.3: Interpolation](https://dlmf.nist.gov/3.3); [Digital Library of Mathematical Functions, Section 3.11: Approximation Techniques](https://dlmf.nist.gov/3.11); the interval-scaled nodal-product bound above is distinct from a claim that the actual error is always minimal.

17

Discrete cosine coefficients and aliasing

Let theta_j=(j+1/2)pi/N and x_j=cos(theta_j), j=0, ..., N-1. A finite geometric sum shows sum_j cos(m theta_j)=0 for 1<=m<=2N-1. For even m the complex geometric numerator is zero; for odd m its sum is purely imaginary, so its real part is zero. For m=0 the sum is N. These identities hold in exact arithmetic for the stated angular grid.

The product-to-sum identity then makes the sampled vectors 1, cos(theta_j), ..., cos((N-1)theta_j) orthogonal: the constant vector has squared norm N, and each nonconstant vector has squared norm N/2. Therefore the unique interpolant p=sum from k=0 to N-1 of c_k T_k has c_0=(1/N)sum_j y_j and c_k=(2/N)sum_j y_j cos(k theta_j) for k>=1. These are the conventions used here; other cosine-transform normalizations move factors of two.

Orthogonality also yields (1/N)sum_j |y_j|^2=|c_0|^2+(1/2)sum_(k=1)^(N-1)|c_k|^2, with complex conjugation if the data are complex. This finite identity describes the sampled norm, not an unweighted integral norm of the continuous function. It cannot alone certify an unsampled oscillation or a continuous L2 error.

At the nodes, cos((2N-r)theta_j)=-cos(r theta_j) and cos(N theta_j)=0. Repeatedly reducing an integer mode by 2N and reflecting its sign shows that every sampled T_k aliases to a signed T_r with 0<=r<N, or to zero for the exceptional folded mode N. Thus a nonzero high-degree polynomial can produce lower-degree or zero sampled data. The aliasing identities are exact and will also bound analytic interpolation tails. For Chebyshev coefficient and discrete approximation context, see [Digital Library of Mathematical Functions, Section 3.11: Approximation Techniques](https://dlmf.nist.gov/3.11); the root-grid cosine identities above use different weights and a different constant-coefficient convention from endpoint-grid formulas.

18

Analytic approximation on an ellipse

For rho>1, the Bernstein ellipse is the image of |z|=rho under J(z)=(z+z^(-1))/2, together with its enclosed region when the filled ellipse is meant. Assume f is holomorphic on an open neighborhood of that closed filled ellipse and |f|<=M on its boundary. Then F(z)=f(J(z)) is holomorphic on an annulus containing rho^(-1)<=|z|<=rho and satisfies F(z)=F(1/z). The hypotheses concern an entire complex region, not a smooth-looking collection of real samples.

Use the Laurent expansion F(z)=sum over all integers k of a_k z^k. Uniqueness and the symmetry give a_(-k)=a_k. Cauchy's coefficient formula on |z|=rho yields |a_k|<=M rho^(-k) for k>=0. On the unit circle z=exp(i theta), the paired terms are a_k(z^k+z^(-k))=2a_k cos(k theta). Hence f(x)=c_0+sum_(k>=1)c_k T_k(x) on [-1, 1], with c_0=a_0 and c_k=2a_k.

The coefficient bounds are |c_0|<=M and |c_k|<=2M rho^(-k) for k>=1. They give absolute uniform convergence on the real interval because |T_k|<=1 there. The degree-n Chebyshev truncation q_n therefore satisfies ||f-q_n||_infinity<=sum_(k=n+1)^infinity |c_k|<=2M rho^(-n)/(rho-1). This is valid for complex-valued analytic f as well; it uses norm and contour estimates rather than a real mean-value point.

The Laurent and Cauchy theorems are explicit complex-analysis inputs. A certified M and a pole-free analytic neighborhood must come from the model or other evidence, not from the sampled interpolation residual. A nearby pole restricts usable ellipses, and choosing a larger rho can also enlarge M. The geometric expression is a rigorous bound under those hypotheses, not an unconditional convergence rate for every continuous or differentiable function. For Laurent coefficients and the Chebyshev approximation setting, see [Guide to Cultivating Complex Analysis: Working the Complex Field](https://raw.githubusercontent.com/jirilebl/ca/master/ca.tex); [Digital Library of Mathematical Functions, Section 3.11: Approximation Techniques](https://dlmf.nist.gov/3.11); the Joukowski substitution, coefficient normalization and explicit ellipse bound are derived above.

19

Analytic Chebyshev interpolation convergence

Let I_n use the N=n+1 roots of T_N. The discrete cosine identities imply that I_n T_k is T_k for k<N and, for every higher integer k, is a signed T_r with 0<=r<N or the zero polynomial. Indeed, reduce k by multiples of 2N using cos((2N+r)theta_j)=-cos(r theta_j), then reflect the remaining mode; the folded mode N vanishes at every node. Thus ||I_n T_k||_infinity<=1 for all k.

For f analytic on the preceding ellipse, its Chebyshev series is absolutely uniformly convergent. At fixed N the interpolation operator is a finite sum of evaluations and therefore passes through that convergent series. Every mode through degree n cancels in f-I_n f, leaving sum_(k=n+1)^infinity c_k(T_k-I_n T_k). Each remaining difference has uniform norm at most two.

Consequently ||f-I_n f||_infinity<=2 sum_(k=n+1)^infinity |c_k|<=4M rho^(-n)/(rho-1). The truncation bound has half this displayed constant, but truncation presupposes the actual expansion coefficients whereas interpolation uses the finite sampled data. Both estimates require the same analytic-region and M assumptions. They are upper bounds, not claims that either error always equals the bound or decreases monotonically at every consecutive degree.

This argument proves geometric convergence without estimating the full Lebesgue constant of the Chebyshev grid. It relies instead on exact modal aliasing and a summable coefficient tail. Noisy samples add their own Lebesgue-amplified errors, computed coefficient transforms add arithmetic errors, and extrapolation lies outside the interval norm used here. Those effects do not disappear merely because the exact analytic interpolation theorem is favorable. For Laurent-series and analytic interpolation context, see [Guide to Cultivating Complex Analysis: Working the Complex Field](https://raw.githubusercontent.com/jirilebl/ca/master/ca.tex); [Fundamentals of Numerical Computation: Stability of polynomial interpolation](https://fncbook.com/stability-1); [Digital Library of Mathematical Functions, Section 3.11: Approximation Techniques](https://dlmf.nist.gov/3.11); the aliasing argument above establishes the stated first-kind interpolation constant rather than importing a theorem for another grid.

20

Finite samples cannot exclude an unseen feature

Take any finite distinct sampling set in a nondegenerate interval and let omega(x) be its nodal product. Choose a point x_star in the interval that is not a sample. For any A>0 define g_A(x)=A omega(x)^2/omega(x_star)^2. This is a smooth polynomial, vanishes at every sample and equals A at x_star. The denominator is nonzero by the choice of x_star.

The functions f and f+g_A therefore generate identical exact samples but differ by A at x_star. A procedure using only those samples cannot distinguish them. In particular, zero interpolation residual cannot certify a uniformly small function error for the unrestricted class of smooth functions. The construction even uses entire polynomials, so analyticity without a quantitative region-and-bound restriction does not resolve the ambiguity.

This is an information limitation, separate from a numerical algorithm failing or a data file being inaccurate. Extra evidence can make certification possible: for example, a derivative bound, a bounded analytic extension, a proven bandwidth restriction, or additional scientifically justified shape constraints. Each changes the admissible function class and must be stated before using the corresponding theorem.

More samples reduce the ambiguity only relative to those assumptions; another finite nodal product still exists for another unrestricted finite set. Adaptive refinement and plots can reveal features and guide a computation, but a finite absence of observed features is not itself a proof that none remain. The required distinction is between sampled evidence, a model assumption and a domain-wide error certificate. For the interpolation and convergence setting, see [Digital Library of Mathematical Functions, Section 3.3: Interpolation](https://dlmf.nist.gov/3.3); [Fundamentals of Numerical Computation: Stability of polynomial interpolation](https://fncbook.com/stability-1); the invisible polynomial feature above is an explicit finite-information counterexample independent of a convergence theorem.

21

Constructive uniform approximation with Bernstein polynomials

For f continuous on [0, 1], define B_n f(x)=sum from k=0 to n of f(k/n) binomial(n, k)x^k(1-x)^(n-k), with n>=1. The nonnegative basis weights sum to one. For n>=2, the elementary identities k binomial(n, k)=n binomial(n-1, k-1) and k(k-1) binomial(n, k)=n(n-1) binomial(n-2, k-2), with out-of-range lower indices interpreted as zero, give their mean k/n equal to x and squared deviation sum equal to x(1-x)/n. For n=1, the two weights 1-x and x give mean x and squared deviation x(1-x) directly.

Let M=||f||_infinity and omega_f(delta)=sup of |f(s)-f(t)| over |s-t|<=delta in [0, 1]. In the approximation error sum, terms with |k/n-x|<=delta contribute at most omega_f(delta). The sum of weights outside that neighborhood is at most x(1-x)/(n delta^2)<=1/(4n delta^2), since every such squared deviation is at least delta^2. Their value discrepancy is at most 2M.

Thus ||B_n f-f||_infinity<=omega_f(delta)+M/(2n delta^2) for every positive delta. Choosing delta=n^(-1/4) makes the second term M/(2 sqrt(n)) and the first tend to zero by uniform continuity. This proves a constructive version of polynomial uniform approximation, without assuming an interpolating sequence converges. If f is Lipschitz with constant L, Cauchy-Schwarz applied to the nonnegative weights gives the sharper bound L sqrt(x(1-x)/n)<=L/(2 sqrt(n)).

The positive Bernstein formula differs from interpolationFour Bernoulli trials; Both functions agree at the endpoints, and the exact midpoint values are f=1/4 and B=5/16. The midpoint is an interior sample in this case and the approximant changes its supplied value.The positive Bernstein formula differs from interpolation-0.1301.18-0.141.15Target f=x²Bernstein approximantB−f at interior sample x=1/2Physical x and value coordinates
Both functions agree at the endpoints, and the exact midpoint values are f=1/4 and B=5/16. The midpoint is an interior sample in this case and the approximant changes its supplied value.

Let K have the binomial distribution at x. The approximation equals E[(K/N)²]. Combine the factorial moment E[K(K−1)]=N(N−1)x² and E[K]=Nx to produce the exact formula. The error is nonnegative and x(1−x) is at most 1/4.

Exact Bernstein quadratic identities
QuantityExact result
Degree parameter4
B_Nf3/4x²+1/4x
Signed difference B_Nf−fx(1−x)/4
Exact midpoint values1/4, 5/16
Maximum absolute error1/16 at 1/2
Interior sample witnessAt x=1/4, difference 3/64
Exact inputs and supporting calculations
Declared inputs
ParameterValue
n4

For f(x)=x^2, the same moment identity yields B_n f(x)=x^2+x(1-x)/n, showing that interior grid samples are generally not interpolated. Positivity makes Bernstein approximation preserve the data range, but it does not remove sampling error or supply an optimal approximation rate for every smoother function. The construction proves existence and a specific bound for its own operator, distinct from global Lagrange interpolation and least-squares fitting. For the Bernstein construction of uniform approximation, see [Weierstrass Approximation Theorem: Bernstein polynomials](https://tsoo-math.github.io/ucl2/bernstein.html); the moment calculation and modulus estimate above state the quantitative assumptions used here.

22

Existence of a best uniform polynomial

Let f be real and continuous on a compact interval [a, b] with b>a, and let n>=0. The infimum E=inf_(q in P_n)||f-q||_infinity is finite because q=0 is admissible. Choose a minimizing sequence q_k with ||f-q_k||<=E+1/k. Its uniform norms are bounded by ||f||+E+1<=2||f||+1.

Fix any n+1 distinct nodes in the interval. All vectors of values (q_k(x_0), ..., q_k(x_n)) lie in a bounded finite-dimensional box. Their coefficient vectors in the monomial basis are the image of those vectors under one fixed invertible Vandermonde matrix, and are therefore bounded. This is an existence argument with a fixed linear map, not a recommendation to compute approximants by an ill-conditioned monomial solve.

Bolzano-Weierstrass supplies a subsequence of coefficient vectors converging to those of a polynomial q_star in P_n. On a compact interval, convergence of its finitely many coefficients implies uniform polynomial convergence. The norm inequality | ||f-q_k||-||f-q_star|| |<=||q_k-q_star|| then gives ||f-q_star||=E. A best approximant exists.

Existence alone does not prove uniqueness, since the uniform norm is not strictly convex. The alternation theorem proved next supplies the special uniqueness property of the polynomial space on an interval. When E=0, f itself belongs to P_n and uniqueness is immediate; when E>0 the locations and signs of the maximum error provide the decisive structure. For the minimax approximation setting, see [Digital Library of Mathematical Functions, Section 3.11: Approximation Techniques](https://dlmf.nist.gov/3.11); the finite-dimensional compactness argument above proves existence for the continuous target on a compact interval.

23

Alternation proves optimality and uniqueness

Suppose p in P_n has E=||f-p||_infinity>0 and there are n+2 increasingly ordered points t_0, ..., t_(n+1) where f(t_j)-p(t_j)=sigma(-1)^j E, with sigma equal to one or minus one. For a polynomial q with strictly smaller uniform error, r=q-p would have the same alternating strict signs at these points. It would then have n+1 distinct zeros between them, contradicting degree at most n. This proves optimality.

To prove uniqueness against a non-strict competitor, suppose instead ||f-q||<=E. At a point with error +E, r(t_j)>=0; at a point with error -E, r(t_j)<=0. Let d_j=product_(k not equal to j)(t_j-t_k), using all n+2 points. The sign of d_j is (-1)^(n+1-j). The leading-coefficient identity for interpolation at these points gives sum_j r(t_j)/d_j=0 because r has no degree-(n+1) term.

All these summands have the same weak sign, since the allowed sign of r(t_j) alternates exactly as the denominator signs up to one common factor. Their sum can vanish only if every r(t_j)=0. A polynomial of degree at most n with n+2 distinct zeros is zero, so q=p. Thus alternation certifies the unique optimum, including competitors with the same error rather than only strictly better ones.

The use of E as the actual global error is essential: merely finding n+2 alternating errors of equal magnitude does not suffice if a larger error occurs elsewhere. Likewise, approximate equioscillation in a numerical plot is evidence to investigate, not an exact certificate without enclosure of the remaining domain and extrema. The exact-zero case remains the separate trivial reproducing-polynomial case. For the alternation characterization, see [Digital Library of Mathematical Functions, Section 3.11: Approximation Techniques](https://dlmf.nist.gov/3.11); the signed coefficient identity above handles weak signs and proves uniqueness as well as sufficiency.

24

Why a best approximant must alternate

Let p be a best degree-n approximant with E=||f-p||>0 and e=f-p. The extremal sets K_plus={x:e(x)=E} and K_minus={x:e(x)=-E} are compact and disjoint. When both are nonempty their distance is positive. Consequently, reading the extremal set from left to right produces finitely many alternating sign blocks; each change needs a gap of at least that positive separation. With only one sign there is one block.

If there are no n+2 alternating extremal points, the number B of those blocks is at most n+1. Choose one point in the open gap between each consecutive pair of blocks and form a polynomial q with those B-1 simple roots. Select its overall sign so q has the same sign as e on the first block; it then has that same matching property on every block. It has degree at most n and no zeros on the compact extremal set, so |q| has a positive minimum eta there.

By continuity, choose a neighborhood U of the extremal set where e and q keep matching signs, |e|>=E/2 and |q|>=eta/2. Its compact complement, if nonempty, satisfies |e|<=E-delta for some delta>0. Put Q=||q|| and take a sufficiently small positive t with tQ<E/2 and tQ<delta. On U, |e-tq|=|e|-t|q|<=E-t eta/2; on the complement, |e-tq|<=E-delta+tQ<E.

Thus p+tq would have smaller uniform error, a contradiction. Every positive-error best approximant must therefore have n+2 alternating extrema. Together with existence and the sufficiency/uniqueness proof this establishes the full real polynomial alternation theorem. The sign-block construction and compact gap argument explain the hypotheses rather than inferring necessity from a plotted pattern. For the alternation theorem, see [Digital Library of Mathematical Functions, Section 3.11: Approximation Techniques](https://dlmf.nist.gov/3.11); the separated extremal sets and sign-block perturbation above supply the necessity argument.

25

A convex function and its best affine approximant

Let f be continuous and convex on [a, b], b>a, and let L be the affine chord joining its endpoint values. Convexity means f(x)<=L(x). The chord gap d(x)=L(x)-f(x) is continuous, nonnegative and zero at both endpoints, so it attains a maximum D>=0.

If D=0, f=L everywhere and the exact affine function is the unique zero-error approximation. If D>0, at least one maximum-gap point c lies strictly inside the interval. Define p=L-D/2. Its error f-p=D/2-d(x) lies between -D/2 and +D/2 throughout the interval.

At a and b the error is +D/2, while at c it is -D/2. These three ordered alternating extrema certify by the degree-one alternation theorem that p is the unique best affine uniform approximant and its error is D/2. No differentiability or unique interior maximizer is needed. A derivative can help locate c when justified, but is not part of this existence and optimality argument.

For a concave function, reversing signs gives the corresponding upward shift of its chord. The result optimizes the unweighted uniform function error over affine polynomials, not a slope error, integral error or physically constrained fit. A different norm or a positivity constraint can change the optimum even when the same endpoint samples are used. For the general minimax framework, see [Digital Library of Mathematical Functions, Section 3.11: Approximation Techniques](https://dlmf.nist.gov/3.11); the shifted-chord construction above is a direct consequence of convexity and alternation, with the affine case stated separately.

26

Positive weighted minimax approximation

Let w be continuous and strictly positive on [a, b], and minimize ||w(f-p)||_infinity over p in P_n for real continuous f. Compactness gives constants 0<w_min<=w(x)<=w_max. A bounded weighted-error minimizing sequence has bounded polynomial values at any fixed n+1 distinct nodes, because |p(x_i)|<=|f(x_i)|+||w(f-p)||/w_min. The previous coefficient-compactness proof therefore establishes existence.

Suppose the weighted error e_w=w(f-p) has n+2 alternating extrema of magnitude E=||e_w||>0. Any competitor q with error at most E forces r=q-p to have the same weak signs at those points, since division by the positive w does not change signs. The same zero leading-coefficient sum used in the unweighted proof forces r to vanish at every alternating point, proving optimality and uniqueness.

For necessity, if there are too few alternating extremal sign blocks, construct the same degree-n polynomial q matching their signs. Positivity and continuity make wq uniformly separated from zero near the compact extremal set. A sufficiently small positive perturbation p+tq reduces the weighted error there, while the strict error gap on its complement absorbs the bounded perturbation. This contradicts optimality and proves the weighted alternation theorem.

A zero or sign-changing weight does not satisfy these assumptions, and the arguments require revision rather than automatic reuse. A positive weight may encode a varying admissible tolerance, so its units and the meaning of weighted error need stating. Weighted uniform fitting also differs from weighted least squares: a maximum tolerance violation and an average squared discrepancy can select different polynomials from identical data. For minimax approximation context, see [Digital Library of Mathematical Functions, Section 3.11: Approximation Techniques](https://dlmf.nist.gov/3.11); the positive continuous weight, compactness and weighted alternation arguments above are explicit extensions with their own hypotheses.

27

Least squares is an orthogonal projection

On [a, b], let w be continuous and positive and define the real inner product <g, h>_w=integral g(x)h(x)w(x) dx. For f with finite weighted L2 norm, seek p in P_n minimizing ||f-p||_w^2. In any basis phi_0, ..., phi_n, the Gram matrix G_ij=<phi_i, phi_j>_w is positive definite: for nonzero coefficients c, the polynomial sum c_i phi_i is nonzero on some open subinterval and its squared weighted integral is positive.

The finite system Gc=d with d_i=<f, phi_i>_w therefore has one solution. For its polynomial p, the residual is orthogonal to every q in P_n. Conversely, stationarity of the objective along p+tq gives the same equations by differentiating the exact quadratic in t. This is a finite-dimensional orthogonal projection, not an assumption about residual randomness.

If v is another polynomial in P_n, write f-v=(f-p)+(p-v). Orthogonality eliminates the cross term, giving ||f-v||_w^2=||f-p||_w^2+||p-v||_w^2. The second term is nonnegative and vanishes only when v=p, which proves unique global optimality. Choosing an orthogonal basis diagonalizes this exact Gram problem, though finite-arithmetic stability still needs separate attention.

Two norms select different best constant affine functionsA unit half-width; All three curves share the same physical coordinate and value axes. For the uniform optimum f−P alternates between +a²/2, −a²/2, +a²/2 at −a,0,a.Two norms select different best constant affine functions-0.1201.12-1.21.2Target x²Best continuous L² affineBest uniform affinePhysical x and value coordinates
All three curves share the same physical coordinate and value axes. For the uniform optimum f−P alternates between +a²/2, −a²/2, +a²/2 at −a,0,a.

For L² use orthogonality to the two basis functions 1 and x under unweighted integration. Symmetry makes the odd moment zero, and the constant is the average of x². For uniform error the midpoint and endpoint constraints force max error at least a²/2; the stated constant attains the bound and the three alternating extrema certify it.

Exact continuous and uniform errors
QuantityExact result
Best L² affine1/3 with slope zero
Best uniform affine1/2 with slope zero
Unweighted squared integral at L² optimum8/45
Unweighted squared integral at uniform optimum7/30
Max error at L² optimum2/3
Max error at uniform optimum1/2
Alternating residuals1/2, −1/2, 1/2
Exact inputs and supporting calculations
Declared inputs
ParameterValue
a1

The integral norm is distinct from a maximum norm and from a finite sample sum. Numerical quadrature used to approximate these integrals would define an additional approximation, and noisy samples would introduce a different observation model. A smaller integral error can coexist with a larger worst-case discrepancy; the desired scientific quantity determines which objective is appropriate. For continuous least squares and orthogonal projection, see [Fundamentals of Numerical Computation: Orthogonal polynomials](https://fncbook.com/orthogonal/); [Digital Library of Mathematical Functions, Section 3.11: Approximation Techniques](https://dlmf.nist.gov/3.11); positivity and the Pythagorean identity above justify the minimizer and its uniqueness.

28

Legendre polynomials without a hidden normalization

Define the Legendre polynomial by P_n(x)=(1/(2^n n!)) times the nth derivative of (x^2-1)^n, for n>=0. Differentiating its leading monomial x^(2n) shows its degree is n and leading coefficient L_n=(2n)!/(2^n(n!)^2). At x=1, apply Leibniz to (x-1)^n(x+1)^n: only the term differentiating the first factor n times survives, giving P_n(1)=1. In particular P_0=1, P_1=x and P_2=(3x^2-1)/2.

For a polynomial q of degree less than n, integrate P_n q by parts n times. Every boundary term vanishes because (x^2-1)^n and all its derivatives below order n vanish at both endpoints. The remaining integral contains q^(n)=0. Thus P_n is orthogonal to every lower-degree polynomial under the unweighted integral on [-1, 1]. This states both the interval and the normalization rather than using an unspecified orthogonal-polynomial convention.

For the norm, the same n integrations by parts yield integral P_n^2=(L_n/2^n) J_n, where J_n=integral_(−1)^1 (1-x^2)^n dx. For n>=1, integrating the derivative of x(1-x^2)^n gives J_n=2n(J_(n-1)-J_n), so J_n=(2n/(2n+1))J_(n-1), with J_0=2. Iteration yields J_n=2^(2n+1)(n!)^2/(2n+1)!, hence integral P_n^2=2/(2n+1).

The weighted projection coefficients for this unweighted Legendre basis are therefore c_n=((2n+1)/2) integral f P_n. This conclusion concerns exact continuous inner products. A discrete cosine grid is not the same measure, and a discrete least-squares matrix does not inherit these integral orthogonality constants without a valid exactness argument. Changing the physical interval also changes the integration scale. For Legendre polynomials as an orthogonal family, see [Fundamentals of Numerical Computation: Orthogonal polynomials](https://fncbook.com/orthogonal/); Rodrigues' formula, endpoint value and exact norm have been derived above rather than left as a normalization convention.

29

Discrete weighted least squares and interpolation

For N observations at locations x_i with positive dimensionless weights w_i, fit p=sum_(j=0)^n c_j phi_j by minimizing sum_i w_i(y_i-p(x_i))^2. Define A_ij=sqrt(w_i)phi_j(x_i) and b_i=sqrt(w_i)y_i. If A has full column rank, A^T A is positive definite and the unique minimizer satisfies A^T A c=A^T b. Orthogonality and the finite Euclidean Pythagorean identity establish its minimum.

At least n+1 distinct locations with positive weights ensure rank for a polynomial basis: a nonzero polynomial in P_n cannot vanish at all those locations. Repeated observations can be useful statistically but are not additional distinct polynomial constraints by themselves. When N=n+1 and all locations are distinct, the square system can fit the data exactly and gives the unique interpolant; the positive weights then do not change that exact polynomial.

For N>n+1, an exact fit generally does not exist. A thin factorization A=QR with Q^T Q=I yields the same exact minimizer from Rc=Q^T b without explicitly forming the Gram matrix. In spectral norm, the singular values of A^T A are the squares of those of A, so kappa_2(A^T A)=kappa_2(A)^2 when A has full rank. This relates the representation and algorithm to the conditioning language already established.

A small sample residual is evidence about that weighted data objective, not a uniform approximation certificate or a statistical confidence interval. Basis scaling, uncertain locations, error variances and model mismatch each need their own interpretation. More observations do not automatically justify a larger polynomial degree, a noiseless interpolation assumption or a claim about unsampled regions. For discrete least squares and orthogonal-polynomial methods, see [Digital Library of Mathematical Functions, Section 3.11: Approximation Techniques](https://dlmf.nist.gov/3.11); [Fundamentals of Numerical Computation: Orthogonal polynomials](https://fncbook.com/orthogonal/); the full-column-rank and positive-weight conditions above precede the normal equations and their conditioning comparison.

30

Local linear pieces and a mesh error bound

On a cell [a_i, a_(i+1)] with width h_i>0, put t=(x-a_i)/h_i. The linear interpolant is L_i(x)=(1-t)y_i+t y_(i+1). For x in the cell both weights are nonnegative and sum to one, so the pointwise infinity-data amplification is exactly one. Common signed data errors attain it. This local positivity differs from the possible negative cardinal weights of a single high-degree global polynomial.

If f is C2 on the cell and |f''|<=M_i, the two-node remainder gives |f(x)-L_i f(x)|<=M_i |(x-a_i)(x-a_(i+1))|/2<=M_i h_i^2/8. Taking the maximum over cells gives the global uniform bound. A quadratic with constant second derivative attains its cell bound at the midpoint, so the constant cannot be generally reduced under only this derivative assumption.

Joining adjacent cells reproduces the common sample value and is continuous. The left and right slopes at an interior knot are the two neighboring secant slopes and are generally different, so the approximation need not be C1. With independent value errors of size epsilon, a cell slope can change by as much as 2 epsilon/h_i. Fine cells reduce smooth-function truncation error while potentially amplifying derivative noise.

The positivity and norm-one statement is restricted to points inside the relevant cell. Extending the same affine formula outside it creates an extrapolation whose weights need not be positive. Adaptive cells and local interpolation should therefore retain their domain, derivative bound and data uncertainty instead of treating a finer mesh as an unconditional improvement in every output. For cardinal linear pieces and interpolation context, see [Fundamentals of Numerical Computation: Piecewise linear interpolation](https://fncbook.com/pwlin/); [Digital Library of Mathematical Functions, Section 3.3: Interpolation](https://dlmf.nist.gov/3.3); the sharp cell bound and the differentiated-noise bound above are separate derived statements.

31

Cubic Hermite data include derivative units

On [a, b], set h=b-a>0 and t=(x-a)/h. With endpoint values y_0, y_1 and slopes m_0, m_1, define H_00=2t^3-3t^2+1, H_10=t^3-2t^2+t, H_01=-2t^3+3t^2 and H_11=t^3-t^2. The cubic p=H_00 y_0+h H_10 m_0+H_01 y_1+h H_11 m_1 has precisely those endpoint values and derivatives. The factors h convert slopes to value units and cancel the 1/h from differentiating with respect to x.

Uniqueness follows because a homogeneous cubic satisfying zero value and zero derivative at both endpoints would be divisible by (x-a)^2(x-b)^2, a degree-four polynomial, and hence must be zero. Thus the four endpoint constraints are independent and determine the cubic. They are derivative constraints, not repeated requests for a value at an identical node.

If the data are exact values and slopes of a real C4 function, form g=f-p-C(x-a)^2(x-b)^2 with C chosen so g(x)=0 at a selected interior point. It has double zeros at both endpoints and one more interior zero. Rolle's theorem counted with these multiplicities gives g^(4)(xi)=0, so f(x)-p(x)=f^(4)(xi)(x-a)^2(x-b)^2/4!. The endpoint case is zero directly.

For |f^(4)|<=M on the cell, t^2(1-t)^2<=1/16 gives ||f-p||_infinity<=M h^4/384. The result assumes correct endpoint derivatives; estimated slopes have their own noise and bias. It also does not promise monotonicity or range preservation, and its in-cell constant does not extend unchanged to extrapolation. For Hermite and piecewise-polynomial context, see [Digital Library of Mathematical Functions, Section 3.3: Interpolation](https://dlmf.nist.gov/3.3); [Digital Library of Mathematical Functions, Section 3.11: Approximation Techniques](https://dlmf.nist.gov/3.11); the four basis functions, derivative units and repeated-zero remainder are derived here, not inferred from a bibliographic pointer.

32

Hermite data errors and shape limitations

Suppose both endpoint value errors are bounded by epsilon_value and both slope errors by epsilon_slope in their respective units. On 0<=t<=1, H_00=(1-t)^2(1+2t) and H_01=t^2(3-2t) are nonnegative and sum to one. Also H_10=t(1-t)^2>=0 and H_11=-t^2(1-t)<=0.

The exact Hermite data-error expression therefore has absolute value at most epsilon_value+h epsilon_slope(|H_10|+|H_11|)=epsilon_value+h epsilon_slope t(1-t)<=epsilon_value+h epsilon_slope/4. This is sharp at t=1/2: give both value errors the same positive sign, the left slope error a positive sign and the right slope error a negative sign. The factors h are essential for adding quantities with matching value units.

Shape preservation requires more than endpoint agreement. On a unit cell with y_0=0, y_1=1 and both endpoint slopes equal to 10, the cubic is p(t)=18t^3-27t^2+10t. It takes value 35/32 at t=1/4 and -3/32 at t=3/4, outside the endpoint range [0, 1]. Its endpoint slopes are positive, yet the curve is not monotone. Exact endpoint data and derivative matching alone do not exclude overshoot.

Matching endpoint slopes does not guarantee interior rangeA quartic produces cubic undershoot; The polynomial is negative inside 0<x<1/2. Its negative value is separate from the signed error f−H, which is nonnegative.Matching endpoint slopes does not guarantee interior range-0.2401.17-0.121.15Source x^4Hermite cubicminimumEndpoint data and cubic minimumPhysical x and value coordinates
The polynomial is negative inside 0<x<1/2. Its negative value is separate from the signed error f−H, which is nonnegative.

The zero value and slope at zero force a factor x². The two conditions at one fix the remaining coefficients. For the quartic the error factors into x²(1−x)², and for the quintic one extra factor x+2 appears. The bounds follow directly from the displayed exact factorization or reproduction.

Exact cubic and range certificate
QuantityExact result
Endpoint values and slopes0,1 and 0,4
Hermite cubic2x³−x²
Signed source-minus-cubicx²(1−x)²
Exact cubic range[−1/27,1]
Minimum location1/3
Exact maximum absolute error1/16 at x=1/2
Rigorous error bound1/16
Exact inputs and supporting calculations
Declared inputs
ParameterValue
power4

Slope constraints or limiters define other constructions and need their own consistency and shape theorems. The displayed error model does not make such a choice automatically. For a scientific table, a small interpolation error, a reliable derivative and an admissible range can be separate requirements, all of which should be checked against the model rather than inferred from the word cubic. For the Hermite interpolation setting, see [Digital Library of Mathematical Functions, Section 3.3: Interpolation](https://dlmf.nist.gov/3.3); [Digital Library of Mathematical Functions, Section 3.11: Approximation Techniques](https://dlmf.nist.gov/3.11); the sharp data bound and overshoot example above are explicit calculations and do not assert automatic shape preservation.

33

Natural cubic splines and their linear system

Let x_0<...<x_N with N>=1 and h_i=x_(i+1)-x_i. A natural cubic spline S interpolates y_i, is C2, is cubic on each cell, and satisfies S''(x_0)=S''(x_N)=0. Write M_i=S''(x_i), so M_0=M_N=0. On cell i its second derivative is the line joining M_i and M_(i+1). Integrating twice and imposing endpoint values gives S_i(x)=M_i(x_(i+1)-x)^3/(6h_i)+M_(i+1)(x-x_i)^3/(6h_i)+(y_i-M_i h_i^2/6)(x_(i+1)-x)/h_i+(y_(i+1)-M_(i+1)h_i^2/6)(x-x_i)/h_i.

Equality of the left and right first derivatives at an interior knot yields h_(i-1)M_(i-1)+2(h_(i-1)+h_i)M_i+h_i M_(i+1)=6((y_(i+1)-y_i)/h_i-(y_i-y_(i-1))/h_(i-1)). This is a symmetric tridiagonal system for the interior second derivatives. The piece formula already guarantees the values and continuous second derivatives, so these remaining equations supply C1 matching.

For any real interior vector z, extend it by z_0=z_N=0. The system matrix has quadratic form sum_(i=0)^(N-1) 2h_i(z_i^2+z_i z_(i+1)+z_(i+1)^2), which is positive for nonzero z because every h_i>0 and each parenthesis is at least (z_i^2+z_(i+1)^2)/2. The system is positive definite and has a unique solution. With only two knots there is no interior unknown and the natural spline is the straight line.

Both local pieces meet at one exact knotSymmetric knots at unit spacing; The two traces are drawn only on their own cells. The natural endpoint conditions set second derivatives to zero; the endpoint slopes are computed separately.Both local pieces meet at one exact knot-0.1801.25-0.222.32Left piece only on [0,h]Right piece only on [h,2h]joinData and shared knotPhysical x and value coordinates
The two traces are drawn only on their own cells. The natural endpoint conditions set second derivatives to zero; the endpoint slopes are computed separately.

The natural conditions make the endpoint second derivatives vanish. First-derivative matching at the middle knot gives the one remaining linear equation. On each cell, S″ is the linear interpolant of its two endpoint second derivatives. Integrating its square gives hM₁²/3 for each cell, so the total bending energy is 2hM₁²/3.

Exact natural cubic spline
QuantityExact result
Second-derivative systemM₀=M₂=0; 4 M₁=−12
Second derivatives0, −3, 0
Left and right expressions(3x−x³)/2 and (3(2−x)−(2−x)³)/2
Endpoint slopes3/2, −3/2
Common knot value, slope, second derivative1, 0, −3
Degree of each piece3
Integral of (S″)²6
Exact inputs and supporting calculations
Declared inputs
ParameterValue
h1
ys[0,1,0]

Substitution into the cell formulas proves existence and uniqueness of the natural spline. Natural refers to zero endpoint second derivatives, not zero endpoint slopes, and differs from clamped or periodic endpoint constraints. The representation is an exact construction; a computed tridiagonal solve still has arithmetic error, and exact interpolation of noisy values remains exact fitting of the noise rather than automatic smoothing. For cubic smoothness and natural endpoint conditions, see [Fundamentals of Numerical Computation: Cubic splines](https://fncbook.com/splines/); [Splines: natural cubic splines and smoothing splines](https://web.stanford.edu/class/stats202/notes/Nonlinear/Splines); the second-derivative system and its positive quadratic form are derived above for the stated mesh.

34

The spline's bending-energy property

Let S be the natural cubic spline at at least two distinct knots, and let g be any C2 interpolant with the same knot values. Put h=g-S, so h vanishes at every knot and has continuous first derivative. On each open cell S is cubic. Twice integrating by parts gives integral over that cell of S''h'' equal to the endpoint expression [S''h'-S'''h], because the fourth derivative of S vanishes inside the cell.

The h terms vanish at every cell endpoint. On summing cells, the internal S''h' terms cancel because S'' and h' are continuous, and the two exterior terms vanish because S has natural endpoint second derivatives zero. Thus integral S''h''=0 over the whole interval. These explicit boundary conditions, rather than the word smooth, provide the variational orthogonality.

Expanding the squared curvature gives integral (g'')^2=integral (S'')^2+integral (h'')^2. Therefore S minimizes the bending energy. Equality requires h''=0 everywhere for this C2 class, so h is affine; its zero values at two distinct knots force h=0. The minimum is unique. The same integration argument extends to the appropriate square-integrable-second-derivative class with its trace assumptions, but the stated C2 class already contains the natural spline and needs no unstated weak-derivative theorem.

This optimization preserves exact knot values and minimizes curvature among those interpolants. It is not a noise-removal objective and does not generally preserve monotonicity or range. Other endpoint conditions alter the boundary terms, and minimizing an energy with different physical units or constraints defines another problem. A physical interpretation of bending energy requires its own model rather than following merely from a convenient spline formula. For natural-spline bending-energy context, see [Splines: natural cubic splines and smoothing splines](https://web.stanford.edu/class/stats202/notes/Nonlinear/Splines); [Fundamentals of Numerical Computation: Cubic splines](https://fncbook.com/splines/); the integrations above verify every boundary cancellation rather than assuming the variational statement from a prompt.

35

Smoothing splines change the target

Take observations y_i at at least two distinct knots with positive dimensionless weights w_i, and lambda>0. Consider J_lambda(g)=sum_i w_i(y_i-g(x_i))^2+lambda integral (g'')^2 over C2 functions. For any candidate g, the natural spline through its own nodal values has exactly the same residual sum and no larger curvature energy by the preceding theorem. Thus it is enough to minimize over the finite-dimensional space of natural cubic splines on those knots.

Parameterize that space by its nodal-value vector v. The spline depends linearly on v; its energy is a nonnegative quadratic form, and sum_i w_i(y_i-v_i)^2 is a strictly convex coercive quadratic. Their sum has one minimizing v and hence one natural-spline minimizer. Any other C2 function with equal objective must also attain the minimum bending energy at its nodal values and therefore equal that spline. The penalty changes the target from exact interpolation to a stated residual-versus-curvature compromise.

As lambda tends down to zero, compare the minimum with the exact natural interpolant S_y: the residual sum is at most lambda times its finite curvature energy. Hence v tends to y, and finite-dimensional continuity makes the minimizing spline tend to S_y. At lambda=0 the unrestricted function problem itself has many interpolants; the limit selects the natural one. As lambda tends to infinity, comparison with the unique weighted least-squares affine fit bounds the residual and nodal values and forces curvature energy to zero. Every cluster limit is affine with no larger residual than that best line, so uniqueness makes the whole spline sequence converge to it.

For these dimensionless discrete weights, the residual term has squared-output units and integral (g'')^2 has squared-output units divided by cubed-input units. Therefore lambda has cubed-input units; rescaling the abscissa requires rescaling the penalty. Variance-normalized weights would change the units again. Neither a selected penalty nor a smooth fitted curve supplies an automatic statistical confidence interval or a universal optimal choice for the scientific task. For smoothing splines and the penalized criterion, see [Splines: natural cubic splines and smoothing splines](https://web.stanford.edu/class/stats202/notes/Nonlinear/Splines); the representer argument, parameter limits and physical units above are stated for positive weights and the specified objective.

36

Rational approximation needs a pole policy

A rational approximant r=p/q requires a denominator policy as well as numerator and denominator degrees. A common local normalization is q(0)=1 when expanding about zero. A Pade approximant of type (m, n) asks q f-p=O(x^(m+n+1)) with degree p<=m and degree q<=n. These coefficient-matching conditions are different from a uniform-error optimum and from fitting point values.

For f(x)=exp(x), write q=1+b x and p=a_0+a_1 x. Matching the constant and linear terms gives a_0=1 and a_1=1+b, and eliminating the quadratic term gives b=-1/2. Thus the [1/1] rational approximant is (1+x/2)/(1-x/2). Its series is 1+x+x^2/2+x^3/4+O(x^4), while exp(x) has cubic coefficient 1/6, so f-r=-x^3/12+O(x^4).

The denominator has a genuine pole at x=2, where the numerator is nonzero. Matching a few local coefficients therefore cannot certify a bounded uniform approximation on an interval containing that pole. Even when a rational model captures a function's structure efficiently, one must check denominator zeros, possible near-cancellations, the evaluation domain and a valid approximation bound. The q(0)=1 normalization only guarantees a nonzero denominator in some neighborhood of zero.

Coefficient matching or cross-multiplied rational interpolation can yield singular or rank-deficient systems, and common factors can make representations nonunique. No blanket uniqueness or stability theorem follows from counting coefficients alone. Rational approximants are an additional model class with potentially useful properties, not a permission to ignore poles, noise, model validity or the distinction between local and domain-wide error. For Padé approximation, see [Digital Library of Mathematical Functions, Section 3.11: Approximation Techniques](https://dlmf.nist.gov/3.11); the compatibility of normalization and the local exponential example above are distinguished from global pole-free accuracy.

37

Differentiation amplifies different errors

Uniform function approximation does not automatically control derivatives. Let q_n(x)=T_n(x)/n for n>=1. On [-1, 1] its norm is 1/n and tends to zero. Differentiating T_n(cos theta)=cos(n theta) gives T_n'(cos theta)=n sin(n theta)/sin(theta); the endpoint limit is T_n'(1)=n^2. Consequently q_n'(1)=n diverges. This is a counterexample to an inference from uniform polynomial convergence to derivative convergence, not a claim that every interpolating sequence fails.

For a fixed distinct node set, differentiate the cardinal representation p=sum_j y_j l_j. At a node x_i and j not equal to i, l_j'(x_i)=w_j/(w_i(x_i-x_j)), because omega'(x_i)=1/w_i. Define D_ij by this expression off the diagonal. Since sum_j l_j=1, set D_ii=-sum_(j not equal to i) D_ij. The vector Dy then gives the exact nodal derivatives of the interpolating polynomial.

A value-error vector bounded by epsilon changes the derivative at x_i by at most epsilon sum_j |D_ij|, and independent signs matching that row attain the bound. The row norm has inverse-input units, reflecting differentiation's distinct noise amplification. Relative derivative sensitivity would additionally require a nonzero exact derivative and a chosen data scale. Approximation error in the derivative and arithmetic error in applying D remain separate contributions.

A derivative certificate therefore needs derivative-specific approximation assumptions or a bound on the differentiation operator and the errors entering it. Reusing a function-value error tolerance as a derivative tolerance without the required scaling can be scientifically misleading. Very accurate nodal fit and a visually smooth curve are compatible with an inaccurate slope or an unstable high-order differentiation calculation. For differentiation of interpolants and approximation context, see [Barycentric Lagrange Interpolation](https://people.maths.ox.ac.uk/trefethen/barycentric.pdf); [Digital Library of Mathematical Functions, Section 3.11: Approximation Techniques](https://dlmf.nist.gov/3.11); the diagonal is the negative row sum derived above, correcting the index discrepancy in the displayed paper formula (9.5).

38

Tensor interpolation multiplies data sensitivity

On a rectangle, use cardinal bases l_i(x) and m_j(y) for two distinct one-dimensional node sets. Their tensor interpolant is I_x I_y f=sum_(i, j) f(x_i, y_j)l_i(x)m_j(y). The operators commute because the expression is a finite double sum. It reproduces the product polynomial space with separate degree bounds in x and y, which differs from a bound on total polynomial degree.

For independent sample errors of magnitude at most epsilon, the pointwise amplification is sum_(i, j)|l_i(x)m_j(y)|=Lambda_x(x)Lambda_y(y). Errors with signs matching the products attain it. The global rectangle norm is the product of the two one-dimensional maxima, since the maximizing coordinates can be selected independently. For a higher-dimensional rectangular tensor grid, the same factorization multiplies all coordinate Lebesgue functions.

The identity f-I_x I_y f=(f-I_x f)+I_x(f-I_y f) gives the bound ||f-I_x I_y f||<=E_x+Lambda_x E_y when E_x and E_y bound the directional interpolation errors uniformly over the whole rectangle. A one-dimensional derivative bound at only one fixed value of the other coordinate is insufficient. Mixed or anisotropic assumptions can lead to other bounds, but must be stated rather than inferred from one favorable slice.

With N nodes in each of d directions the full tensor grid uses N^d samples. Low rank, sparsity, special geometry or mixed regularity can motivate alternatives, but those are extra structural assumptions, not consequences of the tensor identity. As in one dimension, interpolation within a linear cell has positive weights, whereas extrapolation can magnify data errors even for a bilinear polynomial. For tensor interpolation context and bibliography, see [Digital Library of Mathematical Functions, Section 3.3: Interpolation](https://dlmf.nist.gov/3.3); the product norm, two-stage error estimate and sampling cost above follow from the explicit tensor cardinal construction.

39

An approximation certificate for a scientific model

An approximation certificate begins with the scientific target and admissible domain. It identifies whether the data are exact evaluations, measurements with certified errors, derivative observations or statistically modeled samples, and states the norm in which the answer is needed. A response table, an implicit computational model and an engineering tolerance can require different notions of accuracy despite using the same polynomial tools.

For exact fixed nodes and value errors bounded by epsilon, the total error f-p_hat for a computed output p_hat can be decomposed as f-I_n f plus I_n f-I_n(f+delta y) plus I_n(f+delta y)-p_hat. A valid uniform bound is truncation bound plus Lambda_n epsilon plus a separately established arithmetic bound. Unknown or perturbed node locations add a different contribution and cannot be hidden inside a value-only epsilon without justification.

The truncation term must cite evidence for its derivative, analytic-region or other regularity assumptions over the entire evaluation domain. The record also states degrees, nodes, scaling, endpoint conditions, denominator exclusions, shape constraints and whether the result is interpolation, minimax approximation, least squares or smoothing. Derivative, extrapolation and tensor outputs retain their own amplification factors. An unattained optimizer bound or a finite plot must be labeled for what it proves.

These distinctions connect approximation theory to reliable scientific computation without replacing scientific validation. A proved identity, a checked numerical implementation and a validated physical model answer different evidential questions. Reproducible calculations, reviewed sources and an honest account of remaining uncertainty allow later readers to assess and refine the result without silently changing its target or repeating already established work. For the interpolation, conditioning and approximation frameworks, see [Digital Library of Mathematical Functions, Section 3.3: Interpolation](https://dlmf.nist.gov/3.3); [Barycentric Lagrange Interpolation](https://people.maths.ox.ac.uk/trefethen/barycentric.pdf); [Digital Library of Mathematical Functions, Section 3.11: Approximation Techniques](https://dlmf.nist.gov/3.11); the certificate above combines only bounds whose separate domain and uncertainty assumptions have been supplied.

Compare exact polynomial reconstruction, endpoint constraints, optimal norms, and cellwise spline certificates.

One polynomial in exact interpolation coordinates

Three nonuniform nodes

The evaluated point is distinct from the supplied nodesThree nonuniform nodes; The orange points are the data nodes. The green point is found by evaluating the completed polynomial and is not one of the declared samples.The evaluated point is distinct from the supplied nodes0.314-0.63.5The quadratic interpolantnodenodenodeData nodesP(2)=7Queried pointPhysical x and value coordinates
The orange points are the data nodes. The green point is found by evaluating the completed polynomial and is not one of the declared samples.

In the first column, adjacent differences divide by adjacent node widths. The second divided difference divides the change between those first differences by the full span. Start the Newton series with the first entry of each column. Distinct nodes guarantee uniqueness within degree at most two, and a zero second coefficient removes the quadratic term.

Exact polynomial certificate
QuantityExact result
First divided differences2, 5
Second divided difference1
Newton form1+2x+x(x−1)
Monomial formx²+x+1
Actual degree2
Reevaluation at nodes1, 3, 13
Queried value7
Exact inputs and supporting calculations
Declared inputs
ParameterValue
nodes[0,1,3]
values[1,3,13]
x2
Complete triangular divided differences
NodeValueFirst differenceSecond difference
0121
135
313

A monic nodal product on a scaled interval

Four nodes on [2,6]

The nodal roots and the alternating extrema are different pointsFour nodes on [2,6]; The orange nodes lie at zeros, whereas the green extrema attain ±2. The endpoints belong to the extremal set. The derivative error bound is conditional on real f∈C^4 on the physical interval.The nodal roots and the alternating extrema are different points-2.7602.91.56.5Physical monic productInterpolation rootsmaxminmaxminmaxAlternating extremaPhysical x · monic nodal product
The orange nodes lie at zeros, whereas the green extrema attain ±2. The endpoints belong to the extremal set. The derivative error bound is conditional on real f∈C^4 on the physical interval.

The reference T_N has leading coefficient 2^(N−1), and the composition with the physical coordinate divides its leading term by h^N. The monic scaling is h^N/2^(N−1). Alternation proves this minimum nodal-factor norm on the interval. The derivative remainder gives a conditional interpolation bound, not a measured error for an unspecified target.

Exact mapped Chebyshev data
QuantityExact result
Reference variablet=(x−4)/2
Reference T_N8t⁴−8t²+1
Physical monic product(x−4)⁴−4(x−4)²+2
Nodes in increasing order4−√(2+√2), 4−√(2−√2), 4+√(2−√2), 4+√(2+√2)
Uniform monic norm2
Bound coefficient multiplying M_41/12
Interpolant maximum degree3
Smoothness assumptionFor real f∈C^4([a,b]), M_4 bounds |f^(4)| throughout the physical x interval.
Exact inputs and supporting calculations
Declared inputs
ParameterValue
degree4
a2
b6

A positive approximant need not interpolate its input

Four Bernoulli trials

The positive Bernstein formula differs from interpolationFour Bernoulli trials; Both functions agree at the endpoints, and the exact midpoint values are f=1/4 and B=5/16. The midpoint is an interior sample in this case and the approximant changes its supplied value.The positive Bernstein formula differs from interpolation-0.1301.18-0.141.15Target f=x²Bernstein approximantB−f at interior sample x=1/2Physical x and value coordinates
Both functions agree at the endpoints, and the exact midpoint values are f=1/4 and B=5/16. The midpoint is an interior sample in this case and the approximant changes its supplied value.

Let K have the binomial distribution at x. The approximation equals E[(K/N)²]. Combine the factorial moment E[K(K−1)]=N(N−1)x² and E[K]=Nx to produce the exact formula. The error is nonnegative and x(1−x) is at most 1/4.

Exact Bernstein quadratic identities
QuantityExact result
Degree parameter4
B_Nf3/4x²+1/4x
Signed difference B_Nf−fx(1−x)/4
Exact midpoint values1/4, 5/16
Maximum absolute error1/16 at 1/2
Interior sample witnessAt x=1/4, difference 3/64
Exact inputs and supporting calculations
Declared inputs
ParameterValue
n4

The optimal affine function depends on the norm

A unit half-width

Two norms select different best constant affine functionsA unit half-width; All three curves share the same physical coordinate and value axes. For the uniform optimum f−P alternates between +a²/2, −a²/2, +a²/2 at −a,0,a.Two norms select different best constant affine functions-0.1201.12-1.21.2Target x²Best continuous L² affineBest uniform affinePhysical x and value coordinates
All three curves share the same physical coordinate and value axes. For the uniform optimum f−P alternates between +a²/2, −a²/2, +a²/2 at −a,0,a.

For L² use orthogonality to the two basis functions 1 and x under unweighted integration. Symmetry makes the odd moment zero, and the constant is the average of x². For uniform error the midpoint and endpoint constraints force max error at least a²/2; the stated constant attains the bound and the three alternating extrema certify it.

Exact continuous and uniform errors
QuantityExact result
Best L² affine1/3 with slope zero
Best uniform affine1/2 with slope zero
Unweighted squared integral at L² optimum8/45
Unweighted squared integral at uniform optimum7/30
Max error at L² optimum2/3
Max error at uniform optimum1/2
Alternating residuals1/2, −1/2, 1/2
Exact inputs and supporting calculations
Declared inputs
ParameterValue
a1

Endpoint values and slopes do not ensure a range

A quartic produces cubic undershoot

Matching endpoint slopes does not guarantee interior rangeA quartic produces cubic undershoot; The polynomial is negative inside 0<x<1/2. Its negative value is separate from the signed error f−H, which is nonnegative.Matching endpoint slopes does not guarantee interior range-0.2401.17-0.121.15Source x^4Hermite cubicminimumEndpoint data and cubic minimumPhysical x and value coordinates
The polynomial is negative inside 0<x<1/2. Its negative value is separate from the signed error f−H, which is nonnegative.

The zero value and slope at zero force a factor x². The two conditions at one fix the remaining coefficients. For the quartic the error factors into x²(1−x)², and for the quintic one extra factor x+2 appears. The bounds follow directly from the displayed exact factorization or reproduction.

Exact cubic and range certificate
QuantityExact result
Endpoint values and slopes0,1 and 0,4
Hermite cubic2x³−x²
Signed source-minus-cubicx²(1−x)²
Exact cubic range[−1/27,1]
Minimum location1/3
Exact maximum absolute error1/16 at x=1/2
Rigorous error bound1/16
Exact inputs and supporting calculations
Declared inputs
ParameterValue
power4

A natural spline across two cells

Symmetric knots at unit spacing

Both local pieces meet at one exact knotSymmetric knots at unit spacing; The two traces are drawn only on their own cells. The natural endpoint conditions set second derivatives to zero; the endpoint slopes are computed separately.Both local pieces meet at one exact knot-0.1801.25-0.222.32Left piece only on [0,h]Right piece only on [h,2h]joinData and shared knotPhysical x and value coordinates
The two traces are drawn only on their own cells. The natural endpoint conditions set second derivatives to zero; the endpoint slopes are computed separately.

The natural conditions make the endpoint second derivatives vanish. First-derivative matching at the middle knot gives the one remaining linear equation. On each cell, S″ is the linear interpolant of its two endpoint second derivatives. Integrating its square gives hM₁²/3 for each cell, so the total bending energy is 2hM₁²/3.

Exact natural cubic spline
QuantityExact result
Second-derivative systemM₀=M₂=0; 4 M₁=−12
Second derivatives0, −3, 0
Left and right expressions(3x−x³)/2 and (3(2−x)−(2−x)³)/2
Endpoint slopes3/2, −3/2
Common knot value, slope, second derivative1, 0, −3
Degree of each piece3
Integral of (S″)²6
Exact inputs and supporting calculations
Declared inputs
ParameterValue
h1
ys[0,1,0]

Worked examples

One quadratic in three bases

Interpolate the data (-1, 2), (0, 1), (2, 5) by a polynomial of degree at most two. Derive its Lagrange and Newton forms and evaluate it at x=1.

  1. The nodes -1, 0, 2 are distinct, so exactly one member of P_2 can fit the values. The cardinal polynomials are l_(-1)=x(x-2)/3, l_0=-(x+1)(x-2)/2 and l_2=x(x+1)/6. Their denominators use the actual nonuniform node differences.
  2. The Lagrange form is 2x(x-2)/3-(x+1)(x-2)/2+5x(x+1)/6. Expanding gives x^2+1: the quadratic coefficient is 2/3-1/2+5/6=1, the linear coefficient is -4/3+1/2+5/6=0, and the constant is one.
  3. In node order -1, 0, 2, the first divided differences are -1 and 2, and the second is (2-(-1))/(2-(-1))=1. The Newton form is consequently 2-(x+1)+(x+1)x, which again simplifies to x^2+1. The monomial, Lagrange and Newton forms are representations of the same exact interpolant.
  4. At x=1 the cardinal values are -1/3, 1, 1/3, so the data combination is -2/3+1+5/3=2. Direct evaluation of x^2+1 agrees. The negative cardinal value already shows why even an interior global-polynomial evaluation need not be a positive average of its data.

The unique polynomial is p(x)=x^2+1, with p(1)=2. Its Newton form is 2-(x+1)+(x+1)x.

A nonuniform divided-difference table

For nodes 0, 1, 3 and values 1, 3, 13, derive the full divided-difference table, Newton polynomial and value at x=2. Check the leading coefficient independently from the data.

  1. The zeroth table column is f[0]=1, f[1]=3 and f[3]=13. The first-order entries are f[0, 1]=(3-1)/(1-0)=2 and f[1, 3]=(13-3)/(3-1)=5. The denominator two in the second entry is essential on this nonuniform grid.
  2. The second-order entry is f[0, 1, 3]=(5-2)/(3-0)=1. Newton construction gives p=1+2x+x(x-1), or x^2+x+1. Its three data values are 1, 3, 13, and unisolvence proves that it is the unique polynomial of degree at most two fitting them.
  3. Independently, the leading coefficient from the Lagrange formula is 1/((0-1)(0-3))+3/((1-0)(1-3))+13/((3-0)(3-1))=1/3-3/2+13/6=1. This agrees with the second divided difference without changing node order or treating the nodes as equally spaced.
  4. At x=2 the nested evaluation gives 1+2(2)+2(2-1)=7. This verifies an exact algebraic identity for the given data, not a bound on an unknown underlying function between samples. Such a bound would need additional smoothness or another admissible-function assumption.

The first divided differences are 2 and 5, the second is 1, and p(x)=1+2x+x(x-1)=x^2+x+1. Thus p(2)=7.

A derivative remainder has a sign

For f(x)=exp(x), use the endpoints 0 and 1 to derive the linear interpolant's midpoint error, its sign and a rigorous derivative-based bound. Then give the C3 quadratic-interpolation error bound at the three Chebyshev roots on [-1, 1].

  1. The endpoint interpolant on [0, 1] is L(x)=1+(e-1)x. Its midpoint value is (1+e)/2, so the exact signed error is exp(1/2)-(1+e)/2. Strict convexity of exp makes the chord lie strictly above the function inside the interval, proving that this error is negative.
  2. The two-node remainder at x=1/2 is f''(xi)(1/2)(-1/2)/2=-exp(xi)/8 for some xi in (0, 1). Since 1<=exp(xi)<=e, its magnitude is at most e/8. The intermediate point is not assumed known or replaced by the midpoint without a separate argument.
  3. For the quadratic problem on [-1, 1], take roots -sqrt(3)/2, 0, sqrt(3)/2 of T_3=4x^3-3x. Their monic product is x^3-3x/4=T_3/4 and has uniform norm 1/4. The third derivative of exp is again exp and has bound e over this entire interval.
  4. The degree-two remainder therefore gives a uniform bound e(1/4)/3!=e/24. This is a different interval and degree from the first calculation, with the required derivative bound supplied for each. Both estimates concern exact sampled values and exact interpolants; measurement or rounding errors would add other terms.

The midpoint error is exp(1/2)-(1+e)/2<0, with absolute value at most e/8. The quadratic Chebyshev-root bound on [-1, 1] is e/24.

Data noise and weight noise differ

At nodes -1, 0, 1 with values 0, 1, 0, compute barycentric weights, the interpolated value and the Lebesgue function at x=1/2. Exhibit sharp data perturbations of size epsilon. Separately change only the middle weight by a relative 1/10 and compute the exact output change.

  1. For nodes -1, 0, 1, the exact weights are 1/2, -1, 1/2. Their Lagrange polynomial for values 0, 1, 0 is p(x)=1-x^2, so p(1/2)=3/4. At that point the three cardinal values are -1/8, 3/4, 3/8, whose sum is one and whose absolute sum is 5/4.
  2. Independent data perturbations (-epsilon, +epsilon, +epsilon) change the answer by epsilon/8+3epsilon/4+3epsilon/8=5epsilon/4. This attains the pointwise infinity-data norm. It holds with the original weights and locations exact, so it is a different uncertainty model from perturbing the weights.
  3. Now keep the data fixed and multiply only the middle weight by 11/10. Dividing the quotient by its exact original denominator, its new normalized denominator is 1+(3/4)(1/10)=43/40. Its numerator is (3/4)(11/10)=33/40 because the other data values are zero. The new quotient is 33/43.
  4. Subtracting the original 3/4 gives (132-129)/172=3/172. Here epsilon Lambda=(1/10)(5/4)=1/8<1 for the independent-weight sufficient bound, so the denominator margin is valid. The exact change is computed from the specified linked perturbation; it need not attain a worst-case independent-weight bound.

Weights (1/2, -1, 1/2) give p(1/2)=3/4 and Lambda(1/2)=5/4. Sharp data amplification is 5epsilon/4. The middle-weight change gives p_tilde=33/43 and change 3/172.

A scaled Chebyshev nodal product

Derive T_4 and its four roots. Find the uniform norm of their monic nodal product on [-1, 1], then map the nodes to [2, 6] and derive a cubic-interpolation error bound for a function with |f^(4)|<=M_4 there.

  1. Starting with T_0=1, T_1=x, the recurrence gives T_2=2x^2-1, T_3=4x^3-3x and T_4=8x^4-8x^2+1. Its roots are cos((2j+1)pi/8), j=0, 1, 2, 3, equivalently the four values plus or minus sqrt(2+sqrt(2))/2 and plus or minus sqrt(2-sqrt(2))/2.
  2. Because the leading coefficient is eight, the monic nodal product on [-1, 1] is T_4/8. Its uniform norm is 1/8, attained at the alternating extrema. The monic minimax proof shows this norm is the smallest possible among degree-four monic products on that interval.
  3. Map t to x=4+2t, so the four physical nodes are 4+2r_j. Their product is 2^4 times the normalized product evaluated at (x-4)/2, namely 2 T_4((x-4)/2). Its uniform norm on [2, 6] is therefore two, not 1/8. This factor has fourth-power input units.
  4. For a real C4 function with |f^(4)|<=M_4 over [2, 6], cubic interpolation at these nodes has error at most M_4 times two divided by 4!, equal to M_4/12. The theorem minimizes this nodal-product bound; it does not certify a derivative bound from data or guarantee the smallest actual error for every individual target.

T_4=8x^4-8x^2+1. The root-grid monic norm is 1/8; after mapping to [2, 6] it is 2, giving error at most M_4/12.

An unresolved mode aliases

Sample T_4 at the three roots of T_3. Determine the degree-two interpolant and the exact uniform error on [-1, 1]. Explain why a perfect fit at the nodes does not resolve the original oscillation.

  1. The roots of T_3 are -sqrt(3)/2, 0, sqrt(3)/2. At the outer two nodes T_4=8(9/16)-8(3/4)+1=-1/2, and at zero T_4=1. The quadratic 1-2x^2 has those same three values, so it is the unique degree-two interpolant.
  2. Since T_2=2x^2-1, this is precisely the alias I_2 T_4=-T_2. The error is T_4+T_2=8x^4-6x^2. It vanishes at all sampling nodes even though the degree-four target and the interpolant are different polynomials.
  3. Put u=x^2 in [0, 1]. The error becomes 8u^2-6u, whose interior stationary point is u=3/8 with value -9/8. At the endpoints u=0, 1 its values are zero and two. Hence the maximum absolute error is two, attained at x=+1 and x=-1.
  4. At either interval endpoint the target is one and the interpolant is minus one. A perfect fit on this grid therefore does not resolve the original mode. The conclusion is a specific exact aliasing example, not an assertion that an arbitrary sampled function is band-limited or that all higher-degree interpolation errors have this magnitude.

The interpolant is -T_2(x)=1-2x^2. The exact uniform error is 2, attained at x=+1 and x=-1.

Bernstein approximation of a quadratic

Derive the degree-n Bernstein approximation of f(x)=x^2 on [0, 1]. Specialize to n=4 and find the exact uniform error and a sample at which this approximation does not interpolate f.

  1. The Bernstein weights have sum one, mean k equal to nx and second factorial moment n(n-1)x^2. Therefore their mean of (k/n)^2 is ((n(n-1)x^2)+nx)/n^2=x^2+x(1-x)/n. This directly constructs the Bernstein polynomial of the quadratic from its sampled coefficients.
  2. The signed discrepancy B_n f-f is x(1-x)/n, nonnegative throughout [0, 1]. Its maximum is 1/(4n) at x=1/2. For n=4 the polynomial is 3x^2/4+x/4 and the exact uniform error is 1/16.
  3. At the interior grid sample x=1/4, the target is 1/16=4/64, whereas B_4 f is 3/64+1/16=7/64. The difference is 3/64. Thus placing f(k/4) in the Bernstein coefficients does not make those coefficients interpolation conditions at all the corresponding locations.
  4. The approximation reproduces constants and linear functions and agrees with f at the two endpoints, but not this quadratic at interior points for finite n. This example distinguishes a positive approximation operator from the Lagrange projector and gives an exact rate for this target without implying the same rate is optimal for every function or every method.

B_n(x^2)=x^2+x(1-x)/n. For n=4 it is 3x^2/4+x/4 with uniform error 1/16; at x=1/4 its value is 7/64 rather than 1/16.

A minimax line by alternation

Find and prove the unique best affine uniform approximant to f(x)=x^2 on [0, 2]. Give its three alternating extremal points and optimal error.

  1. The chord of x^2 on [0, 2] is L(x)=2x. Its gap is L-f=2x-x^2=1-(x-1)^2, whose maximum is one at x=1. Shifting the chord down by half this gap suggests p(x)=2x-1/2.
  2. The resulting error f-p=x^2-2x+1/2=(x-1)^2-1/2 lies in [-1/2, 1/2]. Its values at 0, 1, 2 are respectively +1/2, -1/2, +1/2. These are three ordered alternating global extrema, so degree-one alternation proves optimal error 1/2.
  3. For an elementary uniqueness check, let r=q-p be affine and suppose q has error at most 1/2. The endpoint error conditions force r(0)>=0 and r(2)>=0, while the middle condition forces r(1)<=0. Affineness gives r(1)=(r(0)+r(2))/2>=0. Thus all three values are zero and r is identically zero.
  4. The answer need not interpolate either endpoint of the target, since interpolation was not the objective. It minimizes the uniform value error among affine polynomials on the entire interval. A least-squares fit or a requirement to pass through one endpoint would be a different optimization problem.

The unique minimax affine polynomial is p(x)=2x-1/2, with error 1/2 and alternating extrema at 0, 1, 2.

The norm changes the best answer

Find the best degree-one L2 approximation to x^2 on [-1, 1] with unit integration weight. Derive its squared L2 error and compare its uniform error with that of the best uniform affine approximant.

  1. Write p(x)=a+b x. The L2 normal conditions are integral_(−1)^1 (x^2-a-bx) dx=0 and integral_(−1)^1 x(x^2-a-bx) dx=0. Odd terms integrate to zero, so 2/3-2a=0 and -(2/3)b=0. Therefore a=1/3, b=0.
  2. The Gram matrix for 1, x is diagonal with positive entries 2 and 2/3, proving the solution uniquely minimizes the squared integral error. Its squared error is integral (x^2-1/3)^2=2/5-4/9+2/9=8/45. This calculation also checks the normal-equation answer directly.
  3. For uniform error, the residual x^2-1/3 ranges from -1/3 at zero to 2/3 at the endpoints, so its norm is 2/3. The polynomial 1/2 instead has errors +1/2, -1/2, +1/2 at -1, 0, 1 and is the unique best affine uniform approximant by alternation.
  4. There is no contradiction: the two problems optimize different norms. The constant 1/3 minimizes an integral of squared discrepancies, while 1/2 minimizes the largest absolute discrepancy. The norm choice is part of the scientific specification rather than a cosmetic way to report one universal best polynomial.

The L2 optimum is p=1/3 with squared error 8/45 and uniform error 2/3. The uniform optimum is p=1/2 with error 1/2.

Local cells tame a quadratic

Interpolate f(x)=x^2 piecewise linearly at 0, 1/2, 1. Derive both cell formulas, the exact uniform error and the derivative jump at the middle knot.

  1. On [0, 1/2], the secant slope is ((1/2)^2-0)/(1/2)=1/2, so L_0(x)=x/2. On [1/2, 1], the secant slope is (1-1/4)/(1/2)=3/2, giving L_1(x)=3x/2-1/2. Both formulas equal 1/4 at the common knot.
  2. The signed first-cell error is x^2-x/2=x(x-1/2), whose minimum is -1/16 at x=1/4. The second-cell error is x^2-3x/2+1/2=(x-1/2)(x-1), whose minimum is also -1/16 at x=3/4. The global uniform error is therefore 1/16.
  3. Here f''=2 and each width is h=1/2, so the general bound M h^2/8 equals 2(1/4)/8=1/16 and is attained. The positive affine weights on each cell have absolute sum one, so independent value noise is not magnified in the in-cell function-value norm.
  4. The left and right derivatives at the middle knot are 1/2 and 3/2, a jump of one. The interpolant is continuous but not differentiable there, while the original quadratic has derivative one at that location. Improving function values and providing a globally smooth derivative are distinct requirements.

The cell formulas are x/2 and 3x/2-1/2. The uniform error is 1/16, and the derivative jumps from 1/2 to 3/2 at x=1/2.

Hermite interpolation can violate a range

Interpolate f(x)=x^4 on [0, 1] using endpoint values and exact endpoint slopes. Derive the cubic, its exact error and uniform bound, and identify an interval where the interpolant is negative although f is nonnegative.

  1. The target has endpoint values f(0)=0, f(1)=1 and slopes f'(0)=0, f'(1)=4. On the unit cell, the Hermite formula is H_01+4H_11=(-2x^3+3x^2)+4(x^3-x^2)=2x^3-x^2. Direct differentiation gives endpoint slopes zero and four as required.
  2. Subtracting this cubic from x^4 gives x^4-2x^3+x^2=x^2(x-1)^2. On [0, 1] the product x(1-x) is at most 1/4, so the nonnegative error has maximum 1/16 at x=1/2. The endpoint and slope constraints determine the cubic uniquely.
  3. The target fourth derivative is exactly 24. The general Hermite bound M h^4/384 is 24/384=1/16, agreeing with the exact maximum. This is a sharp C4 remainder example with exact derivatives, rather than a numerical experiment used to infer the constant.
  4. The interpolant factors as x^2(2x-1), so it is negative on 0<x<1/2 although x^4 is nonnegative. Correct endpoint values, correct endpoint slopes and a rigorous uniform error bound do not by themselves impose range preservation. A scientific application requiring positivity must address that constraint explicitly.

The cubic is 2x^3-x^2. Its exact error is x^2(x-1)^2 with maximum 1/16; the cubic is negative on 0<x<1/2.

A natural cubic spline in full

Construct the natural cubic spline through (0, 0), (1, 1), (2, 0). Derive its second-derivative system, both cubic pieces, endpoint slopes and bending energy.

  1. The two widths are one, and natural endpoint conditions set M_0=M_2=0. The sole interior equation is 4M_1=6((0-1)-(1-0))=-12, hence M_1=-3. Positivity of the one-by-one system proves the second derivatives are uniquely determined.
  2. On [0, 1], the spline formula gives -x^3/2+(3/2)x. By symmetry, on [1, 2] it is (3/2)(2-x)-(1/2)(2-x)^3. These pieces have values zero, one, zero at the knots, common first derivative zero at x=1 and common second derivative -3 there.
  3. The left endpoint slope is 3/2 and the right endpoint slope is -3/2. Their nonzero values are consistent with natural conditions, which prescribe zero second derivatives instead. The second derivative is -3x on the left cell and -3(2-x) on the right, with zero values at the two exterior endpoints.
  4. The bending energy is integral_0^1 9x^2 dx+integral_1^2 9(2-x)^2 dx=3+3=6. The variational identity proves this energy is minimal among the stated regular interpolants with these knot values. It does not mean the values have been statistically denoised or that another boundary condition would produce the same curve.

M_0=M_2=0, M_1=-3. The pieces are (3x-x^3)/2 and (3(2-x)-(2-x)^3)/2; endpoint slopes are 3/2, -3/2 and bending energy is 6.

Try it yourself

  1. At nodes 0, 0, 1, analyze polynomial interpolation of the value triples (1, 1, 2) and (1, 3, 2) in P_2. Explain why repeated values are different from a prescribed derivative.

    Show the answer and reasoning

    The triple (1, 1, 2) admits the family 1+x+c x(x-1), c real. The triple (1, 3, 2) is inconsistent. A derivative condition would be a different independent constraint.

    For the first triple the two requests at x=0 both say p(0)=1, so they are the same constraint. The only other independent condition is p(1)=2. There are only two distinct nodes, not three independent value constraints on P_2. The affine polynomial 1+x fits those two values. Any multiple of x(x-1) vanishes at both nodes, so p(x)=1+x+c x(x-1) fits for every real c. Conversely, subtracting 1+x from any quadratic fit leaves a polynomial with zeros at zero and one, hence exactly this form. The family is exhaustive. For the second triple a polynomial would have to take both one and three at zero, which is impossible regardless of its degree. A zero denominator in a distinct-node divided-difference formula is therefore not merely a rounding inconvenience to repair by assuming another value constraint. A prescribed derivative, such as p'(0)=0, supplies different information. Together with p(0)=1 and p(1)=2 it selects 1+x^2, since the derivative at zero fixes its linear coefficient. Such Hermite data must be stated explicitly rather than inferred from a repeated location.

  2. Build the Newton divided-difference interpolant for nodes 1, 2, 4 and values 2, 5, 17, and evaluate it at 3. Prove its uniqueness in P_2.

    Show the answer and reasoning

    The Newton polynomial is 2+3(x-1)+(x-1)(x-2)=x^2+1, so p(3)=10. Distinct-node unisolvence proves uniqueness.

    The first divided differences are (5-2)/(2-1)=3 and (17-5)/(4-2)=6. The second is (6-3)/(4-1)=1. The spacing from two to four is two, and must not be replaced by a unit spacing. The Newton form is 2+3(x-1)+(x-1)(x-2). Expansion gives x^2+1. Its values at one, two, four are respectively two, five, seventeen, providing a direct consistency check with all the constraints. At x=3 the nested expression gives 2+3(2)+(2)(1)=10, matching 3^2+1. This is an evaluation of the exact polynomial determined by the data, not an independent measurement of an underlying function at three. If another polynomial of degree at most two fit the same data, its difference from x^2+1 would have three distinct zeros at one, two, four. The difference must be identically zero. This uniqueness argument depends on distinct locations, not on equal spacing or the chosen Newton representation.

  3. Derive the confluent limits f[x, x]=f'(x) and f[x, x, x]=f''(x)/2 under the required real smoothness. Use them to construct the quadratic Newton-Hermite polynomial for exp(x) with all three nodes at zero.

    Show the answer and reasoning

    The confluent values are f[x, x]=f'(x) and f[x, x, x]=f''(x)/2. For exp at zero the quadratic is 1+x+x^2/2.

    For a real C1 function, f[x, x+h]=(f(x+h)-f(x))/h tends to f'(x) as h tends to zero. Define the repeated-node divided difference by this continuous extension. It expresses derivative data and is not obtained by evaluating the original quotient at a zero denominator. For a real C2 function, the second divided difference at three distinct nearby nodes equals f''(xi)/2 by the repeated-Rolle argument. As all three nodes approach x, their intermediate point xi also approaches x. Continuity of the second derivative gives the limit f''(x)/2, independent of the particular distinct-node approach. For exp at zero, the value, first derivative and second derivative are all one. The repeated-node Newton coefficients are therefore 1, 1, 1/2 and the basis factors are 1, x, x^2. The resulting polynomial is 1+x+x^2/2. Its value, first derivative and second derivative at zero are all one. These three independent conditions determine a quadratic uniquely: a homogeneous difference would have a zero of multiplicity three despite degree at most two. The statement is local derivative matching; a domain-wide error bound still needs a valid third-derivative estimate.

  4. Interpolate cos(x) at 0, pi/2, pi. Find the polynomial and its error at pi/4. Derive a rigorous remainder bound there using |f'''|<=1 on [0, pi].

    Show the answer and reasoning

    The interpolant is 1-2x/pi. At pi/4 its signed error is (sqrt(2)-1)/2, bounded in magnitude by pi^3/128.

    The three function values are 1, 0, -1. The affine polynomial 1-2x/pi takes those values at 0, pi/2, pi, so by uniqueness in P_2 it is also the requested quadratic-degree interpolant; its quadratic coefficient happens to be zero. At x=pi/4 the interpolant is 1/2 and cos(x)=sqrt(2)/2. Thus the exact signed error is (sqrt(2)-1)/2, which is positive. Exact nodal fit does not force the off-node error to have either zero magnitude or the opposite sign. For the degree-two remainder, the nodal product at pi/4 is (pi/4)(-pi/4)(-3pi/4)=3pi^3/64. The third derivative of cos is sin, whose magnitude is at most one throughout [0, pi]. Division by 3! gives the rigorous absolute bound pi^3/128. The theorem uses the derivative bound over the entire enclosing interval and permits a lower-degree interpolant as a special case. Its intermediate point is not assigned a value by this calculation. Data errors and arithmetic errors would have to be added separately if the samples or polynomial evaluation were approximate.

  5. For nodes 0, 1, 2, compute the Lagrange basis values and Lebesgue function at x=3 and x=1/2. Give nodewise perturbations bounded by epsilon attaining each pointwise amplification.

    Show the answer and reasoning

    At 3 the weights are (1, -3, 3), giving Lambda=7. At 1/2 they are (3/8, 3/4, -1/8), giving Lambda=5/4; signed data errors attain both bounds pointwise.

    The cardinal polynomials at nodes 0, 1, 2 are l_0=(x-1)(x-2)/2, l_1=-x(x-2) and l_2=x(x-1)/2. Their values at x=3 are 1, -3, 3. They sum to one, but their absolute sum is seven. The perturbation vector (epsilon, -epsilon, epsilon) therefore changes the interpolated value at three by epsilon+3epsilon+3epsilon=7epsilon. This attains the absolute pointwise data bound and demonstrates extrapolation amplification even for a quadratic interpolation operator. At x=1/2 the cardinal values are 3/8, 3/4, -1/8. Their absolute sum is 5/4. A different perturbation vector, (epsilon, epsilon, -epsilon), attains a change (3/8+3/4+1/8)epsilon=5epsilon/4 at that point. Sharpness at different evaluation points can require different signs of the adversarial data. Neither vector represents a statistical distribution without further assumptions. The comparison establishes exact operator sensitivity for fixed nodes and a bounded independent-value-error model, with a larger amplification outside the sampling interval.

  6. For nodes -1, 0, 1 with barycentric weights 1/2, -1, 1/2 and values 0, 1, 0, change the weights by relative perturbations (4/5, -4/5, -4/5). Show exactly what happens to the quotient denominator and numerator at x=1/2, and interpret the sufficient epsilon*Lambda<1 condition.

    Show the answer and reasoning

    The changed weights are (9/10, -1/5, 1/10). At x=1/2 the denominator is zero and numerator -2/5, so the rational quotient has a genuine pole. Here epsilon Lambda=1.

    Multiplying the original weights by 1 plus their respective relative perturbations gives (1/2)(9/5)=9/10, (-1)(1/5)=-1/5 and (1/2)(1/5)=1/10. All remain nonzero and keep their original signs, although their independent relative changes are large enough to threaten denominator cancellation. At x=1/2 the denominator is (9/10)/(3/2)+(-1/5)/(1/2)+(1/10)/(-1/2)=3/5-2/5-1/5=0. Only the middle data value is nonzero, so the numerator is (-1/5)/(1/2)=-2/5, not zero. This is not a removable node singularity because x=1/2 is not a sampling node. For the unperturbed cardinal functions at this point, Lambda=5/4. The maximum relative weight error is epsilon=4/5, so epsilon Lambda=1. Indeed the normalized denominator is 1+(-1/8)(4/5)+(3/4)(-4/5)+(3/8)(-4/5)=0, exactly reaching the boundary of the sufficient strict condition. The example shows why epsilon Lambda<1 is a useful denominator margin and why a common-scaling invariance does not protect against independent errors. Failure of the strict inequality does not make every perturbation singular, but this specified one is singular in exact arithmetic. No amount of additional rounding precision removes the pole from this changed rational model.

  7. Derive T_5, its leading coefficient and five roots. Prove that its monic scaling has uniform norm 1/16 and that no other monic degree-five polynomial has a smaller norm on [-1, 1].

    Show the answer and reasoning

    T_5=16x^5-20x^3+5x, with roots cos((2j+1)pi/10), j=0, ..., 4. Its monic scaling T_5/16 has the smallest uniform norm, 1/16.

    From T_3=4x^3-3x and T_4=8x^4-8x^2+1, the recurrence gives T_5=2xT_4-T_3=16x^5-20x^3+5x. Its leading coefficient is sixteen. The identity T_5(cos theta)=cos(5theta) gives the five distinct roots cos((2j+1)pi/10), j=0, ..., 4. The monic polynomial C=T_5/16 has absolute value at most 1/16 on [-1, 1]. At the six extrema cos(jpi/5), j=0, ..., 5, it has alternating values of magnitude 1/16, so its norm is exactly that number. If another monic degree-five polynomial r had smaller norm, the difference C-r would have degree at most four. At the six ordered extrema it would take alternating strict signs, forcing at least five distinct intervening zeros. This contradiction proves no smaller monic norm is possible. The leading-coefficient argument also supplies uniqueness at equality if needed: the degree-five coefficient equals the signed value sum at six extrema, and equality in its absolute bound forces all six values to match C. The result optimizes a monic polynomial on the stated interval, not an arbitrary noisy-data interpolation objective.

  8. Assume f is analytic in a neighborhood of the closed Bernstein ellipse of parameter rho=2 and bounded there by M=3. Derive the stated geometric bounds for degree-five Chebyshev truncation and degree-five Chebyshev-root interpolation. Explain what these bounds do not measure.

    Show the answer and reasoning

    The degree-five truncation bound is 3/16 and the Chebyshev-root interpolation bound is 3/8. They are analytic-model truncation bounds, not empirical or total-error measurements.

    The ellipse parameter rho=2 corresponds to z on |z|=2 under x=(z+z^(-1))/2; its real and imaginary semiaxes are 5/4 and 3/4. The hypothesis supplies analyticity on an open neighborhood of its closed filled region and the bound M=3, so the Laurent/Cauchy coefficient estimate applies. For nonconstant Chebyshev coefficients, |c_k|<=2M rho^(-k)=6*2^(-k). The tail after degree five has norm at most sum_(k=6)^infinity 6*2^(-k)=6/32=3/16. This is the stated degree-five truncation bound. For interpolation at six roots of T_6, each omitted mode and its alias have norms at most one. The interpolation error is therefore at most twice that same coefficient tail, giving 3/8. It uses exact samples and exact interpolation at that particular node family. Neither expression is a measured error, a guarantee of equality, a statistical interval or a bound on data and arithmetic error. The non-real analytic-region hypothesis and the number M must be justified independently; favorable real samples alone cannot establish them. Derivatives and extrapolation also require different estimates.

  9. For the samples at 0, 1/2, 1, construct a smooth polynomial that vanishes at every sample but equals an arbitrary A>0 at x=1/4. Explain why these exact samples cannot certify a uniformly small error without additional assumptions.

    Show the answer and reasoning

    One choice is g_A(x)=(4096A/9)x^2(x-1/2)^2(x-1)^2. It is zero at all three samples and equals A at x=1/4.

    The nodal product for the three samples is omega(x)=x(x-1/2)(x-1). At x=1/4 it equals (1/4)(-1/4)(-3/4)=3/64. Thus its square at that point is 9/4096, which is positive. Define g_A=(4096A/9)omega^2. This degree-six polynomial vanishes at 0, 1/2, 1 and takes the value A at 1/4. It is nonnegative and smooth, so the ambiguity does not rely on a discontinuity or a numerical rounding artifact. The zero function and g_A produce identical zero sample values, yet differ by A at the chosen unsampled point. More generally, f and f+g_A produce the same samples for any target f. Since A is arbitrary, those finite samples alone do not imply any fixed uniformly small error for the unrestricted smooth-function class. A certified derivative bound or bounded analytic extension would restrict the admissible amplitude and could support a theorem. Merely saying smooth or analytic does not supply such a quantitative restriction; these counterexample polynomials are entire as well. The construction establishes an information limitation, not a failure of the exact interpolation equations.

  10. A function on [0, 1] has a certified Lipschitz constant 3. Use the elementary Bernstein-polynomial bound to find a sufficient integer n for uniform approximation error at most 1/100. Distinguish a sufficient bound from an optimal sampling requirement.

    Show the answer and reasoning

    The elementary sufficient bound gives n>=22500, so n=22500 suffices. It is not a necessary or optimal sampling requirement.

    The Bernstein weights are nonnegative and have centered second moment x(1-x)/n. For a Lipschitz function with constant L, the error is bounded by L times their mean absolute deviation. Cauchy-Schwarz makes this at most L sqrt(x(1-x)/n)<=L/(2 sqrt(n)). With L=3 and required error 1/100, impose 3/(2 sqrt(n))<=1/100. Multiplication by the positive denominators gives sqrt(n)>=150, hence n>=22500. This integer is the least one satisfying this particular sufficient inequality. At n=22500 the displayed upper bound equals exactly 1/100. This conclusion assumes exact function samples in the Bernstein coefficients and a genuinely certified Lipschitz constant over the whole interval. Data noise or arithmetic would use part of the error budget and require additional terms. The bound is not a proof that every function with Lipschitz constant three needs so many samples or that Bernstein approximation is optimal. For example, the affine function 3x has that Lipschitz constant and is reproduced exactly by every positive Bernstein degree. A worst-case sufficient estimate and the actual requirements of a particular target are different statements.

  11. Find the unique constant c minimizing max_{-1<=x<=1}|x-c|/(2+x). Prove the weighted error and compare c with the unweighted minimax constant.

    Show the answer and reasoning

    The unique weighted minimax constant is c=-1/2 with error 1/2. The unweighted minimax constant is zero.

    The weight w(x)=1/(2+x) is continuous and positive on [-1, 1], so the weighted alternation theorem applies. Test c=-1/2. Its signed weighted error is r(x)=(x+1/2)/(x+2), whose derivative is (3/2)/(x+2)^2>0. Thus r increases from -1/2 at x=-1 to +1/2 at x=1. Its maximum absolute value is 1/2, attained with opposite signs at two ordered points. Degree-zero weighted alternation proves this constant uniquely optimal. An independent endpoint bound gives the same conclusion for all possible constants. If the weighted error were at most E, then |c+1|<=E and |c-1|<=3E. The intervals c in [-1-E, -1+E] and [1-3E, 1+3E] overlap only if E>=1/2. At equality their intersection is the single point -1/2. Without the weight, minimizing max(|-1-c|, |1-c|) gives c=0 and error one. The positive varying denominator changes which endpoint discrepancy is expensive, so a changed optimum is expected. No statistical interpretation of the weight has been assumed.

  12. Use Legendre orthogonality to find the best degree-two L2 approximation to x^3 on [-1, 1] with unit weight. Derive the squared error directly as a check.

    Show the answer and reasoning

    The best degree-two L2 approximation is (3/5)x, with squared error 8/175.

    The Legendre polynomial P_3=(5x^3-3x)/2 has degree three and is orthogonal to every member of P_2 under unit integration weight. Rearranging gives x^3=(2/5)P_3+(3/5)P_1, where P_1=x. The orthogonal projection onto P_2 is therefore p=(3/5)x. Its residual is (2/5)P_3. Because integral_(−1)^1 P_3^2=2/7, the squared residual norm is (4/25)(2/7)=8/175. Orthogonality and the positive-definite polynomial Gram matrix prove global optimality and uniqueness. Direct expansion checks the value: integral (x^3-(3/5)x)^2=integral (x^6-(6/5)x^4+(9/25)x^2)=2/7-12/25+6/25=8/175. No quadrature approximation is used in this exact calculation. The even constant and quadratic components vanish by odd symmetry, consistent with the projection. The conclusion is for continuous L2 fitting on [-1, 1] with unit weight; discrete samples, another integration weight or a uniform-error objective would define different normal equations and potentially another answer.

  13. Fit an affine polynomial in equal-weight discrete least squares to (-1, 0), (0, 1), (1, 0). Derive its normal equations and residual sum of squares, and compare it with the quadratic interpolant.

    Show the answer and reasoning

    The least-squares line is 1/3 with residual sum of squares 2/3. The quadratic interpolant is 1-x^2 and has zero sample residual.

    For p(x)=a+b x, the design rows at -1, 0, 1 are (1, -1), (1, 0), (1, 1), and the response vector is (0, 1, 0). The normal matrix is diagonal with entries three and two, while the right-hand side is (1, 0). Thus a=1/3, b=0. The residuals y_i-p(x_i) are -1/3, 2/3, -1/3. Their squared sum is 1/9+4/9+1/9=2/3. The normal matrix is positive definite, so this is the unique affine least-squares minimizer. The quadratic 1-x^2 takes exactly the three sample values and hence is their unique degree-two interpolant. It has zero sample residual because a different, larger polynomial space is being used. That zero does not prove a smaller continuous-function error away from the nodes. No observation was declared an outlier or assigned a statistical variance in this calculation. Such claims need an additional observation model. The example compares exact finite algebraic objectives and illustrates why interpolation and overdetermined least squares should not be labeled as the same task.

  14. For f(x)=x^2 on [0, 3], find the exact uniform error of piecewise linear interpolation on N equal cells. Determine the least N giving error at most 1/400 and justify sharpness.

    Show the answer and reasoning

    The exact error is 9/(4N^2). The least sufficient and necessary cell count for this target is N=30.

    Each uniform cell has width h=3/N. For the quadratic x^2, the signed two-point linear-interpolation error on a cell [a, b] is exactly (x-a)(x-b), since the second derivative equals two. Its most negative value occurs at the cell midpoint and is -h^2/4. Every cell therefore has maximum absolute error h^2/4=9/(4N^2), and this is also the global maximum. The usual C2 bound is attained, rather than merely providing an upper estimate that might be conservative for this target. Impose 9/(4N^2)<=1/400. Since N is positive, this is equivalent to N^2>=900. The least integer satisfying it is thirty, and at N=30 the error equals 9/3600=1/400. For any smaller positive integer the exact midpoint error exceeds the tolerance, proving sharpness of the cell count for this function and mesh family. This does not make thirty a universal best count for other functions or nonuniform adaptive grids, nor does it budget measurement or arithmetic error.

  15. A cubic Hermite cell has width h=2. Each endpoint value has absolute error at most 1/100 and each endpoint slope at most 1/50. Derive the uniform data-error bound and give signed errors that attain it at the cell midpoint.

    Show the answer and reasoning

    The uniform data-error bound is 1/50. Equal positive value errors and opposite signed slope errors attain it at the midpoint.

    For a cubic Hermite cell, the value-basis functions are nonnegative and sum to one, while the absolute sum of the two slope-basis functions is t(1-t). Hence the absolute error from bounded endpoint data is at most epsilon_value+h epsilon_slope t(1-t). Use t(1-t)<=1/4 with epsilon_value=1/100, epsilon_slope=1/50 and h=2. The uniform bound is 1/100+(2/4)(1/50)=1/100+1/100=1/50. Slope units become value units only after multiplication by h. At t=1/2 the value coefficients are 1/2, 1/2 and the physical slope coefficients hH_10, hH_11 are 1/4, -1/4. Choose both value errors +1/100, the left slope error +1/50 and the right slope error -1/50. The exact output error is 1/100+1/200+1/200=1/50. This proves sharpness within the independent bounded-data model. It is the difference between two Hermite interpolants with different endpoint data, not the smooth-function truncation error. A total target-error certificate would also include the C4 remainder or another justified approximation term.

  16. For the natural cubic spline through (0, 0), (1, 2), (3, 1), derive its middle second derivative, common first derivative at the middle knot and bending energy. Explain why the natural boundary conditions do not prescribe zero endpoint slopes.

    Show the answer and reasoning

    The interior second derivative is -5/2, the common middle slope is 7/6 and the bending energy is 25/4. The endpoint slopes are 29/12 and -4/3.

    Here h_0=1, h_1=2 and natural conditions give M_0=M_2=0. The interior equation is 2(1+2)M_1=6((1-2)/2-(2-0)/1)=-15. Therefore M_1=-5/2. The one interior unknown is uniquely determined. The left-cell derivative at its right endpoint is (y_1-y_0)/h_0+h_0(M_0+2M_1)/6=2-5/6=7/6. The right-cell derivative at its left endpoint is (y_2-y_1)/h_1-h_1(2M_1+M_2)/6=-1/2+5/3=7/6. Thus C1 matching holds with the unequal cell widths included. A linearly varying second derivative from M_i to M_(i+1) has squared integral h_i(M_i^2+M_i M_(i+1)+M_(i+1)^2)/3. The two cells contribute 25/12 and 25/6, for total 25/4. This is the spline curvature energy, not a residual norm. The exterior slopes are 2-h_0(2M_0+M_1)/6=29/12 and -1/2+h_1(M_1+2M_2)/6=-4/3. Their nonzero values are fully consistent with natural boundary conditions, which prescribe second derivatives rather than slopes. Zero slopes would define a different clamped boundary problem.

  17. Derive the polynomial differentiation matrix for nodes -1, 0, 1 and use it on the samples of p(x)=x^2+2x. Then use T_n(x)/n to show why a uniformly small function error need not imply a small derivative error.

    Show the answer and reasoning

    D=[[-3/2, 2, -1/2], [-1/2, 0, 1/2], [1/2, -2, 3/2]], giving derivatives (0, 2, 4). The sequence T_n/n tends uniformly to zero while its derivative at one equals n.

    For distinct nodes, the off-diagonal cardinal derivative is D_ij=w_j/(w_i(x_i-x_j)), and the diagonal is minus the remaining row sum. At -1, 0, 1 the weights are 1/2, -1, 1/2. Substitution gives the rows (-3/2, 2, -1/2), (-1/2, 0, 1/2), (1/2, -2, 3/2). Each sums to zero, as required for the derivative of a constant. The samples of p=x^2+2x are (-1, 0, 3). Multiplication gives the first row 3/2-3/2=0, the second 1/2+3/2=2 and the third -1/2+9/2=4. These agree with 2x+2 at the nodes and are exact for every degree-two polynomial. The absolute row sums are four, one, four. Independent value errors of size epsilon can therefore cause derivative errors as large as 4epsilon at an endpoint and epsilon at the center in these input units. This is a different operator norm from that for interpolated function values. For a separate uniform-convergence counterexample, ||T_n/n||_infinity=1/n on [-1, 1]. The identity T_n'(1)=n^2 follows by taking the limit of n sin(n theta)/sin(theta) as theta tends to zero. Thus (T_n/n)'(1)=n does not tend to zero. A small uniform value error alone cannot certify derivative accuracy.

  18. For tensor-product linear interpolation on the square [0, 1]^2, compute the four cardinal weights and pointwise data-amplification factor at (3/2, 3/2). Exhibit data errors of size epsilon attaining the factor and compare with an interior point.

    Show the answer and reasoning

    The four weights are (1/4, -3/4, -3/4, 9/4) in order (0, 0), (1, 0), (0, 1), (1, 1), giving amplification four. At the midpoint the factor is one.

    At x=3/2 the linear cardinal pair on nodes zero and one is (1-x, x)=(-1/2, 3/2), and the y pair is the same. Their tensor products in the stated node order are 1/4, -3/4, -3/4, 9/4. The sum is one, confirming constant reproduction despite negative weights. The absolute sum is 1/4+3/4+3/4+9/4=4, equal to the product of the two one-dimensional factors, two times two. Choose data errors (epsilon, -epsilon, -epsilon, epsilon). Their exact contribution is 4epsilon, attaining the pointwise infinity-data bound. At the interior midpoint (1/2, 1/2), all four weights are 1/4. They are positive and their absolute sum is one, attained by common signed errors of size epsilon. More generally bilinear in-cell interpolation has pointwise factor one throughout the square. The evaluation point (3/2, 3/2) is outside the square in both coordinates, so this is extrapolation amplification, not a contradiction of the in-cell positivity result. The tensor product multiplies the coordinate sensitivities; a continuous target-error estimate still needs regularity in both directions, and its data bounds do not imply such regularity.

What to carry forward

  • An interpolant matches the specified samples; an approximation minimizes or bounds a stated error. Agreement at finitely many samples cannot exclude an unseen feature.
  • Distinct nodes determine a unique polynomial of bounded degree. A change of polynomial representation preserves that mathematical interpolant but can change the arithmetic behavior.
  • The Lebesgue function measures amplification of value errors for fixed nodes and exact weights. Perturbed nodes, perturbed weights and differentiated outputs require separate analyses.
  • Chebyshev nodes control a nodal-product bound, while geometric convergence needs analytic extension to a specified ellipse. Neither statement makes every finite computed error minimal.
  • Uniform minimax approximation is characterized by alternation; least squares is an orthogonal projection in its stated inner product. Their optimal answers can differ.
  • Local linear pieces give a sharp second-order value bound and no interior data amplification, but differentiated values can be sensitive. Cubic smoothness alone does not preserve positivity or monotonicity.
  • Natural splines minimize bending energy among interpolants; smoothing splines balance a data term against that energy. The parameter has units and changes the scientific target.
  • A useful approximation certificate separates representation error, data uncertainty and arithmetic error on an explicit domain, and states what remains unknown about the scientific model.

References

Sources for the concepts and teaching approaches in this article.

  1. NIST DLMF, exact saved online sectionNational Institute of Standards and TechnologyReference workDigital Library of Mathematical Functions, Section 3.3: InterpolationDigital Library of Mathematical Functions, Section 3.11: Approximation Techniquesdlmf.nist.gov
  2. Barycentric Lagrange InterpolationJean-Paul Berrut and Lloyd N. TrefethenResearch paper · PDFpeople.maths.ox.ac.ukRead source
  3. Tobin A. Driscoll and Richard J. Braun4 sources
    1. Fundamentals of Numerical Computation: Stability of polynomial interpolationTobin A. Driscoll and Richard J. BraunAuthor textbookfncbook.comRead source
    2. Fundamentals of Numerical Computation: Orthogonal polynomialsTobin A. Driscoll and Richard J. BraunAuthor textbookfncbook.comRead source
    3. Fundamentals of Numerical Computation: Piecewise linear interpolationTobin A. Driscoll and Richard J. BraunAuthor textbookfncbook.comRead source
    4. Fundamentals of Numerical Computation: Cubic splinesTobin A. Driscoll and Richard J. BraunAuthor textbookfncbook.comRead source
  4. Splines: natural cubic splines and smoothing splinesStanford University, STATS 202Primary course notesweb.stanford.eduRead source
  5. Weierstrass Approximation Theorem: Bernstein polynomialsTerry SooAuthor course notestsoo-math.github.ioRead source
  6. Guide to Cultivating Complex Analysis: Working the Complex FieldJiří LeblAuthor textbook sourceraw.githubusercontent.comRead source