Next Article in Journal
An Adapted Multi-Objective Genetic Algorithm for Healthcare Supplier Selection Decision
Next Article in Special Issue
Derivation of Three-Derivative Two-Step Runge–Kutta Methods
Previous Article in Journal
Geodesics and Translation Curves in Sol04
Previous Article in Special Issue
Dynamics and Global Bifurcations in Two Symmetrically Coupled Non-Invertible Maps
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Solving SIVPs of Lane–Emden–Fowler Type Using a Pair of Optimized Nyström Methods with a Variable Step Size

by
Mufutau Ajani Rufai
1,* and
Higinio Ramos
2,3
1
Department of Mathematics, University of Bari Aldo Moro, 70125 Bari, Italy
2
Scientific Computing Group, Universidad de Salamanca, Plaza de la Merced, 37008 Salamanca, Spain
3
Escuela Politécnica Superior de Zamora, Campus Viriato, 49022 Zamora, Spain
*
Author to whom correspondence should be addressed.
Mathematics 2023, 11(6), 1535; https://doi.org/10.3390/math11061535
Submission received: 10 February 2023 / Revised: 15 March 2023 / Accepted: 20 March 2023 / Published: 22 March 2023
(This article belongs to the Special Issue Numerical Methods for Solving Differential Problems-II)

Abstract

:
This research article introduces an efficient method for integrating Lane–Emden–Fowler equations of second-order singular initial value problems (SIVPs) using a pair of hybrid block methods with a variable step-size mode. The method pairs an optimized Nyström technique with a set of formulas applied at the initial step to circumvent the singularity at the beginning of the interval. The variable step-size formulation is implemented using an embedded-type approach, resulting in an efficient technique that outperforms its counterpart methods that used fixed step-size implementation. The numerical simulations confirm the better performance of the variable step-size implementation.

1. Introduction

The goal of this research paper was to find a reliable numerical approach for solving second-order SIVPs Lane–Emden–Fowler equations of the form:
q ( x ) + λ x q ( x ) = w ( x , q ( x ) ) , q ( x 0 ) = q 0 , q ( x 0 ) = q 0 , x 0 = 0 x x N ,
where λ 1 , q 0 , q 0 are real numbers; x 0 and x N represent the initial and final points of the integration interval, respectively; and w ( x , q ( x ) ) is a continuous real function. We note that the necessary conditions for the existence and uniqueness of the solution to problem (1) were established in [1,2].
Equations of the form (1) are commonly encountered in many fields, such as astrophysics, mathematical modeling, celestial mechanics, physical and social sciences, and engineering. These types of equations have also been used to model various systems, including chemical reactors, thermal behavior of gas spheres, reaction–diffusion processes in porous catalysts, stellar structure, isothermal gas spheres, and thermionic current theory (as cited in sources such as [3,4,5,6,7], etc.).
The problem under consideration becomes one of the most complex problems to integrate analytically, due to the nonlinear properties of the second order SIVP and the singularity at x = 0 . Therefore, numerical methods are essential for providing an approximate and reasonable solution.
Many scholars have extensively investigated the model in (1) and similar problems and have developed various methods for solving them. These methods include the implicit Euler method, various types of spline methods, the homotopy-perturbation technique, the variational iteration techniques, the Adomian decomposition method, a Padè approximation method, various types of collocation methods, finite difference methods, the heuristics approach, the differential transform method, the pseudospectral method, Taylor wavelet techniques, hybrid block methods, Nyström methods, the Haar wavelet resolution technique, iterative methods, spectral methods, Jacobi–Gauss collocation techniques, or asymptotic numerical strategies (see [8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]).
In this study, we aimed to obtain a variable step-size formulation of a pair of optimized Nyström methods (PONMs) developed in [14] to further improve their performance. The main formulas of the existing PONM are given as follows:
q n + 1 = q n + h q n + 1 360 h 2 18 w n + 7 21 + 7 w n + r + 64 w n + s 7 21 7 w n + t , q n + 1 = q n + h 1 20 w n + 49 180 w n + r + 16 45 w n + s + 49 180 w n + t + 1 20 w n + 1 ,
while the additional formulas to avoid the singularity of the existing PONM are given by
q 1 = q 0 + h q 0 + h 2 0.2009319137389590 w r ¯ + 0.2292411063595862 w s ¯ + 0.0698269799014541 w t ¯ , q 1 = q 0 + h 0.2204622111767684 w r ¯ + 0.3881934688431719 w s ¯ + 0.3288443199800597 w t ¯ + 0.0625 w 1 ,
with
r = 7 21 14 , s = 1 2 , t = 7 + 21 14 , r ¯ 0.0885879595127039 ,
s ¯ 0.4094668644407347 , t ¯ 0.7876594617608470 .
Note that the formulas in ( 3 ) do not use the value w 0 , thus obtaining an approximate value for q ( x 1 ) . After the formulas in ( 3 ) and the others needed for the block formulation are applied in the first subinterval, the formulas in ( 2 ) and the corresponding ones to form the main block method are applied in the subsequent subintervals. The reader is referred to Equations ( 10 ) and ( 14 ) in reference [14] to see the remaining formulas, including the complete description and theoretical analysis of the PONM method.
We remark that the main novelty of this study is a reasonable error estimation and the variable step-size implementation using embedded type approaches, which allowed us to very efficiently solve problems of the form in (1) when large integration intervals are considered.

