This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

New error bounds for Legendre approximations of differentiable functions

Haiyong Wang111School of Mathematics and Statistics, Huazhong University of Science and Technology, Wuhan 430074, P. R. China. E-mail: haiyongwang@hust.edu.cn 222Hubei Key Laboratory of Engineering Modeling and Scientific Computing, Huazhong University of Science and Technology, Wuhan 430074, China.
Abstract

In this paper we present a new perspective on error analysis for Legendre approximations of differentiable functions. We start by introducing a sequence of Legendre-Gauss-Lobatto polynomials and prove their theoretical properties, including an explicit and optimal upper bound. We then apply these properties to derive a new explicit bound for the Legendre coefficients of differentiable functions. Building on this, we establish an explicit and optimal error bound for Legendre approximations in the L2L^{2} norm and an explicit and optimal error bound for Legendre approximations in the LL^{\infty} norm under the condition that their maximum error is attained in the interior of the interval. Illustrative examples are provided to demonstrate the sharpness of our new results.

Keywords: Legendre approximations, differentiable functions, Legendre coefficients, Legendre-Gauss-Lobatto functions, optimal convergence rates.

AMS classifications: 41A25, 41A10

1 Introduction

Legendre approximations are one of the most fundamental methods in the field of scientific computing, such as Gauss-type quadrature, finite element and spectral methods for the numerical solution of differential equations (see, e.g., [3, 6, 7, 14]). One of the most remarkable advantages of Legendre approximations is that their accuracy depends solely upon the smoothness of the underlying functions. From both theoretical and applied perspectives, it is of particular importance to study error estimates of various Legendre approximation methods, such as Legendre projection and interpolation.

Over the past one hundred years, there has been a continuing interest in developing error estimates and error bounds for classical spectral approximations (i.e., Chebyshev, Legendre, Jacobi, Laguerre and Hermite approximations) and many results can be found in monographes on approximation theories, orthogonal polynomials and spectral methods (see, e.g., [3, 4, 8, 11, 14, 15, 16]). However, the existing results have several typical drawbacks: (i) optimal error estimates of Laguerre and Hermite approximations are far from satisfactory; (ii) error estimates and error bounds for Legendre and, more generally, Gegenbauer and Jacobi approximations of differentiable functions might be suboptimal. Indeed, for the former, little literature is available on optimal error estimates or sharp error bounds for Laguerre and Hermite interpolation. For the latter, even for the very simple function f(x)=|x|f(x)=|x|, the error bounds of its Legendre approximation of degree nn in the maximum norm in [10, 17, 20] are suboptimal since they all behave like O(n1/2)O(n^{-1/2}) as nn\rightarrow\infty, while the actual convergence rate is O(n1)O(n^{-1}) (see [22, Theorem 3]). In view of these drawbacks, optimal error estimates and sharp error bounds for classical spectral approximations have received renewed interest in recent years. We refer to the monograph [16] and the literature [2, 10, 17, 19, 20, 22, 23, 24, 25, 26] for more detailed discussions.

Let Ω=[1,1]\Omega=[-1,1] and let Pk(x)P_{k}(x) be the Legendre polynomial of degree kk. It is well known that the sequence {Pk(x)}k=0\{P_{k}(x)\}_{k=0}^{\infty} forms a complete orthogonal system on Ω\Omega and

ΩPj(x)Pk(x)dx=(k+12)1δj,k,\displaystyle\int_{\Omega}P_{j}(x)P_{k}(x)\mathrm{d}x=\left(k+\frac{1}{2}\right)^{-1}\delta_{j,k}, (1.1)

where δj,k\delta_{j,k} is the Kronecker delta. For any fL2(Ω)f\in{L}^{2}(\Omega), its Legendre projection of degree nn is defined by

fn(x)=k=0nakPk(x),ak=(k+12)11f(x)Pk(x)dx.\displaystyle f_{n}(x)=\sum_{k=0}^{n}a_{k}P_{k}(x),\quad a_{k}=\left(k+\frac{1}{2}\right)\int_{-1}^{1}f(x)P_{k}(x)\mathrm{d}x. (1.2)

In order to analyze the error estimate of Legendre projections in both the L2L^{2} and LL^{\infty} norms, sharp estimates of the Legendre coefficients play an important role in the analysis (see, e.g., [10, 17, 19, 20, 22, 24, 25]). Indeed, these estimates are useful not only in understanding the convergence rates of Legendre projections but useful also in estimating the degree of the Legendre projection to approximate f(x)f(x) within a prescribed accuracy. In recent years, sharp estimates of the Legendre coefficients have experienced rapid development. In the case when f(x)f(x) is analytic inside and on the Bernstein ellipse

ρ={z|z=u+u12,u=ρeiθ,0θ<2π},\displaystyle\mathcal{E}_{\rho}=\left\{z\in\mathbb{C}~{}\bigg{|}~{}z=\frac{u+u^{-1}}{2},~{}u=\rho e^{\mathrm{i}\theta},~{}0\leq\theta<2\pi\right\}, (1.3)

for some ρ>1\rho>1, an explicit and sharp bound for the Legendre coefficients was given in [22, Lemma 2]

|a0|D(ρ)2,|ak|D(ρ)kρk,k1,\displaystyle|a_{0}|\leq\frac{D(\rho)}{2},\qquad|a_{k}|\leq D(\rho)\frac{\sqrt{k}}{\rho^{k}},\quad k\geq 1, (1.4)

where D(ρ)=2M(ρ)L(ρ)/(πρ21)D(\rho)=2M(\rho)L(\mathcal{E}_{\rho})/(\pi\sqrt{\rho^{2}-1}) and M(ρ)=maxzρ|f(z)|M(\rho)=\max_{z\in\mathcal{E}_{\rho}}|f(z)| and L(ρ)L(\mathcal{E}_{\rho}) is the length of the circumference of ρ\mathcal{E}_{\rho}. As a direct consequence, for each n0n\geq 0, it was proved in [22, Theorem 2] that

ffnL(Ω)\displaystyle\|f-f_{n}\|_{L^{\infty}(\Omega)} D(ρ)ρn((n+1)1/2ρ1+(n+1)1/2(ρ1)2).\displaystyle\leq\frac{D(\rho)}{\rho^{n}}\bigg{(}\frac{(n+1)^{1/2}}{\rho-1}+\frac{(n+1)^{-1/2}}{(\rho-1)^{2}}\bigg{)}. (1.5)

Moreover, another direct consequence of (1.4) is the error bound of Legendre projection in the L2L^{2} norm:

ffnL2(Ω)\displaystyle\|f-f_{n}\|_{L^{2}(\Omega)} (k=n+1D(ρ)2ρ2k)1/2=D(ρ)ρnρ21.\displaystyle\leq\left(\sum_{k=n+1}^{\infty}\frac{D(\rho)^{2}}{\rho^{2k}}\right)^{1/2}=\frac{D(\rho)}{\rho^{n}\sqrt{\rho^{2}-1}}. (1.6)

In the case when f(x)f(x) is differentiable but not analytic on the interval Ω\Omega, upper bounds for the Legendre coefficients were extensively studied in [10, 17, 20, 25]. However, those bounds in [17, 20] depend on some semi-norms of high-order derivatives of f(x)f(x) which may be overestimated, especially when the singularity is close to endpoints, and those bounds in [10, 25] involve ratios of gamma functions, which are less favorable since their asymptotic behavior and computation still require further treatment.

In this paper, we give a new perspective on error bounds of Legendre approximations for differentiable functions. We start by introducing the Legendre-Gauss-Lobatto (LGL) polynomials

ϕkLGL(x)={Pk+1(x)Pk1(x),k1,P1(x),k=0,\displaystyle\phi_{k}^{\mathrm{LGL}}(x)=\left\{\begin{array}[]{ll}P_{k+1}(x)-P_{k-1}(x),&\hbox{$k\geq 1$,}\\[6.0pt] P_{1}(x),&\hbox{$k=0$,}\end{array}\right. (1.9)

and then proving theoretical properties of these polynomials, including the differential recurrence relation and an optimal and explicit bound for their maximum value on Ω\Omega. Based on LGL polynomials, we obtain a new explicit and sharp bound for the Legendre coefficients of differentiable functions, which is sharper than the result in [20] and is more informative than the results in [10, 25]. Building on this new bound, we then establish an explicit and optimal error bounds for Legendre projections in the L2L^{2} norm and an explicit and optimal error bound for Legendre projections in the LL^{\infty} norm whenever the maximum error of fnf_{n} is attained in the interior of Ω\Omega. We emphasize that in contrast to those results in [10, 25] which involve ratios of gamma functions, our results are more explicit and informative.

This paper is organized as follows. In section 2 we prove some theoretical properties of the LGL polynomials. In section 3 we establish a new bound for the Legendre coefficients of differentiable functions, which improves the existing result in [20]. Building on this bound, we establish some new error bounds of Legendre projections in both L2L^{2} and LL^{\infty} norms. In section 4 we present two extensions, including the extension of LGL polynomials to Gegenbauer-Gauss-Lobatto functions and optimal convergence rates of LGL interpolation and differentiation for analytic functions. Finally, we give some concluding remarks in section 5.

2 Properties of Legendre-Gauss-Lobatto polynomials

In this section, we establish some theoretical properties of LGL polynomials {ϕkLGL}\{\phi_{k}^{\mathrm{LGL}}\}. Our main result is stated in the following theorem.

Theorem 2.1.

Let ϕkLGL(x)\phi_{k}^{\mathrm{LGL}}(x) be defined in (1.9). Then, the following properties hold:

  • (i)

    |ϕkLGL(x)||\phi_{k}^{\mathrm{LGL}}(x)| is even for k=0,1,k=0,1,\ldots and ϕkLGL(±1)=0\phi_{k}^{\mathrm{LGL}}(\pm 1)=0 for k=1,2,k=1,2,\ldots.

  • (ii)

    The following differential recurrence relation holds

    ϕkLGL(x)=ddx(ϕk+1LGL(x)2k+3ϕk1LGL(x)2k1),k=1,2,.\displaystyle\phi_{k}^{\mathrm{LGL}}(x)=\frac{\mathrm{d}}{\mathrm{d}x}\left(\frac{\phi_{k+1}^{\mathrm{LGL}}(x)}{2k+3}-\frac{\phi_{k-1}^{\mathrm{LGL}}(x)}{2k-1}\right),\quad k=1,2,\ldots. (2.1)
  • (iii)

    Let ν=(n+1)/2\nu=\lfloor(n+1)/2\rfloor and let xν<<x1x_{\nu}<\cdots<x_{1} be the zeros of Pn(x)P_{n}(x) on the interval [0,1][0,1]. Then, |ϕnLGL(x)||\phi_{n}^{\mathrm{LGL}}(x)| attains its local maximum values at these points and

    |ϕnLGL(x1)|<|ϕnLGL(x2)|<<|ϕnLGL(xν)|.\displaystyle|\phi_{n}^{\mathrm{LGL}}(x_{1})|<|\phi_{n}^{\mathrm{LGL}}(x_{2})|<\cdots<|\phi_{n}^{\mathrm{LGL}}(x_{\nu})|. (2.2)
  • (iv)

    The maximum value of |ϕnLGL(x)||\phi_{n}^{\mathrm{LGL}}(x)| satisfies

    maxxΩ|ϕnLGL(x)|42πn,n=1,2,,\displaystyle\max_{x\in\Omega}|\phi_{n}^{\mathrm{LGL}}(x)|\leq\frac{4}{\sqrt{2\pi n}},\quad n=1,2,\ldots, (2.3)

    and the bound on the right-hand side is optimal in the sense that it can not be improved further.

Proof.

As for (i), they follow from the properties of Legendre polynomials, i.e., Pk(x)=(1)kPk(x)P_{k}(-x)=(-1)^{k}P_{k}(x) and Pk(±1)=(±1)kP_{k}(\pm 1)=(\pm 1)^{k} for k=0,1,k=0,1,\ldots. As for (ii), we obtain from [15, Equation (4.7.29)] that

ddxϕkLGL(x)=(2k+1)Pk(x),k=0,1,.\displaystyle\frac{\mathrm{d}}{\mathrm{d}x}\phi_{k}^{\mathrm{LGL}}(x)=(2k+1)P_{k}(x),\quad k=0,1,\ldots. (2.4)

The identity (2.1) follows immediately from (2.4). As for (iii), due to (2.4) we know that |ϕnLGL(x)||\phi_{n}^{\mathrm{LGL}}(x)| attains its local maximum values at the zeros of Pn(x)P_{n}(x). Since |ϕnLGL(x)||\phi_{n}^{\mathrm{LGL}}(x)| is an even function on Ω\Omega, we only need to consider the maximum values of |ϕnLGL(x)||\phi_{n}^{\mathrm{LGL}}(x)| at the nonnegative zeros of Pn(x)P_{n}(x). To this end, we introduce an auxiliary function

ψ(x)=n(n+1)(2n+1)2(ϕnLGL(x))2+(1x2)Pn2(x).\displaystyle\psi(x)=\frac{n(n+1)}{(2n+1)^{2}}(\phi_{n}^{\mathrm{LGL}}(x))^{2}+(1-x^{2})P_{n}^{2}(x). (2.5)

Direct calculation of the derivative of ψ(x)\psi(x) by using (2.4) gives

ψ(x)\displaystyle\psi{{}^{\prime}}(x) =2n(n+1)2n+1ϕnLGL(x)Pn(x)2xPn2(x)+2(1x2)Pn(x)Pn(x)\displaystyle=\frac{2n(n+1)}{2n+1}\phi_{n}^{\mathrm{LGL}}(x)P_{n}(x)-2xP_{n}^{2}(x)+2(1-x^{2})P_{n}(x)P_{n}{{}^{\prime}}(x)
=2Pn(x)[n(n+1)2n+1ϕnLGL(x)xPn(x)+(1x2)Pn(x)]\displaystyle=2P_{n}(x)\left[\frac{n(n+1)}{2n+1}\phi_{n}^{\mathrm{LGL}}(x)-xP_{n}(x)+(1-x^{2})P_{n}{{}^{\prime}}(x)\right]
=2xPn2(x),\displaystyle=-2xP_{n}^{2}(x), (2.6)

where we have used the first equality of [15, Equation (4.7.27)] in the last step. From (2) it is easy to see that ψ(x)<0\psi{{}^{\prime}}(x)<0 whenever x[0,1]x\in[0,1] and xxjx\neq x_{j} for j=1,,μj=1,\ldots,\mu, and thus ψ(x)\psi(x) is strictly decreasing on the interval [0,1][0,1]. Combining this with (2.5) gives the desired result (2.2). As for (iv), it follows from (2.2) that

maxxΩ|ϕnLGL(x)|=|ϕnLGL(xν)|.\displaystyle\max_{x\in\Omega}|\phi_{n}^{\mathrm{LGL}}(x)|=|\phi_{n}^{\mathrm{LGL}}(x_{\nu})|. (2.7)

Now, we first consider the case where nn is odd. In this case, we know that xν=0x_{\nu}=0 and thus

maxxΩ|ϕnLGL(x)|=|ϕnLGL(0)|=(2n+1)Γ(n2)π(n+1)Γ(n+12):=χn.\displaystyle\max_{x\in\Omega}|\phi_{n}^{\mathrm{LGL}}(x)|=|\phi_{n}^{\mathrm{LGL}}(0)|=\frac{(2n+1)\Gamma(\frac{n}{2})}{\sqrt{\pi}(n+1)\Gamma(\frac{n+1}{2})}:=\chi_{n}.

A straightforward calculation shows that the sequence {n1/2χn}n=1\{n^{1/2}\chi_{n}\}_{n=1}^{\infty} is a strictly increasing sequence, and thus

n1/2χnlimnn1/2χn=42πmaxxΩ|ϕnLGL(x)|42πn.\displaystyle n^{1/2}\chi_{n}\leq\lim_{n\rightarrow\infty}n^{1/2}\chi_{n}=\frac{4}{\sqrt{2\pi}}\quad\Longrightarrow\quad\max_{x\in\Omega}|\phi_{n}^{\mathrm{LGL}}(x)|\leq\frac{4}{\sqrt{2\pi n}}.

This proves the case of odd nn. We next consider the case where nn is even. Recall that ψ(x)\psi(x) is strictly decreasing on the interval [0,1][0,1], we obtain that

ψ(x)ψ(0)maxxΩ|ϕnLGL(x)|(2n+1)Γ(n+12)πn(n+1)Γ(n+22):=ζn.\displaystyle\psi(x)\leq\psi(0)\quad\Longrightarrow\quad\max_{x\in\Omega}|\phi_{n}^{\mathrm{LGL}}(x)|\leq\frac{(2n+1)\Gamma(\frac{n+1}{2})}{\sqrt{\pi n(n+1)}\Gamma(\frac{n+2}{2})}:=\zeta_{n}.

A straightforward calculation shows that the sequence {n1/2ζn}n=1\{n^{1/2}\zeta_{n}\}_{n=1}^{\infty} is a strictly increasing sequence, and thus

n1/2ζnlimnn1/2ζn=42πmaxxΩ|ϕnLGL(x)|42πn.\displaystyle n^{1/2}\zeta_{n}\leq\lim_{n\rightarrow\infty}n^{1/2}\zeta_{n}=\frac{4}{\sqrt{2\pi}}\quad\Longrightarrow\quad\max_{x\in\Omega}|\phi_{n}^{\mathrm{LGL}}(x)|\leq\frac{4}{\sqrt{2\pi n}}.

This proves the case of even nn. Since the constant 4/2π4/\sqrt{2\pi} is the limit of the sequences {n1/2χn}n=1\{n^{1/2}\chi_{n}\}_{n=1}^{\infty} and {n1/2ζn}n=1\{n^{1/2}\zeta_{n}\}_{n=1}^{\infty}, the bound in (2.3) is optimal in the sense that it can not be reduced further. This completes the proof. ∎

\begin{overpic}[width=136.5733pt,height=142.26378pt]{Phifun1.eps} \end{overpic}
\begin{overpic}[width=136.5733pt,height=142.26378pt]{Phifun2.eps} \end{overpic}
\begin{overpic}[width=136.5733pt,height=142.26378pt]{Phifun3.eps} \end{overpic}
Figure 1: The plot of |ϕnLGL(x)||\phi_{n}^{\mathrm{LGL}}(x)| and the points {(xj,|ϕnLGL(xj)|)}j=1ν\{(x_{j},|\phi_{n}^{\mathrm{LGL}}(x_{j})|)\}_{j=1}^{\nu} for three values of nn.

In Figure 1 we plot the function |ϕnLGL(x)||\phi_{n}^{\mathrm{LGL}}(x)| and the points {(xj,|ϕnLGL(xj)|)}j=1ν\{(x_{j},|\phi_{n}^{\mathrm{LGL}}(x_{j})|)\}_{j=1}^{\nu} for n=5,10,15n=5,10,15. Indeed, it is easily seen that the sequence {|ϕnLGL(x1)|,,|ϕnLGL(xν)|}\{|\phi_{n}^{\mathrm{LGL}}(x_{1})|,\ldots,|\phi_{n}^{\mathrm{LGL}}(x_{\nu})|\} is strictly increasing, which coincides with the result (iii) in Theorem 2.1. To verify the sharpness of the result (iv) in Theorem 2.1, we plot in Figure 2 the scaled function ϕnS(x)=|ϕnLGL(x)|2πn/4\phi_{n}^{S}(x)=|\phi_{n}^{\mathrm{LGL}}(x)|\sqrt{2\pi n}/4 for xΩx\in\Omega. Clearly, we observe that the maximum value of |ϕnS(x)||\phi_{n}^{S}(x)| approaches to one as nn\rightarrow\infty, which implies the inequality (2.3) is quite sharp.

\begin{overpic}[width=136.5733pt,height=142.26378pt]{Leg1.eps} \end{overpic}
\begin{overpic}[width=136.5733pt,height=142.26378pt]{Leg2.eps} \end{overpic}
\begin{overpic}[width=136.5733pt,height=142.26378pt]{Leg3.eps} \end{overpic}
Figure 2: The plot of the scaled function ϕnS(x)\phi_{n}^{S}(x) for three values of nn.
Remark 2.2.

In the proof of Theorem 2.1, we have actually proved the following sharper inequality

maxxΩ|ϕnLGL(x)|(2n+1)π{Γ(n2)(n+1)Γ(n+12),n=1,3,,Γ(n+12)n(n+1)Γ(n+22),n=2,4,,\displaystyle\max_{x\in\Omega}|\phi_{n}^{\mathrm{LGL}}(x)|\leq\frac{(2n+1)}{\sqrt{\pi}}\left\{\begin{array}[]{ll}{\displaystyle\frac{\Gamma(\frac{n}{2})}{(n+1)\Gamma(\frac{n+1}{2})}},&\hbox{$n=1,3,\ldots$,}\\[12.0pt] {\displaystyle\frac{\Gamma(\frac{n+1}{2})}{\sqrt{n(n+1)}\Gamma(\frac{n+2}{2})}},&\hbox{$n=2,4,\ldots$,}\end{array}\right. (2.10)

Since the bound on the right-hand side of (2.10) involves the ratio of gamma functions, we therefore established a simpler upper bound for maxxΩ|ϕnLGL(x)|\max_{x\in\Omega}|\phi_{n}^{\mathrm{LGL}}(x)| in (2.3). On the other hand, we mention that a rough estimate for ϕnLGL(x)\phi_{n}^{\mathrm{LGL}}(x) has been given in the classical monograph [15, Theorem 7.33.3]:

ϕnLGL(cosθ)=(sinθ)1/2O(n1/2),0<θ<π,\displaystyle\phi_{n}^{\mathrm{LGL}}(\cos\theta)=(\sin\theta)^{1/2}O(n^{-1/2}),\quad 0<\theta<\pi, (2.11)

and the bound of the factor O(n1/2)O(n^{-1/2}) is independent of θ\theta. Comparing (2.11) with (2.3), it is clear to see that the latter is more precise than the former.

Remark 2.3.

The polynomials {ϕkLGL}\{\phi_{k}^{\mathrm{LGL}}\} can also be viewed as weighted Gegenbauer or Sobolev orthogonal polynomials. Indeed, from (4.2) in Section 4 we know that each ϕkLGL(x)\phi_{k}^{\mathrm{LGL}}(x), where k1k\geq 1, can be expressed by a weighted Gegenbauer polynomial up to a constant factor. On the other hand, it is easily verified that {ϕkLGL}\{\phi_{k}^{\mathrm{LGL}}\} are orthogonal with respect to the Sobolev inner product of the form

f,g=[f(1)+f(1)][g(1)+g(1)]+Ωf(x)g(x)dx,\langle f,g\rangle=[f(1)+f(-1)][g(-1)+g(1)]+\int_{\Omega}f{{}^{\prime}}(x)g{{}^{\prime}}(x)\mathrm{d}x,

and hence they can also be viewed as Sobolev orthogonal polynomials.

3 A new explicit bound for Legendre coefficients of differentiable functions

In this section, we establish a new explicit bound for the Legendre coefficients of differentiable functions with the help of the properties of LGL polynomials. As will be shown later, our new result is better than the existing result in [20] and is more informative than the result in [25].

Let the total variation of f(x)f(x) on Ω\Omega be defined by

𝒱(f,Ω)=supj=1n|f(xj)f(xj1)|,\displaystyle\mathcal{V}(f,\Omega)=\sup\sum_{j=1}^{n}\left|f(x_{j})-f(x_{j-1})\right|, (3.1)

where the supremum is taken over all partitions 1=x0<x1<<xn=1-1=x_{0}<x_{1}<\cdots<x_{n}=1 of the interval Ω\Omega.

Theorem 3.1.

If f,f,,f(m1)f,f{{}^{\prime}},\ldots,f^{(m-1)} are absolutely continuous on Ω\Omega and f(m)f^{(m)} is of bounded variation on Ω\Omega for some nonnegative integer mm, i.e., Vm=𝒱(f(m),Ω)<V_{m}=\mathcal{V}(f^{(m)},\Omega)<\infty. Then, for each nm+1n\geq m+1,

|an|\displaystyle|a_{n}| 2Vm2π(nm)k=1m1nk+1/2.\displaystyle\leq\frac{2V_{m}}{\sqrt{2\pi(n-m)}}\prod_{k=1}^{m}\frac{1}{n-k+1/2}. (3.2)

where the product is assumed to be one whenever m=0m=0.

Proof.

We prove the inequality (3.2) by induction on mm. Invoking (2.4) and using integration by part, we obtain

an\displaystyle a_{n} =2n+1211f(x)Pn(x)dx=1211f(x)ddxϕnLGL(x)dx=1211ϕnLGL(x)df(x),\displaystyle=\frac{2n+1}{2}\int_{-1}^{1}f(x)P_{n}(x)\mathrm{d}x=\frac{1}{2}\int_{-1}^{1}f(x)\frac{\mathrm{d}}{\mathrm{d}x}\phi_{n}^{\mathrm{LGL}}(x)\mathrm{d}x=-\frac{1}{2}\int_{-1}^{1}\phi_{n}^{\mathrm{LGL}}(x)\mathrm{d}f(x),

where we have used Theorem 2.1 and the integral is a Riemann-Stieltjes integral (see, e.g., [13, Chapter 12]) in the last equation. Furthermore, taking advantage of the inequality of Riemann-Stieltjes integral (see, e.g., [13, Theorem 12.15]) and making use of Theorem 2.1, we have

|an|\displaystyle|a_{n}| 12|11ϕnLGL(x)df(x)|V02maxxΩ|ϕnLGL(x)|2V02πn.\displaystyle\leq\frac{1}{2}\left|\int_{-1}^{1}\phi_{n}^{\mathrm{LGL}}(x)\mathrm{d}f(x)\right|\leq\frac{V_{0}}{2}\max_{x\in\Omega}|\phi_{n}^{\mathrm{LGL}}(x)|\leq\frac{2V_{0}}{\sqrt{2\pi n}}.

This proves the case m=0m=0. In the case of m=1m=1, making use of (2.1) and employing once again integration by part, we obtain

an\displaystyle a_{n} =1211f(x)ddx[ϕn+1LGL(x)2n+3ϕn1LGL(x)2n1]dx\displaystyle=-\frac{1}{2}\int_{-1}^{1}f{{}^{\prime}}(x)\frac{\mathrm{d}}{\mathrm{d}x}\bigg{[}\frac{\phi_{n+1}^{\mathrm{LGL}}(x)}{2n+3}-\frac{\phi_{n-1}^{\mathrm{LGL}}(x)}{2n-1}\bigg{]}\mathrm{d}x
=1211[ϕn1LGL(x)2n1ϕn+1LGL(x)2n+3]df(x),\displaystyle=-\frac{1}{2}\int_{-1}^{1}\bigg{[}\frac{\phi_{n-1}^{\mathrm{LGL}}(x)}{2n-1}-\frac{\phi_{n+1}^{\mathrm{LGL}}(x)}{2n+3}\bigg{]}\mathrm{d}f{{}^{\prime}}(x),

from which, using again the inequality of Riemann-Stieltjes integral and (2.3), we find that

|an|\displaystyle|a_{n}| V12n1maxxΩ|ϕn1LGL(x)|2V12π(n1)(n1/2).\displaystyle\leq\frac{V_{1}}{2n-1}\max_{x\in\Omega}|\phi_{n-1}^{\mathrm{LGL}}(x)|\leq\frac{2V_{1}}{\sqrt{2\pi(n-1)}(n-1/2)}.

This proves the case m=1m=1. In the case of m=2m=2, we can continue the above process to obtain

an=1211\displaystyle a_{n}=-\frac{1}{2}\int_{-1}^{1} [ϕn2LGL(x)(2n3)(2n1)ϕnLGL(x)(2n1)(2n+1)\displaystyle\bigg{[}\frac{\phi_{n-2}^{\mathrm{LGL}}(x)}{(2n-3)(2n-1)}-\frac{\phi_{n}^{\mathrm{LGL}}(x)}{(2n-1)(2n+1)}
ϕnLGL(x)(2n+1)(2n+3)+ϕn+2LGL(x)(2n+3)(2n+5)]df′′(x),\displaystyle~{}-\frac{\phi_{n}^{\mathrm{LGL}}(x)}{(2n+1)(2n+3)}+\frac{\phi_{n+2}^{\mathrm{LGL}}(x)}{(2n+3)(2n+5)}\bigg{]}\mathrm{d}f{{}^{\prime\prime}}(x),

from which we infer that

|an|2V2(2n3)(2n1)maxxΩ|ϕn2LGL(x)|2V22π(n2)(n1/2)(n3/2).\displaystyle|a_{n}|\leq\frac{2V_{2}}{(2n-3)(2n-1)}\max_{x\in\Omega}|\phi_{n-2}^{\mathrm{LGL}}(x)|\leq\frac{2V_{2}}{\sqrt{2\pi(n-2)}(n-1/2)(n-3/2)}.

This proves the case m=2m=2. For m3m\geq 3, the repeated application of integration by parts brings in higher derivatives of ff and corresponding higher variations up to VmV_{m}. Hence we can obtain the desired result (3.2) and this ends the proof. ∎

Remark 3.2.

An explicit bound for the Legendre coefficients has been established in [20, Theorem 2.2]

|an|2V¯mπ(2n2m1)k=1m1nk+1/2,\displaystyle|a_{n}|\leq\frac{2\overline{V}_{m}}{\sqrt{\pi(2n-2m-1)}}\prod_{k=1}^{m}\frac{1}{n-k+1/2}, (3.3)

where V¯m=f(m)S\overline{V}_{m}=\|f^{(m)}\|_{S} and S\|\cdot\|_{S} is the weighted semi-norm defined by fS=Ω(1x2)1/4|f(x)|dx\|f\|_{S}=\int_{\Omega}(1-x^{2})^{-1/4}|f{{}^{\prime}}(x)|\mathrm{d}x. Comparing (3.2) and (3.3), it is easily seen that the weighted semi-norm of f(m)(x)f^{(m)}(x) is replaced by the total variation of f(m)(x)f^{(m)}(x), and (3.2) is better than (3.3) because VmV¯mV_{m}\leq\overline{V}_{m}. Moreover, the following bound was given in [25, Corollary 1]

|an|Vm2mπ(n+1/2)Γ((nm)/2)(n+m+1)Γ((n+m+1)/2),nm+1.\displaystyle|a_{n}|\leq\frac{V_{m}}{2^{m}\sqrt{\pi}}\frac{(n+1/2)\Gamma((n-m)/2)}{(n+m+1)\Gamma((n+m+1)/2)},\quad n\geq m+1. (3.4)

Comparing (3.2) with (3.4), one can easily check that both results are about equally accurate in the sense that their ratio tends to one as nn\rightarrow\infty. However, our result (3.2) is more explicit and informative.

Example 3.3.

We consider the following example

f(x)=|xθ|,θ(1,1).\displaystyle f(x)=|x-\theta|,\quad\theta\in(-1,1). (3.5)

It is clear that this function is absolutely continuous on Ω\Omega and its derivative is of bounded variation on Ω\Omega. Moreover, direct calculation gives V1=2V_{1}=2, and thus

|an|42π(n1)(n1/2):=BNew(n),n=2,3,.\displaystyle|a_{n}|\leq\frac{4}{\sqrt{2\pi(n-1)}(n-1/2)}:=\mathrm{B}^{\mathrm{New}}(n),\quad n=2,3,\ldots.

The upper bound in (3.3) can be written as

|an|4(1θ2)1/4π(2n3)(n1/2):=BOld(n),n=2,3,.\displaystyle|a_{n}|\leq\frac{4(1-\theta^{2})^{-1/4}}{\sqrt{\pi(2n-3)}(n-1/2)}:=\mathrm{B}^{\mathrm{Old}}(n),\quad n=2,3,\ldots.

Comparing BNew(n)\mathrm{B}^{\mathrm{New}}(n) with BOld(n)\mathrm{B}^{\mathrm{Old}}(n), it is easily verified that the former is always better than the latter for all n2n\geq 2 and θ(1,1)\theta\in(-1,1), especially the former remains fixed while the latter blows up when θ±1\theta\rightarrow\pm 1. Figure 3 shows the exact Legendre coefficients and the bound BNew(n)\mathrm{B}^{\mathrm{New}}(n) for three values of θ\theta. It can be seen that BNew(n)\mathrm{B}^{\mathrm{New}}(n) is quite sharp whenever θ\theta is not close to both endpoints and is slightly overestimated whenever θ±1\theta\rightarrow\pm 1.

\begin{overpic}[width=136.5733pt,height=142.26378pt]{BoundExam1.eps} \end{overpic}
\begin{overpic}[width=136.5733pt,height=142.26378pt]{BoundExam2.eps} \end{overpic}
\begin{overpic}[width=136.5733pt,height=142.26378pt]{BoundExam3.eps} \end{overpic}
Figure 3: The exact Legendre coefficients (circles) and the bound BNew(n)\mathrm{B}^{\mathrm{New}}(n) (line) for θ=0.3\theta=0.3 (left), θ=0.6\theta=0.6 (middle) and θ=0.9\theta=0.9 (right). Here f(x)f(x) is defined in (3.5).
Example 3.4.

We consider the truncated power function

f(x)=(xθ)+2={(xθ)2,xθ,0,x<θ,\displaystyle f(x)=(x-\theta)_{+}^{2}=\left\{\begin{array}[]{ll}(x-\theta)^{2},&\hbox{$x\geq\theta$,}\\[6.0pt] 0,&\hbox{$x<\theta$,}\end{array}\right. (3.8)

where θ(1,1)\theta\in(-1,1). It is clear that ff and ff{{}^{\prime}} are absolutely continuous on Ω\Omega and f′′f{{}^{\prime\prime}} is of bounded variation on Ω\Omega. Moreover, direct calculation gives V2=2V_{2}=2, and thus

|an|42π(n2)(n1/2)(n3/2),n=3,4,.\displaystyle|a_{n}|\leq\frac{4}{\sqrt{2\pi(n-2)}(n-1/2)(n-3/2)},\quad n=3,4,\ldots.

In Figure 4 we illustrate the exact Legendre coefficients and the above bound for three values of θ\theta. Clearly, we can see that our new bound is quite sharp whenever θ\theta is not close to both endpoints and is slightly overestimated whenever θ±1\theta\rightarrow\pm 1.

\begin{overpic}[width=136.5733pt,height=142.26378pt]{BoundExam4.eps} \end{overpic}
\begin{overpic}[width=136.5733pt,height=142.26378pt]{BoundExam5.eps} \end{overpic}
\begin{overpic}[width=136.5733pt,height=142.26378pt]{BoundExam6.eps} \end{overpic}
Figure 4: The exact Legendre coefficients (circles) and the bound (line) for θ=0.2\theta=0.2 (left), θ=0.4\theta=0.4 (middle) and θ=0.8\theta=0.8 (right). Here f(x)f(x) is defined in (3.6).

In the following, we apply Theorem 3.1 to establish some new explicit error bounds for Legendre projections in the L2L^{2} and LL^{\infty} norms.

Theorem 3.5.

If f,f,,f(m1)f,f{{}^{\prime}},\ldots,f^{(m-1)} are absolutely continuous on Ω\Omega and f(m)f^{(m)} is of bounded variation on Ω\Omega for some nonnegative integer mm, i.e., Vm=𝒱(f(m),Ω)<V_{m}=\mathcal{V}(f^{(m)},\Omega)<\infty.

  • (i)

    For m=0,1,m=0,1,\ldots and nm+1n\geq m+1,

    ffnL2(Ω)Vmπ(m+1/2)(nm)m+1/2,\displaystyle\|f-f_{n}\|_{L^{2}(\Omega)}\leq\frac{V_{m}}{\sqrt{\pi(m+1/2)}(n-m)^{m+1/2}}, (3.9)
  • (ii)

    For m1m\geq 1 and nm+1n\geq m+1,

    ffnL(Ω){4V12π(n1),m=1,2Vm/(m1)2π(n+1m)k=1m11nk+1/2,m2,\displaystyle\|f-f_{n}\|_{L^{\infty}(\Omega)}\leq\left\{\begin{array}[]{ll}{\displaystyle\frac{4V_{1}}{\sqrt{2\pi(n-1)}}},&\hbox{$m=1$,}\\[18.0pt] {\displaystyle\frac{2V_{m}/(m-1)}{\sqrt{2\pi(n+1-m)}}\prod_{k=1}^{m-1}\frac{1}{n-k+1/2}},&\hbox{$m\geq 2$,}\end{array}\right. (3.12)

    and the product is assumed to be one whenever m=1m=1.

Proof.

As for (3.9), recalling the orthogonal property of Legendre polynomials (1.1), we find that

ffnL2(Ω)2\displaystyle\|f-f_{n}\|_{L^{2}(\Omega)}^{2} =k=n+1(ak)2(k+12)1.\displaystyle=\sum_{k=n+1}^{\infty}(a_{k})^{2}\left(k+\frac{1}{2}\right)^{-1}.

Furthermore, using Theorem 3.1 we obtain

ffnL2(Ω)22Vm2πk=n+11(km)2m+2\displaystyle\|f-f_{n}\|_{L^{2}(\Omega)}^{2}\leq\frac{2V_{m}^{2}}{\pi}\sum_{k=n+1}^{\infty}\frac{1}{(k-m)^{2m+2}} 2Vm2πn1(xm)2m+2\displaystyle\leq\frac{2V_{m}^{2}}{\pi}\int_{n}^{\infty}\frac{1}{(x-m)^{2m+2}}
=Vm2π(m+1/2)(nm)2m+1.\displaystyle=\frac{V_{m}^{2}}{\pi(m+1/2)(n-m)^{2m+1}}.

Taking the square root on both sides gives (3.9). As for (3.12), it follows by combining (3.2) in Theorem 3.1 with the fact that |Pk(x)|1|P_{k}(x)|\leq 1. This ends the proof. ∎

\begin{overpic}[width=199.16928pt,height=170.71652pt]{MeanError1.eps} \end{overpic}
\begin{overpic}[width=199.16928pt,height=170.71652pt]{MeanError2.eps} \end{overpic}
Figure 5: The error ffnL2(Ω)\|f-f_{n}\|_{L^{2}(\Omega)} (circles) and the error bound (line) for f(x)=|x0.5|f(x)=|x-0.5| (left) and f(x)=(x0.5)+2f(x)=(x-0.5)_{+}^{2} (right).

In Figure 5 we show the actual error of fnf_{n} and the error bound (3.9) in the L2L^{2} norm as a function of nn for two test functions. Clearly, we can see that the error bound (3.9) is optimal up to a constant factor.

Remark 3.6.

Recently, the following error bound was proved in [10, Theorem 3.4]

ffnL2(Ω)Vmπ(m+1/2)Γ(nm)Γ(n+m+1),nm+1.\displaystyle\|f-f_{n}\|_{L^{2}(\Omega)}\leq\frac{V_{m}}{\sqrt{\pi(m+1/2)}}\sqrt{\frac{\Gamma(n-m)}{\Gamma(n+m+1)}},\quad n\geq m+1. (3.13)

Comparing (3.9) with (3.13), it is easily verified that their ratio asymptotes to one as nn\rightarrow\infty and thus both bounds are almost identical for large nn. Whenever nn is small, direct calculations show that (3.13) is slightly sharper than (3.9). On the other hand, it is easily seen that our bound (3.9) is more explicit and informative.

Remark 3.7.

In the case where ff is piecewise analytic on Ω\Omega and has continuous derivatives up to order m1m-1 for some mm\in\mathbb{N}, the current author has proved in [22, Theorem 3] that the optimal rate of convergence of fnf_{n} is O(nm)O(n^{-m}). For such functions, however, the predicted rate of convergence by the error bound (3.12) is only O(nm+1/2)O(n^{-m+1/2}). Hence, the error bound (3.12) is suboptimal in the sense that it overestimates the actual error by a factor of n1/2n^{1/2}.

We further ask: How to derive an optimal error bound of fnf_{n} in the LL^{\infty} norm? In the following, we shall establish a weighted inequality for the error of fnf_{n} in the LL^{\infty} norm and an explicit and optimal error bound for fnf_{n} in the LL^{\infty} norm under the condition that the maximum error of fnf_{n} is attained in the interior of Ω\Omega.

Theorem 3.8.

If f,f,,f(m1)f,f{{}^{\prime}},\ldots,f^{(m-1)} are absolutely continuous on Ω\Omega and f(m)f^{(m)} is of bounded variation on Ω\Omega for some mm\in\mathbb{N}, i.e., Vm=𝒱(f(m),Ω)<V_{m}=\mathcal{V}(f^{(m)},\Omega)<\infty.

  • (i)

    For nmn\geq m, we have

    maxxΩ(1x2)1/4|f(x)fn(x)|2Vmmπj=1m1nj+1/2.\displaystyle\max_{x\in\Omega}(1-x^{2})^{1/4}|f(x)-f_{n}(x)|\leq\frac{2V_{m}}{m\pi}\prod_{j=1}^{m}\frac{1}{n-j+1/2}. (3.14)
  • (ii)

    If the maximum error of fnf_{n} is attained at τ(1,1)\tau\in(-1,1) for nn0n\geq n_{0}. Then, for nmax{n0,m}n\geq\max\{n_{0},m\}, we have

    ffnL(Ω)2Vmπm(1τ2)1/4j=1m1nj+1/2.\displaystyle\|f-f_{n}\|_{L^{\infty}(\Omega)}\leq\frac{2V_{m}}{\pi m(1-\tau^{2})^{1/4}}\prod_{j=1}^{m}\frac{1}{n-j+1/2}. (3.15)
Proof.

We first consider the proof of (3.14). Recall the Bernstein-type inequality satisfied by Legendre polynomials (see [1] or [12, Equation (18.14.7)])

(1x2)1/4|Pn(x)|<2π(n+12)1/2,xΩ,\displaystyle(1-x^{2})^{1/4}|P_{n}(x)|<\sqrt{\frac{2}{\pi}}\left(n+\frac{1}{2}\right)^{-1/2},\quad x\in\Omega, (3.16)

and the bound on the right hand side is optimal in the sense that (n+1/2)1/2(n+1/2)^{-1/2} can not be improved to (n+1/2+ϵ)1/2(n+1/2+\epsilon)^{-1/2} for any ϵ>0\epsilon>0 and the constant (2/π)1/2(2/\pi)^{1/2} is best possible. Consequently, using the above inequality and Theorem 3.1, we deduce that

(1x2)1/4|f(x)fn(x)|\displaystyle(1-x^{2})^{1/4}|f(x)-f_{n}(x)| 2πk=n+1|ak|(k+12)1/2\displaystyle\leq\sqrt{\frac{2}{\pi}}\sum_{k=n+1}^{\infty}|a_{k}|\left(k+\frac{1}{2}\right)^{-1/2}
2Vmπk=n+11(km)(k+1/2)j=1m1kj+1/2\displaystyle\leq\frac{2V_{m}}{\pi}\sum_{k=n+1}^{\infty}\frac{1}{\sqrt{(k-m)(k+1/2)}}\prod_{j=1}^{m}\frac{1}{k-j+1/2}
2Vmmπk=n+1[j=1m1kj1/2j=1m1kj+1/2]\displaystyle\leq\frac{2V_{m}}{m\pi}\sum_{k=n+1}^{\infty}\left[\prod_{j=1}^{m}\frac{1}{k-j-1/2}-\prod_{j=1}^{m}\frac{1}{k-j+1/2}\right]
=2Vmmπj=1m1nj+1/2.\displaystyle=\frac{2V_{m}}{m\pi}\prod_{j=1}^{m}\frac{1}{n-j+1/2}. (3.17)

This proves (3.14). As for (3.15), note that the maximum error of fnf_{n} is attained at x=τx=\tau, we have

ffnL(Ω)=|f(τ)fn(τ)|k=n+1|ak||Pk(τ)|.\displaystyle\|f-f_{n}\|_{L^{\infty}(\Omega)}=|f(\tau)-f_{n}(\tau)|\leq\sum_{k=n+1}^{\infty}|a_{k}||P_{k}(\tau)|.

Combining the last inequality with Theorem 3.1 and (3.16) and using a similar process as in (3) gives (3.15). This ends the proof. ∎

Remark 3.9.

For functions with interior singularities, from the pointwise error analysis developed in [23, 24] we know that the maximum error of fnf_{n} is actually determined by the errors at these interior singularities for moderate and large values of nn. In this case, the error bound in (3.15) is optimal in the sense that it can not be improved with respect to nn up to a constant factor; see Figure 6 for an illustration.

In Figure 6 we show the maximum error of fnf_{n} and the error bound (3.15) as a function of nn for the functions f(x)=|x0.2|f(x)=|x-0.2| and f(x)=(x0.5)+2f(x)=(x-0.5)_{+}^{2}. For these two functions, the maximum errors of fnf_{n} are attained at x=0.2x=0.2 and x=0.5x=0.5, respectively, for moderate and large values of nn. Thus, the error bound in (3.15) can be applied to these two examples. We see from Figure 6 that the error bound (3.15) is optimal with respect to nn up to a constant factor.

\begin{overpic}[width=199.16928pt,height=170.71652pt]{MaxError1.eps} \end{overpic}
\begin{overpic}[width=199.16928pt,height=170.71652pt]{MaxError2.eps} \end{overpic}
Figure 6: The maximum error ffnL(Ω)\|f-f_{n}\|_{L^{\infty}(\Omega)} (circles) and the error bound (line) for f(x)=|x0.2|f(x)=|x-0.2| (left) and f(x)=(x0.5)+2f(x)=(x-0.5)_{+}^{2} (right).

4 Extensions

In this section we present two extensions of our results in Theorem 2.1, including Gegenbauer-Gauss-Lobatto (GGL) functions and optimal convergence rates of Legendre-Gauss-Lobatto interpolation and differentiation for analytic functions.

4.1 Gegenbauer-Gauss-Lobatto functions

We introduce the Gegenbauer-Gauss-Lobatto (GGL) functions of the form

ϕnGGL(x)\displaystyle\phi_{n}^{\mathrm{GGL}}(x) =n+1n+2λωλ(x)Cn+1λ(x)n+2λ1nωλ(x)Cn1λ(x),n,\displaystyle=\frac{n+1}{n+2\lambda}\omega_{\lambda}(x)C_{n+1}^{\lambda}(x)-\frac{n+2\lambda-1}{n}\omega_{\lambda}(x)C_{n-1}^{\lambda}(x),\quad n\in\mathbb{N}, (4.1)

where Cnλ(x)C_{n}^{\lambda}(x) is the Gegenbauer polynomial of degree nn defined in [12, Equation (18.5.9)] and ωλ(x)=(1x2)λ1/2\omega_{\lambda}(x)=(1-x^{2})^{\lambda-1/2} is the Gegenbauer weight function. Moreover, by using [12, Equation (18.9.8)], they can also be written as

ϕnGGL(x)\displaystyle\phi_{n}^{\mathrm{GGL}}(x) =4λ(n+λ)n(n+2λ)ωλ+1(x)Cn1λ+1(x).\displaystyle=-\frac{4\lambda(n+\lambda)}{n(n+2\lambda)}\omega_{\lambda+1}(x)C_{n-1}^{\lambda+1}(x). (4.2)

Notice that ϕnGGL(x)=ϕnLGL(x)\phi_{n}^{\mathrm{GGL}}(x)=\phi_{n}^{\mathrm{LGL}}(x) whenever λ=1/2\lambda=1/2 and thus ϕnGGL(x)\phi_{n}^{\mathrm{GGL}}(x) can be viewed as a generalization of ϕnLGL(x)\phi_{n}^{\mathrm{LGL}}(x). We are now ready to prove the following theorem.

Theorem 4.1.

Let ϕnGGL(x)\phi_{n}^{\mathrm{GGL}}(x) be the function defined in (4.1) or (4.2) and let λ>1/2\lambda>-1/2 and λ0\lambda\neq 0.

  • (i)

    |ϕnGGL(x)||\phi_{n}^{\mathrm{GGL}}(x)| is even and ϕnGGL(±1)=0\phi_{n}^{\mathrm{GGL}}(\pm 1)=0 for all nn\in\mathbb{N}.

  • (ii)

    For all nn\in\mathbb{N}, the derivative of ϕnGGL(x)\phi_{n}^{\mathrm{GGL}}(x) is

    ddxϕnGGL(x)=2(n+λ)ωλ(x)Cnλ(x).\displaystyle\frac{\mathrm{d}}{\mathrm{d}x}\phi_{n}^{\mathrm{GGL}}(x)=2(n+\lambda)\omega_{\lambda}(x)C_{n}^{\lambda}(x). (4.3)
  • (iii)

    For all nn\in\mathbb{N}, the differential recurrence relation of ϕnGGL(x)\phi_{n}^{\mathrm{GGL}}(x) is

    ϕnGGL(x)\displaystyle\phi_{n}^{\mathrm{GGL}}(x) =ddx[(n+1)2(n+λ+1)(n+2λ)ϕn+1GGL(x)(n+2λ1)2n(n+λ1)ϕn1GGL(x)].\displaystyle=\frac{\mathrm{d}}{\mathrm{d}x}\left[\frac{(n+1)}{2(n+\lambda+1)(n+2\lambda)}\phi_{n+1}^{\mathrm{GGL}}(x)-\frac{(n+2\lambda-1)}{2n(n+\lambda-1)}\phi_{n-1}^{\mathrm{GGL}}(x)\right]. (4.4)
  • (iv)

    Let ν=(n+1)/2\nu=\lfloor(n+1)/2\rfloor for all nn\in\mathbb{N} and let xν<<x1x_{\nu}<\cdots<x_{1} be the zeros of Cnλ(x)C_{n}^{\lambda}(x) on the interval [0,1][0,1]. Then, |ϕnGGL(x)||\phi_{n}^{\mathrm{GGL}}(x)| attains its local maximum values at these points {xk}k=1ν\{x_{k}\}_{k=1}^{\nu} and

    |ϕnGGL(x1)|<|ϕnGGL(x2)|<<|ϕnGGL(xν)|,\displaystyle|\phi_{n}^{\mathrm{GGL}}(x_{1})|<|\phi_{n}^{\mathrm{GGL}}(x_{2})|<\cdots<|\phi_{n}^{\mathrm{GGL}}(x_{\nu})|, (4.5)

    for λ>0\lambda>0 and

    |ϕnGGL(x1)|>|ϕnGGL(x2)|>>|ϕnGGL(xν)|,\displaystyle|\phi_{n}^{\mathrm{GGL}}(x_{1})|>|\phi_{n}^{\mathrm{GGL}}(x_{2})|>\cdots>|\phi_{n}^{\mathrm{GGL}}(x_{\nu})|, (4.6)

    for λ<0\lambda<0.

  • (v)

    For λ>0\lambda>0, the maximum value of |ϕnGGL(x)||\phi_{n}^{\mathrm{GGL}}(x)| satisfies

    maxxΩ|ϕnGGL(x)|nλ:={4(n+λ)n(n+2λ)Γ(n+12+λ)Γ(n+12)Γ(λ),n=1,3,,2(n+λ)n(n+2λ)Γ(n2+λ)Γ(n+22)Γ(λ),n=2,4,.\displaystyle\max_{x\in\Omega}|\phi_{n}^{\mathrm{GGL}}(x)|\leq\mathcal{B}_{n}^{\lambda}:=\left\{\begin{array}[]{ll}{\displaystyle\frac{4(n+\lambda)}{n(n+2\lambda)}\frac{\Gamma(\frac{n+1}{2}+\lambda)}{\Gamma(\frac{n+1}{2})\Gamma(\lambda)}},&\hbox{$n=1,3,\ldots$,}\\[15.0pt] {\displaystyle\frac{2(n+\lambda)}{\sqrt{n(n+2\lambda)}}\frac{\Gamma(\frac{n}{2}+\lambda)}{\Gamma(\frac{n+2}{2})\Gamma(\lambda)}},&\hbox{$n=2,4,\ldots$.}\end{array}\right. (4.9)

    For λ<0\lambda<0, the maximum value of |ϕnGGL(x)||\phi_{n}^{\mathrm{GGL}}(x)| satisfies

    maxxΩ|ϕnGGL(x)|=|ϕnGGL(x1)|=O(n1),n1.\displaystyle\max_{x\in\Omega}|\phi_{n}^{\mathrm{GGL}}(x)|=|\phi_{n}^{\mathrm{GGL}}(x_{1})|=O(n^{-1}),\quad n\gg 1. (4.10)
Proof.

As for (i), the assertion |ϕnGGL(x)||\phi_{n}^{\mathrm{GGL}}(x)| is even follows from the symmetry of Gegenbauer polynomials (i.e., Ckλ(x)=(1)kCkλ(x)C_{k}^{\lambda}(-x)=(-1)^{k}C_{k}^{\lambda}(x) for all k=0,1,k=0,1,\ldots) and ϕnGGL(±1)=0\phi_{n}^{\mathrm{GGL}}(\pm 1)=0 follows from (4.2). As for (ii), from [12, Equation (18.9.20)] we know that

ddx(ωλ+1(x)Cnλ+1(x))=(n+1)(n+2λ+1)2λωλ(x)Cn+1λ(x).\displaystyle\frac{\mathrm{d}}{\mathrm{d}x}\left(\omega_{\lambda+1}(x)C_{n}^{\lambda+1}(x)\right)=-\frac{(n+1)(n+2\lambda+1)}{2\lambda}\omega_{\lambda}(x)C_{n+1}^{\lambda}(x). (4.11)

The combination of (4.11) and (4.2) proves (4.3). As for (iii), it is a direct consequence of (4.1) and (4.3). Now we consider the proof of (iv). Since |ϕn,λGGL(x)||\phi_{n,\lambda}^{\mathrm{GGL}}(x)| is even, we only need to consider the maximum values of |ϕn,λGGL(x)||\phi_{n,\lambda}^{\mathrm{GGL}}(x)| at the nonnegative zeros of Cnλ(x)C_{n}^{\lambda}(x). Similar to the argument of Theorem 2.1, we introduce the following auxiliary function

ψ(x)=n(n+2λ)4(n+λ)2(ϕnGGL(x))2+(1x2)(ωλ(x)Cnλ(x))2.\displaystyle\psi(x)=\frac{n(n+2\lambda)}{4(n+\lambda)^{2}}\left(\phi_{n}^{\mathrm{GGL}}(x)\right)^{2}+(1-x^{2})(\omega_{\lambda}(x)C_{n}^{\lambda}(x))^{2}. (4.12)

Combining (4.2), (4.3) and (4.11) and after some calculations, we get

ψ(x)\displaystyle\psi{{}^{\prime}}(x) =n(n+2λ)(n+λ)ϕnGGL(x)ωλ(x)Cnλ(x)2x(ωλ(x)Cnλ(x))2\displaystyle=\frac{n(n+2\lambda)}{(n+\lambda)}\phi_{n}^{\mathrm{GGL}}(x)\omega_{\lambda}(x)C_{n}^{\lambda}(x)-2x(\omega_{\lambda}(x)C_{n}^{\lambda}(x))^{2}
+2(1x2)ωλ(x)Cnλ(x)ddx(ωλ(x)Cnλ(x))\displaystyle~{}~{}~{}~{}~{}~{}~{}~{}+2(1-x^{2})\omega_{\lambda}(x)C_{n}^{\lambda}(x)\frac{\mathrm{d}}{\mathrm{d}x}(\omega_{\lambda}(x)C_{n}^{\lambda}(x))
=2ωλ(x)Cnλ(x)[n(n+2λ)2(n+λ)ϕnGGL(x)xωλ(x)Cnλ(x)\displaystyle=2\omega_{\lambda}(x)C_{n}^{\lambda}(x)\left[\frac{n(n+2\lambda)}{2(n+\lambda)}\phi_{n}^{\mathrm{GGL}}(x)-x\omega_{\lambda}(x)C_{n}^{\lambda}(x)\right.
+(1x2)ddx(ωλ(x)Cnλ(x))]\displaystyle~{}~{}~{}~{}~{}~{}~{}~{}\left.+(1-x^{2})\frac{\mathrm{d}}{\mathrm{d}x}(\omega_{\lambda}(x)C_{n}^{\lambda}(x))\right]
=2ωλ(x)Cnλ(x)[2λωλ+1(x)Cn1λ+1(x)xωλ(x)Cnλ(x)\displaystyle=2\omega_{\lambda}(x)C_{n}^{\lambda}(x)\bigg{[}-2\lambda\omega_{\lambda+1}(x)C_{n-1}^{\lambda+1}(x)-x\omega_{\lambda}(x)C_{n}^{\lambda}(x)
(n+1)(n+2λ1)2(n+λ)ωλ(x)(Cn+1λ(x)Cn1λ(x))],\displaystyle~{}~{}~{}~{}~{}~{}~{}~{}\left.-\frac{(n+1)(n+2\lambda-1)}{2(n+\lambda)}\omega_{\lambda}(x)(C_{n+1}^{\lambda}(x)-C_{n-1}^{\lambda}(x))\right], (4.13)

where we have used [12, Equation (18.9.7)] in the last step. Furthermore, invoking [12, Equation (18.9.8)] and [12, Equation (18.9.1)], and after some lengthy but elementary calculations, we obtain that

ψ(x)=4λx(ωλ(x)Cnλ(x))2.\displaystyle\psi{{}^{\prime}}(x)=-4\lambda x(\omega_{\lambda}(x)C_{n}^{\lambda}(x))^{2}. (4.14)

It is easily seen that ψ(x)\psi(x) is strictly decreasing on [0,1][0,1] whenever λ>0\lambda>0 and is strictly increasing on [0,1][0,1] whenever λ<0\lambda<0, and thus the inequalities (4.5) and (4.6) follow immediately. As for (v), we first consider the case λ>0\lambda>0. From (iv) we infer that

maxxΩ|ϕnGGL(x)||ϕnGGL(xν)|.\displaystyle\max_{x\in\Omega}|\phi_{n}^{\mathrm{GGL}}(x)|\leq|\phi_{n}^{\mathrm{GGL}}(x_{\nu})|.

In the case when nn is odd, it is easily seen that xν=0x_{\nu}=0 and thus

maxxΩ|ϕnGGL(x)||ϕnGGL(0)|=4(n+λ)n(n+2λ)Γ(n+12+λ)Γ(n+12)Γ(λ).\displaystyle\max_{x\in\Omega}|\phi_{n}^{\mathrm{GGL}}(x)|\leq|\phi_{n}^{\mathrm{GGL}}(0)|=\frac{4(n+\lambda)}{n(n+2\lambda)}\frac{\Gamma(\frac{n+1}{2}+\lambda)}{\Gamma(\frac{n+1}{2})\Gamma(\lambda)}.

This proves the case of odd nn. In the case when nn is even, notice that ψ(x)\psi(x) is strictly decreasing on the interval [0,1][0,1] we obtain

ψ(x)ψ(0)maxxΩ|ϕnGGL(x)|2(n+λ)n(n+2λ)Γ(n2+λ)Γ(n+22)Γ(λ).\displaystyle\psi(x)\leq\psi(0)\quad\Longrightarrow\quad\max_{x\in\Omega}|\phi_{n}^{\mathrm{GGL}}(x)|\leq\frac{2(n+\lambda)}{\sqrt{n(n+2\lambda)}}\frac{\Gamma(\frac{n}{2}+\lambda)}{\Gamma(\frac{n+2}{2})\Gamma(\lambda)}.

This proves the case of even nn. Finally, we consider the case of λ<0\lambda<0. On the one hand, from (4.6) we obtain immediately that maxxΩ|ϕnGGL(x)|=|ϕnGGL(x1)|\max_{x\in\Omega}|\phi_{n}^{\mathrm{GGL}}(x)|=|\phi_{n}^{\mathrm{GGL}}(x_{1})|. On the other hand, from [15, Theorem 8.9.1] we obtain that for n1n\gg 1 that

x1=cos(πn+O(1)),ddxCnλ(x)|x=x1=O(n2λ+1).\displaystyle x_{1}=\cos\left(\frac{\pi}{n}+O(1)\right),\quad\frac{\mathrm{d}}{\mathrm{d}x}C_{n}^{\lambda}(x)\big{|}_{x=x_{1}}=O(n^{2\lambda+1}).

Combining these with (4.2) gives the desired estimate. This completes the proof. ∎

As a direct consequence of Theorem 4.1, we have the following corollary.

Corollary 4.2.

For λ1\lambda\geq 1, we have

maxxΩ|ωλ(x)Cnλ(x)|\displaystyle\max_{x\in\Omega}|\omega_{\lambda}(x)C_{n}^{\lambda}(x)| {1Γ(λ)Γ(n2+λ)Γ(n2+1),n=0,2,4,,n+2λ1n+1Γ(n12+λ)Γ(λ)Γ(n+12),n=1,3,5,.\displaystyle\leq\left\{\begin{array}[]{ll}{\displaystyle\frac{1}{\Gamma(\lambda)}\frac{\Gamma(\frac{n}{2}+\lambda)}{\Gamma(\frac{n}{2}+1)}},&\hbox{$n=0,2,4,\ldots$,}\\[15.0pt] {\displaystyle\sqrt{\frac{n+2\lambda-1}{n+1}}\frac{\Gamma(\frac{n-1}{2}+\lambda)}{\Gamma(\lambda)\Gamma(\frac{n+1}{2})}},&\hbox{$n=1,3,5,\ldots$.}\end{array}\right. (4.17)
Proof.

It follows by combining (4.2) and (4.9). ∎

Remark 4.3.

Based on a Nicholson-type formula for Gegenbauer polynomials, Durand proved the following inequality for λ1\lambda\geq 1 (see [5, Equation (19)])

maxxΩ|ωλ(x)Cnλ(x)|\displaystyle\max_{x\in\Omega}|\omega_{\lambda}(x)C_{n}^{\lambda}(x)| 1Γ(λ)Γ(n2+λ)Γ(n2+1),n=0,1,2,.\displaystyle\leq\frac{1}{\Gamma(\lambda)}\frac{\Gamma(\frac{n}{2}+\lambda)}{\Gamma(\frac{n}{2}+1)},\quad n=0,1,2,\ldots. (4.18)

Comparing (4.18) with (4.17), it is easily seen that both bounds are the same whenever nn is even. In the case of odd nn, however, direct calculations show that

n+2λ1n+1Γ(n12+λ)Γ(n+12)Γ(n2+λ)Γ(n2+1),n=0,1,,\sqrt{\frac{n+2\lambda-1}{n+1}}\frac{\Gamma(\frac{n-1}{2}+\lambda)}{\Gamma(\frac{n+1}{2})}\leq\frac{\Gamma(\frac{n}{2}+\lambda)}{\Gamma(\frac{n}{2}+1)},\quad n=0,1,\ldots,

and thus we have derived an improved bound for maxxΩ|ωλ(x)Cnλ(x)|\max_{x\in\Omega}|\omega_{\lambda}(x)C_{n}^{\lambda}(x)| whenever nn is odd.

Remark 4.4.

Making use of the asymptotic expansion of the ratio of gamma functions (see, e.g., [12, Equation (5.11.13)]), it follows that

limnn1λnλ=22λΓ(λ).\displaystyle\lim_{n\rightarrow\infty}n^{1-\lambda}\mathcal{B}_{n}^{\lambda}=\frac{2^{2-\lambda}}{\Gamma(\lambda)}. (4.19)

Clearly, we see that nλ=O(nλ1)\mathcal{B}_{n}^{\lambda}=O(n^{\lambda-1}) for large nn. Direct calculations show that the sequences {2k1λ}k=1\{\mathcal{B}_{2k-1}^{\lambda}\}_{k=1}^{\infty} and {2kλ}k=1\{\mathcal{B}_{2k}^{\lambda}\}_{k=1}^{\infty} are strictly decreasing whenever 0<λ10<\lambda\leq 1 and the sequences {2k1λ}k=2\{\mathcal{B}_{2k-1}^{\lambda}\}_{k=2}^{\infty} and {2kλ}k=1\{\mathcal{B}_{2k}^{\lambda}\}_{k=1}^{\infty} are strictly increasing whenever λ1.2\lambda\geq 1.2. For λ(1,1.2)\lambda\in(1,1.2), there exists a positive integer ϱλ\varrho_{\lambda}\in\mathbb{N} such that the sequences {2k1λ}kϱλ\{\mathcal{B}_{2k-1}^{\lambda}\}_{k\geq\varrho_{\lambda}} and {2kλ}kϱλ\{\mathcal{B}_{2k}^{\lambda}\}_{k\geq\varrho_{\lambda}} are strictly increasing.

4.2 Optimal convergence rates of Legendre-Gauss-Lobatto interpolation and differentiation for analytic functions

Legendre-Gauss-Lobatto interpolation is widely used in the numerical solution of differential and integral equations (see, e.g., [3, 6, 14]). Let pn(x)p_{n}(x) be the unique polynomial which interpolates f(x)f(x) at the zeros of ϕnLGL(x)\phi_{n}^{\mathrm{LGL}}(x) and it is well known that pn(x)p_{n}(x) is the LGL interpolant of degree nn. If ff is analytic inside and on the ellipse ρ\mathcal{E}_{\rho} for some ρ>1\rho>1, convergence rates of LGL interpolation and differentiation in the maximum norm have been thoroughly studied in [26] with the help of the Hermite’s contour integral. In particular, the following error bounds were proved (setting λ=1/2\lambda=1/2 in [26, Theorem 4.3]):

fpnL(Ω)𝒦M(ρ)π(ρ2+ρ2)(1+ρ2)3/2(1ρ1)2(ρρ1)2n3/2ρn,\displaystyle\|f-p_{n}\|_{L^{\infty}(\Omega)}\leq\mathcal{K}\frac{M(\rho)\sqrt{\pi(\rho^{2}+\rho^{-2})}(1+\rho^{-2})^{3/2}}{(1-\rho^{-1})^{2}(\rho-\rho^{-1})^{2}}\frac{n^{3/2}}{\rho^{n}}, (4.20)

and

max0jn|f(xj)pn(xj)|𝒦M(ρ)π(ρ2+ρ2)(1+ρ2)3/24(1ρ1)2(ρρ1)2n7/2ρn,\displaystyle\max_{0\leq j\leq n}\left|f{{}^{\prime}}(x_{j})-p_{n}{{}^{\prime}}(x_{j})\right|\leq\mathcal{K}\frac{M(\rho)\sqrt{\pi(\rho^{2}+\rho^{-2})}(1+\rho^{-2})^{3/2}}{4(1-\rho^{-1})^{2}(\rho-\rho^{-1})^{2}}\frac{n^{7/2}}{\rho^{n}}, (4.21)

where 𝒦1\mathcal{K}\approx 1 is a generic positive constant and {xj}j=0n\{x_{j}\}_{j=0}^{n} are LGL points (i.e., the zeros of ϕnLGL(x)\phi_{n}^{\mathrm{LGL}}(x)). It is clear to see that the above results imply that the rate of convergence of pn(x)p_{n}(x) in the LL^{\infty} norm is O(n3/2ρn)O(n^{3/2}\rho^{-n}) and the maximum error of LGL spectral differentiation is O(n7/2ρn)O(n^{7/2}\rho^{-n}).

In the following, we shall improve the results (4.20) and (4.21) by using Theorem 2.1 and show that the factor n3/2n^{3/2} in (4.20) can actually be removed and the factor n7/2n^{7/2} in (4.21) can be improved to n3/2n^{3/2}. We state our main results in the following theorem.

Theorem 4.5.

If ff is analytic inside and on the ellipse ρ\mathcal{E}_{\rho} for some ρ>1\rho>1, then

fpnL(Ω)𝒦2M(ρ)L(ρ)d(Ω,ρ)πρ211ρn.\displaystyle\|f-p_{n}\|_{L^{\infty}(\Omega)}\leq\frac{\mathcal{K}\sqrt{2}M(\rho)L(\mathcal{E}_{\rho})}{\mathrm{d}(\Omega,\mathcal{E}_{\rho})\pi\sqrt{\rho^{2}-1}}\frac{1}{\rho^{n}}. (4.22)

and

max0jn|f(xj)pn(xj)|\displaystyle\max_{0\leq j\leq n}\left|f{{}^{\prime}}(x_{j})-p_{n}{{}^{\prime}}(x_{j})\right| 𝒦2M(ρ)L(ρ)d(Ω,ρ)π(ρ21)n3/2ρn,\displaystyle\leq\frac{\mathcal{K}\sqrt{2}M(\rho)L(\mathcal{E}_{\rho})}{\mathrm{d}(\Omega,\mathcal{E}_{\rho})\sqrt{\pi(\rho^{2}-1)}}\frac{n^{3/2}}{\rho^{n}}, (4.23)

where 𝒦\mathcal{K} is a generic positive constant and 𝒦1\mathcal{K}\approx 1 for n1n\gg 1 and d(Ω,ρ)\mathrm{d}(\Omega,\mathcal{E}_{\rho}) denotes the distance from Ω\Omega to ρ\mathcal{E}_{\rho}.

Proof.

From the Hermite integral formula [4, Theorem 3.6.1] we know that the remainder of the LGL interpolants can be written as

f(x)pn(x)=12πiρϕnLGL(x)f(z)ϕnLGL(z)(zx)dz,\displaystyle f(x)-p_{n}(x)=\frac{1}{2\pi i}\oint_{\mathcal{E}_{\rho}}\frac{\phi_{n}^{\mathrm{LGL}}(x)f(z)}{\phi_{n}^{\mathrm{LGL}}(z)(z-x)}\mathrm{d}z, (4.24)

from which we can deduce immediately that

fpnL(Ω)\displaystyle\|f-p_{n}\|_{L^{\infty}(\Omega)} maxxΩ|ϕnLGL(x)|minzρ|ϕnLGL(z)|×M(ρ)L(ρ)2πd(Ω,ρ)\displaystyle\leq\frac{\max_{x\in\Omega}|\phi_{n}^{\mathrm{LGL}}(x)|}{\min_{z\in\mathcal{E}_{\rho}}|\phi_{n}^{\mathrm{LGL}}(z)|}\times\frac{M(\rho)L(\mathcal{E}_{\rho})}{2\pi\mathrm{d}(\Omega,\mathcal{E}_{\rho})}
=1minzρ|ϕnLGL(z)|×2M(ρ)L(ρ)πd(Ω,ρ)2nπ,\displaystyle=\frac{1}{\min_{z\in\mathcal{E}_{\rho}}|\phi_{n}^{\mathrm{LGL}}(z)|}\times\frac{2M(\rho)L(\mathcal{E}_{\rho})}{\pi\mathrm{d}(\Omega,\mathcal{E}_{\rho})\sqrt{2n\pi}}, (4.25)

where we used (2.3) in the last step. Moreover, combining (4.24) with (2.4) we obtain

max0jn|f(xj)pn(xj)|\displaystyle\max_{0\leq j\leq n}\left|f{{}^{\prime}}(x_{j})-p_{n}{{}^{\prime}}(x_{j})\right| (2n+1)max0jn|Pn(xj)|minzρ|ϕnLGL(z)|×M(ρ)L(ρ)2πd(Ω,ρ)\displaystyle\leq(2n+1)\frac{\max_{0\leq j\leq n}|P_{n}(x_{j})|}{\min_{z\in\mathcal{E}_{\rho}}|\phi_{n}^{\mathrm{LGL}}(z)|}\times\frac{M(\rho)L(\mathcal{E}_{\rho})}{2\pi\mathrm{d}(\Omega,\mathcal{E}_{\rho})}
=(2n+1)minzρ|ϕnLGL(z)|×M(ρ)L(ρ)2πd(Ω,ρ),\displaystyle=\frac{(2n+1)}{\min_{z\in\mathcal{E}_{\rho}}|\phi_{n}^{\mathrm{LGL}}(z)|}\times\frac{M(\rho)L(\mathcal{E}_{\rho})}{2\pi\mathrm{d}(\Omega,\mathcal{E}_{\rho})}, (4.26)

where we have used the fact that |Pk(x)|1|P_{k}(x)|\leq 1 in the last step. In order to establish sharp error bounds for the LGL interpolation and differentiation, it is necessary to find the minimum value of |ϕnLGL(z)||\phi_{n}^{\mathrm{LGL}}(z)| for zρz\in\mathcal{E}_{\rho}. Owing to [21, Equation (5.14)] we infer that

Pn(z)=unnπ(1u2)[1+14n(1u2112)+O(n2)],n1,\displaystyle P_{n}(z)=\frac{u^{n}}{\sqrt{n\pi(1-u^{-2})}}\left[1+\frac{1}{4n}\left(\frac{1}{u^{2}-1}-\frac{1}{2}\right)+O(n^{-2})\right],\quad n\gg 1,

and, after some calculations, we obtain that

minzρ|ϕnLGL(z)|𝒦ρnρ21nπ,\displaystyle\min_{z\in\mathcal{E}_{\rho}}|\phi_{n}^{\mathrm{LGL}}(z)|\geq\mathcal{K}\rho^{n}\sqrt{\frac{\rho^{2}-1}{n\pi}}, (4.27)

and 𝒦1\mathcal{K}\approx 1 for n1n\gg 1. Combining this with (4.2) and (4.2) gives the desired results. This ends the proof. ∎

Remark 4.6.

It is easily seen that the rate of convergence of pn(x)p_{n}(x) in the LL^{\infty} norm is O(ρn)O(\rho^{-n}), and thus we have improved the existing result (4.20). Moreover, the rate of convergence of LGL spectral differentiation is O(n3/2ρn)O(n^{3/2}\rho^{-n}), and thus we have improved the existing result (4.21).

In the proof of Theorem 4.5, we have used an asymptotic estimate of the minimum value of |ϕnLGL(z)||\phi_{n}^{\mathrm{LGL}}(z)| for zρz\in\mathcal{E}_{\rho}. Now we provide a more detailed observation on this issue. By parameterizing the ellipse with z=(ρeiθ+(ρeiθ)1)/2z=(\rho e^{i\theta}+(\rho e^{i\theta})^{-1})/2 with ρ>1\rho>1 and 0θ<2π0\leq\theta<2\pi, we plot |ϕnLGL(z)||\phi_{n}^{\mathrm{LGL}}(z)| in Figure 7 for several values of ρ\rho and nn. Clearly, we observe that the minimum value of |ϕnLGL(z)||\phi_{n}^{\mathrm{LGL}}(z)| is always attained at θ=0,π\theta=0,\pi. This observation inspires us to raise the following conjecture:

Conjecture: For nn\in\mathbb{N} and ρ>1\rho>1,

minzρ|ϕnLGL(z)|=|ϕnLGL(z0)|,\displaystyle\min_{z\in\mathcal{E}_{\rho}}\left|\phi_{n}^{\mathrm{LGL}}(z)\right|=\left|\phi_{n}^{\mathrm{LGL}}(z_{0})\right|, (4.28)

where z0=±(ρ+ρ1)/2z_{0}=\pm(\rho+\rho^{-1})/2.

\begin{overpic}[width=136.5733pt,height=142.26378pt]{Ellipse1.eps} \end{overpic}
\begin{overpic}[width=136.5733pt,height=142.26378pt]{Ellipse2.eps} \end{overpic}
\begin{overpic}[width=136.5733pt,height=142.26378pt]{Ellipse3.eps} \end{overpic}
\begin{overpic}[width=136.5733pt,height=142.26378pt]{Ellipse4.eps} \end{overpic}
\begin{overpic}[width=136.5733pt,height=142.26378pt]{Ellipse5.eps} \end{overpic}
\begin{overpic}[width=136.5733pt,height=142.26378pt]{Ellipse6.eps} \end{overpic}
Figure 7: The plot of |ϕnLGL(z)||\phi_{n}^{\mathrm{LGL}}(z)| as a function of θ\theta. Top row shows n=3n=3 and ρ=1.05\rho=1.05 (left), ρ=1.25\rho=1.25 (middle) and ρ=1.5\rho=1.5 (right). Bottom row shows n=8n=8 and ρ=1.05\rho=1.05 (left), ρ=1.25\rho=1.25 (middle) and ρ=1.32\rho=1.32 (right).

To provide some insights into this conjecture, after some calculations we obtain

|ϕ1LGL(z)|\displaystyle\left|\phi_{1}^{\mathrm{LGL}}(z)\right| =38(ρ2+1ρ22cos(2θ)),\displaystyle=\frac{3}{8}\left(\rho^{2}+\frac{1}{\rho^{2}}-2\cos(2\theta)\right),
|ϕ2LGL(z)|\displaystyle\left|\phi_{2}^{\mathrm{LGL}}(z)\right| =516[((ρ2+1ρ2)24cos2(2θ))(ρ2+1ρ22cos(2θ))]1/2.\displaystyle=\frac{5}{16}\left[\left(\left(\rho^{2}+\frac{1}{\rho^{2}}\right)^{2}-4\cos^{2}(2\theta)\right)\left(\rho^{2}+\frac{1}{\rho^{2}}-2\cos(2\theta)\right)\right]^{1/2}.

It is easily seen that the minimum values of |ϕ1LGL(z)|\left|\phi_{1}^{\mathrm{LGL}}(z)\right| and |ϕ2LGL(z)|\left|\phi_{2}^{\mathrm{LGL}}(z)\right| are always attained at θ=0,π\theta=0,\pi, which confirms the above conjecture for n=1,2n=1,2. For n3n\geq 3, however, |ϕnLGL(z)|\left|\phi_{n}^{\mathrm{LGL}}(z)\right| will involve a rather lengthy expression and it would be infeasible to find the minimum value of |ϕnLGL(z)|\left|\phi_{n}^{\mathrm{LGL}}(z)\right| from its explicit expression. We will pursue the proof of this conjecture in future work.

Example 4.7.

We consider the following Runge function

f(x)=11+(ax)2,a>0.\displaystyle f(x)=\frac{1}{1+(ax)^{2}},\quad a>0. (4.29)

It is easily verified that this function has a pair of poles at z=±i/az=\pm i/a and thus the rates of convergence of pn(x)p_{n}(x) is O(ρn)O(\rho^{-n}) with ρ=(1+a2+1)/a\rho=(1+\sqrt{a^{2}+1})/a. In Figure 8 we illustrate the maximum errors of LGL interpolants for two values of aa. In our implementation, the LGL interpolants pn(x)p_{n}(x) are computed by using the second barycentric formula

pn(x)=j=0nwjxxjf(xj)j=0nwjxxj,\displaystyle p_{n}(x)=\frac{\displaystyle\sum_{j=0}^{n}\frac{w_{j}}{x-x_{j}}f(x_{j})}{\displaystyle\sum_{j=0}^{n}\frac{w_{j}}{x-x_{j}}}, (4.30)

where {wj}j=0n\{w_{j}\}_{j=0}^{n} are the barycentric weights of LGL points and the algorithm for computing these barycentric weights is described in [18]. Clearly, we see that numerical results are in good agreement with our theoretical analysis.

\begin{overpic}[width=199.16928pt,height=170.71652pt]{LGLExam1.eps} \end{overpic}
\begin{overpic}[width=199.16928pt,height=170.71652pt]{LGLExam2.eps} \end{overpic}
Figure 8: The maximum error fpnL(Ω)\|f-p_{n}\|_{L^{\infty}(\Omega)} (circles) and the predicted convergence rate (line) for a=5a=5 (left) and a=6a=6 (right).

In Figure 9 we illustrate the maximum errors of LGL spectral differentiation. In our implementation, we first compute the barycentric weights {wj}j=0n\{w_{j}\}_{j=0}^{n} by the algorithm in [18] and then compute the differentiation matrix DD by

Dj,k={wk/wjxjxk,jk,kjDj,k,j=k.\displaystyle D_{j,k}=\left\{\begin{array}[]{ll}{\displaystyle\frac{w_{k}/w_{j}}{x_{j}-x_{k}}},&\hbox{$j\neq k$,}\\[15.0pt] {\displaystyle-\sum_{k\neq j}D_{j,k}},&\hbox{$j=k$.}\end{array}\right. (4.33)

Finally, (pn(x0),,pn(xn))T(p_{n}{{}^{\prime}}(x_{0}),\ldots,p_{n}{{}^{\prime}}(x_{n}))^{T} is evaluated by multiplying the differentiation matrix DD with (f(x0),,f(xn))T(f(x_{0}),\ldots,f(x_{n}))^{T}. From (4.23) we know that the predicted rate of convergence of LGL spectral differentiation is O(n3/2((1+a2+1)/a)n)O(n^{3/2}((1+\sqrt{a^{2}+1})/a)^{-n}). Clearly, we can observe from Figure 9 that the predicted rate of convergence is consistent with the errors of LGL spectral differentiation.

\begin{overpic}[width=199.16928pt,height=170.71652pt]{LGLExam3.eps} \end{overpic}
\begin{overpic}[width=199.16928pt,height=170.71652pt]{LGLExam4.eps} \end{overpic}
Figure 9: The maximum error of LGL spectral differentiation (circles) and the predicted convergence rate (line) for a=5a=5 (left) and a=6a=6 (right).

5 Conclusion

In this paper, we have studied the error analysis of Legendre approximations for differentiable functions from a new perspective. We introduced the sequence of LGL polynomials {ϕ0LGL(x),ϕ1LGL(x),}\{\phi_{0}^{\mathrm{LGL}}(x),\phi_{1}^{\mathrm{LGL}}(x),\ldots\} and proved their theoretical properties. Based on these properties, we derived a new explicit bound for the Legendre coefficients of differentiable functions. We then obtained an optimal error bound of Legendre projections in the L2L^{2} norm and an optimal error bound of Legendre projections in the LL^{\infty} norms under the condition that the maximum error of Legendre projections is attained in the interior of Ω\Omega. Numerical examples were provided to demonstrate the sharpness of our new results. Finally, we presented two extensions of our analysis, including Gegenbauer-Gauss-Lobatto (GGL) functions {ϕ1GGL(x),ϕ2GGL(x),}\{\phi_{1}^{\mathrm{GGL}}(x),\phi_{2}^{\mathrm{GGL}}(x),\ldots\} and optimal convergence rates of Legendre-Gauss-Lobatto interpolation and differentiation for analytic functions.

In future work, we will explore the extensions of the current study to a more general setting, such as finding some new upper bounds for the weighted Jacobi polynomials (see, e.g., [9]) and establishing some sharp error bounds for Gegenbauer approximations of differentiable functions.

Acknowledgements

This work was supported by the National Natural Science Foundation of China under grant 11671160. The author wishes to thank the editor and two anonymous referees for their valuable comments on the manuscript.

References

  • [1] V. A. Antonov and K. V. Holševnikov, An estimate of the remainder in the expansion of the generating function for the Legendre polynomials (Generalization and improvement of Bernstein’s inequality), Vestnik Leningrad Univ. Math., 13:163–166, 1981.
  • [2] I. Babuška and H. Hakula, Pointwise error estimate of the Legendre expansion: The known and unknown features, Comput. Methods Appl. Mech. Engrg., 345(1):748–773, 2019.
  • [3] C. Canuto, M. Y. Hussaini, A. Quarteroni and T. A. Zang, Spectral Methods: Fundamentals in Single Domains, Springer, 2006.
  • [4] P. J. Davis, Interpolation and Approximation, Dover Publications, New York, 1975.
  • [5] L. Durand, Nicholson-type integrals for products of Gegenbauer functions and related topics, Theory and Application of Special Functions, Edited by Richard A. Askey, pp.353–374, Academic Press, New York, 1975.
  • [6] A. Ern and J.-L. Guermond, Finite elements I: Approximation and Interpolation, Vol. 72 of Texts in Applied Mathematics, Springer, Cham, 2021.
  • [7] W. Gautschi, Orthogonal Polynomials: Computation and Approximation, Oxford University Press, London, 2004.
  • [8] D. Jackson, The Theory of Approximation, American Mathematical Society Colloquium Publications, Volume XI, New York, 1930.
  • [9] I. Krasikov, An upper bound on Jacobi polynomials, J. Approx. Theory, 149:116–130, 2007.
  • [10] W.-J. Liu, L.-L. Wang and B.-Y. Wu, Optimal error estimates for Legendre expansions of singular functions with fractional derivatives of bounded variation, Adv. Comput. Math., 47: article number: 79, 2021.
  • [11] J. C. Mason and D. C. Handscomb, Chebyshev Polynomials, Chapman and Hall/CRC, Boca Raton, 2003.
  • [12] F. W. J. Olver, D. W. Lozier, R. F. Boisvert and C. W. Clark, NIST Handbook of Mathematical Functions, Cambridge University Press, 2010.
  • [13] M. H. Protter and C. B. Morrey, A First Course in Real Analysis, Second Edition, Springer-Verlag, New York, 1991.
  • [14] J. Shen, T. Tang and L.-L. Wang, Spectral Methods: Algorithms, Analysis and Applications, Springer, Heidelberg, 2011.
  • [15] G. Szegő, Orthogonal Polynomials, Vol. 23, 4th Edition, Amer. Math. Soc., Providence, RI, 1975.
  • [16] L. N. Trefethen, Approximation Theory and Approximation Practice, Extended Edition, SIAM, Philadephia, 2019.
  • [17] H.-Y. Wang and S.-H. Xiang, On the convergence rates of Legendre approximation, Math. Comp., 81(278):861–877, 2012.
  • [18] H.-Y. Wang, D. Huybrechs and S. Vandewalle, Explicit barycentric weights for polynomial interpolation in the roots or extrema of classical orthogonal polynomials, Math. Comp., 83(290):2893–2914, 2014.
  • [19] H.-Y. Wang, On the optimal estimates and comparison of Gegenbauer expansion coefficients, SIAM J. Numer. Aanl., 54(3):1557–1581, 2016.
  • [20] H.-Y. Wang, A new and sharper bound for Legendre expansion of differentiable functions, Appl. Math. Lett., 85:95–102, 2018.
  • [21] H.-Y. Wang and L. Zhang, Jacobi polynomials on the Bernstein ellipse, J. Sci. Comput., 75:457–477, 2018.
  • [22] H.-Y. Wang, How much faster does the best polynomial approximation converge than Legendre projections?, Numer. Math., 147:481–503, 2021.
  • [23] H.-Y. Wang, Optimal rates of convergence and error localization of Gegenbauer projections, IMA J. Numer. Anal., https://doi.org/10.1093/imanum/drac047, 2022.
  • [24] H.-Y. Wang, Analysis of error localization of Chebyshev spectral approximations, SIAM J. Numer. Anal., 61(2):952–972, 2023.
  • [25] S.-H. Xiang and G.-D. Liu, Optimal decay rates on the asymptotics of orthogonal polynomial expansions for functions of limited regularities, Numer. Math., 145:117–148, 2020.
  • [26] Z.-Q. Xie, L.-L. Wang and X.-D. Zhao, On exponential convergence of Gegenbauer interpolation and spectral differentiation, Math. Comp., 82(282):1017–1036, 2013.