The Cheyshev Tau method is a powerful tool for the numerical solution of eigenvalue boundary value problems. In particular, the so-called spectral convergence is faster than traditional FDM or FEM techniques by several orders of magnitude. However, when applied to problems of order , spurious eigenvalues may appear (Dawkins et al.).
In this post we summarize a matrix factorization technique to modify the usual Tau method in order to eliminate the spurious values (Gardner et al.). The desired spectral convergence is preserved, which we verify with several test problems; notably one where the eigenvalue is located at the boundary. We also discuss using the Tau values to identify spurious or poor approximations to true eigenvalues.
The modified method is exceedingly useful for fixing a known issue with the Tau method. In fact, it can be shown to be equivalent to the modified Galerkin method where trial functions that obey boundary conditions are explicitely constructed. As this method requires less direct calculations, it seems to be the preferred choice.
The code for the post is written in Julia, and can be found in my spectral methods repository, which is to be developed into a package in the near future.
Some background on Chebyshev approxiation is required (Johnson). The Chebyshev polynomial of order is given by
for , and satisfy the three-term recurrence relation , with and . The family are an orthogonal basis with respect to the inner product
In particular we have , where . Any smooth function and its derivatives can therefore be expanded as modal Chebyshev series:
Formulas for the derivative coefficients can be derived from the recursion relation , . In particular we have:
Formulas for higher derivatives can likewise be obtained. Another useful result gives the values of the 'th order derivative of a Chebyshev polynomial when evaluated at the end points:
The above formulas are in terms of infinite sums, but in practice, we will work with truncated (finite) modal expansions.
We first consider a general fourth order equation of the form:
where the 's are (linear) second order differential operators, are the unknown eigenfunctions defined on a domain , and is the unknown eigenvalue. The problem may of course be formulated exclusively in terms of the eigenfunction , but the factorization will be useful later. The Tau method involves truncating the Chebyshev expansions of and and taking the inner product to obtain a matrix system of equations. Unique to the Tau method is that the boudary conditions are imposed exactly, using (5). For our modified method, we write:
where and signifies the number of equations we obtain from the interior (governing) equations, and boundary conditions, respectively. Since we consider fourth order equations, we need exactly four boundary conditions, , for the equation to be well-posed. Substituting the approximations into the governing equations and taking the inner product, we obtain a matrix system of the form:
where the are the coefficient operators derived from , respectively. The coefficients are unknowns, and are used to indicate the rate of convergence. We now write , , , and partition the matrices according to the following schematic:
Writing , we expand the block matrix equations:
We can then isolate in the second equation, requiring only a matrix inversion of . With and we get:
Substituting this into the first equation yields
which defines a generalized eigenvalue problem of the form , where . To obtain a square system, the boundary conditions may be viewed as a matrix equation (with ) that we concatenate to . Writing amd we further partition the complete system:
From the second block matrix equation we get . Substituting into the first block matrix equation yields our final generalized eigenvalue problem:
which can be solved with any appropriate eigenvalue solver. The final coefficients are recovered from the previous equation.
The tau coefficients are computed from the equation:
Its magnitude is useful for identifying spurious eigenvalues, as well as indicating the degree of convergence of the modal coefficients . However, computing also requires computing a normalized eigenvector corresponding to the eigenvalue, an increase in computational cost. Since only use the magnitude of the coefficients are useful, we may simply consider the sum of its absolute values: if any one of the coefficients for a given eigenvalue have large magnitude, then that value is spurious or a poor approximation to a true eigenvalue.
We now illustrate the method on two different fourth order problems, with the notable difference being the location of the eigenvalue.
Consider first the fourth order boundary value problem with vanishing boundary conditions:
where is a real parameter and is the eigenvalue. This is a standard example of an equation where the eigenvalue is located in the differential equation, and as such is present in all the interior modal equations. The modified method is implemented, and using a generalized Vandermonde matrix we can visualize the first few (normalized) eigenfunctions at the Chebyshev nodes:
Observe that the boundary conditions are clearly obeyed. Furthermore, the associated Tau magnitudes for each eigenvalue are included, which indicate a good approximation to a true eigenvalue. Increasing the number of interior modes will increase the number of eigenvalues in the spectrum, but not all of them are good approximations to a true eigenvalue. However, no spurious eigenvalues appear at the start of the spectrum for any choice of . For the differential operator is self-adjoint, so all eigenvalues are real, and in this case negative, numbers. In general, the spectrum will be a sequence of conjugate complex numbers with negative real part. This is seen in the following plot, for :
We observe from the Tau magnitudes in the following plot that the spectral convergence for the eigenvalues is obtained:
The same could most likely also be seen from computing the residual of the approximate eigenfunctions.
A defect of the method is that a very high number of modes will result in a ill-posed problem, and seemingly no true eigenvalues will appear in the spectrum. However, as the convergence plot shows, there is no reason for selecting such a high number of modes, unless one wishes to obtian a lot of eigenvalues. A possible remedy in this situation could be to use a spectral element method, partitioning the governing domain and therefore using several (low-mode) approximations to the eigenfunction. This is to be investigated further.
Consider now the following fourth order boundary value problem:
where is once again a real parameter, and is the eigenvalue; it's location in a single boundary condition equation means that the analytic spectrum will be a singleton. However, our modified method will solve a very low-rank generalized eigenvalue problem. As such, eigenvalues of infinite magnitude are present in the spectrum, and will have to be removed by filtering. This suggests that solving the equation is ill-suited o be solved as a GEP, and some other method is preferred. It is possible that a constrained linear system can be solved, which would still leverage the effects of our modified method, but this is to be investigated further.
Nevertheless, the method can be implemented and the (normalized) eigenfunction can again be visualized at the Chebyshev nodes:
Observe that the rightmost boundary condition is clearly obeyed in both examples. Furthermore, the associated Tau magnitudes are seen to be extremely small, which could indicate a good approximation to the true eigenvalue. Further investigation of the Tau equation reveal only a small number of non-zero entries, which diminishes the information we can derive from them in this type of problem. To remedy this, one could compute the residual of the approximate eigenfunction, although we omit this here. We can however see a similar exponential convergence in the Tau magnitudes:
This plot indicates that the approximation converges (to something, but most likely the true solution to the equation).
The modified Chebyshev Tau method was introduced and demonstrated to be a definite improvement of the standard Tau method when solving eigenvalue problems. So far, the implementations in the spectral methods repository is limited to homogenous problems with constant coefficients, but nonconstant coefficients are to be implemented in the near future. Nonlinear problems is a separate issue, that I am unsure how to tackle with this particular method. A first order linear approximation seems wasteful to pair with this modified method, since all the computation and precision gains would likely go to waste.
It is of great interest to implement a spectral element method, where this numerical scheme is to be used in each element. Generalizing to and time-dependent problems is also an interesting direction to dedicate further effort. Overall this is a great first step in developing a suite for handling BVPs that appear in mathematical modelling.
Gardner, Trogdon and Douglass, A Modified Tau Spectral Method That Eliminates Spurious Eigenvalues, 1988.
Duane Johnson, Chebyshev Polynomials in the Spectral Tau Method and Applications to Eigenvalue Problems, 1996.
Dawkins, Dunbar and Douglass, The Origin and Nature of Spurious Eigenvalues in the Spectral Tau Method, 1998.