Skip to main content

Advertisement

Log in

A feedforward neural network framework for approximating the solutions to nonlinear ordinary differential equations

  • Original Article
  • Published:
Neural Computing and Applications Aims and scope Submit manuscript

Abstract

In this paper, we propose a method to approximate the solutions to nonlinear ordinary differential equations (ODE) using a deep learning feedforward artificial neural networks (ANNs). The efficiency of the proposed—unsupervised type machine learning—method is shown by solving two boundary value problems (BVPs) from quantum mechanics and nanofluid mechanics. The proposed mean-squared loss function is the sum of two terms: the first term satisfies the differential equation, while the second term satisfies the initial or boundary conditions. The total loss function is minimized by using general type of quasi-Newton optimization methods to get a desired network output. The approximation capability of the proposed method is verified for two sets of boundary value problems: first, a second-order nonlinear ODE and, second, a system of coupled nonlinear third-order ODEs. Point-wise comparison of our approximation shows a strong agreement with the available exact solutions and/or Runge–Kutta-based numerical solutions. We remark that the proposed algorithm minimizes the overall learnable network hyperparameters in a given initial or boundary value problems. More importantly, for the coupled system of third-order nonlinear ordinary differential equations, the proposed method does not need any adjustment with the initial/boundary conditions. Also, the current method does not require any special type of computational mesh. A straightforward minimization of total loss function yields a highly accurate results even with less number of epochs. Therefore, the proposed framework offers an attractive setting for the fluid mechanics community who are interested in studying heat and mass transfer problems.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7

Similar content being viewed by others

Explore related subjects

Discover the latest articles, news and stories from top researchers in related subjects.

Data Availability

Data sharing is not applicable as no new datasets were generated during this study.

