Weakly regular Sturm-Liouville problems: a corrected spectral matrix method
Cecilia Magherini

TL;DR
This paper introduces a spectral matrix method for solving weakly regular Sturm-Liouville eigenproblems with unbounded potentials, providing accurate eigenvalue approximations and validated through numerical experiments.
Contribution
It proposes a novel Galerkin spectral matrix approach with error analysis and a correction formula for eigenvalues in weakly regular Sturm-Liouville problems.
Findings
Convergence analysis confirms the method's accuracy.
The correction formula improves eigenvalue estimates.
Numerical experiments validate the effectiveness of the approach.
Abstract
In this paper, we consider weakly regular Sturm-Liouville eigenproblems with unbounded potential at both endpoints of the domain. We propose a Galerkin spectral matrix method for its solution and we study the error in the eigenvalue approximations it provides. The result of the convergence analysis is then used to derive a low-cost and very effective formula for the computation of corrected numerical eigenvalues. Finally, we present and discuss the results of several numerical experiments which confirm the validity of the approach.
| BCs | ||||
|---|---|---|---|---|
| order | order | order | ||||
| – | – | – | ||||
| order | order | order | ||||
| – | – | – | ||||
| order | order | order | ||||
| – | – | – | ||||
| order | order | order | ||||
| – | – | – | ||||
| order | order | order | ||||
| – | – | – | ||||
| order | order | order | ||||
| – | – | – | ||||
| order | order | order | ||||
| – | – | – | ||||
| order | order | order | ||||
| – | – | – | ||||
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSpectral Theory in Mathematical Physics · Numerical methods in inverse problems · Advanced Mathematical Modeling in Engineering
Weakly regular Sturm-Liouville problems: a corrected spectral matrix method.
Cecilia Magherini Dipartimento di Matematica, Università di Pisa, Italy, [email protected].
Abstract
In this paper, we consider weakly regular Sturm-Liouville eigenproblems with unbounded potential at both endpoints of the domain. We propose a Galerkin spectral matrix method for its solution and we study the error in the eigenvalue approximations it provides. The result of the convergence analysis is then used to derive a low-cost and very effective formula for the computation of corrected numerical eigenvalues. Finally, we present and discuss the results of several numerical experiments which confirm the validity of the approach.
Keywords: Sturm-Liouville eigenproblems, spectral matrix methods, Legendre polynomials, acceleration of convergence.
MSC: 65L15, 65L60, 65L70, 65B99
1 Introduction
Recently, the author studied a corrected spectral matrix method for solving weakly regular and singular Sturm-Liouville problems defined over the bounded domain with an unbounded potential at the left endpoint, [7]. The numerical results provided by such technique are definitely satisfactory for weakly regular problems. This suggested to study a generalization of the method for the approximation of the eigenvalues and of the eigenfunctions of problems of the following type
[TABLE]
where the potential is given by
[TABLE]
with functions at the numerators that are analytical inside and on a Bernstein ellipse containing In the literature, problems of this type with unbounded at least at one endpoint are sometimes called weakly regular and it is well known that their spectrum is composed by real and simple eigenvalues which can be ordered as an increasing sequence tending to infinity. We will number them starting from index i.e. we will call
[TABLE]
the exact spectrum of (1)–(4).
In [7], we considered the case with namely problems with a potential of the form and a special algorithm for and was derived. As remarked in the same paper, the obtained results appear to be more reliable than those given by well-known and well-established general-purpose codes based on shooting techniques like, for example, the MATSLISE2 [5, 6], the SLEDGE [8] and the SLEIGN2 [1] ones. A possible explanation is that the common basic idea in them implemented is essentially the selection of suitable layers. In particular, if is unbounded at both endpoints, then the approach is that of solving a suitable problem over with and small positive values automatically selected, [9]. As indicated in their documentation, this may cause a loss of accuracy and from all our tests we deduced that this may be more relevant if the problem is not subject to the Dirichlet condition at the endpoint where is unbounded. As an example, in the following table we list some numerical eigenvalues for the problem with subject to that we computed by using such codes with a tolerance equal to
[TABLE]
These considerations justify the interest in generalizing the method proposed in [7] and the outline of this paper is the following. In Section 2, we recall the basic facts concerning the spectral Legendre-Galerkin matrix method introduced in [7] and we discuss the computation of the coefficient matrix that corresponds to a potential of the form in (4). An analysis of the error in the numerical eigenvalues with respect to the generalized eigenvalue problem size is carried out in Section 3. In addition, in the same section, we derive a low cost and effective procedure for an a posteriori correction of the numerical eigenvalues. Finally, in Section 4 we report and discuss the results of some numerical experiments.
2 Spectral Legendre-Galerkin method
Let be the space of polynomials of maximum degree for a fixed and let
[TABLE]
We look for an approximation of an eigenfunction of the following type
[TABLE]
where the coefficients and the numerical eigenvalue are determined by imposing, see (1),
[TABLE]
Here is the standard inner product in i.e.
[TABLE]
which is naturally suggested by the Liouville normal form of the SLP we are studying. We can write (8) as the following generalized eigenvalue problem
[TABLE]
where \mbox{\boldmath\zeta}_{N}=\left(\zeta_{0N},\ldots,\zeta_{N-1,N}\right)^{T},
[TABLE]
with
[TABLE]
The matrices and are clearly symmetric and the same property holds for thanks to the well-known Green’s identity, [7].
The basis function is chosen as follows [10]
[TABLE]
where is the Legendre polynomial of degree and the three coefficients and are such that verifies the boundary conditions (BCs), see (5)-6). The complete discussion of the computation of such coefficients can be found in [7] where we used the fact that
[TABLE]
and we decided to use basis functions that verify for each This is obtained by imposing and Here we simply list in Table 1 the three coefficients of the linear combination in (12) for the four problems subject to natural BCs and for two general ones of Robin type.
For later reference, it is important to underline the fact that, as soon as is sufficiently large, we always got
[TABLE]
More precisely, if the BCs are symmetric, i.e. if then we always set so that is an even or an odd function if is even or odd, respectively.
2.1 The matrices and
In this section, we recall the results obtained in [7] about the entries of and in (10)-(11).
Concerning the first matrix, one immediately gets that for each since is orthogonal to any polynomial in see (12). Consequently, is diagonal with diagonal entries
[TABLE]
see (13). We remark that, independently of the BCs, satisfies
[TABLE]
Regarding it is not too difficult to verify that it is pentadiagonal. In more detail, if we let
[TABLE]
[TABLE]
then we get
[TABLE]
2.2 The matrix
From (10)-(11), one obtains that admits a factorization similar to the one just given for Specifically
[TABLE]
where is defined in (22),
[TABLE]
being
[TABLE]
As done in [4, 7], it is possible to prove the following result by using the well-known recurrence relation of the Legendre polynomials.
Proposition 2.1
Let and
[TABLE]
If we define the linear tridiagonal operator where
[TABLE]
and we let be the zero sequence, then we get
[TABLE]
Now, the structure of and (35) permit to determine the entire matrix once have been computed for each (see [4, 7] for the details). We shall proceed by discussing how we determine these values for problems with since the generalization is simple, see (25). In this regard, we observe that (26), [3, 16.4 formula (2)] and arguments similar to the ones used in the proof of [4, Proposition 2] allow to get that
[TABLE]
Let us assume for the moment that we have computed the values of for each with sufficiently large. Then, recalling that by assumption is analytical inside and over a Bernstein ellipse containing , we proceed in this way. We get a polynomial approximation of by transforming it in a Chebfun function [2], which is accurate up to machine precision, and then we apply the previous formula to compute the first entries of
Concerning the computation of we have to distinguish the following cases:
it is evident that and for each 2. 2.
as discussed in [7] it results
[TABLE]
where is the Pochhammer symbol; 3. 3.
with similar computations one gets
[TABLE] 4. 4.
by using [3, 16.2, formula(6)] we get
[TABLE]
where
[TABLE]
It is clear that the formulas in (37) or (38) allow to compute easily. For example, if and then from (38) one gets
[TABLE]
so that it is possible to proceed recursively. On the other hand, if then the computation of the Gauss hypergeometric function at right hand-side of (39) can be costly and ill-conditioned. We thus preferred to find alternative expressions. In particular, if then the application of the following Whipple sum
[TABLE]
with and gives
[TABLE]
Therefore, if is odd then (this was indeed already evident from its definition in (36) with ). On the other hand, if is even then
[TABLE]
Remark 2.1
If and is even then the matrix in (24) is permutation similar to a block diagonal matrix with diagonal blocks of size In addition, if the coefficients of the BCs in (2)-(3) verify then the SLP is called symmetric and, as we recalled after (19), for each Therefore, the matrices and are permutation similar to block diagonal matrices too, see the paragraph before (20) and (22)–(24). This implies that we can split the generalized eigenvalue problem (9) into two ones of halved size.
It remains to discuss how it is possible to avoid the evaluation of the Gauss hypergeometric function for the computation of if and In this case, even though alternative strategies are possible, we decided to write as a linear combination of where is the Jacobi polynomial of degree with weighting function In other words, first of all we write
[TABLE]
Then we determine as follows
[TABLE]
Now, by using formulas in [3, 16.4] we obtain
[TABLE]
[TABLE]
Hence
[TABLE]
where is defined in (40),
[TABLE]
It is not too difficult to verify that
[TABLE]
being “” the Hadamard product and
[TABLE]
i.e. and are a lower triangular Toeplitz and an Hankel matrix, respectively. Clearly, a suitable truncation of the vectors and matrices in (42) is operated depending on the number of values of that we actually need. In addition, we compute and recursively. Finally, it is worth mentioning that an algorithm similar to the one described in [12] can be used for the matrix-vector product in (42).
3 Error analysis and computation of corrected numerical eigenvalues.
We now study the behavior of the error in the resulting numerical eigenvalues as increases and for a fixed index. In particular, we consider weakly regular problems with a potential of the type specified in (4) which is unbounded at least at one endpoint. The analysis that we are going to present will be also used to derive a very effective and efficient procedure for an a posteriori correction of the numerical eigenvalues.
Let be the approximation of the exact eigenvalue as increases and let be the corresponding exact eigenfunction having the following expansion
[TABLE]
The following first result can be proved by using arguments similar to the ones considered in [7].
Theorem 3.1
If is sufficiently larger than the index of the eigenvalue then, see (7) and (20),
[TABLE]
where
[TABLE]
The asymptotic estimate that we are going to prove in the next theorem is fundamental for proceeding.
Theorem 3.2
Let If and if is sufficiently large then
[TABLE]
where
[TABLE]
being
[TABLE]
Proof: Recalling the definition of in (12), let us consider first of all In this regard, if we use the results proved in [11], (36)–(38) and we assume that is sufficiently large then we get
[TABLE]
Now, it is known that the ratio of two gamma functions satisfies
[TABLE]
Therefore, if we use it with then we obtain
[TABLE]
with
[TABLE]
This implies that to determine an estimate for , we have to study these terms
[TABLE]
We recall that if is sufficiently large then see (14). In addition, by using the formulas in [7], see also (15)-(19), it is possible to verify with some computations that
if then
[TABLE] 2. 2.
if then
[TABLE] 3. 3.
[TABLE]
The statement follows by collecting all these partial results.
It must be underlined that if see (48). This implies that one or both the terms at the right hand-side of (46) can be zero. For our purposes, this does not constitute a problem since in the convergence analysis that we are going to prove such terms are surely negligible with respect to the others.
We need the following notation to proceed: for each let
[TABLE]
i.e. let and be the multiplicities of and as zeros of respectively. We are now ready for proving the following theorem.
Theorem 3.3** (Convergence)**
Let assume the potential in (4) is unbounded at least at one endpoint and let consider the following subsets of
[TABLE]
If is sufficiently larger than the index of the eigenvalue then
[TABLE]
where, see (47)-(48) and (50),
[TABLE]
being by convention.
Proof: From the definition of (7) and (43) we get
[TABLE]
so that recalling (44)-(45) we must determine an estimate for
[TABLE]
To this end, we apply (46) with and or with and In this way, recalling also (21), we obtain
[TABLE]
where
[TABLE]
We now use the following integral estimates with suitable
[TABLE]
In particular, we apply the first one with or and the second estimate with or with This leads to, see (45),
[TABLE]
Therefore
[TABLE]
and the statement follows by observing that the principal term of such summation behaves like where is defined in (51).
As done in [7], we now discuss how we can use (56) to improve the accuracy of the numerical eigenvalues. The approach is that of considering the following normalization for the numerical and the exact eigenfunctions, see (52)-(53),
[TABLE]
By using the orthogonality of the Legendre polynomials, the estimates and follow and consequently the next formula for the computation of corrected numerical eigenvalues
[TABLE]
where is obtained from via the substitutions see (52)–(3). These are done by using or For example, if and then and Consequently
[TABLE]
Finally, we must say that in the actual implementation we do not consider the correction terms corresponding to values of and of in (50) that are greater than one since their contributions are surely irrelevant with respect to the others. The advantage is that for the computation of we do not need to evaluate derivatives of at the endpoints of order greater than one. In this way, altogether, the cost for the application of (57) is very low since it is essentially given by the evaluations of eventually of and of which is simple because the values of or of are known (see (12) and (13)).
4 Numerical tests
The method described was implemented in Matlab (ver.R2017a). In particular, we used routines included in the open-source Chebfun package [2] for the computation of the matrix and we solved the generalized eigenvalue problem (9) by using the eigs function, with option “SM” for getting the ones of smallest magnitude.
The first results that we present confirm the statement of Theorem 3.3. In particular, we considered the problems with one of the following potentials
[TABLE]
subject to one of the next four BCs
[TABLE]
In addition, we used the classical formula
[TABLE]
for the numerical estimate of the order of convergence (the lower index denotes the index of the eigenvalue). The results we got for the eigenvalues of index are listed in Table 2 for the first potential and in Table 3 for the second one. As one can see, such results are in perfect agreement with the statement of the theorem previously mentioned.
Concerning the problems with defined in (59) subject to the first or to the last BCs in (60), we applied the a posteriori correction, namely we computed also defined in (57). In addition, for these problems and for the subsequent ones, we evaluated the relative errors
[TABLE]
by using as reference “exact” eigenvalue the values of with As discussed in the introduction, this choice was motivated by the fact that the accuracy of the numerical approximations of provided by the MATSLISE2 [5], the SLEDGE [8] and the SLEIGN2 [1] codes may be not sufficient for our purposes. The resulting relative errors (61) have been reported in Figure 1. In more details, in the subplots at the top of such figure, the relative errors in the approximation of the fifteenth eigenvalue are plotted versus with ranging from to For the subplots at the bottom, instead, we fixed and we depict the errors for the index ranging from to The legend of each graphic and of the subsequent ones is dashed line and solid line for the errors in the uncorrected numerical eigenvalues and in the corrected ones, respectively. These results show that the a posteriori correction is very effective from many point of views. In fact:
- •
from the subplots on the bottom one deduces that for and the gain resulting from the correction is larger than two significant digits;
- •
the two subplots on the top show that is always more accurate than
- •
the error in the corrected numerical eigenvalues decreases much faster with respect to than the error in the uncorrected ones. Concerning this point, we used a least-square approach to evaluate numerically the order of convergence such that
[TABLE]
For these examples, we obtained for the problem subject to Neumann-Dirichlet BCs and for the one subject to the unsimmetric Robin-Robin BCs.
In the following final tests, we compare the performances of our correction technique with those of the classical Richardson extrapolation given by
[TABLE]
where is specified in the convergence theorem. In particular, we considered symmetric problems with potentials
[TABLE]
and problems with the following not symmetric ’s
[TABLE]
The results obtained for some BCs have been reported in Figures 2 and 3 (the errors corresponding to are depicted in dotted lines). As one can see, the Richardson extrapolation requires much larger than to improve the eigenvalue approximation, say not smaller than If this is not the case then it may deteriorates drastically the accuracy of Furthermore, the improvement that we get with our low-cost method is undeniably larger than that obtained with Richardson.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] P. B. Bailey, W. N. Everitt, A. Zettl. The SLEIGN 2 Sturm-Liouville Code, ACM Trans. Math. Software , 21 (2001), 143-192. Available at: http://www.math.niu.edu/SL 2/
- 2[2] T. A. Driscoll, N. Hale, L. N. Trefethen, editors, Chebfun Guide, Pafnuty Publications, Oxford, 2014. Version used: 5.7.0.
- 3[3] A. Erdélyi, W. Magnus, F. Oberhettinger, F. G. Tricomi, Tables of Integral Transforms, Vol. II . Based, in part, on notes left by Harry Bateman. Mc Graw-Hill Book Company, Inc., New York-Toronto-London, 1954.
- 4[4] P. Ghelardoni, C. Magherini, A matrix method for fractional Sturm-Liouville problems on bounded domain, Adv. Comput. Math. 43 (2017) 1377-1401.
- 5[5] V. Ledoux, M. Van Daele, Matslise 2.0: a Matlab toolbox of Sturm-Liouville computations, ACM Trans. Math. Software 42 (2016), no. 4, Art. 29, 18 pp. Available at https://sourceforge.net/projects/matslise/
- 6[6] V. Ledoux, Study of special algorithms for solving Sturm-Liouville and Schrödinger equations. Ph.D. Thesis, Universiteit Gent, 2007
- 7[7] C. Magherini, A corrected spectral method for Sturm-Liouville problems with unbounded potential at one endpoint, J. Comput. Appl. Math (accepted). Available at ar Xiv: 1812.02090.
- 8[8] S. Pruess, C. T. Fulton, Mathematical software for Sturm-Liouville problems, ACM Trans. on Math. Software , 19 (1993) 360-376. Release 2.2 (1993-12-04). Available at http://www.netlib.org/misc/sledge
