Next Article in Journal
An Epidemic Model with Time Delay Determined by the Disease Duration
Next Article in Special Issue
An Interval-Simplex Approach to Determine Technological Parameters from Experimental Data
Previous Article in Journal
Total Controllability of Non-Autonomous Measure Evolution Systems with Non-Instantaneous Impulses and State-Dependent Delay
Previous Article in Special Issue
Supplements Related to Normal π-Projective Hypermodules
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Note on Lagrange Interpolation of |x| on the Chebyshev and Chebyshev–Lobatto Nodal Systems: The Even Cases

by
Elías Berriochoa
1,*,†,
Alicia Cachafeiro
1,*,†,
Héctor García-Rábade
2,† and
José Manuel García-Amor
3,†
1
Departamento de Matemática Aplicada I, Universidad de Vigo, 36310 Vigo, Spain
2
Departamento de Matemática Aplicada II, Universidad de Vigo, 32004 Ourense, Spain
3
Xunta de Galicia, Instituto E. S. Valle Inclán, 36001 Pontevedra, Spain
*
Authors to whom correspondence should be addressed.
These authors contributed equally to this work.
Mathematics 2022, 10(15), 2558; https://doi.org/10.3390/math10152558
Submission received: 15 June 2022 / Revised: 19 July 2022 / Accepted: 20 July 2022 / Published: 22 July 2022
(This article belongs to the Special Issue State-of-the-Art Mathematical Applications in Europe)

Abstract

:
Throughout this study, we continue the analysis of a recently found out Gibbs–Wilbraham phenomenon, being related to the behavior of the Lagrange interpolation polynomials of the continuous absolute value function. Our study establishes the error of the Lagrange polynomial interpolants of the function | x | on [ 1 , 1 ] , using Chebyshev and Chebyshev–Lobatto nodal systems with an even number of points. Moreover, with respect to the odd cases, relevant changes in the shape and the extrema of the error are given.

1. Introduction

The Gibbs–Wilbraham phenomenon, introduced in [1], is an important topic in function approximation and attracts much interest amongst researchers. It appears in different types of approximations, with its specific characteristics linked to each one. In brief, we can describe the phenomenon as the peculiar behavior of the approximations of a function with a jump discontinuity, using the usual Fourier series or different types of interpolation polynomials. Near the singularity, we have a large oscillation, and far away from the singularity, we have uniform convergence. Refs. [2,3,4,5,6,7,8,9] are devoted to researching the Gibbs–Wilbraham phenomena; however, all of them, though in different contexts, only refer to functions with jump discontinuities. A complete view of the recent research is reflected in [10].
In the recent article [11], we have studied the behavior of the Lagrange interpolators of | x | based on the Chebyshev and Chebyshev–Lobatto nodal systems with an odd number of nodal points, or if preferred, when 0 is part of the nodal system. The approximation of | x | by polynomials is an important topic since the paper of S. Bernstein, see [12]. We must refer to the introduction of this paper for the relevance of the problem and its possible development. The most relevant result, studied in depth, is that the approximations present a new Gibbs–Wilbraham phenomenon case. Indeed, we establish where and when the phenomenon occurs and give an accuracy approximation.
At least using interpolation, when we have the Gibbs–Wilbraham phenomenon, it is usual that minor changes in the nodal system have no effect on the shape of the phenomenon nor on its amplitudes, (see [3]). Therefore, we assumed that the study of the same interpolation problem changing the parity of the nodal systems had no interest, but we found that this was a mistake. In the present piece of work, we study the behavior of the Lagrange interpolators of | x | based on the Chebyshev and Chebyshev–Lobatto nodal systems with even order and, in the end, we conclude that the Gibbs–Wilbraham phenomena are strongly different in shape and amplitude.
This piece of work maintains a close logical connection with [11], even though we have reformulated its structure to make it less extensive and easier to read. For instance, we have recovered some interesting sums. We want to point out the key role of Lemma 2, which is an important advance with respect to the methods developed in that paper.
The article is structured as follows:
1.
After this introductory section, in Section 2, we present two Lagrange interpolatory problems in the unit circle T , T = { z T : | z | = 1 } , related to the function F ( z ) = | z + 1 z 2 | . We must point out that we do not justify the interest of these problems in this section. The results obtained here will be translated in a well-known and short way to the real problem in Section 3, which is devoted to the problem and its results on the real line.
2.
In Section 4, we present some numerical examples and the corresponding graphs.
3.
Finally, in Section 5, we present the conclusions and further developments.

2. On the Unit Circle