2. Error Estimation and Mesh Selection of the PONMs

Using a fixed step-size scheme to solve a SIVP may be unreasonable because the solution rapidly changes within the integration interval. To improve efficiency, the PONM should be implemented with variable step sizes. This can be achieved by using a lower-order technique (LOT) to compute the local error at the end-point on each subinterval [ x n , x n + 1 ] . In this article, an embedding approach is utilized to formulate the suggested technique in variable step-size mode; this means that in addition to the approximation provided by q n + 1 , an additional LOT approximation given by q n + 1 * is still needed. The difference between q n + 1 and q n + 1 * enables us to estimate the local error. A fourth-order multistep formula, given by the following Equation (4),
q n + 1 * = 1 6 3 21 q n + r + 1 6 21 + 3 q n + t 1 42 h 2 21 5 w n + r 8 w n + s 21 + 5 w n + t ,
was used to estimate the local error at the end point, with a local truncation error of h 6 q ( 6 ) x n 987840 + O h 7 .
By following a similar strategy as the one reported in [16], the steps listed below are taken in order to increase the efficiency of the PONMs:
  • Equations (2) and (3) and those in Equations (10) and (14) from [14] are used simultaneously at x n + 1 , using the known solution at x n .
  • We use the multistep formula in (4) to find a second approximation to the solution of the problem under consideration at the grid point x n + 1 .
  • We estimate the local error using the following formula
    E S T M = q n + 1 q n + 1 * ,
    where q n + 1 * and q n + 1 are the values obtained by the fourth-order multistep formula in (4) and the PONM in (2) and (3) together with Equations ( 10 ) and ( 14 ) from [14], respectively.
    Given a user-defined tolerance, ABTOL, we proceed as follows:
  • If ESTM ≤ ABTOL, the results are accepted, and the step size is increased to h n e w = 2 × h o l d .
  • If ESTM > ABTOL, the results are rejected, and the calculations are repeated with a new step size given by
    h n e w = μ × h o l d A B T O L E S T M 1 / ( l o + 2 ) ,
    where 0 < μ < 1 is an adjustment factor to prevent failed steps, and l o = 4 is the order of the LOT. For more details about the choice of the variable step size strategy in (5), see [21,22].

3. Computational Details