References

  1. Yoon H, Mallikarjunaiah S (2022) A finite element discretization of some boundary value problems for nonlinear strain-limiting elastic bodies. Math Mech Solids 27(2):281–307. https://doi.org/10.1177/10812865211020789

    Article  MathSciNet  MATH  Google Scholar 

  2. Yoon HC, Vasudeva KK, Mallikarjunaiah SM (2022) Finite element model for a coupled thermo-mechanical system in nonlinear strain-limiting thermoelastic body. Commun Nonlinear Sci Num Simulation 108:106262

    Article  MathSciNet  MATH  Google Scholar 

  3. Lee S, Yoon HC, Mallikarjunaiah SM (2022) Finite element simulation of quasi-static tensile fracture in nonlinear strain-limiting solids with the phase-field approach. J Comput Appl Math 399:113715

    Article  MathSciNet  MATH  Google Scholar 

  4. Gou K, Mallikarjuna M, Rajagopal K, Walton J (2015) Modeling fracture in the context of a strain-limiting theory of elasticity: a single plane-strain crack. Int J Eng Sci 88:73–82

    Article  MathSciNet  MATH  Google Scholar 

  5. Muddamallappa MS (2015) On two theories for brittle fracture: modeling and direct numerical simulations. Ph.D. thesis

  6. Mallikarjunaiah S, Walton J (2015) On the direct numerical simulation of plane-strain fracture in a class of strain-limiting anisotropic elastic bodies. Int J Fract 192(2):217–232

    Article  Google Scholar 

  7. Ferguson LA, Muddamallappa M, Walton JR (2015) Numerical simulation of mode-iii fracture incorporating interfacial mechanics. Int J Fract 192(1):47–56

    Article  Google Scholar 

  8. Thomas LH (1927) The calculation of atomic fields. In: Mathematical proceedings of the Cambridge philosophical society; vol. 23. Cambridge University Press, pp. 542–548

  9. Schrödinger E (1926) An undulatory theory of the mechanics of atoms and molecules. Phys Rev 28(6):1049

    Article  Google Scholar 

  10. Falkneb V, Skan SW (1931) LXXXV. solutions of the boundary-layer equations. London, Edinburgh, Dublin Philoso Magaz J Sci 12(80):865–896

    Article  Google Scholar 

  11. Lakshmi KM, Siddheshwar PG, Muddamallappa MS (2020) Study of rotating bénard-brinkman convection of Newtonian liquids and Nanoliquids in enclosures. Int J Mech Sci 188:105931

    Article  Google Scholar 

  12. Muddamallappa MS, Bhatta D, Riahi DN (2009) Numerical investigation on marginal stability and convection with and without magnetic field in a mushy layer. Transp Porous Media 79(2):301–317

    Article  MathSciNet  Google Scholar 

  13. Bhatta D, Riahi DN, Muddamallappa MS (2012) On nonlinear evolution of convective flow in an active mushy layer. J Eng Math 74(1):73–89

    Article  MathSciNet  MATH  Google Scholar 

  14. Lin S (1976) Oxygen diffusion in a spherical cell with nonlinear oxygen uptake kinetics. J Theor Biol 60(2):449–457

    Article  Google Scholar 

  15. Gou K, Muddamallappa MS (2020) An analytic study on nonlinear radius change for hyperelastic tubular organs under volume expansion. Acta Mechanica 231(4):1503–17

    Article  MathSciNet  MATH  Google Scholar 

  16. Butcher JC (2016) Numerical methods for ordinary differential equations. John Wiley & Sons, UK

    Book  MATH  Google Scholar 

  17. Grossmann C, Roos H, Stynes M (2007) Numerical treatment of partial differential equations; vol. 154. Springer

  18. LeVeque RJ (2007) Finite difference methods for ordinary and partial differential equations: steady-state and time-dependent problems. SIAM

  19. Lambert J (1991) Numerical methods for ordinary differential systems: the initial value problem. John Wiley & Sons Inc, UK

    MATH  Google Scholar 

  20. Hornik K, Stinchcombe M, White H (1989) Multilayer feedforward networks are universal approximators. Neural Netw 2(5):359–366

    Article  MATH  Google Scholar 

  21. Cybenko G (1989) Approximation by superpositions of a sigmoidal function. Math Control Signals Syst 2(4):303–314

    Article  MathSciNet  MATH  Google Scholar 

  22. Lee H, Kang IS (1990) Neural algorithm for solving differential equations. J Comput Phys 91(1):110–131

    Article  MathSciNet  MATH  Google Scholar 

  23. Meade AJ Jr, Fernandez AA (1994) The numerical solution of linear ordinary differential equations by feedforward neural networks. Math Comput Model 19(12):1–25

    Article  MathSciNet  MATH  Google Scholar 

  24. Logovski AC (1992) Methods for solving of differential equations in neural basis. In: Proceedings 1992 RNNS/IEEE symposium on neuroinformatics and neurocomputers. IEEE, pp. 919–927

  25. Lagaris IE, Likas A, Fotiadis DI (1998) Artificial neural networks for solving ordinary and partial differential equations. IEEE Trans Neural Netw 9(5):987–1000

    Article  Google Scholar 

  26. Ngom M, Marin O (2021) Fourier neural networks as function approximators and differential equation solvers. Stat Anal Data Min: ASA Data Sci J 14(6):647–661

    Article  MathSciNet  Google Scholar 

  27. Lau LL, Werth D (2020) ODEN: A framework to solve ordinary differential equations using artificial neural networks. arXiv preprint arXiv:2005.14090

  28. Rao C, Sun H, Liu Y (2021) Physics-informed deep learning for computational elastodynamics without labeled data. J Eng Mech 147(8):04021043

    Google Scholar 

  29. Shi E, Xu C (2021) A comparative investigation of neural networks in solving differential equations. J Algorithm Comput Technol 15:1748302621998605

    Article  MathSciNet  Google Scholar 

  30. Dockhorn T (2019) A discussion on solving partial differential equations using neural networks. arXiv preprint arXiv:1904.07200

  31. Gin CR, Shea DE, Brunton SL, Kutz JN (2021) DeepGreen: deep learning of green’s functions for nonlinear boundary value problems. Sci Rep 11(1):1–14

    Article  Google Scholar 

  32. Terra J (2021) Keras vs Tensorflow vs Pytorch: understanding the most popular deep learning frameworks

  33. Cebeci T, Bradshaw P (2012) Physical and computational aspects of convective heat transfer. Springer Science & Business Media

  34. Goodfellow I, Bengio Y, Courville A (2016) Deep learning. MIT press, UK

    MATH  Google Scholar 

  35. Glorot X, Bengio Y (2010) Understanding the difficulty of training deep feedforward neural networks. In: Proceedings of the thirteenth international conference on artificial intelligence and statistics. In: JMLR Workshop and conference proceedings, pp. 249–256

  36. McCulloch WS, Pitts W (1943) A logical calculus of the ideas immanent in nervous activity. Bull Math Biophys 5(4):115–133

    Article  MathSciNet  MATH  Google Scholar 

  37. Nocedal J, Wright SJ (1999) Numerical optimization. Springer, USA

    Book  MATH  Google Scholar 

  38. Mustapha A, Mohamed L, Ali K (2021) Comparative study of optimization techniques in deep learning: application in the ophthalmology field. J Phys: Confer Series 1743:012002

    Google Scholar 

  39. Rumelhart DE, Durbin R, Golden R, Chauvin Y (1995) Backpropagation: the basic theory. Backpropagation: theory, architectures and applications, pp. 1–34

  40. Fermi E (1927) Un metodo statistico per la determinazione di alcune priorieta dell’atome. Rend Accad Naz Lincei 6(602–607):32

    Google Scholar 

  41. Jovanovic R, Kais S, Alharbi FH (2014) Spectral method for solving the nonlinear thomas-fermi equation based on exponential functions. J Appl Math 2014:168568. https://doi.org/10.1155/2014/168568

    Article  MathSciNet  MATH  Google Scholar 

  42. Parand K, Delkhosh M (2017) Accurate solution of the thomas-fermi equation using the fractional order of rational chebyshev functions. J Comput Appl Math 317:624–642

    Article  MathSciNet  MATH  Google Scholar 

  43. Yacob NA, Ishak A, Pop I (2011) Falkner-skan problem for a static or moving wedge in nanofluids. Int J Therm Sci 50(2):133–139

    Article  Google Scholar 

  44. Mahanthesh B, Mackolil J, Mallikarjunaiah SM (2021) Response surface optimization of heat transfer rate in falkner-skan flow of zno- eg nanoliquid over a moving wedge: Sensitivity analysis. Int Commun Heat Mass Transfer 125:105348

    Article  Google Scholar 

  45. Mahabaleshwar US, Vishalakshi AB, Bognar GV, Mallikarjunaiah SM (2022) Effects of thermal radiation on the flow of a bouusinesq couple stress nanofluid over a porous nonlinear stretching sheet. Inter J Appl Comput Math 8(4):1–7

    Article  MATH  Google Scholar 

  46. Kasmani RM, Sivasankaran S, Siri Z (2014) Convective heat transfer of nanofluid past a wedge in the presence of heat generation/absorption with suction/injection. In: AIP conference proceedings; vol. 1605. American Institute of Physics, pp. 506–511

Download references

Acknowledgements

Authors would like to thank the support of Research and Innovation and College of Science & Engineering, Texas A &M University-Corpus Christi (TAMUCC) for this research. Also, authors like to acknowledge the high performance computing clusters at TAMUCC for providing access to the computing systems. The authors like to thank the anonymous reviewers for their valuable comments.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to S. M. Mallikarjunaiah.

Ethics declarations

Conflict of Interest

The authors declare that they have no conflict of interest.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Springer Nature or its licensor holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Venkatachalapathy, P., Mallikarjunaiah, S.M. A feedforward neural network framework for approximating the solutions to nonlinear ordinary differential equations. Neural Comput & Applic 35, 1661–1673 (2023). https://doi.org/10.1007/s00521-022-07855-5

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00521-022-07855-5

Keywords