Abstract
In this paper, an effective technique for solving differential equations with initial conditions is presented. The method is based on the use of the Legendre matrix of derivatives defined on the close interval [-1,1]. Properties of the polynomial are outlined and further used to obtain the matrix of derivative which was used in transforming the differential equation into systems of linear and nonlinear algebraic equations. The systems of these algebraic equations were then solved using Gaussian elimination method to determine the unknown parameters required for approximating the solution of the differential equation. The advantage of this technique over other methods is that, it has less computational manipulations and complexities and also its availability for application on both linear and nonlinear second-order initial value problems is impressive. Other advantage of the algorithm is that high accurate approximate solutions are achieved by using a greater number of terms of the Legendre polynomial and once the operational matrix is obtained, it can be used to solve differential equations of higher order by introducing just a little manipulation on the operational matrix. Some existing sample problems from literature were solved and the results were compared to show the validity, simplicity and applicability of the proposed method. The results obtained validate the simplicity and applicability of the method and it also reveals that the method perform better than most existing methods.
Keywords
Legendre Polynomials, Matrix Calculus, Differential Equations
1. Introduction
The primary use of differential equations in general is to model motion, which is commonly called growth in economics. Specifically, a differential equation expresses the rate of change of the current state as a function of the current state.
In economics, differential calculus is used to compute marginal cost, marginal revenue, maxima and minima elasticity, partial elasticity and also enabling economists to predict maximum profit (or) minimum loss in a specific condition; one can also think of a change in general price level with respect to time as inflation. Second-order derivative with respect to time shows the rate of change of inflation, how inflation changes over time. Similarly, differentiating capital with respect to time shows investment.
Most ordinary differential equations arising in real-life applications cannot be solved exactly. These ordinary differential equations can be analyzed qualitatively. However, qualitative analysis may not be able to give accurate answers. A numerical method can be used to get an accurate approximate solution to a differential equation.
Motivated by these advantages, we will use Legendre operational matrix of derivatives through collocation method to approximate the solution of general second order differential equations with initial conditions.
The general second order differential equation is given as follows:
where
and
are functions of
. Conventionally, (
1) can be solved using different methods such as the method of (educated) guess, the method of variation of parameters and it can also be solved by reducing it to a system of first order differential equations, and then any method of solving first order differential equations can then be applied to solve it. The setbacks of this technique were reported in (
[2] | Awoyemi, D. O. (2001). A New Sixth-Order Algorithm for General Second Order Ordinary Differential Equation. International Journal of Computational Mathematics, 77: 117-124. |
[5] | Adesanya, A. O., Anake, T. A., Bishop, S. A. and Osilagun, J. A. (2009). Two Steps Block Method for the Solution of General Second Order Initial Value Problems of Ordinary Differential Equation. Journal of Natural Sciences, Engineering and Technology, 8(1): 25-33. |
[12] | Yunika Lestaria Ningsih and Anggria Septiani Mulbasari (2019): Exploring Students’ Difficulties in Solving Nonhomogeneous Second Order Ordinary Differential Equations with Initial Value Problems, Al-Jabar Jurnal Pendidikan Matematika, Vol. 10, No. 2, 2019, PP. 233–242. |
[2, 5, 12]
). The method of collocation and interpolation of the power series and other polynomial basis functions were used to generate approximate solution and these techniques were reported by many scholars among them are (
[1] | N. Z. Mukhtar, Z. Abdul Majid, F. Ismail and M. Suleiman (2012): Numerical Solution for Solving Second Order Ordinary Differential Equations Using Block Method. International Journal of Modern Physics Conference, Vol. 9. pp 560–565. |
[4] | Fatunla, S. O. (1995). A Class of Block Method for Second Order Initial Value Problems. International Journal of Computer Mathematics, 55(1&2): 119-133. |
[6] | Okunuga, S. A and Onumanyi, P. (1985). An Accurate Collocation Method for Solving Ordinary Differential Equations American Museum of Science and Energy Review, 4(4): 45-48. |
[9] | Abdulnastr Isah and Chang Phang (2016): Operational matrix based on Genocchi polynomials for solution of delay differential equations. Ain Shams Engineering journal, 9(4), PP. 2123-2128. |
[11] | E. Tohidia, A. H. Bhrawy, K. Erfani (2013): A collocation method based on Bernoulli operational matrix for numerical solution of generalized pantograph equation. Applied Mathematical Modeling 37, PP. 4283–4294. |
[14] | Zill, D. G. and Warren, W. S. (2013). Differential Equations with Boundary- Value Problems. Cengage Learning, books/Cole, eight editions. 664pp. |
[1, 4, 6, 9, 11, 14]
) to mention a few. Their approaches and techniques generated implicit continuous linear multistep methods which require separate predictors for implementation; this method is called the predictor-corrector method. There are major setbacks of these methods, numerical techniques such the block linear multistep methods lately introduced by researchers such as (
[2] | Awoyemi, D. O. (2001). A New Sixth-Order Algorithm for General Second Order Ordinary Differential Equation. International Journal of Computational Mathematics, 77: 117-124. |
[3] | Awoyemi, D. O and Kayode, S. J. (2005). An Implicit Collocation Method for Direct Solution of Second Order ODEs. Journal of Nigeria Association of Mathematical Physics, 24: 70-78. |
[4] | Fatunla, S. O. (1995). A Class of Block Method for Second Order Initial Value Problems. International Journal of Computer Mathematics, 55(1&2): 119-133. |
[5] | Adesanya, A. O., Anake, T. A., Bishop, S. A. and Osilagun, J. A. (2009). Two Steps Block Method for the Solution of General Second Order Initial Value Problems of Ordinary Differential Equation. Journal of Natural Sciences, Engineering and Technology, 8(1): 25-33. |
[7] | Jator, S. N. and Li, J. (2009). A Self-Starting Linear Multistep Method for a Direct Solution of the General Second-Order Initial Value Problem. International Journal of Computer Mathematics, 86(5): 827-836. |
[8] | Adesanya, A. O., Anake, T. A. and Udoh, M. O. (2008). Improved Continuous Method for Direct Solution of General Second Order Ordinary Differential Equations. Journal of the Nigeria Association of Mathematical Physics, 13: 59-62. |
[10] | M. Sezer, (1996): A method for the approximate solution of the second order linear differential equations in terms of Taylor polynomials, Int. J. Math. Educ. Sci. Technol. 27, PP. 821–834. |
[13] | A. O. Adesanya, T. A. Anake, S. A. Bishop and J. A. Osilagu (2009): Two Steps Block Method for the Solution of General Second Order Initial Value Problems of Ordinary Differential Equation. Journal of Natural Sciences, Engineering and Technology, 8(1), 25-33. |
[2-5, 7, 8, 10 13]
) have shown allot of advantages over the predictor-corrector method. However, the advantages are compensated by tedious computational work and the use of more advance software to enable it handle the work.
In this paper, a collocation technique based on the Legendre operational matrix of derivatives for second order differential equations is proposed. The advantages of this technique over other methods is that it has less computational manipulations and complexities because it only involves operational matrix of derivatives and its transpose and thus, reduces the time involve in the derivation of the schemes, analysis and implementation as is in the case with linear multistep methods.
1.1. Legendre Polynomials
The Legendre polynomials exhibit simple and convenient form for calculation, compared with other orthogonal polynomials (Chebyshev polynomials, shifted Legendre polynomials...). They are well known family of orthogonal polynomials on the interval. They are solutions to the popular Legendre differential equation given as follows;
(2)
They are widely used because of their smooth properties in the approximation of functions
[15] | Higham, N. J. (2004). The Numerical Stability of Barycentric Lagrange Interpolation. SIMA Journal of Numerical Analysis, 24: 547–556. |
[15]
. Equation (
2) can be solved by series solution method (See
[14] | Zill, D. G. and Warren, W. S. (2013). Differential Equations with Boundary- Value Problems. Cengage Learning, books/Cole, eight editions. 664pp. |
[14]
). The first few Legendre polynomials using the Rodriquez formula are:
,,,,,,...
The recurrence relation for Legendre polynomial is given by
The Rodrigues formula for the Legendre polynomial is
,
Properties of Legendre polynomials
The following properties hold for Legendre polynomials are
i.
ii.
iii. odd
iv. even
Thus, the condition for orthogonality is:
This implies that any function can be approximated by Legendre polynomials as follows:
where
1.2. Preliminaries
We introduce the Legendre vector in the form, then the derivative of the vector, can be expressed in matrix form by
Whereand
Where the matrix is an matrix calculus, similarly, the derivative of can be obtained from the following relation;
(5)
In this paper, we shall use the collocation method based on Legendre matrix calculus to solve numerically the general second order differential equation.
2. Derivation of the Method
We now derive the algorithm for solving (1.1), that is
Let us suppose the solution of (
1) is to be approximated by the first
terms of the Legendre polynomial; thus, we can write (
3) as
where the Legendre coefficients vector and the Legendre vector are given by
(7)
The second derivative of can be expressed as follows
(8)
where
is the matrix calculus defined in (
4) above. Now substituting
and
into (
1), we have
(9)
Finally, to find the approximate solution, we collocate the transformed equation (
9) at different collocation points
, to obtain
nonlinear algebraic equations using
(10)
These equations together with the initial conditions give nonlinear systems of algebraic equations which can be solved using Newton’s iterative method for the unknown constants. Finally, given in can be calculated.
3. Numerical Illustrations
The following numerical experiments are performed with the aid of MAPLE 18 and Scientific Workplace software packages in order to further affirm the applicability, simplicity and accuracy of the proposed method.
Example 1
Let us first consider the second order pantograph equation solved by
[9] | Abdulnastr Isah and Chang Phang (2016): Operational matrix based on Genocchi polynomials for solution of delay differential equations. Ain Shams Engineering journal, 9(4), PP. 2123-2128. |
[9]
given by
Subject to the initial conditions, the exact solution to this problem is known to be.
Applying our technique with, we have the following expression;
Using the initial conditions, we have respectively,
Collocating () at and evaluating at, we have the following algebraic systems of equations
Solving for the unknown coefficients, we have
Substituting these approximate values into, we get the approximate solution to the problem as
The approximate solution is the same as the exact solution showing the accuracy of the method.
Example 2
Consider the second order differential equation solved by
[5] | Adesanya, A. O., Anake, T. A., Bishop, S. A. and Osilagun, J. A. (2009). Two Steps Block Method for the Solution of General Second Order Initial Value Problems of Ordinary Differential Equation. Journal of Natural Sciences, Engineering and Technology, 8(1): 25-33. |
[5]
given by
Subject to the initial conditions, the exact solution to this problem is known to be.
Applying our technique with we have the following expression:
Using the initial conditions, we have respectively,
Collocating () at and evaluating at, we have the following Values of the unknown coefficients
Substituting these approximate values into, we get the approximate solution to the problem as
Table 1. Showing the numerical comparison of example 2 for .
| Exact | Approximate solution by LOM | Absolute error by LOM | Absolute error by 5] |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
xample 3
Consider the following nonlinear second order boundary value problem solved in
[16] | W. M. Abd-Elhameed, Y. H. Youssri and E. H. Doha (2015): A novel operational matrix method based on shifted Legendre polynomials for solving second-order boundary value problems involving singular, singularly perturbed and Bratu-type equations, Math Sci (2015) 9: 93–102. |
[16]
given as:
subject to the initial conditions, the exact solution to this problem is known to be.
Applying our technique with we have the following expression;
Using the initial conditions, we have respectively,
Collocating () at and evaluating at, we have the following Values of the unknown coefficients
Substituting these approximate values into, we get the approximate solution to the problem as
Table 2. Showing the numerical comparison of example for .
| Exact | Approximate solution by LOM | Absolute error LOM |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
Example 4
Consider the second order differential equation solved by
[5] | Adesanya, A. O., Anake, T. A., Bishop, S. A. and Osilagun, J. A. (2009). Two Steps Block Method for the Solution of General Second Order Initial Value Problems of Ordinary Differential Equation. Journal of Natural Sciences, Engineering and Technology, 8(1): 25-33. |
[5]
given by
Subject to the initial conditions, the exact solution to this problem is known to be.
Applying our technique with, we have the following expression;
Using the initial conditions, we have respectively,
Collocating () at and evaluating at, we have the following values of the unknown coefficients
Substituting these approximate values into, we get the approximate solution to the problem as
Table 3. Numerical comparison of example 4 for
| Exact | Approximate solution by LOM | Absolute error LOM | Absolute error by 5] |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
4. Conclusion
In this work, a collocation technique based on the Legendre matrix calculus for solving general second order linear and nonlinear differential equations was presented. The derivation of this algorithm was essentially based on choosing a set of Legendre polynomials. The advantage of this technique over other methods is that it has less computational manipulations and complexities and also its availability for application on both linear and nonlinear second-order initial value problems. Other importance of the algorithm is that high accurate approximate solutions are achieved by using a few numbers of terms of the Legendre polynomial which result to simple matrix calculus and its transpose and thus, reduces the time involve in the derivation of the schemes to be used for implementation as compared to the case of linear multistep methods, more importantly the same matrix can be used to solve higher order differential equations by introducing just a little manipulation io it and also reduces the computational run time. The comparison of the results shows that the method is a very simple and efficient mathematical tool for solving initial value problems of differential equations.
Acknowledgments
The author expresses their sincere thanks to the referees for the careful and details reading of their earlier version of the paper and for the very helpful suggestions.
Author Contributions
Nathaniel Mahwash Kamoh: Conceptualization, Methodology, Project administration, Software, Writing – original draft, Writing – review & editing
Bwebum Cleofas Dang: Conceptualization, Methodology, Writing – original draft
Comfort Soomiyol Mrumun: Methodology, Project administration, Writing – original draft, Writing – review & editing
Conflicts of Interest
The authors declare no conflicts of interest.
References
[1] |
N. Z. Mukhtar, Z. Abdul Majid, F. Ismail and M. Suleiman (2012): Numerical Solution for Solving Second Order Ordinary Differential Equations Using Block Method. International Journal of Modern Physics Conference, Vol. 9. pp 560–565.
|
[2] |
Awoyemi, D. O. (2001). A New Sixth-Order Algorithm for General Second Order Ordinary Differential Equation. International Journal of Computational Mathematics, 77: 117-124.
|
[3] |
Awoyemi, D. O and Kayode, S. J. (2005). An Implicit Collocation Method for Direct Solution of Second Order ODEs. Journal of Nigeria Association of Mathematical Physics, 24: 70-78.
|
[4] |
Fatunla, S. O. (1995). A Class of Block Method for Second Order Initial Value Problems. International Journal of Computer Mathematics, 55(1&2): 119-133.
|
[5] |
Adesanya, A. O., Anake, T. A., Bishop, S. A. and Osilagun, J. A. (2009). Two Steps Block Method for the Solution of General Second Order Initial Value Problems of Ordinary Differential Equation. Journal of Natural Sciences, Engineering and Technology, 8(1): 25-33.
|
[6] |
Okunuga, S. A and Onumanyi, P. (1985). An Accurate Collocation Method for Solving Ordinary Differential Equations American Museum of Science and Energy Review, 4(4): 45-48.
|
[7] |
Jator, S. N. and Li, J. (2009). A Self-Starting Linear Multistep Method for a Direct Solution of the General Second-Order Initial Value Problem. International Journal of Computer Mathematics, 86(5): 827-836.
|
[8] |
Adesanya, A. O., Anake, T. A. and Udoh, M. O. (2008). Improved Continuous Method for Direct Solution of General Second Order Ordinary Differential Equations. Journal of the Nigeria Association of Mathematical Physics, 13: 59-62.
|
[9] |
Abdulnastr Isah and Chang Phang (2016): Operational matrix based on Genocchi polynomials for solution of delay differential equations. Ain Shams Engineering journal, 9(4), PP. 2123-2128.
|
[10] |
M. Sezer, (1996): A method for the approximate solution of the second order linear differential equations in terms of Taylor polynomials, Int. J. Math. Educ. Sci. Technol. 27, PP. 821–834.
|
[11] |
E. Tohidia, A. H. Bhrawy, K. Erfani (2013): A collocation method based on Bernoulli operational matrix for numerical solution of generalized pantograph equation. Applied Mathematical Modeling 37, PP. 4283–4294.
|
[12] |
Yunika Lestaria Ningsih and Anggria Septiani Mulbasari (2019): Exploring Students’ Difficulties in Solving Nonhomogeneous Second Order Ordinary Differential Equations with Initial Value Problems, Al-Jabar Jurnal Pendidikan Matematika, Vol. 10, No. 2, 2019, PP. 233–242.
|
[13] |
A. O. Adesanya, T. A. Anake, S. A. Bishop and J. A. Osilagu (2009): Two Steps Block Method for the Solution of General Second Order Initial Value Problems of Ordinary Differential Equation. Journal of Natural Sciences, Engineering and Technology, 8(1), 25-33.
|
[14] |
Zill, D. G. and Warren, W. S. (2013). Differential Equations with Boundary- Value Problems. Cengage Learning, books/Cole, eight editions. 664pp.
|
[15] |
Higham, N. J. (2004). The Numerical Stability of Barycentric Lagrange Interpolation. SIMA Journal of Numerical Analysis, 24: 547–556.
|
[16] |
W. M. Abd-Elhameed, Y. H. Youssri and E. H. Doha (2015): A novel operational matrix method based on shifted Legendre polynomials for solving second-order boundary value problems involving singular, singularly perturbed and Bratu-type equations, Math Sci (2015) 9: 93–102.
|
Cite This Article
-
ACS Style
Kamoh, N. M.; Dang, B. C.; Mrumun, C. S. An Effective Matrix Technique for the Numerical Solution of Second Order Differential Equations. Appl. Comput. Math. 2024, 13(4), 111-117. doi: 10.11648/j.acm.20241304.15
Copy
|
Download
AMA Style
Kamoh NM, Dang BC, Mrumun CS. An Effective Matrix Technique for the Numerical Solution of Second Order Differential Equations. Appl Comput Math. 2024;13(4):111-117. doi: 10.11648/j.acm.20241304.15
Copy
|
Download
-
@article{10.11648/j.acm.20241304.15,
author = {Nathaniel Mahwash Kamoh and Bwebum Cleofas Dang and Comfort Soomiyol Mrumun},
title = {An Effective Matrix Technique for the Numerical Solution of Second Order Differential Equations
},
journal = {Applied and Computational Mathematics},
volume = {13},
number = {4},
pages = {111-117},
doi = {10.11648/j.acm.20241304.15},
url = {https://doi.org/10.11648/j.acm.20241304.15},
eprint = {https://article.sciencepublishinggroup.com/pdf/10.11648.j.acm.20241304.15},
abstract = {In this paper, an effective technique for solving differential equations with initial conditions is presented. The method is based on the use of the Legendre matrix of derivatives defined on the close interval [-1,1]. Properties of the polynomial are outlined and further used to obtain the matrix of derivative which was used in transforming the differential equation into systems of linear and nonlinear algebraic equations. The systems of these algebraic equations were then solved using Gaussian elimination method to determine the unknown parameters required for approximating the solution of the differential equation. The advantage of this technique over other methods is that, it has less computational manipulations and complexities and also its availability for application on both linear and nonlinear second-order initial value problems is impressive. Other advantage of the algorithm is that high accurate approximate solutions are achieved by using a greater number of terms of the Legendre polynomial and once the operational matrix is obtained, it can be used to solve differential equations of higher order by introducing just a little manipulation on the operational matrix. Some existing sample problems from literature were solved and the results were compared to show the validity, simplicity and applicability of the proposed method. The results obtained validate the simplicity and applicability of the method and it also reveals that the method perform better than most existing methods.
},
year = {2024}
}
Copy
|
Download
-
TY - JOUR
T1 - An Effective Matrix Technique for the Numerical Solution of Second Order Differential Equations
AU - Nathaniel Mahwash Kamoh
AU - Bwebum Cleofas Dang
AU - Comfort Soomiyol Mrumun
Y1 - 2024/08/15
PY - 2024
N1 - https://doi.org/10.11648/j.acm.20241304.15
DO - 10.11648/j.acm.20241304.15
T2 - Applied and Computational Mathematics
JF - Applied and Computational Mathematics
JO - Applied and Computational Mathematics
SP - 111
EP - 117
PB - Science Publishing Group
SN - 2328-5613
UR - https://doi.org/10.11648/j.acm.20241304.15
AB - In this paper, an effective technique for solving differential equations with initial conditions is presented. The method is based on the use of the Legendre matrix of derivatives defined on the close interval [-1,1]. Properties of the polynomial are outlined and further used to obtain the matrix of derivative which was used in transforming the differential equation into systems of linear and nonlinear algebraic equations. The systems of these algebraic equations were then solved using Gaussian elimination method to determine the unknown parameters required for approximating the solution of the differential equation. The advantage of this technique over other methods is that, it has less computational manipulations and complexities and also its availability for application on both linear and nonlinear second-order initial value problems is impressive. Other advantage of the algorithm is that high accurate approximate solutions are achieved by using a greater number of terms of the Legendre polynomial and once the operational matrix is obtained, it can be used to solve differential equations of higher order by introducing just a little manipulation on the operational matrix. Some existing sample problems from literature were solved and the results were compared to show the validity, simplicity and applicability of the proposed method. The results obtained validate the simplicity and applicability of the method and it also reveals that the method perform better than most existing methods.
VL - 13
IS - 4
ER -
Copy
|
Download