Construct a convergent polynomial without differentiating the data
For continuous \(f\) on \([0,1]\), let \(K\) count successes in \(n\) independent Bernoulli trials of success probability \(x\). The expected sample \(B_nf(x)=E[f(K/n)]\) is a polynomial of degree at most \(n\). The weights sum to one and \(E[K/n]=x,\ {\rm Var}(K/n)=x(1-x)/n\). Let \(\omega_f(\delta)\) be the largest change in \(f\) between points at distance at most \(\delta\).
Given a target error, choose \(\delta\) using uniform continuity first, then \(n\) to control the second term. The bound holds simultaneously for every \(x\). For an \(L\)-Lipschitz signal, Cauchy–Schwarz improves the argument directly to \(\|B_nf-f\|_\infty\le L/(2\sqrt n)\). For \(f(x)=x^2\), taking the second moment gives the exact excess \(x(1-x)/n\). Existence of a uniformly good polynomial gives no guarantee that interpolating arbitrary samples will find it.
Relate interpolation error to best achievable error
For distinct nodes let \(I_n\) interpolate and \(\ell_j\) be the cardinal polynomials. Its operator norm in the maximum norm is \(\Lambda_n=\max_x\sum_j|\ell_j(x)|\). At a maximising point, data with the signs of the cardinal functions attain the bound and can be extended continuously between nodes. For any polynomial \(p\) of degree at most \(n\), \(I_np=p\), so subtraction gives
For Chebyshev extrema the angular representation \(x=\cos\theta\) makes the cardinal functions shifted trigonometric kernels. Their absolute contributions away from the nearest angular node are bounded by a constant times \(1/j\), using \(\sin u\ge 2u/\pi\) on \([0,\pi/2]\). The nearest term is bounded. Summing yields \(O(\log n)\) growth. At equally spaced nodes the barycentric weights are proportional to \((-1)^j{n\choose j}\), giving very large alternating interior weights near an endpoint as degree increases. To obtain an explicit lower bound, measure distance in grid spacings and evaluate at \(1/2\). Since \(\prod_{i=0}^n|1/2-i|/n!={2n\choose n}/(2\,4^n)\), the absolute value of the \(j\)th cardinal polynomial there is this factor times \({n\choose j}/|j-1/2|\). For \(j=\lfloor n/2\rfloor\), the central-binomial estimate gives growth at least proportional to \(2^n/n^2\). A single cardinal function is already enough to prove exponential growth of the norm. This explains why the same best error can coexist with very different interpolation errors.
Compare an analytic continuation, a corner and a jump
Put \(g(\theta)=f(\cos\theta)\). Chebyshev coefficients are cosine coefficients of an even periodic function. If the periodic \(g\) has \(m\) absolutely continuous derivatives and the next derivative is integrable, integration by parts \(m+1\) times bounds its coefficients by \(Ck^{-(m+1)}\). For \(m\ge1\), summing the tail gives \(O(n^{-m})\). Piecewise smooth functions can be treated by integrating each smooth interval and retaining internal jump terms. For \(|\cos\theta|\), continuity removes the first boundary term while the derivative jumps, giving coefficients of order \(k^{-2}\) and a tail of order \(1/n\). Analytic extension to an ellipse instead gives the geometric tail developed in the course's interpolation chapter.
At a jump of height \(J\), continuous approximants cannot have a uniform error below \(|J|/2\) on a domain containing both sides. For a periodic step of height 2, its sine series involves \((4/\pi)\sin((2j+1)x)/(2j+1)\). At \(x=z/(2N)\) the first \(N\) terms form a midpoint Riemann sum tending to \((2/\pi)\int_0^z\sin(t)/t\,dt\). Its first maximum, at \(z=\pi\), is about 1.179. The overshoot persists while its width shrinks. A mean-square error can still decrease.
How should a convergence plot treat the jump itself?
Report the maximum over the whole interval, a second maximum excluding a fixed physical neighbourhood of the jump and an integrated squared error. Sampling at a fixed small set of points can miss the narrowing peak entirely. Increase the sampling resolution with the polynomial degree.

Tutorial on changing the order of limits
Obtain an explicit degree requirement for a bounded slope
Work through the solution
For a target maximum error \(0.01\) and \(L=2\), the Lipschitz estimate guarantees \(n\ge10^4\). This is a sufficient degree. For the specific quadratic the exact worst error is \(1/(4n)\), requiring only \(n\ge25\).
Predict the effect of measurement error on both meshes
Work through the solution
Bounded nodal errors of size \(\epsilon\) perturb the interpolant by at most \(\Lambda_n\epsilon\). Even if the noiseless tail decreases geometrically, at fixed instrument accuracy the noise term eventually dominates. On an equally spaced mesh increasing the degree can make the prediction worse.
Trefethen · approximation, regularity and interpolation
Change parameters · What can smoothness buy at a fixed polynomial degree?
Change one input at a time and compare the recalculated curves with the argument above. The browser evaluates this small model locally; the accompanying numerical values state its assumptions and reference checks. Reset restores the reference inputs, and the data can be downloaded as CSV.