The PONM is executed utilizing the error estimation and the mesh selection strategy presented in Section 2. The proposed PONM is written as W ( u ) = 0 , and the unknowns are expressed as
Q ˜ = q r ¯ , q s ¯ , q t ¯ , q r ¯ , q s ¯ , q t ¯ q i i = 1 , 2 , , N q i i = 1 , , N q i + r , q i + s , q i + t , q i + r , q i + s , q i + t i = 1 , 2 , , N 1 .
We use the modified Newton’s method (MNM) to solve the nonlinear systems, with a stopping criterion of 100 maximum iterations and an error from 2 subsequent estimates provided by Q ˜ i + 1 Q ˜ i 10 16 . We write MNM as
Q ˜ i + 1 = Q ˜ i J 0 1 W i ,
where Q ˜ i + 1 is the updated estimate of the solution at iteration i + 1 , Q ˜ i is the current estimate of the solution at iteration i, J 0 is the frozen Jacobian matrix of the function W at the current estimate Q ˜ i , and W i is the vector of residuals at the current estimate Q ˜ i . The following initializing values were used with MNM for each iteration:
q j = q 0 + ( j h 0 ) q 0 , q j = q 0 , j = r ¯ , s ¯ , t ¯ , 1 , q n + j = q n + ( j h ) q n + ( j h ) 2 2 w n , q n + j = q n + ( j h ) w n , n = 1 , 2 , , N 1 , j = r , s , t , 1 .

4. Numerical Experiments

In this part, we give the numerical results for the proposed PONM on different SIVPs of the form (1). We point out that the estimation and mesh selection technique described in Section 2, as well as the PONM method given in (2) and (3) and the remaining formulas presented in Equations (10) and (14) in [14], play a crucial role in determining the efficiency of the proposed method. The PONM was implemented in Mathematica 11.0 by using the constructed codes. We utilized a PC with an i7 processor, 16 GB of RAM, and the 64-bit Windows 10 operating system. To measure the accuracy of our results, we use the Maximum Absolute Error (MAE) formula, which is defined as:
M A E = max j = 0 , , N q ( x j ) q j ,
In the above equation, q ( x j ) represents the exact solution, and q j represents the computed result at each point x j on the discrete grid.
In the tables and figures, the following acronyms are used:
  • PONM: The pair optimized hybrid Nyström method whose main formulas are given in (2) and (3).
  • HPM: The homotopy perturbation method in [23].
  • WNT: The wavelet based neural technique in [25].
  • NM: The Nyström method in [26].
  • BVM: The boundary value method in [27]
  • NS: Number of steps.
  • TFE: Total number of function evaluations.
  • ABTOL: Absolute tolerance.
  • CPU: Computational cost in seconds.

4.1. Problem One

We consider the SIVP from [27],
q ( x ) + 2 x q ( x ) + q ( x ) 5 = 0 , q ( 0 ) = 1 , q ( 0 ) = 0 , x [ x 0 , x N ] ,
with exact solution q ( x ) = 1 + x 2 3 1 2 .
The results in Table 1 and Table 2 demonstrate the accuracy of the PONM in terms of MAE. Additionally, the comparison of the PONM and the exact solutions for (6) with ABTOL = 10 6 , h i n i = 10 3 , x [ 0 , 500 ] in Figure 1, shows that the PONM technique in variable step-size implementation strongly fits the analytical solution.

4.2. Problem Two

We consider
q ( x ) = 2 x q ( x ) 9 cos 3 x 6 x sin 3 x , q ( 0 ) = 2 , q ( 0 ) = 0 , x [ x 0 , x N ] ,
with exact solution q ( x ) = 1 + cos 3 x .
From the data reported in Table 3 and Table 4, the proposed PONM outperforms the BVM and NM methods in terms of MAE, TFE, and CPU. Additionally, the comparison of PONM and the exact solution for (7) with ABTOL = 10 7 , h i n i = 10 2 , x [ 0 , 80 π ] in Figure 2, shows that the PONM method with a variable step size fits the exact solution.

4.3. Problem Three

