Introduction

Fourth-order non-self-adjoint Sturm–Liouville problems arise in many important scientific and engineering applications. For example, the problems arise in the stability of hydrodynamic and magnetohydrodynamics, lasers, electromagnetic scattering and inverse scattering problems in lossy media, and photonic crystal bres can be modelled mathematically by non-self-adjoint problems [1,2,3,4]. When studying this type of problems, the eigenvalues are having particular importance. In fact, the eigenvalues and corresponding eigenfunctions often give a perfect description of the problem and indicate many exceptional behaviors. To illustrate, in scattering theory, eigenvalues can be used to obtain useful information on the physical properties of the scattering targets [5,6,7]. In mechanical vibrations theory, eigenvalues can be interpreted physically as the transition point between an oscillatory and a monotonically decaying behavior (see Refs. [8,9,10] and references therein). In the wavelet theory, interesting non-classical wavelets can be obtained from eigenfunctions associated with the eigenvalues and related functions for non-self-adjoint spectral problems [11,12,13]. Unlike the self-adjoint Sturm-Liouville problems which there are many numerical techniques and several successful software packages available in the literatures for computing their eigenvalues (see, e.g., [14,15,16,17,18,19,20,21,22] and references therein), there exist much fewer numerical techniques for the non-self-adjoint problems. Fundamentally, the lack of oscillation theorems of non-self-adjoint problems and the distribution and scatteration of the eigenvalues in the complex plane, makes the computational process of the eigenvalues a strong and difficult challenge [1, 2, 23, 24]. Some methods have been proposed and analyzed both theoretically and computationally for second-order non-self-adjoint Sturm-Liouville problems (see, e.g. [24,25,26,27,28] and references cited therein). There are a few numerical methods on the computation of eigenvalues of the high-order non-self-adjoint Sturm-Liouville problems (for instance, see [30,31,32]). Due to the increasing importance of non-self-adjoint eigenvalue problems, and their important applications in physical and engineering sciences, there is a requirement to extend and modified some numerical techniques, so as to be capable to compute eigenvalues of such problems. In particular, those techniques that allows us to compute eigenvalues of the high-order non-self-adjoint Sturm-Liouville problems, efficiently. The main objective of this paper is to provide a numerical technique that can be used to deal directly with fourth-order non-self-adjoint Sturm-Liouville problems, as well as that it has the capability to calculate the eigenvalues of singular problem and/or find the high-index eigenvalues with lower cost. Recently in [19, 20], we have proposed a new efficient technique based on Chebyshev differentiation matrix for computing eigenvalues of self-adjoint Sturm-Liouville problems. It has been shown that those numerical technique has the ability to solve regular and singular self-adjoint Sturm-Liouville problems, efficiently. Moreover, the technique finds the high index eigenvalues with high accuracy and less computational costs. On the best of our knowledge there is no Chebyshev differentiation matrices solution to a general class of regular and singular fourth-order non-self-adjoint boundary eigenvalue problems. In this study, the principal objective is to extend the scope of implementations of Chebyshev differentiation matrix technique for the numerical solution of fourth-order non-self-adjoint Sturm-Liouville problem of the form:

$$\begin{aligned} (p_1(x)y''(x))''=(s(x)y'(x))' +(\lambda w(x)-q(x))y(x),\,\,\,x\in (a,b), \end{aligned}$$
(1)

in \(L^2_{w}(a,b)\) subject to some four point specified conditions at the boundary \(x\in \{a,b\}\) on \(y,y'\), \(p_{1}(x)y''\) and/or \((p_{1}(x)y'')'-s(x)y'\). The cofficients in Eq. (1) are complex-valued, satisfying \(p_{1}(x), s(x), q(x)\) and w(x) are continuous on [ab] and \(p_{1}(x), w(x)\ne 0, \forall x\in [a,b]\) [31]. In this work, both the clamped (CBCs) and the hinged (HBCs) boundary conditions are considered with Eq. (1):

$$\begin{aligned} \texttt {CBCs:}\left\{ \begin{array}{l} y(a)=0, \,\,\,y'(a)=0,\\ y(b)=0, \,\,\,y'(b)=0, \end{array}\right. \end{aligned}$$
(2)

or

$$\begin{aligned} \texttt {HBCs:}\left\{ \begin{array}{l} y(a)=0, \,\,\,y''(a)=0,\\ y(b)=0, \,\,\,y''(b)=0. \end{array}\right. \end{aligned}$$
(3)

Furthermore, combinations of boundary conditions (2) and (3) are possible. In (1) the parameter \(\lambda \) is a spectral parameter, \(L^2_w (a,b)\) is the weighted Hilbert space of all Lebesgue measurable complex-valued functions f on (ab) satisfying \(\int _a^b |f(x)|^2w(x)dx<\infty \) with the inner product

$$\begin{aligned} (f,g)=\int _a^b f(x)\overline{g(x)}w(x)dx, \end{aligned}$$
(4)

and norm

$$\begin{aligned} \Vert f\Vert _{L_{w}^{2}(a,b)}=\left( \int _{a}^{b} |f(x)|^2 w(x)dx\right) ^{1/2}. \end{aligned}$$
(5)

When the problem (1)–(2) and/or (3) is singular, either because (ab) is an infinite interval or because one or more of the coefficients functions (mean one of \(p_{1}(x), s(x), q(x)\) and w(x) in (1)) is badly behaved near an endpoint, we must use an interval truncation procedure [33], then apply our numerical technique to compute the eigenvalues of the resulting problem. In this technique the derivative of Chebyshev polynomials at grid points can be determined by using the spectral differentiation matrices and then converts the non-self-adjoint problem (1) into a generalized eigenvalue problem. The efficiency and precision of our technique is reflected in its ability to deal with regular and singular problems, adaptability to handle general types of boundary conditions and accuracy of the estimates of eigenvalues with less computational costs even when the high index eigenvalues are computed. We will apply the technique to three different numerical examples among which singular ones, firstly, to demonstrate the accuracy and efficiency of the technique, the eigenvalues of a singular fourth-order non-self-adjoint problem which has exact solution are computed. The famous problem in the hydrodynamic stability, which is known by the Orr-Sommerfeld equation (frequently used as test example in the engineering literature), will be our second test problem. The final test problem is the square of the anharmonic oscillator problem. The remaining structure of this paper is organized as follows: The Chebyshev polynomials are briefly described in Sect. 2.1. In Sect. 2.2 the Chebyshev spectral collocation technique is introduced and explained by applying it to solve fourth-order non self-adjoint Sturm-Liouville problems. Convergence and stability of technique is summarized in Sect. 2.3. To examine the accuracy and efficiency of the technique, three numerical experiments are discussed in Sect. 3. Section 4 includes our conclusions

Chebyshev Spectral Collocation Technique

In this section, we investigate the application of the Chebyshev spectral collocation method for the calculation of the eigenvalues of the fourth-order non-self-adjoint Sturm-Liouville problems (1)–(2) or (1)–(3). We recall that, by using the following change of independent variable:

$$\begin{aligned} x=\frac{b-a}{2}(X+1),\,\,\, x\in [a,b]\longrightarrow X =\frac{2x}{b-a}-1,\,\,\,X\in [-1,1], \end{aligned}$$
(6)

the interval [ab] can be transformed into \([-1, 1]\). If (ab) is an infinite interval, then an interval truncation procedure must be adopted. Fourth-order non-self-adjoint problem (1) can be numerically solved using the spectral collocation method. In that case, the spectral representation of eigenfunction y(x) of this problem can be expanded as:

$$\begin{aligned} y(x)=\sum _{j=0}^n \overline{\hat{y}_j(x)}T_j(x), \end{aligned}$$
(7)

where \(\{T_j(x)\}\) is a sequence of orthogonal polynomials of of degree \(\le n\) and \(\hat{y}_j\) is the set of coefficients to be determined. Here, Chebyshev polynomials of the first kind are used to expand the solution of problem (1). Before getting into this topic of using Chebyshev polynomials in the spectral representation of solution, let’s briefly summarize some of important properties of these type of orthogonal polynomials.

The Chebyshev Polynomials of the First Kind

Definition 1

The Chebyshev polynomials of the first kind, \(T_n(x)\) of order n, are the eigenfunctions of the singular self-adjoint Sturm-Liouville problems

$$\begin{aligned} \sqrt{(1-x^2)}\left( \sqrt{(1-x^2)}T'_n(x)\right) '+n^2T_n(x)=0, \end{aligned}$$
(8)

where \(x\in (-1,1)\). If \(T_n(x)\) is normalized so that \(T_n(1)=1\), then

$$\begin{aligned} T_n(x)=cos(n\theta ),\,\,\, \theta =cos^{-1}x. \end{aligned}$$
(9)

From this representation, it is clear that the Chebyshev polynomials are cosine functions after a change of variable. This is the main reason of their widespread popularity in the numerical estimation of non-periodic boundary value problems [34,35,36]. The recursive relation of Chebyshev polynomials is the following:

$$\begin{aligned}&T_{0}(x)=1,\nonumber \\&T_{1}(x)=x,\nonumber \\&T_{n+1}(x)=2xT_{n}(x)-T_{n-1}(x). \end{aligned}$$
(10)

Some properties of the Chebyshev polynomials are

$$\begin{aligned}&|T_n(x)|\le 1,\,\,\, x\in [-1,1], \end{aligned}$$
(11)
$$\begin{aligned}&|T'_n(x)|\le n^2,\,\,\, x\in [-1,1], \end{aligned}$$
(12)
$$\begin{aligned}&T_n(\pm 1)=(\pm 1)^n, \end{aligned}$$
(13)
$$\begin{aligned}&T'_n(\pm 1)=(\pm 1)^{n+1}n^2. \end{aligned}$$
(14)

More properties of this sequence of polynomials can be found in Refs. [34,35,36,37,38,39] and references therein.

The Chebyshev Differentiation Matrices Technique

In this subsection, we are interested in applying the spectral differentiation matrices technique to solve the fourth-order non-self-adjoint Sturm-Liouville problems. At first, let us rewrite Eq. (1) in the following form

$$\begin{aligned} y^{(4)}+2L_{1}(x)y'''+L_{2}(x)y''-S(x) y' +Q(x)y=\lambda W(x)y,-1< x < 1, \end{aligned}$$
(15)

where \(L_{1}(x)=\frac{p'_{1}(x)}{p_{1}(x)}\), \(L_{2}(x)=\frac{p''_{1}(x)-s(x)}{p_{1}(x)}\), \(S(x)=\frac{s'(x)}{p_{1}(x)}\), \(Q(x)=\frac{q(x)}{p_{1}(x)}\) and \(W(x)=\frac{w(x)}{p_{1}(x)}\) are defined on the interval of \(-1 \le x \le 1\). Now let us consider the basis functions \(T_{j}\) that are Chebyshev polynomials of degree \(\le N\) satisfying \(T_{j}(x_{k})=\delta _{j,k}\) for the Chebyshev-Gauss-Lobatto nodes \(x_k\) [19, 20, 34,35,36]:

$$\begin{aligned} x_{k}=cos\left( \frac{k\pi }{N}\right) ,\,\,\, 0 \le k \le N, \end{aligned}$$
(16)

which are the extrema of the Chebyshev polynomial \(T_{j}\) on the interval \([-1,1] \). Therefore, the spectral differentiation matrix for the collocation points can be obtained by interpolating a polynomial P(x) through the collocation points, namely the polynomial

$$\begin{aligned} P(\mathbf{x})=\sum _{j=0}^{N}T_{j}(x)\overline{y_{j}(x)}, \end{aligned}$$
(17)

which agrees with \(y(\mathbf{x})\) at the \(N+1\) interior collocation points \(x_k, \,\,\, 0 \le k \le N\) given in (16), i.e.

$$\begin{aligned} P(\mathbf{x})=\mathbf{y}, \end{aligned}$$
(18)

where \(\mathbf{x} =(x_0,x_1,\cdots ,x_N)^T\) and \(\mathbf{y} =(y_0,y_1,\cdots ,y_N)^T\). Then the d-th derivative of the interpolating polynomial \(P(\mathbf{x})\) at the nodes is given by [19, 20]

$$\begin{aligned} P^{(d)}(\mathbf{x} )={D}^{(d)}{} \mathbf{y} , \end{aligned}$$
(19)

where the ij-th element of the differentiation matrices \({D}^{(d)}\) is \(T_{j}^{(d)}(x_{i})\), \(0 \le i,j \le N\). For each \(N\ge 1,\) let the rows and columns of the \((N+1)\times (N+1)\) Chebyshev differentiation matrix \({D}_{N}^{(1)}\) be indexed from 0 to N. Then the entries of the matrix are [19, 20, 40]

$$\begin{aligned}&({D}^{(1)}_{N})_{00}=\frac{2N^{2}+1}{6}, \,\,\,({D}^{(1)}_{N})_{NN}=-\frac{2N^{2}+1}{6},\nonumber \\&({D}^{(1)}_{N})_{jj}=\frac{-x_{j}}{2(1-x_{j}^{2})}, \,\,\,j=1,\cdots ,N-1,\nonumber \\&({D}^{(1)}_{N})_{ij}=\frac{c_{i}}{c_{j}} \frac{(-1)^{i+j}}{(x_{i}-x{j})},\,\,\,i\ne j,\,\,\,j=1,\cdots ,N-1, \end{aligned}$$
(20)

where

$$\begin{aligned} c_{i} =\left\{ \begin{array}{l} 2,\, \, \, i=0\, \, or\, \, N \\ 0,\, \, \, otherwise. \end{array}\right. \end{aligned}$$

Evaluating Eq. (15) at each interior node \(x_{k}\), \(k=0,1,\cdots ,N,\) leads to

$$\begin{aligned}&y^{(4)}(x_{k})+2L_{1}(x_{k})y'''(x_{k})+L_{2}(x_{k})y'' (x_{k})-S(x_{k})y'(x_{k}) \nonumber \\&\quad + Q(x_{k})y(x_{k})=\lambda W(x_{k})y(x_{k}). \end{aligned}$$
(21)

As mentioned in Eq. (18), the interpolating polynomial P(x) is known to be satisfy Eq. (15) at all \(N+1\) collocation points. Consequently, we will get the following collocation equations

$$\begin{aligned}&P^{(4)}(x_{k})+2{L_{1}}(x_{k})P'''(x_{k})+{L_{2}}(x_{k}) P''(x_{k})-{S}(x_{k}) P'(x_{k})\nonumber \\&\quad +{Q}(x_{k})P(x_{k})=\lambda {W}(x_{k})P(x_{k}). \end{aligned}$$
(22)

Here, we recall that the

$$\begin{aligned} P^{'''}(x)=\sum _{j=1}^{N-1}T_{j}^{'''}(x_{k})\overline{y_{j}}, \end{aligned}$$
(23)

and

$$\begin{aligned} P^{(4)}(x)=\sum _{j=1}^{N-2}T_{j}^{(4)}(x_{k})\overline{y_{j}}. \end{aligned}$$
(24)

In addition, for the clamped boundary conditions (2), we have

$$\begin{aligned} \left\{ \begin{array}{l} P(-1)=P'(-1)=0,\\ P(1)=P'(1)=0, \end{array}\right. \end{aligned}$$
(25)

and for the hinged boundary conditions (3), we get

$$\begin{aligned} \left\{ \begin{array}{l} P(-1)=P''(-1)=0,\\ P(1)=P''(1)=0, \end{array}\right. \end{aligned}$$
(26)

where \(P''(-1)=\sum _{j=1}^{N}T_{j}^{''}(-1)y_{j}\) and \(P''(1)=\sum _{j=1}^{N}T_{j}^{''}(1)y_{j}\). Rewriting Eq. (22) in the differentiation matrix form, we get

$$\begin{aligned} \left( D^{(4)}+2\hat{L_{1}}D^{(3)}+\hat{L_{2}}D^{(2)}-\hat{S}D^{(1)} +(\hat{Q}-\lambda \hat{W})\right) \mathbf{y} =\mathbf{0} , \end{aligned}$$
(27)

where \(\hat{L_{1}}=diag (L_{1})\), \(\hat{L_{2}}=diag (L_{2})\), \(\hat{S}=diag (S)\), \(\hat{Q}=diag (Q)\) and \(\hat{W}=diag (W)\). The boundary conditions in (25) and (26) are modelled in the following forms respectively

$$\begin{aligned} \left\{ \begin{array}{l} I_{l}{} \mathbf{y} =D^{(1)}_{l}{} \mathbf{y} =\mathbf{0} ,\\ I_{r}{} \mathbf{y} =D^{(1)}_{r}{} \mathbf{y} =\mathbf{0} , \end{array}\right. \end{aligned}$$
(28)

and

$$\begin{aligned} \left\{ \begin{array}{l} I_{l}{} \mathbf{y} =D^{(2)}_{l}{} \mathbf{y} =\mathbf{0} ,\\ I_{r}{} \mathbf{y} =D^{(2)}_{r}{} \mathbf{y} =\mathbf{0} , \end{array}\right. \end{aligned}$$
(29)

where indices l and r are represented boundary conditions at endpoints \(-1\) and 1, respectively. Inserting four boundary conditions (28) or (29) into (27), yields the following generalized eigenvalue problems

$$\begin{aligned} \left( \begin{array}{c} D^{(4)}+2\hat{L_{1}}D^{(3)}+\hat{L_{2}}D^{(2)}-{\hat{S}D^{(1)}+\hat{Q}} \\ {I_{l}}\\ {D_{l}^{(1)} }\\ {I_{r}}\\ {D_{r}^{(1)}}\\ \end{array}\right) \mathbf{y} =\lambda \left( \begin{array}{c} \hat{W} I\\ \mathbf{0} ^T \\ \mathbf{0} ^T \\ \mathbf{0} ^T \\ \mathbf{0} ^T \\ \end{array}\right) \mathbf{y} , \end{aligned}$$
(30)

or

$$\begin{aligned} \left( \begin{array}{c} {D^{(4)}+2\hat{L_{1}}D^{(3)}+\hat{L_{2}}D^{(2)}-\hat{S}D^{(1)}+\hat{Q}} \\ {I_{l}}\\ { D_{l}^{(2)} }\\ {I_{r}}\\ {D_{r}^{(2)}}\\ \end{array}\right) \mathbf{y} =\lambda \left( \begin{array}{c} \hat{W} I\\ \mathbf{0} ^T \\ \mathbf{0} ^T \\ \mathbf{0} ^T \\ \mathbf{0} ^T \\ \end{array}\right) \mathbf{y} , \end{aligned}$$
(31)

respectively. Now, the approximate eigenvalues of non self-adjoint problem (1)–(2) or (1)–(3) can be obtained by solving the generalized eigenvalue problem (30) or (31).

Convergence Behavior and Error Estimate

In this subsection, we briefly summarize the convergence and stability of the proposed technique for estimating the eigenvalues of fourth-order non-self-adjoint Sturm-Liouville problems that outlined in the previous subsection. First, let us denote by \({\mathbb {P}}_N\) be the set of Chebyshev polynomials \(\{T_n(x)\}\) of degree \(\le N\). Note that, these polynomials are orthogonal over the interval \([-1, 1]\) with respect to a weight function \(w(x)=\frac{1}{\sqrt{1-x^2}}\), namely, for naturals n and m

$$\begin{aligned} \int _{-1}^{1} T_n(x){T_m(x)} w(x) dx=0,\,\,\, if\,\, n\ne m. \end{aligned}$$
(32)

The classical Weierstrass theorem and the results reported in Ref. [11, 41,42,43,44,45] about systems, whose constituent functions are complex valued implies that such a system is complete in the space \(L_w^2(-1, 1)\). This space is the space of functions f(x) over the interval \((-1, 1)\) such that satisfying

$$\begin{aligned} \int _{-1}^{1} |f(x)|^2w(x)dx<\infty . \end{aligned}$$
(33)

We see that the space \(L_{w}^2(-1,1)\) with the inner product

$$\begin{aligned} (f,g)=\int _{-1}^{1} f(x)\overline{g(x)}w(x)dx, \end{aligned}$$
(34)

and norm

$$\begin{aligned} \Vert f\Vert _{L_{w}^{2}(-1,1)}=\left( \int _{-1}^{1} |f(x)|^2 w(x)dx\right) ^{1/2}, \end{aligned}$$
(35)

is a Hilbert space. Now if the \(y(x)\in L_{w}^2(-1,1)\) is a solution of fourth-order non self-adjoint problem (1), then the Chebyshev series expansion of y(x) is

$$\begin{aligned} y(x)=\sum _{j=0}^\infty \overline{\hat{y}_j(x)} T_j(x), \,\,\,\texttt {where} \,\,\, \hat{y}_j =\frac{(y,T_j)}{\Vert T_j\Vert ^2_{L_{w}^2(-1,1)}}. \end{aligned}$$
(36)

Therefore, if the solution y(x) in (36) is truncated up to the Nth terms, then the approximate solution can be written as

$$\begin{aligned} P_N y(x)=\sum _{j=0}^N \overline{\hat{y}_j(x)}T_j(x). \end{aligned}$$
(37)

Take into account the orthogonality property (32) of Chebyshev polynomials \(\{T_n(x)\}\) implies that the \(P_N y\) is the orthogonal projection of y on \({\mathbb {P}}\), that is,

$$\begin{aligned} (P_{N} y, T )=(y,T ), \,\,\, \forall \,T \in {\mathbb {P}}_N. \end{aligned}$$
(38)

Moreover, from completeness property of the polynomials \(\{T_n(x)\}\) it follows that

$$\begin{aligned} \parallel y- P_N {y}\parallel _{L_{w}^2(-1,1)} \rightarrow 0, as \,\,\, N\rightarrow \infty , \end{aligned}$$
(39)

for all \(y \in L_{w}^2(-1,1)\). In fact, the convergence and stability of this technique can be determined based on the convergence behavior of the truncated Chebyshev series (37). Therefore, to survey the approximation properties of the Chebyshev projection (37) in a weighted Sobolev space:

$$\begin{aligned} {H^m_w(-1,1):=\{y\in L ^2_w(-1,1): \, y^{(k)} \in L ^2_w(-1,1), \,\,0\le k\le m \}}, \end{aligned}$$
(40)

equipped with the following norm

$$\begin{aligned} \Vert y\Vert _{H_{w}^{m}(-1,1)}= & {} \left( \sum _{k=0}^{m} \Vert y^{(k)}\Vert ^2_{L ^2_w(-1,1)} \right) ^{1/2}\nonumber \\= & {} \left( \sum _{k=0}^{m}\int _{-1}^{1}|y^{(k)}(x)|^2 w(x)dx\right) ^{1/2}, \end{aligned}$$
(41)

we can give the following definition which is a fundamental condition to the convergence of the approximate solution of the system (1) generated by using the Chebyshev spectral collocation technique.

Definition 2

Suppose that \(P_N y\) is the truncated Chebyshev series given in (37) as an approximate to the exact solution y(x) of the system (1) for all \(x\in (a,b)\) or \(X\in (-1,1)\) generated by using current technique, then this numerical technique converges if

$$\begin{aligned} \lim _{N\rightarrow \infty }\parallel y- P_N {y}\parallel _{L_{w}^2(-1,1)}=0. \end{aligned}$$

Following [36, 46,47,48]), the truncation error obtained by the use of the truncated Chebyshev series \(P_N y\) (37) to approximate y(x) in Hilbert space norms (35) is given by:

Theorem 1

Let \( P_N {y}\) is the truncated Chebyshev series of y, then the truncation error \(\parallel y- P_N {y}\parallel \) for all \(y \in L^2_{w}(-1,1),\,\, m\ge 0\) can be estimated as follows

$$\begin{aligned} \parallel y- P_N {y}\parallel _{L_{w}^2(-1,1)} \le C N^{-m} \parallel y^{(m)}\parallel _{L_{w}^2(-1,1)}, \end{aligned}$$
(42)

where the constant C independent of N and depends on m.

Moreover, we can estimate the truncation error \( y- P_N {y}\) in Sobolev norms (41) as follows:

Theorem 2

Let \( P_N {y}\) is the truncated Chebyshev series of y in the weighted Sobolev space \(H^m_w(-1,1)\), then

$$\begin{aligned} \parallel y- P_N {y}\parallel _{H^{m}_{w}(-1,1)} \le C N^{k-m} \parallel y^{(m)}\parallel _{L_{w}^2(-1,1)}, \end{aligned}$$
(43)

for any \(m\ge 0\) and any \(0\le k\le m\).

Thus, the proposed technique gives spectral accuracy; that is, the accuracy depends upon the smoothness of the functions being interpolated. If the eigenfunction y(x) belongs to \(C^{\infty }-\)class, then the produced error of approximation \(\parallel y- P_N {y}\parallel \rightarrow 0\), as \(N\rightarrow \infty \) with exponential convergence rate \(O(e^{-CN})\), for some \( C >0\). On the other hand, it is well known that the proposed technique in the current work can be considered as the hp-version of the finite element method (see [19, 49,50,51,52,53]). So, by adopting this process, we would expect an estimate of the error of the n-th eigenvalue due to truncation of the Chebyshev series up to the Nth terms of the form \(O(n^pe^{-CN})\).

Numerical Results and Discussion

In this section, to demonstrate the accuracy, efficiency and reliability of the numerical technique that outlined in the previous section, three of the more interesting and difficult examples in the hydrodynamic and engineering literature, including singular ones such as the Orr-Sommerfeld equations and square of the anharmonic oscillator problem are presented and discussed. All of the computational experiments were implemented using MATLAB R2014a, running in an Intel (R) Core (TM) i3-8145U CPU @ 2.10 GHz, equipped with 4 GB of Ram.

Example 1

Consider the singular fourth-order non-self-adjoint Sturm-Liouville problem (Taken from [31])

$$\begin{aligned} \left\{ \begin{array}{l} \left( -\frac{d^2}{dx^2}+x^2\right) \left( -\frac{d^2}{dx^2}+x^2+i\right) y(x) =\lambda y(x),\,\,\, x\in [0, \infty ),\\ \ y(0)=y''(0)=0. \end{array}\right. \end{aligned}$$
(44)

We will consider the truncated problem over the interval \([0, b^*]\) for various \(b^*\) and compute the eigenvalues of

$$\begin{aligned} \left\{ \begin{array}{l} \left( -\frac{d^2}{dx^2}+x^2\right) \left( -\frac{d^2}{dx^2} +x^2+i\right) y(x)=\lambda y(x),\,\,\, x\in [0, b^*],\\ \ y(0)=y''(0)=0,\,\,\,y(b^*)=y''(b^*)=0. \end{array}\right. \end{aligned}$$
(45)

Now, let us rewrite (45) in the following form

$$\begin{aligned} \left\{ \begin{array}{l} y^{(4)}(x)-\left( 2x^2+i\right) y''(x)-4xy'(x)+\left( x^4-2+ix^2\right) y(x)\\ \qquad =\lambda y(x), \,\,\,x\in [0, b^*],\\ \ y(0)=y''(0)=0,\,\,\,y(b^*)=y''(b^*)=0. \end{array}\right. \end{aligned}$$
(46)

Then, by the change of variables \(x=\frac{b^*}{2}(X+1),\,\,\, X \in [-1, 1]\), this problem becomes

$$\begin{aligned} \left\{ \begin{array}{l} \frac{16}{b{^*}^4}Y^{(4)}(X)-\frac{4}{b{^*}^2} L_2(X)Y''(X)-\frac{2}{b^*}S(x)Y'(X)+Q(X)Y(X)\\ \qquad =\lambda Y(X),\,\,\, X\in [-1, 1],\\ \ Y(-1)=\frac{b{^*}^2}{4}Y''(-1)=0,\,\,\,Y(1)=\frac{b{^*}^2}{4}Y''(1)=0, \end{array}\right. \end{aligned}$$
(47)

where \(L_2(X)=(b^*(X+1)+i), S(X)=2b^*(X+1)\) and \(Q(X)=(\frac{b^*}{2}(X+1))^4-2+i(\frac{b^*}{2}(X+1))\). In this case the collocation equation is

$$\begin{aligned} \frac{16}{b{^*}^4}P^{(4)}(x_k)-\frac{4}{b{^*}^2}\hat{L_2}(x_k)P''(x_k) -\frac{2}{b^*}\hat{S}(x_k)P'(x_k) +\hat{Q}(x_k)P(x_k)=\lambda P(x_k). \end{aligned}$$
(48)

The differentiation matrix relation can be written as

$$\begin{aligned} \left( \frac{16}{b{^*}^4}D^{(4)}-\frac{4}{b{^*}^2}\hat{L_2}D^{(2)} -\frac{2}{b^*}\hat{S}D^{(1)}+(\hat{Q}I-\lambda I)\right) \mathbf{y} =\mathbf{0} , \end{aligned}$$
(49)

wher \(\hat{L_2}(x_k)=diag(L_2(x_k)), \hat{S}(x_k)=diag(S(x_k))\) and \(\hat{Q}(x_k)=diag(Q(x_k))\). The boundary conditions are modeled in the following form

$$\begin{aligned} I_{l}{} \mathbf{y} =\frac{4}{b{^*}^2}D^{(2)}_{l}{} \mathbf{y} =\mathbf{0} ,\,\,\, I_{r}{} \mathbf{y} =\frac{4}{b{^*}^2}D^{(2)}_{r}{} \mathbf{y} =\mathbf{0} . \end{aligned}$$
(50)

Combining Eqs. (49) and (50), we get the following generalized eigenvalue problem

$$\begin{aligned} \left( \begin{array}{c} {\frac{16}{b{^*}^4}D^{(4)}-\frac{4}{b{^*}^2}\hat{L_2}D^{(2)} -\frac{2}{b^*}\hat{S}D^{(1)}+\hat{Q}I}\\ {I_{l}}\\ { \frac{4}{b{^*}^2}D^{(2)}_{l} }\\ {I_{r}}\\ {\frac{4}{b{^*}^2}D^{(2)}_{r}}\\ \end{array}\right) \mathbf{y} =\lambda \left( \begin{array}{c} I\\ \mathbf{0} ^T \\ \mathbf{0} ^T \\ \mathbf{0} ^T \\ \mathbf{0} ^T \\ \end{array}\right) \mathbf{y} . \end{aligned}$$
(51)
Table 1 The first twenty eigenvalues of the singular fourth-order non-self-adjoint problem (44)

Solving generalized eigenvalue problem (51), gives the eigenvalues of the problem (44). Table 1 lists the first twenty computed eigenvalues of the problem (44) together with the related absolute error and those results reported in Ref. [31]. The exact eigenvalues of problem (44) are given by

$$\begin{aligned} \lambda _n=(4n+3)(4n+3+i),\,\,\,n=0,1,2,\cdots . \end{aligned}$$
(52)

From Table 1, one can see that there are variations in of the number of exact calculated eigenvalues based on the number of grid points N and the truncated interval \([0, b^*]\) used in each time. It is observed that, we can calculate the exact values of the first ten and eighteen eigenvalues by using \(N = 60, 70\) respectively, over the truncated interval [0, 10], whereas, calculating the exact values of the first twenty eigenvalues requires the use of \(N=115\) and a truncated interval [0, 20] (see column fourth, Table 1). Here, it must be noted that by following this procedure, the approximate value of \(\lambda _{11}\) in the second column (i.e. when \(N = 60\) over [0, 10]) is \(2208.99331791665 +47.000003747952i\), while the approximate value of \(\lambda _{18}\) with \(N = 70\) over [0, 10] and \(\lambda _{20}\) with \(N = 115\) over [0, 20] in the third and fourth columns are \(5625.01804856698 +75.0000917969447i\) and \(6888.96815509742 +83.0000085573244i\) respectively. So, the accuracy can be improved by increasing the number of Chebyshev collocation nodes N and/or choosing the appropriate truncated interval \([0, b^*]\). In Table 2, we introduce the results of numerical experiments for high index eigenvalues on this problem and the related absolute error. As documented in Table 2, in order to get the exact values of the high-index eigenvalues, we must increase N and choosing the appropriate truncated interval \([0, b^*]\). Numerical results in Tables 1 and 2 show the high performance of the current technique. Figure 1 displays the eigenvalues computed by truncating \([0, \infty )\) to [0, 20] and using \(N=150\).

Table 2 Computation of some high eigenvalues of the problem in Example 1 over \([0, b^*]\)
Fig. 1
figure 1

The eigenvalues of the problem in Example 1 over truncated interval [0, 20] with \(N=150\)

Example 2

(Orr-Sommerfeld problem) The Orr-Sommerfeld problem, in hydrodynamic stability, is an eigenvalue problem describing the linear modes of perturbation to a viscous parallel flow. This problem may be written as:

$$\begin{aligned} \left\{ \begin{array}{l} \big (-\frac{d^2}{dx^2}+\alpha ^2\big )^2y(x)+i\alpha Re\,U(x) \big \{\big (-\frac{d^2}{dx^2}+\alpha ^2\big )y(x) +U''(x)y(x)\big \}\\ \quad =\alpha Re\,\lambda \big (-\frac{d^2}{dx^2}+\alpha ^2\big ) y(x),\,\,\,x\in [-1, 1],\\ \ y(-1)=y'(-1)=0,\,\,\,y(1)=y'(1)=0, \end{array}\right. \end{aligned}$$
(53)

where \(\alpha \in {\mathbb {R}}\) is a wave number, Re is the Reynolds number, U(x) is a real-valued function representing the undisturbed stream velocity, and the wave speed \(\lambda \) is the spectral parameter [30, 40, 54,55,56].

Here, we consider that \(U(x)=1-x^2\) and \(\alpha =1\) which gives

$$\begin{aligned} \left\{ \begin{array}{l} \big (y^{(4)}(x)-2y''(x)+y(x)\big )+iRe\,\big (1-x^2\big ) \big (-y''(x)+y(x)\big ) \\ \quad - iRe\, y(x)=Re\, \lambda \big (-y''(x)+y(x)\big ),\\ \ y(-1)=y'(-1)=0,\,\,\,y(1)=y'(1)=0. \end{array}\right. \end{aligned}$$
(54)

Rewriting (54) into  (15) form, leads to

$$\begin{aligned} \left\{ \begin{array}{l} y^{(4)}(x)-L_2(x)y''+Q(x)y(x)=Re\, \lambda (-y''(x)+y(x)),\\ \ y(-1)=y'(-1)=0,\,\,\,y(1)=y'(1)=0, \end{array}\right. \end{aligned}$$
(55)

where \(Q(x)=\left( 1+i Re(1-x^2)-2 iRe\, \right) \) and \(L_2(x)=\left( 2+ i Re\,(1-x^2)\right) \). Now we transform the eigenvalue problem (55) to a generalized eigenvalue problem. To this end, we use the same procedure as we did in Example 1, except the boundary conditions which are modeled by the equations

$$\begin{aligned} I_{l}{} \mathbf{y} =D^{(1)}_{l}{} \mathbf{y} =\mathbf{0} ,\,\,\, I_{r}{} \mathbf{y} =D^{(1)}_{r}{} \mathbf{y} =\mathbf{0} . \end{aligned}$$
(56)

Then problem (55) is equivalent to the following generalized eigenvalue problem

$$\begin{aligned} \left( \begin{array}{c} {D}^{(4)}- \hat{L_2} {D}^{(2)}+\hat{Q}I\\ {I_{r}}\\ {D^{(1)}_{r}}\\ {I_{l}}\\ {D^{(1)}_{l}}\\ \end{array}\right) \mathbf{y} =Re\,\,\, \lambda \left( \begin{array}{c} -D^{(2)}+I\\ \mathbf{0} ^T \\ \mathbf{0} ^T \\ \mathbf{0} ^T \\ \mathbf{0} ^T \\ \end{array}\right) \mathbf{y} , \end{aligned}$$
(57)
Fig. 2
figure 2

The eigenvalues of the Orr-Sommerfeld problem with Reynolds number \(Re=5772\), wave number \(\alpha =1\) and \(N=151\)

where \(\hat{L_2}(x_k)=diag\left( {L_2}(x_k) \right) \) and \(\hat{Q}(x_k)=diag\left( Q(x_k) \right) \). Table 3 shows the first twenty-five computed eigenvalues of the problem (53). For comparison, the author solved this problem using the method described by Trefethen in [40] and those described by Weideman and Reddy in [55]. As it is shown in the Table 3, there is an excellent agreement between the results of the current work and the results of Refs. [40, 55], but from the last row we can see that the CPU time for the proposed method in this work has less cost than those resulting from the use of the program 40 [40] and the MATLAB program was given in Table XVII [55]. The graph of the calculated eigenvalues of the problem (53) are shown in Fig. 2.

Example 3

(Square of the anharmonic oscillator) Our final test problem is the square of the anharmonic oscillator [32], namely the following singular fourth-order non-self-adjoint problem:

$$\begin{aligned} l^2y(x)=\lambda y(x),\,\,\, x\in [0,\infty ), \end{aligned}$$
(58)

in which

$$\begin{aligned} ly(x)=-\frac{d^2y}{dx^2}+(1+3i)x^2y, \end{aligned}$$
(59)

with the boundary conditions

$$\begin{aligned} y(0)=y'(0)=0. \end{aligned}$$
(60)

Here we shall use interval truncation and compute the eigenvalues of the following problem over the truncated interval \([0, b^*]\)

$$\begin{aligned} \left\{ \begin{array}{l} y^{(4)}(x)-\big (L_1(x)+L_2(x)-L_3(x)\big )y''(x)-\big (S_1(x) +S_2(x)\big )y'(x)+\\ \quad \big (Q_1(x)-2-6i\big )y(x)=\lambda y(x),\,\,x\in [0,b^*],\\ \ y(0)=y'(0)=0,\,\,\,y(b^*)=y'(b^*)=0, \end{array}\right. \end{aligned}$$
(61)

where \(L_1(x)=x^2, L_2(x)=3ix^2, L_3(x)=(1+3i)x^2\), \(S_1(x)=4x, S_2(x)=12ix\) and \(Q(x)=(1+3i)x^2\). As in [32] we shall take \(b^*=30\).

Table 3 The eigenvalues of the Orr-Sommerfeld eigenvalue problem with \(Re=5772\) by using \(N=151\)

The square of the anharmonic oscillator problem (58), under the change of variable \(x=\frac{30}{2}(X+1)\), becomes

$$\begin{aligned} \left\{ \begin{array}{l} \frac{16}{30^{4}} Y^{(4)}(X)- \frac{4}{30^{2}}\big (L_1(X) +L_2(X)-L_3(X)\big )Y''(X)- \frac{2}{30}\big (S_1(X)\\ \,\,\,\,\, +S_2(X)\big )Y'(X)+\big (Q_1(X)-2-6i \big )Y(X) =\lambda Y(X),\,\,\,X\in [-1,1],\\ \ Y(-1)=\frac{2}{30}Y'(-1)=0,\,\,\,Y(1)=\frac{2}{30}Y'(1)=0. \end{array}\right. \end{aligned}$$
(62)

Using the same procedure as we did in the previous two examples, leads to the following generalized eigenvalue problem

$$\begin{aligned} \left( \begin{array}{c} \frac{16}{30^4}D^{(4)}-\frac{4}{30^2}\big (\hat{L_1}+\hat{L_2} -\hat{L_3}\big )D'' \ -\frac{2}{30}\big (\hat{S_1}+\hat{S_2}\big )D'\\ \quad +\big (\hat{Q}-2-6i\big )I \\ {I_{l}}\\ {\frac{2}{30}D^{(1)}_{l} }\\ {I_{r}}\\ {\frac{2}{30}D^{(1)}_{r}}\\ \end{array}\right) \mathbf{y} =\lambda \left( \begin{array}{c} I\\ \mathbf{0} ^T \\ \mathbf{0} ^T \\ \mathbf{0} ^T \\ \mathbf{0} ^T \\ \end{array}\right) \mathbf{y} , \end{aligned}$$
(63)

where \(\hat{L_1}(x_k)=diag(L_1(x_k))\), \(\hat{L_2}(x_k)=diag(L_2(x_k))\), \(\hat{L_3}(x_k)=diag(L_3(x_k))\), \(\hat{S_1}(x_k)=diag(S_1(x_k))\), \(\hat{S_2}(x_k)=diag(S_2(x_k))\) and \(\hat{Q}(x_k)=diag(Q(x_k))\). By truncating interval \([0,\infty )\) to [0, 30] and by using \(N=164, 192, 224\) and 256, we obtained the results summarized in the second to fifth columns of Table 4. The final column of Table 4 contains some numerical results reported in Ref. [32]. It should be noted here that the results in Table 4 does not include all approximate value of eigenvalues obtained by truncating \([0, \infty ) \) to [0, 30] and using \(N=164, 192, 224, 256\), only high-accuracy results are included. For illustration, by using \(N=164 \), we get \(\lambda _6=576.001102491999 +1728.00174592563i\), when \(N=194 \), we get \(\lambda _{10}=1599.99326435074 +4799.98661567798i\), but when \(N=224\), we get \(\lambda _{14}=3136.00685088521 + 9408.00461319592i\), with \(N=256\), then \(\lambda _{17}=4624.00706180033 +13871.9956404672i\). In Figure 3 we introduce the results of numerical experiments on this problem attained by truncating \([0,\infty )\) to [0, 30] and \(N=256\) with Dirichlet boundary conditions \(y(0)=y'(0)=0\) and \(y(30)=y'(30)=0\). Numerical results further demonstrate the superior performance of the current technique.

Table 4 The first sixteen eigenvalues of the square of anharmonic oscillator problem (58) over [0, 30]
Fig. 3
figure 3

The eigenvalues of the square of the anharmonic oscillator problem obtained by truncating \([0, \infty ) \) to [0, 30] and imposing Dirichlet boundary conditions at both ends

Conclusion

In this paper, an effective technique based on the Chebyshev spectral collocation approach has been applied to numerically approximate the eigenvalues of the fourth-order non-self-adjoint Sturm-Liouville problems. This approach converts the non-self-adjoint problem into a generalized eigenvalue problem based on utilizing the spectral differentiation matrices to compute derivatives of Chebyshev interpolating polynomials at interior nodes. The most salient features of this approach is not only has the ability to solve regular and singular non-self-adjoint problems efficiently, but also has ability to deal with different types of the boundary conditions. Another advantage is the fact that this approach is considerably accurate, computationally convenient and requires less computational costs even when high index eigenvalues are needed.