Collocation methods are efficient approximate methods developed by utilizing suitable set of functions known as trial or basis functions. These methods are used for solving differential equations, integral equations and integro-differential equations, etc. In this study, the Laguerre polynomial of degree 10 is used as a basis function to propose a collocation method for solving higher order linear ordinary differential equations. Four examples on \(4th\), \(6th\), \(8th\) and \(10th\) order ordinary differential equations are selected to illustrate the effectiveness of the method. The numerical results show that the proposed collocation method is easy and straightforward to implement, nevertheless, it is very accurate.
Higher order boundary value problems (BVPs) in ordinary differential equations (ODEs) are important tools for modelling different physical phenomena in sciences and engineering [1,2,3]. Although many ordinary differential equations especially linear ODEs have known analytical solutions, searching for numerical solutions is important because they provide reliable approximations to problems that are difficult to solve analytically [4]. In many situations, sound mathematical theories are often required for analysis, however, the closed form solutions may be too complicated, thus approximate solutions may be preferred [5].
Over the years, researchers have developed many numerical methods besides collocation methods for handling higher order BVPs. The least squares solutions of \(8th \) order boundary value problems using the theory of functional connections was developed by [3]. Similarly, [6] considered the numerical solution of \(8th \) order boundary value problems which arise in magnetic fields and cylindrical shells. In the same vein, [7] used the Legendre Galerkin method for the numerical solution of 8th order linear boundary value problems. [8] approximated the solution of some mth order linear boundary value problems where \(2\leq m\leq 9 \) by the use of a numerical method constructed with “Tchebychev” polynomial. The approximation of linear 10th order boundary value problems via polynomial and non-polynomial cubic spline techniques was considered by [9]. [10] applied the optimal homotopy asymptotic method to \(8th \) order initial and boundary value problems. [11] developed a continuous k-step linear multistep method (LMM) that was utilized to generate finite difference methods which were assembled and applied as simultaneous numerical integrators to solve \(4th \) order initial value and boundary value problems directly. [12] proposed a method for the numerical solution of special \(4th \) order BVPs via modified decomposition method.
Collocation methods using splines, polynomials and orthogonal polynomials have been developed and applied for the solution of higher order BVPs. [1] proposed a B-Spline collocation method for approximating higher order linear boundary value problems while a quintic B-spline and sixtic B-spline collocation methods were developed by [13,14] for the treatment of \(8th \) order boundary value problems. Similarly, a Haar wavelet collocation method for approximating \(8th \) order boundary value problems was developed by [15]. Cubic spline collocation tau method for handling 4th order linear ordinary differential equations was constructed by [16]. The Chebyshev polynomial was utilized by [17] to develop a multiple perturbed collocation tau-method which was used for solving \(4th- 6th \) order BVPs. Again, [2] applied the Taylor series polynomials as basis to form a standard collocation method and further developed a perturbed collocation method using Chebyshev polynomials as perturbation terms for approximating \(4th \) order BVPs. All the numerical methods mentioned above provided accurate approximations although with different accuracies.
The ease of implementing collocation methods with polynomial basis which provide accurate results that are comparable with other numerical methods is the motivation of this work. Since few orthogonal polynomials have been applied as trial functions to develop higher order collocation methods for solving BVPs, the Laguerre polynomial of degree \(N=10 \) is utilized as basis function to construct a collocation method which is implemented on 2mth higher order BVPs, \(2\leq m\leq 5 \). The existence and uniqueness of higher order BVPs are not considered in this work, however, this subject matter is comprehensively presented in [18] and [19].
The Laguerre collocation method is presented in Section 2, while the implementation is done in Section 3. Finally, Section 4 deals with the discussion and conclusion.
This work seeks to obtain the approximate solution to (8) and the boundary conditions as given in (7). However, the boundary value problems considered here have the same order \(n \) with the number of boundary conditions \(k \).
Example 1. Consider the \(4th \) order boundary value problem \(y^{(4)}=y+4\exp(x),   \quad 0\leq x \leq 1; \) with the boundary conditions \(y(0)=1, \)   \(y(1)=2\exp(1), \)   \(y^\prime(0)=1, \)   \(y^\prime(1)=3\exp(1) \)   and the analytical solution is given by \(y(x)=(1+x)exp(x). \) The results at the mesh points are given in Table 1.
\(n \) | \(x_n \) | \(y_n \) | \(y(x) \) | \(\left|y_n-y(x_n)\right| \) |
---|---|---|---|---|
\(0 \) | \(0 \) | \(0.9999999995995449000 \) | \(1.0000000000000000000 \) | \(4.0046\times 10^{-10} \) |
\(1 \) | \(0.1 \) | \(1.2156880096812333908 \) | \(1.2156880098832123873 \) | \(2.0198\times10^{-10} \) |
\(2 \) | \(0.2 \) | \(1.4656833097351525863 \) | \(1.4656833097922038007 \) | \(5.7051\times10^{-11} \) |
\(3 \) | \(0.3 \) | \(1.7548164498926186474 \) | \(1.7548164498488040352 \) | \(4.3815\times10^{-11} \) |
\(4 \) | \(0.4 \) | \(2.0885545768060973480 \) | \(2.0885545766977784449 \) | \(1.0832\times 10^{-10} \) |
\(5 \) | \(0.5 \) | \(2.4730819061942987293 \) | \(2.4730819060501922202 \) | \(1.4411\times10^{-10} \) |
\(6 \) | \(0.6 \) | \(2.9153900807828490922 \) | \(2.9153900806248143598 \) | \(1.5803\times10^{-10} \) |
\(7 \) | \(0.7 \) | \(3.4233796028562222864 \) | \(3.4233796026998100867 \) | \(1.5641\times10^{-10} \) |
\(8 \) | \(0.8 \) | \(4.0059736714316378601 \) | \(4.0059736712864416883 \) | \(1.4519\times10^{-10} \) |
\(9 \) | \(0.9 \) | \(4.6732459113274837527 \) | \(4.6732459111982043612 \) | \(1.2928\times10^{-10} \) |
\(10 \) | \(1.0 \) | \(5.4365636570322238390 \) | \(5.4365636569180904708 \) | \(1.1413\times10^{-10} \) |
Example 2. Consider the \(6th \) order boundary value problem \(y^{(6)}=y-6\exp(x),   \quad 0\leq x \leq 1; \)   with the boundary conditions \(y(0)=1, \)   \(y(1)=0 \),   \(y^{(2)}(0)=-1, \)   \(y^{(2)}(1)=-2\exp(1), \)   \(y^{(4)}(0)=-3, \)   \(y^{(2)}(1)=-3\exp(1), \)   and the analytical solution is given by \(y(x)=(1-x)exp(x). \) The results at the mesh points are given in Table 2.
\(n \) | \(x_n \) | \(y_n \) | \(y(x) \) | \(\left|y_n-y(x_n)\right| \) |
---|---|---|---|---|
\(0 \) | \(0 \) | \(1.0000000000001685000 \) | \(1.00000000000000000000 \) | \(1.6850\times10^{-13} \) |
\(1 \) | \(0.1 \) | \(0.9946538258967874881 \) | \(0.99465382626808286232 \) | \(3.7130\times10^{-10} \) |
\(2 \) | \(0.2 \) | \(0.9771222054592636538 \) | \(0.97712220652813586712 \) | \(1.0689\times10^{-9} \) |
\(3 \) | \(0.3 \) | \(0.9449011631547264200 \) | \(0.94490116530320217280 \) | \(2.1485\times10^{-9} \) |
\(4 \) | \(0.4 \) | \(0.8950948151452182868 \) | \(0.89509481858476219068 \) | \(3.4395\times10^{-9} \) |
\(5 \) | \(0.5 \) | \(0.8243606307092493746 \) | \(0.82436063535006407340 \) | \(4.6408\times10^{-9} \) |
\(6 \) | \(0.6 \) | \(0.7288475147567316736 \) | \(0.72884752015620358996 \) | \(5.3995\times10^{-9} \) |
\(7 \) | \(0.7 \) | \(0.60412580684272018001 \) | \(0.60412581224114295648 \) | \(5.3984\times10^{-9} \) |
\(8 \) | \(0.8 \) | \(0.4451081812551064650 \) | \(0.44510818569849352092 \) | \(4.4434\times10^{-9} \) |
\(9 \) | \(0.9 \) | \(0.2459603085739087748 \) | \(0.24596031111569496638 \) | \(2.5418\times10^{-9} \) |
\(10 \) | \(1.0 \) | \(-3.25690\times10^{-14} \) | \(0 \) | \(3.2570\times10^{-14} \) |
Example 3. Consider the \(8th \) order boundary value problem \(y^{(8)}-y=8\exp(x),   \quad 0\leq x \leq 1; \)   with the boundary conditions \(y(0)=1, \)   \(y(1)=0, \)   \(y^{\prime}(0)=0, \)   \(y^{\prime}(1)=-2, \)   \(y^{(2)}(0)=-1, \)   \(y^{(2)}(1)=-2\exp(1), \)   \(y^{(3)}(0)=-2, \)   \(y^{(3)}(1)=-3\exp(1), \)   and the analytical solution is given by \(y(x)=(1-x)\exp(x). \) The results at the mesh points are given in Table 3.
\(n \) | \(x_n \) | \(y_n \) | \(y(x) \) | \(\left|y_n-y(x_n)\right| \) |
---|---|---|---|---|
\(0 \) | \(0 \) | \(0.999999999999919520 \) | \(1.00000000000000000000 \) | \(8.0480\times10^{-14} \) |
\(1 \) | \(0.1 \) | \(0.9946538262678937601 \) | \(0.99465382626808286232 \) | \(1.8910\times10^{-13} \) |
\(2 \) | \(0.2 \) | \(0.9771222065321117607 \) | \(0.97712220652813586712 \) | \(3.7959\times10^{-12} \) |
\(3 \) | \(0.3 \) | \(0.9449011653172361413 \) | \(0.94490116530320217280 \) | \(1.4034\times10^{-11} \) |
\(4 \) | \(0.4 \) | \(0.8950948185965164628 \) | \(0.89509481858476219068 \) | \(1.1754\times10^{-11} \) |
\(5 \) | \(0.5 \) | \(0.8243606353404964961 \) | \(0.82436063535006407340 \) | \(9.5676\times10^{-12} \) |
\(6 \) | \(0.6 \) | \(0.7288475201290590871 \) | \(0.72884752015620358996 \) | \(2.7415\times10^{-11} \) |
\(7 \) | \(0.7 \) | \(0.60412581221979442386 \) | \(0.60412581224114295648 \) | \(2.1348\times10^{-11} \) |
\(8 \) | \(0.8 \) | \(0.4451081856932311579 \) | \(0.44510818569849352092 \) | \(2.2624\times10^{-12} \) |
\(9 \) | \(0.9 \) | \(0.2459603111159681689 \) | \(0.24596031111569496638 \) | \(2.7320\times10^{-13} \) |
\(10 \) | \(1.0 \) | \(4.78512\times10^{-14} \) | \(0 \) | \(4.7851\times10^{-14} \) |
Example 4. Consider the \(10th \) order boundary value problem \(y^{(10)}=-\left(1-x\right)\sin(x)+10\cos(x),   \quad 0\leq x \leq 1; \) with the boundary conditions \(y(0)=1, \)   \(y(1)=0, \)   \(y^{(2)}(0)=2, \)   \(y^{(2)}(1)=2\cos(1), \)   \(y^{(4)}(0)=-4, \)   \(y^{(4)}(1)=-4\cos(1), \)   \(y^{(6)}(0)=6, \)   \(y^{(6)}(1)=6\cos(1), \)   \(y^{(8)}(0)=-8, \)   \(y^{(8)}(1)=-8\cos(1) \) and the analytical solution is given by \(y(x)=(x-1)\sin(x). \) The results at the mesh points are given in Table 4.
\(n \) | \(x_n \) | \(y_n \) | \(y(x) \) | \(\left|y_n-y(x_n)\right| \) |
---|---|---|---|---|
\(0 \) | \(0 \) | \(6.8300\times10^{-17} \) | \(0 \) | \(6.8300\times10^{-17} \) |
\(1 \) | \(0.1 \) | \(-0.0898511265815970128 \) | \(-0.089850074982145337076 \) | \(1.0516\times10^{-6} \) |
\(2 \) | \(0.2 \) | \(-0.1589374674789321263 \) | \(-0.15893546463604897237 \) | \(2.0028\times10^{-6} \) |
\(3 \) | \(0.3 \) | \(-0.2068669068902013555 \) | \(-0.20686414466293770258 \) | \(2.7622\times10^{-6} \) |
\(4 \) | \(0.4 \) | \(-0.2336542608365488710 \) | \(-0.23365100538519029500 \) | \(3.2555\times10^{-6} \) |
\(5 \) | \(0.5 \) | \(-0.2397162019696233407 \) | \(-0.23971276930210150014 \) | \(3.4327\times10^{-6} \) |
\(6 \) | \(0.6 \) | \(-0.2258602632950288019 \) | \(-0.22585698935801414288 \) | \(3.2739\times10^{-6} \) |
\(7 \) | \(0.7 \) | \(-0.19326809832291728014 \) | \(-0.19326530617130731610 \) | \(2.7922\times10^{-6} \) |
\(8 \) | \(0.8 \) | \(-0.1434732509647720103 \) | \(-0.14347121817990455233 \) | \(2.0328\times10^{-6} \) |
\(9 \) | \(0.9 \) | \(-0.0783337610764255054 \) | \(-0.078332690962748338846 \) | \(2.1.070\times10^{-6} \) |
\(10 \) | \(1.0 \) | \(-4.8700\times10^{-17} \) | \(0 \) | \(4.8700\times10^{-17} \) |
The Laguerre polynomial of degree \(10 \) was used to develop an orthogonal collocation method for solving higher order boundary value problems in ordinary differential equations. Four test problems on \(4th \), \(6th \), \(8th \) and \(10th \) order boundary value problems were used to verify the efficiency and accuracy of the proposed method via absolute errors. The numerical results are displayed in Tables 1-4. The results from Tables 1-3 which are BVPs of order \(4 \), \(6 \) and \(8 \) respectively are highly accurate, while the result in Table 4 which is a BVP of order \(10 \) is fairly accurate when compared to the other problems. In general, our proposed collocation method provides an accurate numerical method for approximating higher order BVPs. However, we observed from Tables 1-4 that the accuracy of the numerical results increased at the boundaries as the order and number of boundary conditions also increased. On the other hand, the accuracy at the interior mesh points were less accurate to that at the boundary points as the order and number of boundary conditions increased. This may be as a result of the increase in the number of boundary conditions and a corresponding decrease in the number of collocation points. This may be the reason for the poor accuracy of Example 4 which has only one collocation point and \(10 \) boundary conditions. To develop a collocation method that may handle such higher order BVPs, it is advisable to consider many basis terms in order to get higher order polynomials so as to have many collocation points which may be equal or more than the equations obtained at the boundaries.