Newton interpolation at regularised Leja sequences
L. P. Bos M. Caliari September 22, 2015
1 Introduction
Given a compact set K ⊂ C and a point ξ 0 ∈ K, a Leja sequence {ξ j } m j=0 is defined recursively by taking
ξ m ∈ arg max
ξ∈K m−1
Y
j=0
|ξ − ξ j |, m ≥ 1.
Leja points are known to be good for polynomial interpolation and have the same asymptotic distribution as do the “optimal” Fekete points. See for example [1] for more details about their properties and other facts about polynomial interpolation. In case K is a finite set, what results is what is called the Leja re-ordering of the points of K and is useful (indeed necessary!) for a numerically stable evaluation of polynomial interpolants in Newton form (see e.g. [14]). In this brief note we illustrate some futher practical applications of the Leja point idea.
2 Leja stabilization
We consider now the following problem. Suppose we are given a set of points {ξ j } k j=0 in the interval K = [a, b] at which we want to interpolate a given function f : [a, b] → R. For example, the set {ξ j } k j=0 could be a set of equidis- tant or even random points, for which polynomial interpolation could be highly ill-conditioned.
We therefore try to stabilize the interpolation by considering the extended Leja sequence {ξ j } m j=0 given by
ξ m ∈ arg max
ξ∈[a,b]
m−1
Y |ξ − ξ j |, m ≥ k + 1. (1)
Since we do not know in advance the required degree of interpolation, we calucluate it in the Newton form as follows:
• sort the set {ξ j } k j=0 `a la Leja, that is ζ 0 ∈ arg max
ζ∈{ξ j } k j=0 |ζ|
ζ i ∈ arg max
ζ∈{ξ j } k j=0 i−1
Y
j=0
|ζ − ζ j | i ≥ 1
and rename the set {ξ j } k j=0 .
• Compute the interpolating polynomial of degree k in the Newton form
p k (x) =
k
X
j=0
f [ξ 0 , . . . , ξ j ]
j−1
Y
i=0
(x − ξ i )
!
• Set m = k +1 and compute the next point ξ m in the sequence according to (1) and evaluate |f [ξ 0 , . . . , ξ m ]ω m (ξ m )|, where ω m (x) = Q m−1
j=0 (x−ξ j ).
If it is larger than a given tolerance, compute
p m (x) = p m−1 (x) + f [ξ 0 , . . . , ξ m ]ω m (x) set m = m + 1 and repeat this step. Otherwise, stop.
The stopping criterion is based on the classical formula for the interpolation error
e m (x) = f (x) − p m (x) = f [ξ 0 , . . . , ξ m−1 , x]ω m (x) taking into account that |ω m (ξ m )| = max x∈[a,b] |ω m (x)|.
2.1 Numerical examples
We consider some examples of the above Leja stabilization. The first is interpolation on the interval [−2, 2] of the Runge function,
f (x) = 1 1 + 5x 2 2 ,
starting with 21 equispaced points. The results are shown in Figure 1
where the prescribed tolerances were taken to be 10 −1 , 10 −2 , 10 −3 and 10 −4 .
The final errors, measured on a set of 2001 equidistant points in [−2, 2],
are ke m k ∞ = 3.73 · 10 −2 , ke m k ∞ = 6.87 · 10 −3 , ke m k ∞ = 1.80 · 10 −3 and
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
f(x)
x 21 original points interp. original points 27 Leja stab. points interp. Leja stab. points
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
f(x)
x 21 original points interp. original points 29 Leja stab. points interp. Leja stab. points
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
f(x)
x 21 original points interp. original points 33 Leja stab. points interp. Leja stab. points
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
f(x)
x 21 original points interp. original points 53 Leja stab. points interp. Leja stab. points
Figure 1: Leja stabilization procedure for the interpolation of Runge’s func- tion at an initial set of equidistant points.
ke m k ∞ = 1.09 · 10 −4 , respectively with a total number of points equal to 27, 29, 33 and 53.
In this example, the initial reordering of the equidistant points is not necessary (we get exactly the same result with or without this step), but it is anyways a recommended procedure (see [12, Example 4.1]). If we try to interpolate the same function with a set of (pure) Leja points, the stopping criterion is triggered at 15, 21, 39 and 53 points, respectively.
As a second example, we consider an initial set of 19 uniformly random points with the addition of {−2, 2}.
The stabilization with ke m k ∞ = 6.64·10 −2 , ke m k ∞ = 4.04·10 −2 , ke m k ∞ = 5.87 · 10 −3 and ke m k ∞ = 3.22 · 10 −4 is obtained with 29, 31, 39 and 50 points respectively (see Figure 2).
As a third example we consider the Titanium Heat data (see [6, p. 197]),
rescaled to [−2, 2]. We pick the same set of 12 data points. Then we add Leja
points in order to stabilize the interpolation. Since the underlying analytical
function is not known, we consider a simple piecewise linear interpolant at
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
f(x)
x 21 original points interp. original points 29 Leja stab. points interp. Leja stab. points
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
f(x)
x 21 original points interp. original points 31 Leja stab. points interp. Leja stab. points
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
f(x)
x 21 original points interp. original points 39 Leja stab. points interp. Leja stab. points
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
f(x)
x 21 original points interp. original points 50 Leja stab. points interp. Leja stab. points
Figure 2: Leja stabilization procedure for the interpolation of Runge’s func- tion at an initial set of uniformly random points.
the original 49 data points. Moreover, since it is not possibile to compute the error with respect to the exact function, we consider the addition of 10, 20, 30 and 40 points, respectively. The results are shown in Figure 3. Of course, it is possible to consider the full set of data as initial set. The results are shown in Figure 4. It is therefore possible to construct a smooth curve passing through the given set of data.
The final example uses with data similar to those of [13, Figures 1.–3.], namely
data =
0.04 0.21 0.26 0.34 0.53 0.61 0.70 0.84 1.00 0.19 0.28 0.58 0.66 0.62 0.18 0.13 0.09 0.05
The abscissas are then rescaled to [−2, 2]. The missing values are recon-
structed by means of piecewise linear interpolation. For the purspose of
comparison, the not-a-knot cubic spline is drawn in the last plot of Figure 5.
-1 -0.5 0 0.5 1 1.5 2 2.5 3
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
TitaniumHeat
x 12 original points interp. original points 22 Leja stab. points interp. Leja stab. points
-1 -0.5 0 0.5 1 1.5 2 2.5 3
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
TitaniumHeat
x 12 original points interp. original points 32 Leja stab. points interp. Leja stab. points
-1 -0.5 0 0.5 1 1.5 2 2.5 3
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
TitaniumHeat
x 12 original points interp. original points 42 Leja stab. points interp. Leja stab. points
-1 -0.5 0 0.5 1 1.5 2 2.5 3
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
TitaniumHeat
x 12 original points interp. original points 52 Leja stab. points interp. Leja stab. points
Figure 3: Leja stabilization procedure for the interpolation of some Titanium Heat data.
3 Leja–Hermite
It is also possible to use Leja points for Hermite interpolation, that is inter- polation which also matches the derivatives of the function at some interpo- lation points. In order to do this, and use the Newton interpolation form, it is sufficient that the points at which derivatives have to be reconstructed appear consecutively and with the right multiplicity. For instance, if the k-th derivative is required at 0, it is possible to define the following Leja sequence:
{ξ j } k j=0 = {0} and
ξ m ∈ arg max
ξ∈[a,b]
m−1
Y
j=0
|ξ − ξ j | = arg max
ξ∈[a,b] |ξ| k+1
m−1
Y
j=k+1
|ξ − ξ j |, m ≥ k + 1.
When [a, b] is a symmetric interval [−a, a], it is possibile to analytically com-
pute the first three points after the initial set of zeros, which are ξ k+1 ∈
{−a, a}, ξ k+2 ∈ {−a, a} \ {ξ k+1 } and ξ k+3 ∈ {±pa 2 (k + 1)/(k + 3)}. For
the Newton interpolation form, it is possible to use the notion of confluent
-1 -0.5 0 0.5 1 1.5 2 2.5 3
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
TitaniumHeat
x 49 original points interp. original points 59 Leja stab. points interp. Leja stab. points
-1 -0.5 0 0.5 1 1.5 2 2.5 3
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
TitaniumHeat
x 49 original points interp. original points 69 Leja stab. points interp. Leja stab. points
-1 -0.5 0 0.5 1 1.5 2 2.5 3
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
TitaniumHeat
x 49 original points interp. original points 79 Leja stab. points interp. Leja stab. points
-1 -0.5 0 0.5 1 1.5 2 2.5 3
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
TitaniumHeat
x 49 original points interp. original points 89 Leja stab. points interp. Leja stab. points
Figure 4: Leja stabilization procedure for the interpolation of Titanium Heat data.
divided differences (see [9]): we define f [ξ i , . . . , ξ j ] = f (j−i) (ξ 0 )
(j − i)! 0 ≤ i ≤ j ≤ k
f [ξ m ] = f (ξ m ) m ≥ k + 1
f [ξ i , . . . , ξ k , ξ k+1 , . . . , ξ m ] = f [ξ i+1 , . . . , ξ m ] − f [ξ i , . . . , ξ m−1 ] ξ m − ξ i
0 ≤ i ≤ k < m Then, it is possibile to define the polynomial p m of degree m
p m (x) =
m
X
j=0
f [ξ 0 , . . . , ξ j ]
j−1
Y
i=0
(x − ξ j )
!
which satisfies
p (j) m (ξ 0 ) = f (j) (ξ 0 ) j = 0, . . . , k
p m (ξ j ) = f (ξ j ) j = k + 1, . . . , m
-2 -1.5 -1 -0.5 0 0.5 1
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
y
x 9 original points interp. original points 19 Leja stab. points interp. Leja stab. points
-2 -1.5 -1 -0.5 0 0.5 1
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
y
x 9 original points interp. original points 29 Leja stab. points interp. Leja stab. points
-2 -1.5 -1 -0.5 0 0.5 1
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
y
x 9 original points interp. original points 39 Leja stab. points interp. Leja stab. points
-2 -1.5 -1 -0.5 0 0.5 1
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
y
x 9 original points interp. original points 49 Leja stab. points interp. Leja stab. points not-a-knot cubic spline
Figure 5: Leja stabilization procedure for the interpolation of some data.
As an example, we consider the solution of a simple differential equation
−u ′′ ε (x) = − 1
2ε χ (−ε,ε) x ∈ (−2, 2) u ε (−2) = u ε (2) = 0
that is
u ε =
− 1
2 (x + 2) −2 ≤x ≤ −ε 1
4ε x 2 + ε − 4
4 −ε <x < ε
− 1
2 (2 − x) ε ≤x ≤ 2
In Figure 6 we show the interpolation of degree 6 of the solution u ε corre-
sponding to ε = 0.5 with the point 0 not repeated, repeated once and twice,
respectively. The errors, in infinity norm over a set of 2001 equidistant points,
are 0.04, 0.03 and 0.02, respectively.
-1 -0.8 -0.6 -0.4 -0.2 0
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
uǫ
x uǫ Hermite-Leja interp. withk= 0
-1 -0.8 -0.6 -0.4 -0.2 0
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
uǫ
x uǫ Hermite-Leja interp. withk= 1
-1 -0.8 -0.6 -0.4 -0.2 0
-2 -1.5 -1 -0.5 0 0.5 1 1.5 2
uǫ
x uǫ Hermite-Leja interp. withk= 2