As we have said, we consider two different nodal systems on the unit circle. One of them, N T , is constituted by the 2 n roots of 1 with n = 2 p (p a natural number), being the related nodal polynomial, that we denote by W 2 n , T ( z ) , just W 2 n , T ( z ) = z 2 n + 1 . The other one, N U , is constituted by the 2 n roots of 1 with n = 2 p + 1 (p a natural number), being the related nodal polynomial, that we denote W 2 n , U ( z ) , just W 2 n , U ( z ) = z 2 n 1 . An important feature that N T and N U have in common is that i does not belong to them. Indeed, i is exactly the middle of the arc between two consecutive nodal points. Moreover, we can denote the systems in a common way by { α k } k = 0 2 n 1 ; both are equidistributed nodal systems on T and we can think that α 0 is i e i π 2 n and that the system is clockwise ordered (see Figure 1 below). The reasons for these choices and the notation will be seen clearly in Section 3. We use these nodal systems to interpolate the function F ( z ) = z + 1 z 2 , which is the translation to T of | x | through the Joukowsky transformation (see [13] for details).
The interpolation on the unit circle is not usually performed on the algebraic polynomial spaces. Instead of this, we use, due to completeness reasons, interpolation in subspaces of the space of Laurent polynomials Λ [ z ] = P [ z ] P [ 1 z ] and usually balanced spaces are used. Thus, in our case, we interpolate F ( z ) in the space Λ n , n 1 [ z ] = P n 1 [ z ] P n [ 1 z ] and we denote the corresponding interpolating polynomials by L n , n 1 ( F , z , T ) and L n , n 1 ( F , z , U ) , that is, corresponding to N T and N U , respectively. This problem is well-known, and in [3], we have given expressions for the interpolation polynomial in a quite general situation. Next, we translate some of them to our particular conditions.
1.
The Laurent polynomials L n , n 1 ( F , z , T ) and L n , n 1 ( F , z , U ) have the following expressions
L n , n 1 ( F , z , T ) = W 2 n , T ( z ) 2 n z n j = 0 2 n 1 1 α j n 1 ( z α j ) F ( α j ) ,
and
L n , n 1 ( F , z , U ) = W 2 n , U ( z ) 2 n z n j = 0 2 n 1 1 α j n 1 ( z α j ) F ( α j ) .
2.
The barycentric formulae of type II for L n , n 1 ( F , z , T ) and L n , n 1 ( F , z , U ) are
L n , n 1 ( F , z , T ) = j = 0 2 n 1 1 α j n 1 ( z α j ) F ( α j ) j = 0 2 n 1 1 α j n 1 ( z α j ) a n d   L n , n 1 ( F , z , U ) = j = 0 2 n 1 1 α j n 1 ( z α j ) F ( α j ) j = 0 2 n 1 1 α j n 1 ( z α j ) .
Barycentric formulae are easy to use and numerically stable in the sense of [14] in these cases.
Using exactly the same ideas as in [11], we can obtain an expression for the error between F ( z ) and its interpolants when z is an element of T with ( z ) , ( z ) 0 . We obtain
E ( F , z , T ) = F ( z ) j = 0 2 n 1 F ( α j ) 1 z n W 2 n , T ( z ) 2 n α j n 1 ( z α j ) = 2 j = n 2 n 1 F ( α j ) W 2 n , T ( z ) z n 2 n 1 α j n 1 ( z α j ) ,
and
E ( F , z , U ) = F ( z ) j = 0 2 n 1 F ( α j ) 1 z n W 2 n , U ( z ) 2 n α j n 1 ( z α j ) = 2 j = n 2 n 1 F ( α j ) W 2 n , U ( z ) z n 2 n 1 α j n 1 ( z α j ) .
We know that this error is, at most, of order 1 2 n and we therefore study 2 n E ( F , z , T ) and 2 n E ( F , z , U ) . After changing the index of the summation, we obtain:
2 n E ( F , z , T ) = 2 W 2 n , T ( z ) i n z n = 1 n F ( α 2 n ) i n α 2 n n 1 ( z α 2 n ) ,
and
2 n E ( F , z , U ) = 2 W 2 n , U ( z ) i n z n = 1 n F ( α 2 n ) i n α 2 n n 1 ( z α 2 n ) .
Notice that the only, but relevant, differences between (4) and (5) and the expressions stated in [11] are just the superior limit of the summation and the corresponding nodal polynomials.
We can describe z as z = i e i π d n . Taking into account the previous description of the nodal system, we have α = i e i π ( + 1 2 ) n and α 2 n = i e i π ( 1 2 ) n (see Figure 1). These choices make the reinterpretation of the previous expressions possible. Indeed, it is easy to obtain W 2 n , T ( z ) i n z n = 2 cos d π when n is even and newly W 2 n , U ( z ) i n z n = 2 cos d π when n is odd.
On the other hand, F ( α 2 n ) = α 2 n + 1 α 2 n 2 = i e i π ( 1 2 ) n + 1 i e i π ( 1 2 ) n 2 = ( i e i π n ) = sin ( 1 2 ) π n and
i n α 2 n n 1 ( z α 2 n ) = i n α 2 n n 1 z α 2 n 1 = i n i n e i π ( 1 2 ) n n 1 i e i π d n i e i π ( 1 2 ) n 1 = i ( 1 ) e i π ( d + 1 2 ) n 1 = i ( 1 ) 1 2 + i cos π ( d + 1 2 ) 2 n 2 sin π ( d + 1 2 ) 2 n .
For the last equality, we have used 1 e i x 1 = 1 2 + i cos x 2 2 sin x 2 (see [11] for details).
Hence, we have for z = i e i π d n
2 n E ( F , z , T ) = 4 cos d π = 1 n i ( 1 ) 1 2 + i cos π ( d + 1 2 ) 2 n 2 sin π ( d + 1 2 ) 2 n sin ( 1 2 ) π n = 4 cos d π = 1 n ( 1 ) cos π ( d + 1 2 ) 2 n 2 sin π ( d + 1 2 ) 2 n sin ( 1 2 ) π n + 2 i cos d π = 1 n ( 1 ) sin ( 1 2 ) π n ,
and the expression is also true for 2 n E ( F , z , U ) .
Lemma 1.
It holds
(i)
= 1 n ( 1 ) sin ( 1 2 ) π n = 1 2 sin ( n 1 ) π sec π 2 n = 0 .
(ii)
= 1 n 1 ( 1 ) cos ( 1 2 ) π n = 1 2 sec π 2 n cos ( n 1 ) π 1 .
Proof. 
All the sums that we gather in this lemma can be reconsidered as a sum of different geometric progressions by taking into account that sin θ = e i θ e i θ 2 i and cos θ = e i θ + e i θ 2 . Thus, the different problems can be confidently solved by a symbolic calculator. We have used Mathematica® 12.2 (Wolfram, Champaign, IL, USA) in all cases and made some elementary simplifications when necessary. □
Proposition 1.
For z = i e i π d n , it holds
2 n E ( F , z , T ) = 4 cos d π = 1 n ( 1 ) cos π ( d + 1 2 ) 2 n 2 sin π ( d + 1 2 ) 2 n sin ( 1 2 ) π n a n d 2 n E ( F , z , U ) = 4 cos d π = 1 n ( 1 ) cos π ( d + 1 2 ) 2 n 2 sin π ( d + 1 2 ) 2 n sin ( 1 2 ) π n .
Proof. 
We can neglect the imaginary part of 2 n E ( F , z , T ) in (7) as a consequence of Lemma 1 (i). We obtain the same result for 2 n E ( F , z , U ) because (7) is valid for it too. We must point out that the same expression is correct for both errors although we have the difference in the parity of n, which we need to take into account. □
In the next Lemma, we present an auxiliary result, which represents an important advance in the methods developed in [11].
Lemma 2.
It holds
= 1 n ( 1 ) cos ( d + 1 2 ) π 2 n 2 sin ( d + 1 2 ) π 2 n sin ( 1 2 ) π n = Q 1 , n ( d ) + Q 2 , n ( d ) w i t h
Q 1 , n ( d ) = 1 2 sec π 2 n i f   n   e v e n 1 2 cos d π n i f   n   o d d a n d
Q 2 , n ( d ) = 1 2 sin d π n = 1 n ( 1 ) cot ( d + 1 2 ) π 2 n .
Proof. 
We use 1 = 1 2 to simplify the exposition. Because
sin 1 π n = sin ( d + 1 ) π n d π n = sin ( d + 1 ) π n cos d π n + cos ( d + 1 ) π n sin d π n = 2 sin ( d + 1 ) π 2 n cos ( d + 1 ) π 2 n cos d π n cos 2 ( d + 1 ) π 2 n sin 2 ( d + 1 ) π 2 n sin d π n = 2 sin ( d + 1 ) π 2 n cos ( d + 1 ) π 2 n cos d π n + 2 sin 2 ( d + 1 ) π 2 n sin d π n sin d π n .
we have, taking 1 = 1 2 ,
= 1 n ( 1 ) cos ( d + 1 ) π 2 n 2 sin ( d + 1 ) π 2 n sin 1 π n = 1 2 = 1 n ( 1 ) cos ( d + 1 ) π 2 n sin ( d + 1 ) π 2 n 2 sin ( d + 1 ) π 2 n cos ( d + 1 ) π 2 n cos d π n + 2 sin 2 ( d + 1 ) π 2 n sin d π n + 1 2 sin d π n = 1 n ( 1 ) cos ( d + 1 ) π 2 n sin ( d + 1 ) π 2 n .
Thus, we can define Q 2 , n ( d ) = 1 2 sin d π n = 1 n ( 1 ) cos ( d + 1 2 ) π 2 n sin ( d + 1 2 ) π 2 n , that is, as in (10), and we can also take
Q 1 , n ( d ) = 1 2 = 1 n ( 1 ) cos ( d + 1 ) π 2 n sin ( d + 1 ) π 2 n 2 sin ( d + 1 ) π 2 n cos ( d + 1 ) π 2 n cos d π n + 2 sin 2 ( d + 1 ) π 2 n sin d π n = 1 2 = 1 n ( 1 ) 2 cos 2 ( d + 1 ) π 2 n cos d π n + 2 sin ( d + 1 ) π 2 n cos ( d + 1 ) π 2 n sin d π n = 1 2 = 1 n ( 1 ) 1 + cos ( d + 1 ) π n cos d π n + sin ( d + 1 ) π n sin d π n = 1 2 cos d π n = 1 n ( 1 ) + = 1 n ( 1 ) cos 1 π n .
After using Lemma 1 (ii), we obtain for Q 1 , n ( d ) the expression
Q 1 , n ( d ) = 1 2 cos d π n = 1 n ( 1 ) + 1 2 sec π 2 n cos ( π ( n 1 ) ) 1 .
Notice that Q 1 , n ( d ) is affected by the parity of n, and we conclude (9) because, when n is even, we have Q 1 , n ( d ) = 1 2 sec π 2 n , and when n is odd, we have Q 1 , n ( d ) = 1 2 cos d π n . □
In the sequel, we use the special function Phi of Hurwitz–Lerch with 1 as first argument, that is, H u r w i t z L e r c h P h i [ 1 , s , d ] . It is defined by
H u r w i t z L e r c h P h i [ 1 , s , d ] = k = 0 ( 1 ) k ( k + d ) s .
Moreover, in our case, s = 1 . Thus, we use H u r w i t z L e r c h P h i [ 1 , 1 , d ] , which we denote by η ( d ) (see [15] for the details).
To obtain the main results of this section, we need some intermediate statements that we gather in Lemmas 3 and 4.
In [11], we have considered the expression P 2 , n ( d ) = 1 2 sin d π n = 1 n 1 ( 1 ) cos ( d + ) π 2 n sin ( d + ) π 2 n closely related to Q 2 , n ( d ) . Next, we obtain some results about P 2 , n ( d ) based on that paper.
Lemma 3.
It holds:
(i)
If 1 2 d n , then P 2 , n ( d ) = d η ( d + 1 ) + O 1 n , for all n.
(ii)
If n 1 2 d n 2 + 1 2 , then P 2 , n ( d ) = 1 2 cos d π n + O 1 n , when n is even.
(iii)
If n 1 2 d n 2 + 1 2 , then P 2 , n ( d ) = 1 2 + O 1 n , when n is odd.
Proof. 
(i), (ii) and (iii) are, respectively, consequences of Propositions 5–7 (ii) of the last cited paper. Although the limits for d are different (they do not contain 1 2 ), the behaviors do not change. □
Lemma 4.
If 0 d n 2 , it holds
(i)
sin d π 2 n sin ( d 1 2 ) π 2 n = 1 2 1 cos d π n + O 1 n .
(ii)
cos d π 2 n cos ( d 1 2 ) π 2 n = 1 + O 1 n .
(iii)
sin d π n tan ( d 1 2 ) π 2 n = 1 cos d π n + O 1 n .
(iv)
If n d n 2 , then sin d π n sin ( d 1 2 ) π 2 n = 1 + O 1 n . .
Proof. 
(i) It is obtained thanks to the Mean Value Theorem (MVT). It is verified that
sin d π 2 n sin ( d 1 2 ) π 2 n = sin d π 2 n sin d π 2 n cos ξ π 4 n = sin 2 d π 2 n + O 1 n = 1 2 1 cos d π n + O 1 n .
We obtain (ii) newly applying the MVT. It is verified that
cos d π 2 n cos ( d 1 2 ) π 2 n = cos ( d 1 2 ) π 2 n sin ξ π 4 n cos ( d 1 2 ) π 2 n = 1 + O 1 n .
Note that cos ( d 1 2 ) π 2 n cos π 4 as 0 d n 2 .
(iii) It is a consequence of (i) and (ii) because
sin d π n tan ( d 1 2 ) π 2 n = 2 sin d π 2 n sin ( d 1 2 ) π 2 n cos d π 2 n cos ( d 1 2 ) π 2 n = 2 1 2 1 cos d π n + O 1 n 1 + O 1 n = 1 cos d π n + O 1 n .
(iv) It can be proved in the same way as (ii). □
Theorem 1.
Let z = i e i π d n . If n d n 2 , then 2 n E ( F , z , T ) = O ( 1 n ) and 2 n E ( F , z , U ) = O ( 1 n ) .
Proof. 
First, we prove our thesis for 2 n E ( F , z , T ) , that is, when n is even. We know that 2 n E ( F , z , T ) = 4 cos d π ( Q 1 , n ( d ) + Q 2 , n ( d ) ) , with Q 1 , n ( d ) , Q 2 , n ( d ) ) given in (9) and (10). We can write
Q 2 , n ( d ) = 1 2 sin d π n = 1 n ( 1 ) cot ( d + 1 2 ) π 2 n = 1 2 sin d π n = 1 n 1 ( 1 ) cot ( d + 1 2 ) π 2 n 1 2 sin d π n ( 1 ) n cot ( d + n 1 2 ) π 2 n = sin d π n sin ( d 1 2 ) π n 1 2 sin ( d 1 2 ) π n = 1 n 1 ( 1 ) cot ( d + 1 2 ) π 2 n + 1 2 sin d π n tan ( d 1 2 ) π 2 n .
This expression is more complex, but it is convenient as we can see that
= 1 + O 1 n 1 2 cos d π n + O 1 n
(see Lemma 3 (ii) and Lemma 4 (iv)) and
= 1 2 1 cos d π n + O 1 n
(see Lemma 4 (iii)). Thus, we have Q 2 , n ( d ) = 1 2 + O 1 n . Taking into account that Q 1 , n ( d ) = 1 2 sec π 2 n , we have the result for 2 n E ( F , z , T ) .
We use the same ideas for 2 n E ( F , z , U ) , that is, when n is odd, and we obtain
= ( 1 + O 1 n ) 1 2 + O 1 n
and
= 1 2 1 cos d π n + O 1 n
and Q 1 , n ( d ) = 1 2 cos d π n . These elements lead us to the same result for 2 n E ( F , z , U ) . □
Lemma 5.
If 0 d n , then sin d π n sin ( d 1 2 ) π sin ( d 1 2 ) π n = O ( 1 ) .
Proof. 
Let us suppose that d 1 . In this case, we write sin d π n sin ( d 1 2 ) π sin ( d 1 2 ) π n d π n 2 π ( d 1 2 ) π n = O ( 1 ) . When 0 d 1 and d 1 2 , we obtain sin d π n sin ( d 1 2 ) π sin ( d 1 2 ) π n d π n ( d 1 2 ) π 2 π ( d 1 2 ) π n = O ( 1 ) .
Lemma 6.
If 0 d n , it holds
cos d π Q 2 , n ( d ) = cos d π 1 2 sin d π n = 1 n ( 1 ) cos ( d + 1 2 ) π 2 n sin ( d + 1 2 ) π 2 n = cos ( d π ) d η ( d + 1 2 ) + O 1 n
Proof. 
Considering (11), we have
cos d π Q 2 , n ( d ) = cos d π sin d π n sin ( d 1 2 ) π n 1 2 sin ( d 1 2 ) π n = 1 n 1 ( 1 ) cot ( d + 1 2 ) π 2 n + cos d π 1 2 sin d π n tan ( d 1 2 ) π 2 n .
The term of (13) is, in our case, O 1 n . For the other term, which is the relevant one, and taking into account that cos d π = sin ( d 1 / 2 ) π , Lemma 3 (i) and Lemma 5, we obtain
= cos d π sin d π n sin ( d 1 2 ) π n 1 2 sin ( d 1 2 ) π n = 1 n 1 ( 1 ) cot ( d + 1 2 ) π 2 n = sin d π n sin ( d 1 / 2 ) π sin ( d 1 / 2 ) π n ( d 1 2 ) η ( d + 1 2 ) + O 1 n = sin d π n sin ( d 1 / 2 ) π sin ( d 1 / 2 ) π n ( d 1 2 ) η ( d + 1 2 ) + O ( 1 ) O 1 n .
Therefore, using newly cos d π = sin ( d 1 / 2 ) π , we obtain
= cos d π sin d π n sin ( d 1 2 ) π n ( d 1 2 ) η ( d + 1 2 ) + O 1 n = cos d π sin d π n d π n ( d 1 2 ) π n sin ( d 1 / 2 ) π n d η ( d + 1 2 ) + O 1 n = cos ( d π ) d η ( d + 1 2 ) 1 + O 1 n 2 1 + O 1 n 2 + O 1 n .
For the last equality of (14), we have used the well-known facts that x sin x and sin x x are both 1 + O ( x 2 ) , when x is small. Thus, we can conclude (12). □
Theorem 2.
Let z = i e i π d n and 0 d n .
(i)
If n is even, then 2 n E ( F , z , T ) = 4 cos d π d η ( d + 1 2 ) 1 2 sec π 2 n + O 1 n . Moreover, for n large enough, 2 n E ( F , z , T ) behaves like 4 cos d π d η ( d + 1 2 ) 1 2 and the error is O 1 n .
(ii)
If n is odd, then 2 n E ( F , z , U ) = 4 cos d π d η ( d + 1 2 ) 1 2 cos d π n + O 1 n . Moreover, for n large enough, 2 n E ( F , z , U ) behaves like 4 cos d π d η ( d + 1 2 ) 1 2 and the error is O 1 n .
Proof. 
Both facts are straightforward consequences of Proposition 1 and Lemmas 2 and 6. Both expressions can be approximated by 4 cos d π d η ( d + 1 2 ) 1 2 + O 1 n . □
We can conclude the following:
1.
It appears a Gibbs–Wilbraham phenomenon. Theorem 1 states 2 n E ( F , z , T ) and 2 n E ( F , z , U ) converge uniformly to 0 far from i but, as a consequence of Theorem 2, they present a strong oscillation close to i. The limits for these behaviors are clearly stated.
2.
An important consequence of Theorem 2 is that we can asymptotically approximate 2 n E ( F , z , T ) (or 2 n E ( F , z , U ) ) near i by 4 cos d π d η ( d + 1 2 ) 1 2 . Notice that the extrema of the error must be asymptotically near the extrema of the approximation. It is easy to obtain these last extrema. We have done this by using the sequence of Mathematica® commands gathered in the extremaerror file of https://github.com/eberriochoa/Absolute-value-interpolation-The-even-cases (accessed on 2 June 2022). The results are presented in Table 1.
3.
Finally, the more relevant result is that the Gibbs–Wilbraham phenomenon is completely different with the corresponding phenomenon when i belongs to the nodal systems (see [11]). This can be appreciated in shapes and extrema.

