An ellipse, not a disc
Worth reading first: A denominator that reaches past the radius · The error that keeps coming back to its worst.
The function is as well behaved on the real line as a function can be: positive, bounded, infinitely differentiable, a smooth bump centred at nought. Its Taylor series at nought converges only for . The reason, found in the radius of convergence, is not on the real line at all: the function has poles at in the complex plane, a fifth of a unit from the centre, and a power series converges on the largest disc that avoids every singularity.
On the interval that is a disaster. The Taylor series covers a fifth of the interval and diverges on the rest. And yet polynomials approximate this function on the whole interval without any difficulty: the best polynomial of degree sixteen is within of it everywhere, and the error falls steadily as the degree rises. Whatever governs how well polynomials do on an interval, it is not the disc.
The figure below is what governs it. The same two poles, the same small Taylor disc — and an ellipse, with foci at the ends of the interval, passing through the poles. The ellipse contains the whole interval. The size of that ellipse is the interval’s version of the radius of convergence, and this essay is about why.
A polynomial on an interval is a cosine series in disguise
The tool is the substitution that made Chebyshev’s points and Chebyshev’s polynomials appear in the first place: . As runs from to , runs from back to , so a function on the interval becomes a function of an angle. Keep going round and the function of the angle repeats: it is periodic, and even, since .
The Chebyshev polynomials are defined so that this substitution turns them into cosines: . So writing a function on as a sum of Chebyshev polynomials,
is exactly the same as writing as a sum of cosines, with the same coefficients. A Chebyshev series is a Fourier series, after a change of variable, and every fact about where Fourier coefficients come from and how fast they fall transfers without alteration.
The substitution is not an arbitrary trick. Equally spaced angles on a semicircle, dropped onto the diameter, are exactly the Chebyshev points, so the natural way to sample a function on an interval — the way that makes interpolation behave — is equally spaced in and bunched in . Once the function is written in the variable in which its good sample points are evenly spaced, the tools of evenly spaced sampling are available: the discrete cosine transform computes all the coefficients from the samples at once, just as a discrete Fourier transform does for a periodic signal.
That is worth pausing on, because it is the surprising connection this essay rests on. Polynomials on an interval and trigonometric waves on a circle look like different subjects — one is algebra, one is harmonic analysis — and the substitution makes them one subject. Fourier needed his series to solve the flow of heat; the same series, bent round a semicircle, is how a computer evaluates a function.
Across the whole interval, at once
The Chebyshev series of converges everywhere on , and the convergence is uniform: the partial sums close in on the function across the interval together, not from the centre outward.
The worst errors are , and at degrees four, twelve and twenty-four. Between twelve and twenty-four the error falls by a factor of eleven in twelve degrees — about per degree. That number is the heart of the matter. Where does come from, when the function’s Taylor series has radius ?
The ellipse through the poles
Under the substitution , let become complex. The point then ranges over the complex plane, and with . That map sends each circle , for , to an ellipse — with foci at , semi-major axis , semi-minor axis — and it sends the unit circle itself to the interval, traversed twice.
So the Fourier series in , whose coefficients decay like exactly when the periodic function extends analytically into the annulus , becomes a Chebyshev series whose coefficients decay like exactly when extends analytically into the ellipse of parameter . That is Sergei Bernstein’s theorem, from 1912: the Chebyshev coefficients of fall geometrically at rate , where is the parameter of the largest ellipse with foci inside which is analytic, and the best polynomial error at degree falls at the same rate.
For the poles are at , and the ellipse through them has . The first figure draws it, and the rate of per degree measured from the partial sums is the same number, computed a different way.
Three functions, three ellipses, three rates. The function has its poles at , five times further off, and its ellipse has . The function has its pole on the real axis just past the interval’s end, at , and its ellipse is squeezed flat, with . The rates fitted to sixty coefficients agree with the ellipses to four decimal places.
Notice what the ellipse does that the disc could not. A pole at distance from the middle of the interval gives an ellipse of parameter , and a pole at distance beyond the end gives — the second is far easier, though it is just as close to the interval. The ellipse is thin near the ends and fat in the middle, so a singularity opposite the middle of the interval does the most damage and one beyond an end does the least. The disc treats all directions alike, because a power series is about one point; the ellipse knows the interval has ends.
The Runge function, reread
The ellipse also finishes the story of the points that ruined the fit. That essay found that interpolating at equally spaced points diverges near the ends, and that interpolating at Chebyshev points converges. The Chebyshev half now has its rate: the interpolant at Chebyshev points converges at rate per degree, like the series, because Chebyshev interpolation is nearly the same thing as cutting off the Chebyshev series.
The equally spaced half has a rate too, and it is the reason the failure happens. For equally spaced nodes the relevant curves are not ellipses but the level curves of a different potential, fatter near the ends of the interval, and the level curve through the interval’s ends encloses the poles at . So equally spaced interpolation “sees” the poles as lying inside the region where it needs analyticity, and diverges near the ends, where that region is widest. Carl Runge worked this out in 1901. The Chebyshev points are exactly the points whose curves are the Bernstein ellipses, and the ellipses are thinnest at the ends, where the equally spaced curves are widest.
The two failures met so far now have the same shape. A Taylor series fails outside the largest disc free of singularities. An interpolation scheme fails outside the largest level curve free of them. What differs is the family of curves, and the family is decided by where the information comes from: one point, or a spread of points on an interval.
A corner anywhere costs a power
Geometric decay needs analyticity in some ellipse, however thin. A function with a corner, or a jump in some derivative, is not analytic in any neighbourhood of the interval at all, and its coefficients fall only like a power of .
The rule is the Fourier rule, carried across by the substitution. has a corner; has corners too, and the Fourier coefficients of a function with corners fall like — the same decay that makes a square wave’s ripples fall like one derivative lower. has two more continuous derivatives and falls like .
The square root is the instructive case. is worse than in the obvious sense — its derivative is infinite at — and yet its coefficients fall at the same rate, . The substitution explains it: , a function with an ordinary corner. The change of variable stretches the ends of the interval, since moves slowly near and , and a singularity at an end is smoothed by the stretch into something milder. The same stretch is why Chebyshev points crowd at the ends: the variable is the natural one, and in the points are evenly spaced.
Nearly the best, for the price of a transform
The error that keeps coming back to its worst found the best polynomial of each degree by an exchange algorithm, iterating until a lower and an upper bound met. Cutting off the Chebyshev series is far cheaper: one cosine transform of the function’s values at Chebyshev points gives every coefficient at once. The question is how much the cheapness costs.
Very little. At every degree up to sixteen, the cut-off series is within a factor of of the best error, and the two curves are parallel on a log scale, falling at the same rate . In general the ratio is bounded by a constant plus a multiple of — the Lebesgue constant of the Chebyshev projection, which grows so slowly that at degree a thousand it is still below eight.
So in practice the best polynomial is almost never computed. A cut-off Chebyshev series, or equivalently the interpolant at Chebyshev points, gives an approximation that is within a digit of the best and costs a fast Fourier transform. The software system Chebfun, begun by Lloyd Trefethen and Zachary Battles in 2004, is built on nothing else: it represents each function as a Chebyshev series cut off where the coefficients reach rounding level, and computes with those series — adding, multiplying, integrating, finding roots — as though they were the functions themselves. The coefficient plots here are what it looks at to decide where to stop.
A point has circles, an interval has ellipses
Why an ellipse, and why these foci? There is a way of seeing it that does not go through Fourier series at all, and it explains the disc in the same breath.
Polynomial approximation of a function near a set is controlled by how quickly a polynomial of degree can grow as it moves away from the set, given that it is bounded by one on the set itself. Near a single point, the polynomial is the extreme case: it is tiny near nought and grows like at distance , so the curves of equal growth are circles about the point. Those circles are the discs of Taylor series, and moving the centre moves the circles with it.
Near an interval the extreme polynomial is the Chebyshev polynomial, which is bounded by one on and grows faster off it than any other polynomial of its degree with that bound. Its size at a complex point is about , where is the parameter of the ellipse through . So the ellipses are the level curves of polynomial growth away from the interval, exactly as circles are for a point. A singularity on the ellipse of parameter limits the approximation to an error that falls like , for the same reason a singularity at radius limits a power series.
In the language of potential theory, the circles and the ellipses are both level curves of the Green’s function of the set — the electrostatic potential of the set when it is a conductor charged to one volt, measured in the plane around it. For a point the potential is and its level curves are circles; for a segment it is and its level curves are the ellipses with foci at the segment’s ends. Every set in the plane has such curves, and polynomial approximation on the set converges geometrically inside the largest one the function is analytic in. The disc and the ellipse are the two simplest cases of one theorem.
Entire functions, and no ellipse too large
A function with no singularities anywhere in the plane — , , any polynomial — is analytic inside every ellipse, however large. For such a function Bernstein’s theorem says the coefficients fall faster than any geometric rate, and they do. The Chebyshev coefficients of are , where is a modified Bessel function, and they behave like : at the coefficient is about , and at it is about , at the level of rounding. Sixteen terms give on to full double precision.
That is the same distinction one point’s worth of information drew between functions with an infinite radius of convergence and functions without, transferred from a point to an interval. And it is why the best degree-three approximation of in the previous essay was already accurate to half a per cent: an entire function is as easy as a function can be, and the best error falls by a larger factor at each degree than the one before.
The practical rule that falls out of all this is short. On an interval, smoothness buys speed in two currencies: a finite number of derivatives buys a power of , and analyticity in an ellipse buys a geometric rate set by the ellipse. Which currency a function pays in is visible at a glance on a plot of its coefficients — a straight line on a log–log plot, or a straight line on a log plot.
Integrating what has been approximated
A Chebyshev series is not only a way to evaluate a function. Each has an integral over that can be written down — nought for odd , and for even — so integrating the series term by term integrates the function, with an error no larger than the tail of the series. Evaluated from values at Chebyshev points, this is Clenshaw–Curtis quadrature, published in 1960, and its error falls at the rate of the function’s ellipse, exactly like the approximation.
The more famous rule, Gauss’s, chooses its points to integrate polynomials of twice the degree exactly and converges at rate — twice as many correct digits per point, on paper. In practice the two are close for most functions, a surprise documented by Trefethen in 2008, because both are limited by the same ellipse and the extra exactness of Gauss’s rule is spent on polynomials of high degree that a function analytic in a thin ellipse barely contains. The ellipse, not the rule, sets the pace.
What the coefficient plots cannot show
The coefficients are computed by a cosine transform on 1,024 points (8,192 for the slowly decaying ones), which is exact for polynomials of degree below that and very accurate for the functions drawn. What the plots show is a rate, and a rate is a statement about infinitely many coefficients; sixty or two hundred are evidence for it, and the theorem is what turns the evidence into a fact.
The plots also stop at the floor of the arithmetic. Past about the computed coefficients are rounding noise, and the rate cannot be read there — which is why the fit uses only the part of each sequence above that floor, and why the figure says where the floor is rather than letting the noise pass for mathematics.
And the ellipse picture assumes the singularities are known. For a rational function they are at the zeros of the denominator, and the figures compute from them directly. For a function given only by its values, the direction is reversed: the rate is measured from the coefficients and the ellipse is inferred, which is how Chebfun can report where a function it has never seen as a formula stops being analytic.
Still open: the nodes that interpolate best
Chebyshev points are nearly optimal for interpolation: the factor by which their interpolant can magnify an error — the Lebesgue constant — grows like , and no set of nodes can do better than that rate. But they are not exactly optimal. At each degree there is a set of nodes with a slightly smaller constant.
Sergei Bernstein and Paul Erdős conjectured in the 1930s that the optimal nodes are the ones for which the magnification function has equal local maxima between consecutive nodes — the alternation idea once more, applied to the nodes rather than the polynomial. Thomas Kilgore, and independently Carl de Boor and Allan Pinkus, proved it in 1978. What is not known is a formula for those optimal nodes: they are characterised completely and computed numerically, degree by degree, and no closed description of them has been found, even though the Chebyshev points they so nearly equal have one of the simplest descriptions in the subject.
That is where this line of questions ends, for now. A power series lives on a disc, a polynomial approximation on an interval lives on an ellipse, and the best points to sample the interval at are an alternation problem with a known answer and no formula.
What links here
Computed from the collection, not written here: the essays that point at this one.
Shares its objects with
Essays that name at least two of the same things, and that neither author linked.
- A series that converges nowhere — both name approximation, convergence, radius of convergence
- A curve with a corner at every point — both name convergence, fourier series
- A sum read from inside — both name convergence, radius of convergence
- An error with an unknown in it — both name approximation, convergence
- Nearly the most means nearly round — both name ellipse, fourier series
- The size of a number with no formula — both name approximation, convergence
Named objects
A dashed tag is an object no other essay names yet.
ApproximationChebyshev polynomialComplex planeConvergenceEllipseFourier seriesRadius of convergenceSingularity