Abstract

Two numerical algorithms based on dual-Petrov-Galerkin method are developed for solving the integrated forms of high odd-order boundary value problems (BVPs) governed by homogeneous and nonhomogeneous boundary conditions. Two different choices of trial functions and test functions which satisfy the underlying boundary conditions of the differential equations and the dual boundary conditions are used for this purpose. These choices lead to linear systems with specially structured matrices that can be efficiently inverted, hence greatly reducing the cost. The various matrix systems resulting from these discretizations are carefully investigated, especially their complexities and their condition numbers. Numerical results are given to illustrate the efficiency of the proposed algorithms, and some comparisons with some other methods are made.

1. Introduction

The spectral methods aim to approximate functions (solutions of differential equations) by means of truncated series of orthogonal polynomials. The main feature of spectral methods is to take various orthogonal systems of infinitely differentiable global functions as trial functions. The choice of different trial functions leads to different spectral approximations; for instance, the choice of trigonometric polynomials is suitable for periodic problems, while the choice of Chebyshev, Legendre, ultraspherical and classical Jacobi polynomials is suitable for nonperiodic problems. (see [17]).

Because of being extremely accurate, spectral methods have been intensively studied and successfully applied to numerical simulations in many fields. They have gained new popularity in automatic computations for a wide class of physical problems in fluid and heat flow. Mainly, there are three types of spectral methods, namely, collocation, tau, and Galerkin. The choice of the type of the method depends essentially on the application. Collocation methods are appropriate for studying nonlinear problems or when the problem has complicated coefficients, while Galerkin methods have the advantage of a more convenient analysis and optimal error analysis estimates. The tau method is applicable in the case of complicated (even nonlinear) boundary conditions, where Galerkin approach would be impossible and the collocation is extremely tedious (see [2, 5, 8]).

For the spectral solutions of odd-order differential equations by direct collocation methods, we obtain condition number of , where is the number of retained modes and is the order of equation. This high condition number will lead to instabilities caused by rounding errors (see [9, 10]).

High even-order boundary value problems have been investigated by a large number of authors because of both their mathematical importance and their potential for applications in hydrodynamic and hydromagnetic stability. Therefore, availability of fast and accurate algorithms to solve these equations will allow rapid solutions of many practical problems. Doha and Abd-Elhameed [11] and Doha et al. [1214] have constructed efficient spectral-Galerkin algorithms using compact combinations of orthogonal polynomials for solving second and higher order equations.

Also, the study of odd-order equations is of interest; for example, the third-order equation is of fundamental mathematical interest since it lacks symmetry. Also, it is of physical interest since it contains a type of operator which appears in many commonly occurring partial differential equations such as the Korteweg-de Vries equation. Fifth-order boundary value problems arise in the mathematical modelling of viscoelastic flows (see [15, 16]). Some studies are concerned with third- and fifth-order differential equations in finite intervals (see [17, 18]). Doha and Abd-Elhameed [19] have constructed efficient spectral-Galerkin algorithms using compact combinations of ultraspherical polynomials for solving the differentiated forms of elliptic equations of th-order. Recently, Bhrawy and Alghamdi [20], Doha et al. [2123],

have analyzed some algorithms for solving numerically the third- and fifth-order differential equations.

The main objective of this paper is to develop some efficient spectral algorithms based on Legendre-dual-Petrov-Galerkin method (LDPGM) for the solution of the integrated forms of high odd-order BVPs in one variable. We present two different choices of appropriate bases for the LDPGM applied to high odd-order BVPs with homogenous and nonhomogenous boundary conditions. All the matrix systems resulted from the application of LDPGM to the integrated forms of th-order differential equations are band, and then they are cheaper to solve than the systems obtained from the differentiated forms (see Doha and Abd-Elhameed [19]). This motivates our interest for applying LDPGM to the integrated forms of th-order differential equations.

The remainder of the article is organized as follows. In Section 2, some properties of Legendre polynomials and their shifted ones are given. The main results of this paper are presented in Section 3, in which two numerical algorithms for solving the integrated forms of th-order elliptic linear differential equations subject to homogeneous boundary conditions using two choices of bases functions are presented and implemented. Also, the same equations but governed by nonhomogeneous boundary conditions are noted in Section 3. For the sake of demonstrating the efficiency and the applicability of our two presented algorithms and also for the sake of comparison between these two algorithms, some numerical results are presented in Section 4. Some concluding remarks are given in Section 5.

2. Some Properties of Legendre Polynomials

The Legendre polynomials are a sequence of orthogonal polynomials on the interval ; that is, The following special values of and are important in our subsequent work: The following two theorems and two lemmas are also needed hereafter.

Theorem 1. If the times repeated integration of is denoted by then is given by where and is a polynomial of degree at most .

(For the proof of Theorem 1, see Doha [3].)

Theorem 2. For all , one has where

(For the proof of Theorem 2, see, Doha [24].)

Lemma 3. For all , one has where and is defined as in relation (6).

Proof. By binomial theorem, we have then, by using relation (6), we get If we expand relation (11) and collect similar terms, then, after some rather algebraic manipulation, relation (8) is obtained. This completes the proof of Lemma 3.

Lemma 4. For all , one has where and is defined as in Lemma 3.

Proof. This lemma can be immediately proved by multiplying both sides of relation (8) by and , respectively, and performing some simple algebraic manipulations.

2.1. Shifted Legendre Polynomials

The shifted Legendre polynomials are defined on as All results of Legendre polynomials can be easily transformed to give the corresponding results for their shifted ones.

The orthogonality relation of on is given by Now, based on relation (14) and with the aid of formula (4), we have the following theorem.

Theorem 5. If the times repeated integration of is denoted by then where is defined as in (5) and is a polynomial in of degree at most.

Remark 6. For all and , one has where and are defined as in Lemma 4.

3. Solution of High Odd-Order BVPs

We are interested in using the LDPGM to solve the two-point high odd-order BVPs governed by the homogeneous boundary conditions where denotes the th derivative of with respect to and are known constant coefficients.

In this section, we consider two kinds of bases to numerically solve (20) governed by (21) but by considering its integrated form; namely, where and are the unknown constants of integration.

We set and then the LDPGM for solving (20)-(21) or its equivalent integrated form (22) is to find such that where is the scalar inner product in the space . Chebyshev, Legendre,

In the following two subsections, we will apply the dual Petrov-Galerkin method to solve (22) based on choosing two kinds of bases functions. These two choices enable one to obtain two linear systems of specially structured matrices that can be efficiently inverted.

3.1. The First Choice of Basis Functions

First, we consider the case and set We choose the coefficients and such that and , respectively. The boundary conditions lead to the following system of equations: The determinant of the above system of linear equations is different from zero; hence, can be uniquely determined to give Similarly, it can be easily shown that are given by Second, if we replace in (26) by , for , and if we define then it is obvious that the basis functions and their dual are given, respectively, by where and are as given in (28) and (29), respectively.

Now it is clear that (25) is equivalent to If we take in (33), then the constants , would disappear, and then we get If we denote then (34) is equivalent to the following matrix system: where the nonzero elements of the matrices and are given explicitly in the following theorem.

Theorem 7. If the basis functions and their dual are taken as in (31) and (32), respectively, and if we denote and , then and the nonzero elements of the matrices are given explicitly by where and are, respectively, defined as in (5) and (28).

Proof . We choose the basis functions and their dual such that and for . Moreover, it is clear that and are linearly independent and the dimension of each of and is equal to . Hence, The nonzero elements for , can be obtained by making use of formulae (31) and (32). Now, is given by which in turn, with the aid of the orthogonality relation (15), yields which proves relation (39). From (43) and (28), it is not difficult to prove that To prove relation (40), we have, for , Making use of Theorem 5 enables one to write where is defined as in (5) and is a polynomial in of degree at most.
This, with the orthogonality relation (15), yields which completes the proof of Theorem 7.

3.2. The Second Choice of Basis Functions

As a second choice of and , we write which automatically fulfill the boundary conditions (21) and their dual conditions, respectively.

The following lemma is of fundamental importance in what follows.

Lemma 8. For arbitrary constants , one has where Moreover, where and is defined as in (13) and is a polynomial of degree at most.

Proof. The first part of this lemma can be directly proved with the aid of Lemma 4. To prove the second part, we integrate both sides of (50) times, , and, after making use of formula (17), we obtain which may be written in the form where Now, making use of relation (51) enables one to write in the form and this completes the proof of Lemma 8.

Theorem 9. If is the dual Petrov-Galerkin approximation to (20) and (21), then the expansion coefficients satisfy the matrix system where the nonzero elements of the matrices and are given by where and are, respectively, defined as in (5) and (13).

Proof. If we apply the LDPGM to (20), then we have where ,   and are defined as in (48) and (49), respectively.
Substitution of formulae (19), (50), and (52) into (62) yields The constants of integration would disappear if we take , and therefore the application of the orthogonality relation (15) yields which is equivalent to The system of linear equation (65) in turn may be written in the following matrix form: and this completes the proof of Theorem 9.