For the last problem in this research, we applied the proposed method to the following system of SIVP from [26],
q 1 ( x ) + 1 x q 1 ( x ) q 2 3 ( x ) q 1 2 ( x ) + 1 = 0 , q 2 ( x ) + 3 x q 2 ( x ) q 2 5 ( x ) q 1 2 ( x ) + 3 = 0 , x [ x 0 , x N ] ,
with initial values
q 1 ( 0 ) = 1 , q 1 ( 0 ) = 1 , q 2 ( 0 ) = 0 , q 2 ( 0 ) = 0 ,
and the true solution from [26] is
q 1 ( x ) = x 2 + 1 , q 2 ( x ) = 1 x 2 + 1 .
The suggested PONM surpasses the NM method in terms of MAE, TFE, and CPU, according to the data in Table 5. Furthermore, the comparison of PONM and the exact solution for (8) with ABTOL = 10 10 , h i n i = 10 3 , x [ 0 , 200 ] , is shown in Figure 3; one can see that the PONM fits the exact solution.

5. Conclusions

In this paper, we introduced and applied a variable step-size version of a pair of optimized Nyström methods (PONM) to give numerical solutions to Lane–Emden–Fowler equations of second-order singular initial value problems. The error estimation and mesh selection of the PONM were discussed. Two scalar examples and a system of numerical experiments revealed that the variable step-size formulation using an embedded-type approach results in an efficient technique that outperforms its counterpart methods that use fixed step-size implementation. The type of strategy presented in this paper could be considered for solving time-dependent partial differential equations and fractional-order differential equations of the Lane–Emden–Fowler type in future research work.

Author Contributions

Conceptualization, M.A.R. and H.R.; Methodology, M.A.R.; Software, M.A.R.; Validation, H.R.; Formal analysis, M.A.R. and H.R.; Writing—original draft, M.A.R.; Writing—review & editing, M.A.R. and H.R.; Visualization, H.R.; Supervision, H.R.; Funding acquisition, H.R. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare that there is no conflict of interest.

References

  1. Agarwal, R.P.; O’Regan, D. Second order initial value problems of Lane-Emden type. Appl. Math. Lett. 2007, 20, 1198–1205. [Google Scholar] [CrossRef] [Green Version]
  2. Biles, D.C.; Robinson, M.P.; Spraker, J.S. A generalization of the Lane-Emden equation. J. Math. Anal. Appl. 2002, 273, 654–666. [Google Scholar] [CrossRef]
  3. Chandrasekhar, S. Introduction to Study of Stellar Structure; Dover: New York, NY, USA, 1967. [Google Scholar]
  4. Rufai, M.A.; Ramos, H. Numerical integration of third-order singular boundary-value problems of Emden–Fowler type using hybrid block techniques. Commun. Nonlinear Sci. Numer. Simul. 2022, 105, 106069. [Google Scholar] [CrossRef]
  5. Rufai, M.A.; Ramos, H. Solving third-order Lane–Emden–Fowler equations using a variable step-size formulation of a pair of block methods. J. Comput. Appl. Math. 2023, 420, 114776. [Google Scholar] [CrossRef]
  6. Rufai, M.A.; Ramos, H. Numerical Solution for Singular Boundary Value Problems Using a Pair of Hybrid Nyström Techniques. Axioms 2021, 10, 202. [Google Scholar] [CrossRef]
  7. Shawagfeh, N.T. Nonperturbative approximate solution for Lane-Emden equation. J. Math. Phys. 1993, 34, 4364–4369. [Google Scholar] [CrossRef]
  8. Koch, O.; Kofler, P.; Weinmüller, E.B. The implicit Euler method for the numerical solution of singular initial value problems. Appl. Numer. Math. 2000, 34, 231–252. [Google Scholar] [CrossRef]
  9. Chowdhury, M.S.H.; Hashim, I. Solution of a class of singular second-order IVPs by homotopy-perturbation method. Phys. Lett. A 2007, 365, 439–447. [Google Scholar] [CrossRef]
  10. Mehrpouya, M.A. An efficient pseudospectral method for numerical solution of nonlinear singular initial and boundary value problems arising in astrophysics. Math. Methods Appl. Sci. 2016, 39, 3204–3214. [Google Scholar] [CrossRef]
  11. Bhrawy, A.H.; Alofi, A.S. A Jacobi-Gauss collocation method for solving nonlinear Lane-Emden type equations. Commun. Nonlinear Sci. Numer. Simul. 2012, 17, 62–70. [Google Scholar] [CrossRef]
  12. Swati; Singh, K.; Verma, A.K.; Singh, M. Higher order Emden–Fowler type equations via uniform Haar Wavelet resolution technique. J. Comput. Appl. Math. 2020, 376, 112836. [Google Scholar] [CrossRef]
  13. Sabir, Z.; Raja, M.A.Z.; Umar, M. Design of neuro-swarming-based heuristics to solve the third-order nonlinear multi-singular Emden–Fowler equation. Eur. Phys. J. Plus 2020, 135, 410. [Google Scholar] [CrossRef]
  14. Rufai, M.A.; Ramos, H. Numerical solution of second-order singular problems arising in astrophysics by combining a pair of one-step hybrid block Nyström methods. Astrophys. Space Sci. 2020, 365, 96. [Google Scholar] [CrossRef]
  15. Singh, R.; Kumar, J. The Adomian decomposition method with Green’s function for solving nonlinear singular boundary value problems. J. Appl. Math. Comput. 2014, 44, 397–416. [Google Scholar] [CrossRef]
  16. Rufai, M.A.; Ramos, H. A variable step-size fourth-derivative hybrid block strategy for integrating third-order IVPs, with applications. Int. J. Comput. Math. 2022, 99, 292–308. [Google Scholar] [CrossRef]
  17. Heydari, M.; Hosseini, S.M.; Loghmani, G.B. Numerical solution of singular IVPs of Lane-Emden type using integral operator and radial basis functions. Int. J. Ind. Math. 2012, 4, 135–146. [Google Scholar]
  18. Dong, Q.L. A new iterative method with alternated inertia for the split feasibility problem. J. Nonlinear Var. Anal. 2021, 5, 939–950. [Google Scholar]
  19. Zhang, J.; Shen, Y.; He, J. Some analytical methods for singular boundary value problem in a fractal space: A review. Appl. Comput. Math. 2019, 18, 225–235. [Google Scholar]
  20. Ascher, U.M.; Petzold, L.R. Computer Methods for Ordinary Differential Equations and Differential-Algebraic Equations; Society for Industrial and Applied Mathematics (SIAM): Philadelphia, PA, USA, 1998. [Google Scholar]
  21. Shampine, L.F.; Gordon, M.K. Computer Solutions of Ordinary Differential Equations: The Initial Value Problem; Freeman: San Francisco, CA, USA, 1975. [Google Scholar]
  22. Stoer, J.; Bulirsch, R. Introduction to Numerical Analysis; Springer: Berlin/Heidelberg, Germany, 2002. [Google Scholar]
  23. Yıldırım, A.; Özis, T. Solutions of singular IVPs of Lane-Emden type by homotopy perturbation method. Phys. Lett. A 2007, 369, 70–76. [Google Scholar] [CrossRef]
  24. Chawla, M.M.; Jain, M.K.; Subramanian, R. The application of explicit Nyström methods to singular second order differential equations. Comput. Math. Appl. 1990, 19, 47–51. [Google Scholar] [CrossRef] [Green Version]
  25. Rahimkhani, P.; Ordokhani, Y. Orthonormal Bernoulli wavelets neural network method and its application in astrophysics. Comp. Appl. Math. 2021, 40, 78. [Google Scholar] [CrossRef]
  26. Ramos, H.; Rufai, M.A. An adaptive pair of one-step hybrid block Nyström methods for singular initial-value problems of Lane–Emden–Fowler type. Math. Comput. Simul. 2022, 193, 497–508. [Google Scholar] [CrossRef]
  27. Wang, H.; Zhang, C. The adapted block boundary value methods for singular initial value problems. Calcolo 2018, 55, 22. [Google Scholar] [CrossRef]
