Abstract
For various grids on a finite interval we measure the accurarcy of pseudospectral (collocation) differentiation matrices using two parameters. The first one is the rank defficiency of the differentation matrices. The second one quantifies the extent at which such matrices transform a constant vector into the null vector.
Authors
Tiberiu Popoviciu Institute of Numerical Analysis
Keywords
pseudospectral differentiation; Chebyshev-Gauss-Lobatto grid; Legendre grid; equidistant grid; accuracy; floating-point arithmetic
References
See the expanding block below.
Paper coordinates
C.I. Gheorghiu, On the accuracy of pseudospectral differentiation, ROMAI J., 10 (2014) no. 1, pp. 55-62.
About this paper
Journal
ROMAI J.
Publisher Name
Paper on journal website
Print ISSN
2065-7714
Online ISSN
1841-5512
MR
?
ZBL
?
Google Scholar
?
[2] Canuto, C., Hussaini, M. Y., Quarteroni, A., Zang, T.A., Spectral Methods in Fluid Dynamics, Springer Verlag, Berlin, 1988.
[3] Gheorghiu, C.I., Spectral Methods for Differential Problems, Casa Cartii de Stiinta Publishing House, Cluj-Napoca, 2007.
[4] Gheorghiu, C. I., Spectral Methods for Non-Standard Eigenvalue Problems. Fluid and Structural Mechanics and Beyond, Springer Briefs in Mathematics, 2014.
[5] Gottlieb, D., Orszag, S.A., Numerical Analysis of Spectral Methods: Theory and Applications, I SIAM Philadelphia, 1977.
[6] Henrici, P., Applied and Computational Complex Analysis: Discrete Fourier Analysis-Cauchy Integrals-Construction of
Conformal Maps-Univalent Functions, Vol. 3 John Wiley and Sons, Inc., New York, 1986.
[7] Weideman, J.A.C., Reddy, S.C. A MATLAB Differentiation Matrix Suite, ACM Trans, on Math. Software, 26, 465-519 (2000)
Paper (preprint) in HTML form
ON THE ACCURACY OF PSEUDOSPECTRAL DIFFERENTIATION
Călin Ioan Gheorghiu
"T. Popoviciu" Institute of Numerical Analysis, Romanian Academy, Cluj-Napoca, Romania
ghcalin@ictp.acad.ro
Abstract
For various grids on a finite interval we measure the accuracy of pseudospectral (collocation) differentiation matrices using two parameters. The first one is the the rank defficiency of the differentiation matrices. The second one quantifies the extent at which such matrices transform a constant vector into the null vector.
See discussions, stats, and author profiles for this publication at: https://www.researchgate.net/publication/270816787
On the accuracy of pseudospectral differentiation.
Keywords: pseudospectral differentiation; Chebyshev-Gauss-Lobatto grid; Legendre grid; equidistant grid; accuracy; floating-point arithmetic.
1. INTRODUCTION
Fundamental results from approximation theory refers to the best uniform approximation of a smooth function by polynomials and the uniform approximation of a smooth periodic function by trigonometric polynomials. These results are reviewed for instance in the monograph [1], Ch. 3. Thus, the Chebyshev equioscillation theorem states that a best approximation is unique for important classes of approximating functions but the set of nodes on which this approximation is realized is not necessarily unique. On the other hand, the spectral collocation methods essentially depend on the set of nodes on which the differential equation is collocated. In order to implement these methods one needs very accurate differentiation matrices of various orders.
Consequently, the accuracy at which the pseudospectral (collocation) differentiation matrices operate is of utmost importance in numerical analysis. In this note we will address the issue of the dependence of the accuracy of differentiation process on the node distribution in a grid covering a finite interval. We will consider an equispaced grid, an arbitrary one and then Legendre and Chebyshev grids. For non algebraic polynomials we will consider the Fourier interpolate.
2. ARBITRARY AND EQUIDISTANT GRIDS
It is well established that spectral collocation methods for solving differential equations is based on weighted interpolants of the form
| (1) |
where , the set of interpolating functions satisfy (the Kronecker delta), the set of nodes in is distinct but otherwise arbitrary and the weight is an arbitrary continuously differentiable positive function (see for instance our contribution [3]). Typically, is the solution of an initial/boundary value problem.
The baricentric form of interpolation polynomial writes (see for instance the seminal paper [7])
where . This means that defined above is an interpolant of the function in the sense that
The collocation derivative operators are generated by taking various order derivatives of (1) and evaluating them at nodes , i.e.,
Consequently, the th order differentiation matrices associated to this operator are computed by
| (2) |
where are given by Lagrange’s formula
The approximation theory dictates that the set of nodes cannot be just any set of nodes. The main aim of this note is to make this statement more clear. Thus we use the MATLAB code poldif.m from [7] in order to perform the differentiation in (2).
In order to quantify the performances of every set of nodes we compute two specific parameters, namely:
-
•
the norm of the error in approximating the zero vector, i.e., where
-
•
the for various values of approximation parameter .
Instead of the first parameter we could use another one reflecting the fact that the matrix has to satisfy
i.e., the derivative of a constant vanishes.
Let’s consider a set of equidistant nodes
| (3) |
where takes in turn the value from the first row of Table 3.1. Thus the interval [0,1] is successively divided in subintervals each of length .
Along with the equidistant grid (3) we consider first an arbitrary one, namely
| (4) |
It is fairly clear that this new grid is a non uniform one with nodes clustering to the left margin 0 . The extent at which the differentiation matrices perform on both grids is depicted in Fig. 1. The error in approximating the zero vector takes huge values. The collocation derivatives of the hat function and of a highly oscillatory but fairly smooth function, i.e., , with on 20 equispaced nodes are depicted in Fig. 2. They show large oscillations which cluster to the ends of the interval . They are the direct consequence of the numerical instability of the differentiation process.
It is well known that given nodes each of the differentiating matrices should be rank , a differentiating has the constant vector as its null space. Thus, it is important to point out that this equispaced approach works accurately for a very small number of nodes. As differentiating matrix should be rank one deficient, this simple test shows that even for a very rough approximation has additional nullspaces. Moreover, in case of quadratically spaced grid , the differentiation matrices
| 10 | 20 | 30 | 37 | 42 | 9 | 8 | 8 | 7 | 7 | |
| 10 | 19 | 6 | 4 | 4 | 3 | 3 | 3 | 3 | 3 |
become much more degenerated. Table 3.1 shows that the situation dramatically deteriorates as increases.
3. CONSECRATED GRIDS
In this section we will analyze some well known grids such as Legendre, Chebyshev and Fourier applied to a finite interval. First, let’s reconsider two illustrative examples, the Chebyshev and Legendre derivatives of the hat function and of the smooth but fairly oscillatory function 2.
perform satisfactorily well. Our numerical experiments have showed that all differentiation matrices keep a rank of order . Most notably, for larger than 700 the Legendre differentiation process rapidly becomes unstable.
The best situation with polynomial differentiation is encountered when Chebyshev nodes of second kind
| (5) |
or equivalently Chebyshev-Gauss-Lobatto quadrature nodes (see for instance [5] or our contribution [4] p. 11) are used. The corresponding differentiation matrix has the entries (see for instance [2], p. 69)
The above differences may be subject to floating-point cancellation errors for large . Various tricks based on simple trigonometric identities have been used in [7] in order to avoid such errors in floating-point arithmetic. Thus, the MATLAB code chebdif.m has been fairly stable algorithm in computing these matrices.
The upper curve in Fig 5 correspond to this situation.
Beyond this polynomial differentiation we will pay a particular attention to the Fourier differentiation matrices (see [7]). The Fourier interpolate reads
where
Using the baricentric form of the interpolate (see [6] Sect. 13.6) the MATLAB code fourdif.m from [7] provides the Fourier differentiation matrices on the nodes
Their performances are the best as it is apparent from Fig. 5 (see the lower curve). For it is of utmost importance to underline that Fourier and even Chebyshev differentiation matrices work fairly close to the machine precision. Excellent approximations are also attained when the cut off parameter ranges up to . It is also important to notice that all differentiation matrices conserve a correct rank. It is a practical illustration of the spectral accuracy.
4. CONCLUDING REMARKS
In ([7]) p. 478 the authors state that no general error analysis applicable to differentiation process on arbitrary grids has been undertaken. We hope that the present note fills this gap at least partially. Fourier and Chebyshev differentiation matrices have proved to be fairly reliable. This facts explain to some extent the success of the collocation spectral methods based on them.
References
[1] Atkinson, K., Han, W., Theoretical Numerical Analysis. A Functional Analysis Framework, Third Ed., Springer 2009.
[2] Canuto, C., Hussaini, M.Y., Quarteroni, A., Zang, T.A., Spectral Methods in Fluid Dynamics, Springer Verlag, Berlin, 1988.
[3] Gheorghiu, C.I., Spectral Methods for Differential Problems, Casa Cartii de Stiinta Publishing House, Cluj-Napoca, 2007.
[4] Gheorghiu, C.I., Spectral Methods for Non-Standard Eigenvalue Problems. Fluid and Structural Mechanics and Beyond, Springer Briefs in Mathematics, 2014.
[5] Gottlieb, D., Orszag, S.A., Numerical Analysis of Spectral Methods: Theory and Applications, SIAM Philadelphia, 1977.
[6] Henrici, P., Applied and Computational Complex Analysis: Discrete Fourier Analysis-Cauchy Integrals-Construction of Conformal Maps-Univalent Functions, Vol. 3 John Wiley and Sons, Inc., New York, 1986.
[7] Weideman, J.A.C., Reddy, S.C. A MATLAB Differentiation Matrix Suite, ACM Trans. on Math. Software, 26, 465-519 (2000).