3.3. Structure and Complexities of the Two Matrix Systems (36) and (58)

The structures of the coefficient matrices , and hence the structures of the two combined matrices and , which appear in the two linear systems (36) and (58), will be discussed in this section. Also, the influence of such structures on the efficiency of the solution of these two matrix systems will be discussed.

With respect to the two matrices and , they are always nonsingular special upper band triangular of bandwidth , . Therefore, it is worth noting here that the case whichcorresponds to , leads to linear systems with special nonsingular upper triangular matrices. The results for such case are summarized in the following two important corollaries.

Corollary 10. If , then the system (36) takes the form , where is an upper triangular matrix whose solution can be obtained directly by the backward substitution where and are given by (38) and (39), respectively.

Corollary 11. If , then the system (58) takes the form ,    where is an upper triangular matrix whose solution can be obtained directly by the backward substitution where and are given by (59) and (60), respectively.

Each of the matrices and is a band matrix whose total number of nonzero diagonals upper the main diagonal is , while the total number of nonzero diagonals lower the main diagonal is . Thus, the coefficient matrices and are band whose total number of nonzero diagonals upper the main diagonal does not exceed and the total number of nonzero diagonals lower the main diagonal does not exceed . These special structures of and simplify greatly the solutions of the two linear systems (36) and (58). The two systems in such case can be factorized by -decomposition, and the number of operations necessary to construct this factorization is of order (see Stewart [28]).

3.4. Condition Number

Whenever spectral methods are used for solving the th-order equations, one should be concerned with round-off errors caused by potentially large condition numbers. However, the LDPGM presented in this paper leads to systems with small condition numbers. For LDPGM, the two linear systems which resulted from the integrated form of the equation using the two choices of basis functions are given, respectively, by and , where the matrices and are upper triangular matrices whose diagonal elements are given by (38) and (59), respectively. Thus, for all , we note that the condition number of the matrix behaves like for large values of , while the condition number of the matrix is independent of . This means that the matrix is well conditioned. Hence, the propagation of round-off errors should not be very significant.

Table 1 illustrates the condition numbers for the two matrices and in (36) for some values of the parameter and , while Table 2 illustrates the condition numbers for the two matrices and in (58) for the same values of and in the same interval.

3.5. Nonhomogeneous Boundary Conditions

If we consider the differential equation governed by the nonhomogeneous boundary conditions one can easily show that the differential equation (70) with its nonhomogeneous boundary conditions (71) can be transformed—by using a suitable transformation—to a differential equation governed by homogeneous boundary conditions, but details will not be given here and the interested reader is referred to Doha and Abd-Elhameed [19].

4. Numerical Results

In this section, we give some numerical results obtained by using the two algorithms presented in the previous sections.

Example 1. Consider the following third-order one-dimensional BVP: where is chosen such that the exact solution of (72) is .

Table 3 lists the maximum pointwise error given by to the problem (72) of the given example using LDPGM with the two choices of basis functions for various values of and for some values of the coefficients , and .

Example 2. Consider the boundary value problem (see Lang and Xu [25] and Siddiqi and Akram [26]): with exact solution .

Table 4 lists the maximum pointwise error given by using LDPGM with the two choices of basis functions and for various values of . In Table 5, we give a comparison between the best errors obtained by our two methods (LDPGM-1st choice and LDPGM-2nd choice), quartic spline method (QSM) in [25], and sextic spline method (SSM) in [26]. This table shows that our methods are more accurate if compared with quartic spline method and sextic spline method illustrated in [25, 26], respectively.

Example 3. Consider the linear ninth-order BVP (see Wazwaz [27]): with theoretical solution .

In Table 6, we list the errors given by for Example 3 for using LDPGM based on the two kinds of basis functions. For the sake of comparison with the results obtained by Wazwaz in [27], the best errors obtained in [27] are listed in column 4 of Table 6. This table shows that our two algorithms are more accurate than the method presented by Wazwaz [27], for the problem considered.

5. Concluding Remarks

We have presented two numerical spectral algorithms for the solution of high odd-order differential equations based on Legendre-dual-Petrov-Galerkin method. The two presented algorithms are very reliable and efficient. The main advantage of our algorithms is that all the resulting systems are band and this of course simplifies the numerical computational efforts required to solve them. The presented numerical results exhibit the high accuracy and efficiency of the proposed algorithms.

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

Acknowledgments

This paper was funded by the Deanship of Scientific Research (DSR), King Abdulaziz University, Jeddah. The authors, therefore, acknowledge with thanks the DSR technical and financial support.