3. Interpolation of  | x | on Chebyshev and Chebyshev–Lobatto Nodal Systems with Even Nodes

In the sequel, m 1 ( | x | , x , T m ) denotes the Lagrange interpolation polynomial which interpolates | x | on the Chebyshev nodal system constituted by the m roots of T m ( x ) , the Chebyshev polynomial of degree m. Similarly, m + 1 ( | x | , x , U m ) denotes the Lagrange interpolation polynomial which interpolates | x | on the Chebyshev–Lobatto nodal system constituted by the m roots of U m ( x ) , the Chebyshev polynomial of degree m, plus ± 1 . In both cases, we consider m even. Classical references about Chebyshev polynomials are [16,17]. Taking into account the symmetry of the problem, it is immediate that m 1 ( | x | , x , T m ) = m 1 ( | x | , x , T m ) . Thus, m 1 ( | x | , x , T m ) cannot have odd monomials, and it is a polynomial of degree m 2 at most. Similarly, m + 1 ( | x | , x , U m ) is a polynomial of degree m at most. If we consider the Joukowsky–Szego transformation with x and z related to x = z + 1 z 2 , we have that the Chebyshev nodes are related to N T (the 2 m roots of 1 ) and the Chebyshev–Lobatto nodes are related to N U (the 2 m + 2 roots of 1). Moreover, m 1 ( | x | , z + 1 z 2 , T m ) interpolates F ( z ) = | z + 1 z 2 | on N T . As m 1 ( | x | , z + 1 z 2 , T m ) belongs to Λ m , m 1 [ z ] , we can conclude that m 1 ( | x | , z + 1 z 2 , T m ) = L n , n 1 ( F , z , T ) . Furthermore, as this is a roundtrip, we know the behavior of | x | m 1 ( | x | , x , T m ) , taking into account the behavior of | z + 1 z 2 | L m , m 1 ( F , z , T ) . A similar affirmation is true for m + 1 ( | x | , x , U m ) . Thus, we can state the next theorems.
Theorem 3.
For x = sin d π m , it holds
1.
If m d m 2 , then
2 m ( | x | m 1 ( | x | , x , T m ) = O 1 m a n d 2 ( m + 1 ) ( | x | m + 1 ( | x | , x , U m ) = O 1 m .
2.
If 0 d m 2 , then
2 m ( | x | m 1 ( | x | , x , T m ) = 4 cos d π d η ( d + 1 2 ) 1 2 + O 1 m and
2 ( m + 1 ) ( | x | m + 1 ( | x | , x , U m ) = 4 cos d π d η ( d + 1 2 ) 1 2 + O 1 m .
Proof. 
Take into account the preceding paragraph and Theorems 1 and 2. □

4. Numerical Experiments and Graphs

All the graphs which can be seen below have been obtained by using a sequence of commands of Mathematica® 12.2. We share these codes and the graphs through the link https://github.com/eberriochoa/Absolute-value-interpolation-The-even-cases (accessed on 2 June 2022). The representations are always related to the function F ( z ) = | z + 1 z 2 | and the interpolation polynomial L n , n 1 ( F , z , T ) for n = 200 . For simplicity, we use the variable θ , with z = e i θ , in the plots.
We have tested that the graphs for other values of n do not present changes.
Figure 2 presents a general view of the interpolation on the left-hand side. On the right-hand side, we have the representation considering both functions multiplied by 2 n , and we can appreciate that the interpolation has problems near i, or equivalently θ = π 2 .
Figure 3 gives a good idea of the Gibbs–Wilbraham phenomenon. It presents the difference between F ( z ) and L 200 , 199 ( F , z , T ) multiplied by 2 n , that is, 2 n E ( F , z , T ) . It is clear that far enough from ± i , this difference is close to 0. On the other hand, when we are near the singularities, the function presents an oscillatory behavior. This behavior is more pronounced the closer we get to the singularities.
Figure 4 gives a good idea of the behavior near i. The figure presents 2 n E ( F , z , T ) and the approximation given in Theorem 2 along 30 arcs centered in i. We must point out that the functions are indistinguishable.
Figure 5 is a detail of Figure 4. 2 n E ( F , z , T ) and the approximation given in Theorem 2 along 30 arcs centered in i are presented. We must point out that the functions are indistinguishable.
Figure 6 shows us an important difference between the Gibbs–Wilbraham phenomenon in the interpolation of the jump function, defined by F ( z ) = 1 z T , ( z ) 0 1 z T , ( z ) < 0 , and the Gibbs–Wilbraham phenomenon in the interpolation of the absolute value function. The Gibbs–Wilbraham phenomenon does not depend on the parity of the nodal system in the first case; meanwhile, it depends on the parity in the second one.
In Figure 6 (at the left), we represent the Lagrange interpolation polynomials of the jump function based on the roots of T 200 ( x ) (in black) and on the roots of T 201 ( x ) (in blue); it is remarkable that the Gibbs–Wilbraham phenomena are similar in shape and extrema.
On the other hand, Figure 6 (at the right) presents the Lagrange interpolation polynomials of the absolute value based on the roots of T 200 ( x ) (in black) and on the roots of T 201 ( x ) (in blue); it is remarkable that the Gibbs–Wilbraham phenomena are completely different in shape and extrema.

5. Conclusions and Future Work

The objective of this work is not to suppress the Gibbs–Wilbraham phenomena, but a better knowledge of them could help to develop the research with this goal. Refs. [18,19] are interesting papers of this research line.
We think that there is a lot of possible future work related to the Gibbs–Wilbraham phenomena for functions with very local singularities.
First of all, we have evidence about the phenomenon when the singularity is 0 (or ± i thinking in T ). Therefore, we must perform some work to extend our knowledge to problems related to arbitrary points.
A second point of interest is the order of the derivative which has the singularity. We have evidence only for 0 (Jump function) and 1 (absolute value), but it is clear that the same problem for derivatives of greater order could be of interest. In this sense, we want to emphasize the role that Lemma 2, a key point in this article, could play in the development of this research.

6. Materials and Methods

To perform the numerical experiments included in this piece of work, we have used the notation and formulae included in the paper. We created three programs which can be obtained at the url https://github.com/eberriochoa/Absolute-value-interpolation-The-even-cases (accessed on 2 June 2022). These files are the text of notebooks elaborated with Mathematica ® 12.2. These programs (notebooks) should run correctly with recent previous versions and future versions because we use only simple commands. Furthermore, we do not use compiled routines.

7. Discussion

Recently, we have published the paper [11], which presents the behavior of the Lagrange interpolation polynomial of the continuous absolute value function, using Chebyshev and Chebyshev–Lobatto systems with an odd number of points.
The aim of the present piece of work is to continue the analysis of this new Gibbs–Wilbraham phenomenon. Our study establishes the error of the Lagrange polynomial interpolants of the function |x| on the bounded interval [ 1 , 1 ] , using Chebyshev and Chebyshev–Lobatto nodal systems with an even number of points.
It could be thought that there is no novelty in this approach. Indeed, at the beginning, we thought that the results would have to be the same or quite similar. Nevertheless, as we said in our introduction, this is a presumed idea. Moreover, relevant changes with respect to the odd cases in the shape and the extrema of the error are given. This is an important difference with the usual Gibbs–Wilbraham phenomenon related to the Lagrange interpolation of functions with jump discontinuities.
We think that the findings presented in our paper would be useful for applied mathematicians and numerical analysts interested in the reconstruction of a function using Lagrange interpolation and approximation theory.

Author Contributions

Conceptualization, E.B., A.C., H.G.-R. and J.M.G.-A.; investigation, E.B., A.C., H.G.-R. and J.M.G.-A.; software, E.B., A.C., H.G.-R. and J.M.G.-A.; writing—original draft, E.B., A.C., H.G.-R. and J.M.G.-A. All authors have read and agreed to the published version of the manuscript.

Funding

This document is the result of a research project partially funded (first two authors) by the Ministerio de Ciencia e Innovación under grant PID2020-116764RB-I00.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Gibbs, J.W. Fourier’s series. Nature 1898, 59, 606. [Google Scholar] [CrossRef]
  2. Berriochoa, E.; Cachafeiro, A.; Díaz, J. Gibbs phenomenon in the Hermite interpolation on the circle. Appl. Math. Comput. 2015, 253, 274–286. [Google Scholar] [CrossRef]
  3. Berriochoa, E.; Cachafeiro, A.; García Amor, J.M. Gibbs-Wilbraham phenomenon on Lagrange interpolation based on analytic weights on the unit circle. J. Comput. Appl. Math. 2020, 365, 17. [Google Scholar] [CrossRef]
  4. Davis, J.M.; Hagelstein, P. Gibbs phenomena for some classical orthogonal polynomials. J. Math. Anal. Appl. 2022, 505, 14. [Google Scholar] [CrossRef]
  5. Helmberg, G. The Gibbs phenomenon for Fourier interpolation. J. Approx. Theory 1994, 78, 41–63. [Google Scholar] [CrossRef] [Green Version]
  6. Helmberg, G. A limit function for equidistant Fourier interpolation. J. Approx. Theory 1995, 81, 389–396. [Google Scholar] [CrossRef] [Green Version]
  7. Helmberg, G.; Wagner, P. Manipulating Gibbs phenomenon for Fourier interpolation. J. Approx. Theory 1997, 89, 308–320. [Google Scholar] [CrossRef] [Green Version]
  8. Hewitt, E.; Hewitt, R. The Gibbs-Wilbraham phenomenon: An episode in Fourier analysis. Arch. Hist. Exact Sci. 1980, 21, 129–160. [Google Scholar] [CrossRef]
  9. Trefethen, L.N. Approximation Theory and Approximation Practice; Society for Industrial and Applied Mathematics (SIAM): Philadelphia, PA, USA, 2013. [Google Scholar]
  10. Jerri, A.J. (Ed.) Advances in The Gibbs Phenomenon, 1st ed.; Σ Sampling Publishing: Potsdam, NY, USA, 2007. [Google Scholar]
  11. Berriochoa, E.; Cachafeiro, A.; García Amor, J.M.; García Rábade, H. The Gibbs–Wilbraham phenomenon in the approximation of |x| by using Lagrange interpolation on the Chebyshev–Lobatto nodal systems. J. Comput. Appl. Math. 2022, 414, 22. [Google Scholar] [CrossRef]
  12. Bernstein, S. Sur la meilleure approximation de |x| par des polynômes de degrés donnés. Acta Math. 1914, 37, 1–57. [Google Scholar] [CrossRef]
  13. Szego, G. Orthogonal Polynomials, 4th ed.; American Mathematical Society: Providence, RI, USA, 1975; Volume 23. [Google Scholar]
  14. Higham, N.J. The numerical stability of barycentric Lagrange interpolation. IMA J. Numer. Anal. 2004, 24, 547–556. [Google Scholar] [CrossRef]
  15. Erdélyi, A.; Magnus, W.; Oberhettinger, F.; Tricomi, F.G. Higher Transcendental Functions; R.E. Krieger Publishing Co., Inc.: Melbourne, VI, USA, 1981; Volume 1. [Google Scholar]
  16. Mason, J.C.; Handscomb, D.C. Chebyshev Polynomials; Chapman & Hall/CRC: Boca Raton, FL, USA, 2003. [Google Scholar]
  17. Rivlin, T. The Chebyshev polynomials. In Pure and Applied Mathematics; John Wiley & Sons: New York, NY, USA, 1974. [Google Scholar]
  18. Adcock, B.; Platte, R.B. A mapped polynomial method for high-accuracy approximations on arbitrary grids. SIAM J. Numer. Anal. 2016, 54, 2256–2281. [Google Scholar] [CrossRef]
  19. De Marchi, S.; Marchetti, F.; Perracchione, E.; Poggiali, D. Polynomial interpolation via mapped bases without resampling. Comput. Appl. Math. 2020, 364, 112347. [Google Scholar] [CrossRef]
Figure 1. A common view of N T and N U near i.
Figure 1. A common view of N T and N U near i.
Mathematics 10 02558 g001
Figure 2. A general view of F ( z ) and L 200 , 199 ( F , z , T ) on the left and a detailed view of both scaled functions near i on the right.
Figure 2. A general view of F ( z ) and L 200 , 199 ( F , z , T ) on the left and a detailed view of both scaled functions near i on the right.
Mathematics 10 02558 g002
Figure 3. A neat view of the Gibbs–Wilbraham phenomena. The representation of 2 n E ( F , z , T ) along T for n = 200 .
Figure 3. A neat view of the Gibbs–Wilbraham phenomena. The representation of 2 n E ( F , z , T ) along T for n = 200 .
Mathematics 10 02558 g003
Figure 4. A detailed view of the Gibbs–Wilbraham phenomena. The representation of 2 n E ( F , z , T ) along 30 arcs near i for n = 200 .
Figure 4. A detailed view of the Gibbs–Wilbraham phenomena. The representation of 2 n E ( F , z , T ) along 30 arcs near i for n = 200 .
Mathematics 10 02558 g004
Figure 5. A detailed view of the Gibbs–Wilbraham phenomena. The representation of 2 n E ( F , z , T ) along 12 arcs near i for n = 200 .
Figure 5. A detailed view of the Gibbs–Wilbraham phenomena. The representation of 2 n E ( F , z , T ) along 12 arcs near i for n = 200 .
Mathematics 10 02558 g005
Figure 6. Left: Noninfluence of the parity on the error, n odd and even and Lagrange interpolation of jump function. Right: Influence of parity on error, n odd and even and Lagrange interpolation of | x | .
Figure 6. Left: Noninfluence of the parity on the error, n odd and even and Lagrange interpolation of jump function. Right: Influence of parity on error, n odd and even and Lagrange interpolation of | x | .
Mathematics 10 02558 g006
Table 1. Extrema of 4 cos d π d η ( d + 1 2 ) 1 2 .
Table 1. Extrema of 4 cos d π d η ( d + 1 2 ) 1 2 .
In the IntervalThe Extremum is Attained at (d Value)Being the Extremum
[ 0 , 1 2 ] 0−2
  [ 1 2 , 3 2 ] 0.8644970.310441
  [ 3 2 , 5 2 ] 1.91506−0.103946
  [ 5 2 , 7 2 ] 2.938710.0504843
  [ 7 2 , 9 2 ] 3.95233−0.0294926
  [ 9 2 , 11 2 ] 4.96111−0.179272
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Berriochoa, E.; Cachafeiro, A.; García-Rábade, H.; García-Amor, J.M. A Note on Lagrange Interpolation of |x| on the Chebyshev and Chebyshev–Lobatto Nodal Systems: The Even Cases. Mathematics 2022, 10, 2558. https://doi.org/10.3390/math10152558

AMA Style

Berriochoa E, Cachafeiro A, García-Rábade H, García-Amor JM. A Note on Lagrange Interpolation of |x| on the Chebyshev and Chebyshev–Lobatto Nodal Systems: The Even Cases. Mathematics. 2022; 10(15):2558. https://doi.org/10.3390/math10152558

Chicago/Turabian Style

Berriochoa, Elías, Alicia Cachafeiro, Héctor García-Rábade, and José Manuel García-Amor. 2022. "A Note on Lagrange Interpolation of |x| on the Chebyshev and Chebyshev–Lobatto Nodal Systems: The Even Cases" Mathematics 10, no. 15: 2558. https://doi.org/10.3390/math10152558

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop