Skip to Main Content

Rational Approximation

Lloyd N. Trefethen

Communicated by Notices Associate Editor Reza Malek-Madani

Rational approximation is an old subject, but it has gone through a transformation in recent years with the appearance of a new algorithm that makes computing rational approximations easy. Indeed, many problems can now be solved to good accuracy in milliseconds on a laptop. This is the AAA algorithm, whose name derives from “adaptive Antoulas-Anderson” NST18. Curiously, the computation of polynomial approximations on domains other than intervals and disks, which is in principle a much easier problem but still becomes numerically intractable if a good basis is not available, has also been transformed recently by the introduction of the so-called Vandermonde-with-Arnoldi algorithm BNT21.

The aim of this short story is not to describe these algorithms, which has been done elsewhere, but to show how beautifully they can reveal the power of rational functions and the mathematics of rational approximation. With the help of six figures all in the same format, we will illustrate what is sometimes called the Walsh/Gonchar theory of this subject. Details and references can be found in LS06NST18Rak16Tre23.

The setting is a function defined on a compact, simply connected set in the complex plane , and is the -norm over . (Simple connectivity doesn’t matter for the algorithm, but it makes this exposition simpler.) We are interested in best or near-best approximations to by rational functions of degree (i.e., with polynomials and of degree ), and for comparison, by polynomials of degree . The minimax errors can be written

Figure 1.

Entire function, .

Graphic without alt text

First, consider the case where is entire. Here it is known that both and are guaranteed to decrease superexponentially as , i.e., they are both for any . Figure 1 illustrates this for approximation of on the unit disk. On the left, we see convergence curves for AAA rational and Vandermonde-with-Arnoldi polynomial approximation, curving downward on this log scale. On the right, we see a portion of the complex plane with information about the final rational approximation to accuracy , of degree in this case. The red dots mark the poles of , . The yellow dots mark a set of interpolation points with , , that are selected by AAA in the course of its computation. The AAA algorithm is a “greedy” iteration based on a barycentric representation of with coefficients determined by a least-squares minimization NST18. There may be other points besides where also interpolates the data, but the plots just mark these “support points” explicitly selected step-by-step by AAA. (Because of the least-squares aspect of AAA, sample sets for do not have to be determined carefully; it is usually enough to distribute a few hundred sample points with reasonable density along the boundary of the domain.) The contours in this and the other plots are potential curves associated with the poles and interpolation points, as we will explain at the end.

Figure 2.

Meromorphic function, .

Graphic without alt text

Next, suppose is analytic on but meromorphic in , having one or more poles. Here rational approximations can “peel the poles off,” so the decay of is still superexponential. Polynomials, however, are limited to exponential convergence at a rate determined by the pole closest to as measured by a conformal map of to the exterior of the unit disk Tre24, Thm. 3. Figure 2 illustrates all this for on the unit disk, with the rational curve again curving downward but the polynomial curve now straight. (Four poles are off-scale, and similarly there are 4, 1, 4, and 5 poles off-scale in Figures 3, 4, 5, and 6.)

Figure 3.

Function with essential singularities, . Inset: zoom near .

Graphic without alt text

Now suppose has essential singularities outside . You might expect this to slow down rational approximations fundamentally, but in fact, the convergence is still superexponential, as shown in Figure 3 for on the unit disk. The contour plot looks much as in Figure 2, but each of the inner four red dots is now a cluster of five poles, as illustrated in the inset.

Figure 4.

Function with branch points, .

Graphic without alt text

Branch points are a more serious obstacle to approximation, because they are not isolated singularities. If has any branch points outside , rational approximants always slow down to exponential convergence. Thus both rational functions and polynomials converge exponentially, but the rates may be very different. I like to think that the trouble with polynomials is that their poles are constrained to lie at , whereas rational functions can put poles wherever they are most useful. The poles of good rational approximations do their best to approximate branch cuts, lining up beautifully along certain curves investigated by Stahl Sta97, as one sees in Figure 4 for approximation on the unit disk of a function with square root singularities at and .