Figure 1. Comparison of PONM and the exact solution for (6).
Figure 1. Comparison of PONM and the exact solution for (6).
Mathematics 11 01535 g001
Figure 2. Comparison of PONM and the exact solution for (7).
Figure 2. Comparison of PONM and the exact solution for (7).
Mathematics 11 01535 g002
Figure 3. Comparison of PONM and exact for (8).
Figure 3. Comparison of PONM and exact for (8).
Mathematics 11 01535 g003
Table 1. Comparison of the numerical results on Problem 6 with x [ 0 , 1 ] .
Table 1. Comparison of the numerical results on Problem 6 with x [ 0 , 1 ] .
ABTOLMethodNSMAE
10 4 PONM3 2.7228 × 10 7
HPM4 7.8000 × 10 4
WNT4 5.9000 × 10 6
10 6 PONM4 8.7887 × 10 9
HPM5 2.4000 × 10 6
WNT5 3.4000 × 10 7
Table 2. Numerical results for (6) with h 0 = 10 3 , x [ 0 , 500 ] .
Table 2. Numerical results for (6) with h 0 = 10 3 , x [ 0 , 500 ] .
ABTOLMethodNSTFECPUMAE
10 4 PONM57284 0.0956 5.6646 × 10 5
NM58289 0.1047 1.2890 × 10 5
10 6 NM61304 0.1132 6.5525 × 10 8
NM64319 0.1338 1.6384 × 10 7
10 8 PONM72359 0.1515 3.3750 × 10 10
NM80399 0.1867 2.2762 × 10 5
Table 3. Comparison of the numerical results for Problem 6 with x [ 0 , 2 π ] .
Table 3. Comparison of the numerical results for Problem 6 with x [ 0 , 2 π ] .
ABTOLMethodNSMAE
10 6 PONM22 1.6792 × 10 8
BVM40 1.5067 × 10 5
10 8 PONM43 3.0682 × 10 11
BVM80 2.2747 × 10 7
10 10 PONM88 1.0991 × 10 13
BVM160 3.5299 × 10 9
Table 4. Numerical results for (6) with h 0 = 10 3 , x [ 0 , 60 π ] .
Table 4. Numerical results for (6) with h 0 = 10 3 , x [ 0 , 60 π ] .
ABTOLMethodNSTFECPUMAE
10 5 PONM3971984 0.7901 5.7799 × 10 6
NM5772884 0.9730 5.2609 × 10 5
10 7 PONM8434214 1.4590 6.7684 × 10 10
NM12096044 1.7620 1.7594 × 10 7
10 9 PONM17728859 2.9444 9.4920 × 10 11
NM254112704 3.5005 7.2988 × 10 10
Table 5. Numerical results on (8) with h 0 = 10 3 , x [ 0 , 100 ] .
Table 5. Numerical results on (8) with h 0 = 10 3 , x [ 0 , 100 ] .
ABTOLMethodNSFECPUMAE
10 8 PONM40199 0.4023 2.2212 × 10 8
NM43214 0.4487 3.0775 × 10 6
10 7 PONM55274 0.5315 1.2844 × 10 9
NM59294 0.6269 3.1063 × 10 7
10 9 PONM78389 0.7272 4.8580 × 10 11
NM82409 0.8463 3.3702 × 10 8
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Rufai, M.A.; Ramos, H. Solving SIVPs of Lane–Emden–Fowler Type Using a Pair of Optimized Nyström Methods with a Variable Step Size. Mathematics 2023, 11, 1535. https://doi.org/10.3390/math11061535

AMA Style

Rufai MA, Ramos H. Solving SIVPs of Lane–Emden–Fowler Type Using a Pair of Optimized Nyström Methods with a Variable Step Size. Mathematics. 2023; 11(6):1535. https://doi.org/10.3390/math11061535

Chicago/Turabian Style

Rufai, Mufutau Ajani, and Higinio Ramos. 2023. "Solving SIVPs of Lane–Emden–Fowler Type Using a Pair of Optimized Nyström Methods with a Variable Step Size" Mathematics 11, no. 6: 1535. https://doi.org/10.3390/math11061535

APA Style

Rufai, M. A., & Ramos, H. (2023). Solving SIVPs of Lane–Emden–Fowler Type Using a Pair of Optimized Nyström Methods with a Variable Step Size. Mathematics, 11(6), 1535. https://doi.org/10.3390/math11061535

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop