Abstract
In this work, we introduce an efficient scheme for the numerical solution of some Boundary and Initial Value Problems (BVPs-IVPs). By using an operational matrix, which was obtained from the first kind of Chebyshev polynomials, we construct the algebraic equivalent representation of the problem. We will show that this representation of BVPs and IVPs can be represented by a sparse matrix with sufficient precision. Sparse matrices that store data containing a large number of zero-valued elements have several advantages, such as saving a significant amount of memory and speeding up the processing of that data. In addition, we provide the convergence analysis and the error estimation of the suggested scheme. Finally, some numerical results are utilized to demonstrate the validity and applicability of the proposed technique, and also the presented algorithm is applied to solve an engineering problem which is used in a beam on elastic foundation.
Keywords:
boundary and initial value problems; chebyshev-spectral method; elastic foundation; numerical treatment MSC:
35A24; 80M22
1. Introduction
Initial value problems, boundary value problems, and other related problems have many applications in physics, chemistry, and different research areas (see, e.g., in [1,2,3,4,5,6,7,8,9,10,11] and the references given therein). Most higher order of these types of equations and problems do not have exact analytical solutions, thus approximation techniques must be applied.
In this work, we shall discuss the following BVPs.
with
and also the following IVPs,
with
where are constants, , , and and are given and unknown functions, respectively.
Among numerical approaches, spectral methods are very successful and powerful tools for the numerical solution of differential and integral equations involving derivatives of integer and non-integer order. Effective properties that have encouraged many experts in numerical analysis to use spectral methods for different kinds of mathematical problems are spectral accuracy and the ease of applying these methods. One of the most important advantages of these methods is their high accuracy, the so-called convergence of “infinite order”. Therefore, when the exact solution is infinitely differentiable, the numerical approximation converges faster than , where M is the order of approximation and is constant [12,13].
Pseudospectral, Galerkin, and Tau methods are several kinds of spectral methods which can be obtained from a weighted residual method [12]. The Tau method, which can be explained as a special case of spectral methods, was invented by Lanczos [14]. It has become increasingly popular with applications in many disciplines such as porous media, viscoelasticity, electrochemistry, and other problems where high accuracy is desired. Further detailed information of this procedure can be found in [15,16,17].
In the literature, there are several approaches to obtain numerical methods to solve boundary value problems and other related problems such as Chebyshev-type, Runge–Kutta type, Wavelet–Galerkin method, and Shannon approximation [5,6,18,19,20,21,22,23]. Wolf [24] has been concerned with the numerical solution of non-singular integral and integro-differential equations by iteration with Chebyshev series. In [25], a Chebyshev series were used for nonlinear differential equations. Various works, such as the works in [26,27], introduced and discussed a Chebyshev technique for solving nonlinear optimal control problems. Mezzadri et al. [28] have been concerned with nonlinear programming methods for the solution of optimal control problems via a Chebyshev technique.
The proposed approach in this work is referred to as operational in the sense that it makes it possible to transform a given differential equation into an algebraic equation. An efficient algorithm of the Tau approximation based on Chebyshev polynomials is presented to numerically solve the boundary and initial value problems. One of the main advantages of this methodology is that the matrices generated of BVPs and IVPs are sparse. The proposed procedure can be very attractive to users who are concerned with memory conservation, much less computational cost and much more computational speed (see Remark 2). Furthermore, the simplicity of the scheme and low algorithm run time are among its other advantages. Ultimately, to demonstrate the validity and applicability of the method, an engineering problem of the fourth-order ODE which is arising in elastic foundation is solved.
The organization of this paper is as follows. In Section 2, we present the basic properties of Chebyshev polynomials. Converting boundary value problem (1) and initial value problem (3) to a matrix form based on the new proposed algorithm is shown and the convergence analysis for the first kind of Chebyshev expansion is given in Section 3. The last part of this work is concerned with four numerical examples to illustrate the method.
2. Some Preliminaries
Now, we remind some basic properties and essentials of Chebyshev polynomials, which are applied further in this work [1].
Definition 1.
The first kind of Chebyshev polynomials of order n is described as
Furthermore, due to (5), we can write
Theorem 1.
The Chebyshev polynomials satisfy the following relation,
Remark 1.
Using simple computation the following relations with derivatives of Chebyshev polynomials can be obtained,
Proposition 1.
Chebyshev polynomials are orthogonal functions:
where is weighting function and
The Chebyshev polynomials are defined on the interval . In order to use these polynomials on the interval , we introduce .
3. Outline of the Method for Boundary and Initial Value Problems
Here, Chebyshev–Tau method is expressed to solve boundary value problem (1) and initial value problem (3). The first part is concerned with the matrix structure produced by proposed method, the convergence, and the error analysis for the mentioned polynomials. The second part will be discussed with the numerical solvability of the system of algebraic equations arising in the presented method.
3.1. Operational Matrix of Derivative
Let functions and be expanded by the Chebyshev polynomials in as
where , and . Moreover, for any integrable function on , we define as follows,
Taking the derivative of (10), we have
Due to (11) and (12), we obtain
by using Equation (7), we can rewrite the last equation as follows,
then we conclude that
or equivalently
where
Let us introduce matrix as a coefficient of matrix , then from (14) we have . The upper triangular matrix , via easy calculations, is as follows,
Theorem 2.
Let be a Chebyshev polynomial with
then for any , we obtain
Proof.
As we pointed out previously, Equation (14) can be written to the following matrix structure,
Furthermore, due to Equation (11), we have
From Equation (7), we can write
Given the assumption, it follows that
Using the process of obtaining Equation (15), we conclude
Due to (15) and the last equation, we get . Therefore, by repeating this scheme, it follows that , and we can write
□
The following theorem is concerned with the convergence and the error analysis for the Chebyshev expansion.
Theorem 3.
Suppose is a function that satisfies and for some constant K. Then, we have
u(x) can be expanded as and the series converges to uniformly, in other words
where .
Moreover, for an error estimation the following inequality holds,
where
Proof.
By showing the absolute convergence of the series , it can be concluded that the series converges to uniformly. According to definition of we have
substituting and yields
Using the integration, we have:
with integration again, can be obtained as
thus for , (for , ), we have
Furthermore, due to assumption and by simple computation, we can obtain
Finally, the last inequality shows that the series is absolutely convergent. Let us set
due to orthogonality of and value of , we have:
□
3.2. Description of the Proposed Method for BVPs and IVPs
The main object of this section is applying the obtained consequence for constructing the Tau approximate solution with Chebyshev polynomials of the boundary value problem (1).
We suppose that
where , , and is a finite form of .
Using the above relations, (1) can be written as
According to the linear independence of Chebyshev polynomials, we have
Due to (22) and (23), the desired matrix can be written as
where is obtained by eliminating the last n row of matrix X and
By solving a sparse system of above algebraic equation, we can obtained unknown , and finally, , the desired approximation, can be computed from the following relation,
The following Algorithm 1 summarizes our proposed method.
| Algorithm 1: The construction of proposed method for the boundary value problems (BVPs) |
| Step 1. Input: ; ; Step 2. Compute: ; for . Step 3. Compute the matrix from matrix . Step 4. Compute: 4.1. from step 3, (i=2, …, n). 4.2. based on from (22). Step 5. Set: Step 6. Obtain the solution from the system of (24) and set: . |
Construction of the Proposed Method for IVPs
Here, we consider the initial value problems (3) as
with
It is clear that the given scheme for BVPs (1) and Algorithm 1, with small changes, can be easily applied to these problems, thus we refrain from going into details. Only Step 5 in Algorithm 1 will be changed, and we have
therefore, we can obtain from the system of (24) and finally the desired solution can be achieved from .
Remark 2.
As a consequence of the described method, a significant advantage for increasing the computation speed is to the sparsity of matrices , ,…,. If we consider matrix with an odd dimension, then the number of non-zero matrix elements is . Moreover, the number of non-zero matrix elements for matrix with an even dimension is . Furthermore, the number of non-zero matrix elements for matrix with an even and odd dimension are and , respectively and so it goes. Figure 1, Figure 2 and Figure 3 indicate that as the derivative order rise, the sparsity of matrices and computational speed also increase.
Figure 1.
The sparsity structure of for even value of N.
Figure 2.
The sparsity structure of for even value of N.
Figure 3.
The sparsity structure of for even value of N.
4. Numerical Results
In this section, the numerical results of four test problems are reported. We solve the examples using proposed Tau approximation method based on Chebyshev basis functions. In the tables presented here, the maximal differences between exact and approximation solution has been shown by “Maximal Errors”. We compare our obtained results with in the some existing numerical methods. The numerical results of the given method have been shown in Figure 4, Figure 5, Figure 6 and Figure 7.
Figure 4.
The Tau approximation of order 3 and for Example 1 using Chebyshev basis.
Figure 5.
The Tau approximation of order 1 and for Example 2 using Chebyshev basis.
Figure 6.
The Tau approximation of order 4 and for Example 3 using Chebyshev basis.
Figure 7.
The Tau approximation of order 5 and for Example 4 using Chebyshev basis.
Example 1.Consider the third-order boundary value problem
with the conditions
and the exact solution of Example 1 is
We take , for computational details of the described technique in Section 3. By applying mentioned algorithm, the following matrices will be obtained.
The left and right hand-side of (24) are, respectively,
and
By solving the linear system (24), we obtain vector as follows,
By putting these values in Equation (18), an approximate solution will be obtained. The numerical results are given in Table 1.
Table 1.
Results of Example 1, using presented method.
Example 2.Consider the first-order initial value problem:
The exact solution of this problem under the initial condition is given by
This problem was also solved in [4,21] by a method based on Legendre and Chebyshev polynomials. The best reported maximum error is . Table 2 shows that we can attain good numerical results compare to the numerical results in [4,21] for .
Table 2.
Results of Example 2, using presented method.
Example 3.Consider an engineering problem of the fourth-order initial value problem which is arising in elastic foundation [20] as follows,
with the exact solution .
Example 4.Consider the following fifth-order boundary value problem,
with
and the exact solution .
To obtain the approximate solution of Examples 3 and 4, we apply the proposed Tau method. The obtained numerical results in Table 3, show that the desired accuracy is obtained.
Table 3.
Results of Examples 3 and 4, using presented method.
5. Conclusions
In this paper, an efficient and accurate numerical algorithm has been applied to solve boundary and initial value problems by using the Chebyshev–Tau method. Due to the wide application of boundary value problems in many different fields, an engineering problem which is arising in elastic foundation is chosen as test example. By utilizing proposed method, the sparsity of the obtained derivative operational matrix makes us able to solve the linear system with much less computational cost and much more computational speed. The reported results indicated that the proposed scheme can obtain appropriate approximate solutions in comparing with the exact solution. Moreover, by increasing the order of Chebyshev polynomial, a better approximation was achieved.
Author Contributions
Conceptualization, P.A. and P.K.; methodology, M.A.; software, M.M.; validation, P.A., M.A. and M.M.; formal analysis, P.K.; investigation, P.K.; resources, M.A.; data curation, P.A.; writing–original draft preparation, M.A. and M.M.; writing–review and editing, P.K.; visualization, P.A.; supervision, P.A.; project administration, P.K.; funding acquisition, P.K. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by Center of Excellence in Theoretical and Computational Science (TaCS-CoE), KMUTT grant number 2020.
Acknowledgments
The authors acknowledge the financial support provided by the Center of Excellence in Theoretical and Computational Science (TaCS-CoE), KMUTT.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Agarwal, R.P.; ÓRegan, D. Ordinary and Partial Differential Equations with Special Functions, Fourier Series, and Boundary Value Problems; Springer: New York, NY, USA, 2009. [Google Scholar]
- Aslana, E.C.; Inc, M.; Al-Qurashi, M.M.; Baleanuc, D. On numerical solutions of time-fraction generalized Hirota Satsuma coupled KdV equation. J. Nonlinear Sci. Appl. 2017, 10, 724–733. [Google Scholar] [CrossRef]
- Bulut, H.; Yel, G.; Baskonus, H.M. An application of improved Bernoulli sub-equation function method to the nonlinear time-fractional Burgers equation. Turk. J. Math. Comput. Sci. 2016, 5, 1–7. [Google Scholar]
- Chapra, S.C.; Canale, R.P. Numerical Methods for Engineers, 7th ed.; McGraw-Hill Education: New York, NY, USA, 2010. [Google Scholar]
- Hashemizadeh, E.; Mahmoudi, F. Numerical solution of Painlevé equation by Chebyshev polynomials. J. Interpolat. Approx. Sci. Comput. 2016, 2016, 26–31. [Google Scholar] [CrossRef]
- Lotfi, T.; Rashidi, M.; Mahdiani, K. A posteriori analysis: Error estimation for the eighth order boundary value problems in reproducing Kernel space. Numer. Algor. 2016, 73, 391–406. [Google Scholar] [CrossRef]
- Lotfi, T. A new optimal method of fourth-order convergence for solving nonlinear equations. Int. J. Ind. Math. 2014, 6, 121–124. [Google Scholar]
- Qurashi, M.M.; Yusuf, A.; Aliyu, A.I.; Inc, M. Optical and other solitons for the fourth-order dispersive nonlinear Schrödinger equation with dual-power law nonlinearity. Superlattices Microstruct. 2017, 105, 183–197. [Google Scholar] [CrossRef]
- Rehman, M.; Khan, A.K. A numerical method for solving boundary value problems for fractional differential equations. Appl. Math. Model. 2012, 36, 894–907. [Google Scholar] [CrossRef]
- Yusuf, A.; Aliyu, A.I.; Baleanu, D. Soliton structures to some time-fractional nonlinear differential equations with conformable derivative. Opt. Quant. Electron. 2018, 50, 20. [Google Scholar] [CrossRef]
- Zaky, M.A.; Baleanu, D.; Alzaidy, J.F.; Hashemizadeh, E. Operational matrix approach for solving the variable-order nonlinear Galilei invariant advection–diffusion equation. Adv. Differ. Equ. 2018, 2018, 102. [Google Scholar] [CrossRef]
- El-Daou, M.K.; Ortiz, E.L. The weighted subspace of the Tau method and orthogonal collocation. J. Math. Anal. Appl. 2007, 326, 622–631. [Google Scholar] [CrossRef][Green Version]
- El-Daou, M.K.; Ortiz, E.L. The Tau method as an analytic tool in the discussion of equivalence results across numerical methods. Computing 1998, 60, 365–376. [Google Scholar]
- Froes Bunchaft, M.E. Some extensions of the Lanczos-Ortiz theory of canonical polynomials in the Tau method. Math. Comput. 2018, 66, 609–621. [Google Scholar] [CrossRef]
- Ghoreishi, F.; Hadizadeh, M. Numerical computation of the Tau approximation for the Volterra- Hammerstein integral equations. Numer. Algor. 2009, 52, 541–559. [Google Scholar] [CrossRef]
- Ortiz, E.L. The Tau Method. SIAM J. Numer. Anal. 1969, 6, 480–492. [Google Scholar] [CrossRef]
- Xie, W.-C. Differential Equations for Engineers, 1st ed.; Cambridge University Press: Cambridge, UK, 2010. [Google Scholar]
- Attary, M. An extension of the Shannon Wavelets for numerical Solution of Integro-Differential Equations. In Advances in Real and Complex Analysis with Applications; Birkhäuser: Basel, Switzerland, 2017; pp. 277–288. [Google Scholar]
- Hashemizadeh, E.; Mahmoudi, F. A Numerical Approach for the Solution of Nonlinear Boundary Value Problems Arising in Biology Via Shifted Jacobi Operational Matrix. Adv. Environ. Biol. 2014, 8, 1415–1419. [Google Scholar]
- Hussain, K.; Ismail, F.; Senu, N. Solving directly special fourth-order ordinary differential equations using Runge-kutta type method. J. Comput. Appl. Math. 2016, 306, 179–199. [Google Scholar] [CrossRef]
- Lotfi, T.; Mahdiani, K. Numerical solution of boundary value problem by using Wavelet-Galerkin method. Math. Sci. 2007, 1, 7–18. [Google Scholar]
- Maleknejad, K.; Hadizadeh, M.; Attary, M. On the approximate solution of integro-differential equations arising in oscillating magnetic fields. Appl. Math. 2013, 58, 595–607. [Google Scholar] [CrossRef][Green Version]
- Mason, J.; Handscomb, D. Chebyshev Polynomials; Chapman and Hal- l/CRC Press: Boca Raton, FL, USA, 2002. [Google Scholar]
- Wolfe, M. The numerical solution of non-singular integral and integro- differential equations by iteration with Chebyshev series. Comput. J. 1969, 12, 193–196. [Google Scholar] [CrossRef][Green Version]
- Lessard, J.; Reinhardt, C. Rigorous numerics for nonlinear differential equations using Chebyshev series. SIAM J. Numer. Anal. 2013, 52, 1–22. [Google Scholar] [CrossRef]
- El-Gindy, T.M.; El-Hawary, H.M.; Salim, M.S.; El-Kady, M. A Chebyshev approximation for solving optimal control problems. Comput. Math. Appl. 1995, 29, 35–45. [Google Scholar] [CrossRef][Green Version]
- Vlassenbroeck, J.; Van Dooren, R. A Chebyshev technique for solving nonlinear optimal control problems. IEEE Trans. Automat. Control 1988, 33, 333–340. [Google Scholar] [CrossRef]
- Mezzadri, F.; Galligani, E. A Chebyshev technique for the solution of optimal control problems with nonlinear programming methods. Math. Comp. Simulat. 2016, 121, 95–108. [Google Scholar] [CrossRef]
© 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).