Finally, there are two great cases where rational functions are far more efficient than polynomials. The well-known one, as discovered by Newman in 1964 New64, is when has branch point singularities on the boundary of . Here, polynomials are stuck with algebraic convergence, whereas rational functions can achieve root-exponential convergence () by clustering poles exponentially near the singularities. Figure 5 shows Newman’s example of approximation of on . The rational approximations converge root-exponentially, whereas the polynomials do no better than .

Figure 5.

Function with singularity on the approximation domain, on .

Graphic without alt text
Figure 6.

Function analytic in a nonconvex region, .

Graphic without alt text

The other case is not so well-known but equally important. This is the situation of approximation on a nonconvex domain when the analytic continuation of has a singularity in an “inlet,” as will be true in most applications. Here both polynomials and rational functions achieve exponential convergence, for some , but for polynomials, is exponentially close to with respect to the length of the inlet Tre24, sec. 7. In the case shown in Figure 6, involving a smooth domain bent around a portion of the positive real axis, we would need to increase the degree of asymptotically by about for each additional digit of accuracy. In such cases, for practical purposes, polynomials effectively do not converge at all. The rational functions do fine by approximating a branch cut along .

Now at last let us explain the contours in the figures, which show off the Walsh/Gonchar theory that leads to all of the results we have outlined. These contours are level curves of a potential function which we can interpret as generated by a positive point charge at each pole and a negative point charge at each interpolation point ,

This yields an error estimate for  by a Cauchy–Hermite contour integral exploited by Joseph Walsh beginning in the 1930s Wal65, Thm. 8.2,

This identity holds for any contour within which and are analytic, and good bounds come when the pole and interpolation point distributions are close to equilibrium. Behavior as was investigated by Gonchar and others beginning in the 1960s, and the best bounds come with lying “as far from as possible,” hugging Stahl’s optimal branch cuts. The AAA algorithm doesn’t know the Walsh/Gonchar theory, but its poles delineate the optimal branch cuts pretty well anyway.

Something remarkable emerges if one examines the numbers on the colorbars in our plots. These represent powers of 10, and what is striking is that the range of yellow to blue is typically around 7 orders of magnitude, not or more as (2) would suggest for 12-digit accuracy. There is a factor of 2 in play here that is related to a certain orthogonality or approximate orthogonality along contours. Simply put, taking absolute values in (2) gives a valid upper bound, but the actual error is often much smaller because of oscillation of the integrand, leading to cancellation of the integral to leading order. For many near-best approximations, is on the order of the square of what one would expect from (2). Rakhmanov speaks of the Gonchar-Stahl theorem, which details cases in which this squaring can be guaranteed. See Rak16 and Tre23, sec. 7.5.

The easy computations and plots of this review would not have been possible before about 2018. The implications of the AAA algorithm are very wide-ranging, making rational functions practical for numerical computation in a way they were not before. Exploring the possibilities is an active research area in numerical analysis.

References

[BNT21]
Pablo D. Brubeck, Yuji Nakatsukasa, and Lloyd N. Trefethen, Vandermonde with Arnoldi, SIAM Rev. 63 (2021), no. 2, 405–415, DOI 10.1137/19M130100X. MR4253796,
Show rawAMSref \bib{VA}{article}{ author={Brubeck, Pablo D.}, author={Nakatsukasa, Yuji}, author={Trefethen, Lloyd N.}, title={Vandermonde with Arnoldi}, journal={SIAM Rev.}, volume={63}, date={2021}, number={2}, pages={405--415}, issn={0036-1445}, review={\MR {4253796}}, doi={10.1137/19M130100X}, }
[LS06]
E. Levin and E. B. Saff, Potential theoretic tools in polynomial and rational approximation, Harmonic Analysis and Rational Approximation, 2006, pp. 71–94.,
Show rawAMSref \bib{levin}{inproceedings}{ author={Levin, E.}, author={Saff, E.~B.}, title={Potential theoretic tools in polynomial and rational approximation}, date={2006}, booktitle={Harmonic {A}nalysis and {R}ational {A}pproximation}, volume={3}, publisher={Springer}, pages={71\ndash 94}, }
[New64]
D. J. Newman, Rational approximation to , Michigan Math. J. 11 (1964), 11–14. MR171113,
Show rawAMSref \bib{newman}{article}{ author={Newman, D. J.}, title={Rational approximation to $| x| $}, journal={Michigan Math. J.}, volume={11}, date={1964}, pages={11--14}, issn={0026-2285}, review={\MR {171113}}, }
[NST18]
Yuji Nakatsukasa, Olivier Sète, and Lloyd N. Trefethen, The AAA algorithm for rational approximation, SIAM J. Sci. Comput. 40 (2018), no. 3, A1494–A1522, DOI 10.1137/16M1106122. MR3805855,
Show rawAMSref \bib{aaa}{article}{ author={Nakatsukasa, Yuji}, author={S\`ete, Olivier}, author={Trefethen, Lloyd N.}, title={The AAA algorithm for rational approximation}, journal={SIAM J. Sci. Comput.}, volume={40}, date={2018}, number={3}, pages={A1494--A1522}, issn={1064-8275}, review={\MR {3805855}}, doi={10.1137/16M1106122}, }
[Rak16]
E. A. Rakhmanov, The Gonchar-Stahl -theorem and associated directions for studies on rational approximations of analytic functions (Russian, with Russian summary), Mat. Sb. 207 (2016), no. 9, 57–90, DOI 10.4213/sm8448; English transl., Sb. Math. 207 (2016), no. 9-10, 1236–1266. MR3588992,
Show rawAMSref \bib{rakh}{article}{ author={Rakhmanov, E. A.}, title={The Gonchar-Stahl $\rho ^2$-theorem and associated directions for studies on rational approximations of analytic functions}, language={Russian, with Russian summary}, journal={Mat. Sb.}, volume={207}, date={2016}, number={9}, pages={57--90}, issn={0368-8666}, translation={ journal={Sb. Math.}, volume={207}, date={2016}, number={9-10}, pages={1236--1266}, issn={1064-5616}, }, review={\MR {3588992}}, doi={10.4213/sm8448}, }
[Sta97]
Herbert Stahl, The convergence of Padé approximants to functions with branch points, J. Approx. Theory 91 (1997), no. 2, 139–204, DOI 10.1006/jath.1997.3141. MR1484040,
Show rawAMSref \bib{stahl}{article}{ author={Stahl, Herbert}, title={The convergence of Pad\'{e} approximants to functions with branch points}, journal={J. Approx. Theory}, volume={91}, date={1997}, number={2}, pages={139--204}, issn={0021-9045}, review={\MR {1484040}}, doi={10.1006/jath.1997.3141}, }
[Tre23]
Lloyd N. Trefethen, Numerical analytic continuation, Jpn. J. Ind. Appl. Math. 40 (2023), no. 3, 1587–1636, DOI 10.1007/s13160-023-00599-2. MR4644441,
Show rawAMSref \bib{jjiam}{article}{ author={Trefethen, Lloyd N.}, title={Numerical analytic continuation}, journal={Jpn. J. Ind. Appl. Math.}, volume={40}, date={2023}, number={3}, pages={1587--1636}, issn={0916-7005}, review={\MR {4644441}}, doi={10.1007/s13160-023-00599-2}, }
[Tre24]
L. N. Trefethen, Polynomial and rational convergence rates for Laplace problems on planar domains, Proc. Roy. Soc. A 480 (2024), no. 20240178, DOI 10.1098/rspa.2024.0178.,
Show rawAMSref \bib{inlets}{article}{ author={Trefethen, L.~N.}, title={Polynomial and rational convergence rates for {L}aplace problems on planar domains}, date={2024}, journal={Proc. Roy. Soc. A}, volume={480}, number={20240178}, doi={10.1098/rspa.2024.0178}, }
[Wal65]
J. L. Walsh, Interpolation and approximation by rational functions in the complex domain, 4th ed., American Mathematical Society Colloquium Publications, Vol. XX, American Mathematical Society, Providence, RI, 1965. MR218588,
Show rawAMSref \bib{walsh}{book}{ author={Walsh, J. L.}, title={Interpolation and approximation by rational functions in the complex domain}, series={American Mathematical Society Colloquium Publications, Vol. XX}, edition={4}, publisher={American Mathematical Society, Providence, RI}, date={1965}, pages={x+405}, review={\MR {218588}}, }

Credits

Figures 1–6 are courtesy of Nick Trefethen.

Photo of Lloyd N. Trefethen is courtesy of Eliza Grinnell, Harvard University.