A Comparative Study of Hybrid Analytical and Laplace Transform Approaches for Solving Partial Differential Equations in Python

Document Type : Original Article


1 Department of Mechanical Engineering, North Tehran Branch, Islamic Azad University, Tehran, Iran

2 Department of Mechanical Engineering, Babol Noshirvani University of Technology, Babol, Iran


This research presents a rigorous and innovative approach, the Homotopy Perturbation Method-Laplace Transform Method (HPM-LTM), implemented in Python, for the efficient solution of linear and nonlinear partial differential equations (PDEs). By combining the Homotopy Perturbation technique (HPM) with the Laplace Transform Method (LTM), our method successfully addresses the significant challenges posed by equations with nonlinear components. Through the utilization of He's polynomials, the HPM-LTM approach effectively handles nonlinear terms, resulting in accurate and reliable solutions. To demonstrate the efficacy of our method, we extensively apply it to five representative PDE scenarios, including heat and wave equations. Our comprehensive results substantiate the remarkable accuracy and reliability of the HPM-LTM approach, highlighting its superiority in comparison to conventional approaches that require restrictive assumptions or discretization, which can introduce round-off errors. Furthermore, our method overcomes the limitations imposed by numerical errors inherent in traditional HPM techniques. The robustness, effectiveness, and adaptability of our proposed approach are further validated by its successful application to a wide range of PDE problems across various fields. This research presents a significant contribution to the development of a powerful computational tool for resolving diverse PDE problems, with particular relevance to the engineering discipline.

Graphical Abstract

A Comparative Study of Hybrid Analytical and Laplace Transform Approaches for Solving Partial Differential Equations in Python


Main Subjects

  1. He J-H. Homotopy perturbation technique. Computer methods in applied mechanics and engineering. 1999;178(3-4):257-62. https://doi.org/10.1016/S0045-7825(99)00018-3
  2. He J-H. Homotopy perturbation method for solving boundary value problems. Physics letters A. 2006;350(1-2):87-8. https://doi.org/10.1016/j.physleta.2005.10.005
  3. He J-H. Homotopy perturbation method: a new nonlinear analytical technique. Applied Mathematics and computation. 2003;135(1):73-9. https://doi.org/10.1016/S0096-3003(01)00312-5
  4. Shateri A, Moghaddam MM, Jalili B, Khan Y, Jalili P, Ganji DD. Heat transfer analysis of unsteady nanofluid flow between moving parallel plates with magnetic field: Analytical approach. Journal of Central South University. 2023;30(7):2313-23. https://doi.org/10.1007/s11771-023-5388-3
  5. LeVeque RJ. Finite difference methods for ordinary and partial differential equations: steady-state and time-dependent problems: SIAM; 2007.
  6. Khater M, Anwar S, Tariq KU, Mohamed MS. Some optical soliton solutions to the perturbed nonlinear Schrödinger equation by modified Khater method. AIP Advances. 2021;11(2). https://doi.org/10.1063/5.0038671
  7. Sedighi HM, Shirazi KH, Zare J. An analytic solution of transversal oscillation of quintic non-linear beam with homotopy analysis method. International Journal of Non-Linear Mechanics. 2012;47(7):777-84. https://doi.org/10.1016/j.ijnonlinmec.2012.04.008
  8. El-Shahed M. Application of He's homotopy perturbation method to Volterra's integro-differential equation. International Journal of Nonlinear Sciences and Numerical Simulation. 2005;6(2):163-8. https://doi.org/10.1515/IJNSNS.2005.6.2.163
  9. Van Der Walt S, Colbert SC, Varoquaux G. The NumPy array: a structure for efficient numerical computation. Computing in science & engineering. 2011;13(2):22-30. 10.1109/MCSE.2011.37
  10. Nadeem M, Li F. He–Laplace method for nonlinear vibration systems and nonlinear wave equations. Journal of Low Frequency Noise, Vibration and Active Control. 2019;38(3-4):1060-74. https://doi.org/10.1177/1461348418818
  11. Filobello-Nino U, Vazquez-Leal H, Sarmiento-Reyes A, Cervantes-Perez J, Perez-Sesma A, Jimenez-Fernandez V, et al. Laplace transform–homotopy perturbation method with arbitrary initial approximation and residual error cancelation. Applied Mathematical Modelling. 2017;41:180-94. https://doi.org/10.1016/j.apm.2016.08.003
  12. Liu Z-J, Adamu MY, Suleiman E, He J-H. Hybridization of homotopy perturbation method and Laplace transformation for the partial differential equations. Thermal Science. 2017;21(4):1843-6. https://doi.org/10.2298/TSCI160715078L
  13. Jalili B, Ganji AD, Jalili P, Nourazar SS, Ganji D. Thermal analysis of Williamson fluid flow with Lorentz force on the stretching plate. Case Studies in Thermal Engineering. 2022;39:102374. https://doi.org/10.1016/j.csite.2022.102374
  14. Jalili B, Sadighi S, Jalili P, Ganji DD. Numerical analysis of MHD nanofluid flow and heat transfer in a circular porous medium containing a Cassini oval under the influence of the Lorentz and buoyancy forces. Heat Transfer. 2022;51(7):6122-38. https://doi.org/10.1002/htj.22582
  15. Jalili B, Aghaee N, Jalili P, Ganji DD. Novel usage of the curved rectangular fin on the heat transfer of a double-pipe heat exchanger with a nanofluid. Case Studies in Thermal Engineering. 2022;35:102086. https://doi.org/10.1016/j.csite.2022.102086
  16. Endalew MF, Sarkar S. Numerical exploration of forced convection hydromagnetic hyperbolic tangent nanofluid flow over a permeable wedge with melting heat transfer. Scientific Reports. 2023;13(1):3515. https://doi.org/10.1038/s41598-023-30656-2
  17. Chamkha A, Ismael M, Kasaeipoor A, Armaghani T. Entropy generation and natural convection of CuO-water nanofluid in C-shaped cavity under magnetic field. Entropy. 2016;18(2):50. https://doi.org/10.3390/e18020050
  18. Jalili B, Mousavi A, Jalili P, Shateri A, Domiri Ganji D. Thermal analysis of fluid flow with heat generation for different logarithmic surfaces. International Journal of Engineering, TRANSACTIONS C: Aspects. 2022;35(12):2291-6. 10.5829/IJE.2022.35.12C.03
  19. Jalili P, Narimisa H, Jalili B, Shateri A, Ganji D. A novel analytical approach to micro-polar nanofluid thermal analysis in the presence of thermophoresis, Brownian motion and Hall currents. Soft Computing. 2023;27(2):677-89. https://doi.org/10.1007/s00500-022-07643-2
  20. Jalili B, Jalili P, Shateri A, Ganji DD. Rigid plate submerged in a Newtonian fluid and fractional differential equation problems via Caputo fractional derivative. Partial Differential Equations in Applied Mathematics. 2022;6:100452. https://doi.org/10.1016/j.padiff.2022.100452
  21. Jalili P, Jalili B, Shateri A, Domiri Ganji D. A novel fractional analytical technique for the time-space fractional equations appearing in oil pollution. International Journal of Engineering, TRANSACTIONS C: Aspects. 2022;35(12):2386-94. 10.5829/IJE.2022.35.12C.15
  22. Abbasbandy S. Iterated He’s homotopy perturbation method for quadratic Riccati differential equation. Applied Mathematics and Computation. 2006;175(1):581-9. https://doi.org/10.1016/j.amc.2005.02.014
  23. Kiusalaas J. Numerical methods in engineering with Python 3: Cambridge university press; 2013.
  24. Johansson R. Numerical Python: Scientific Computing and Data Science Applications with Numpy, SciPy and Matplotlib, Apress, Berkeley, CA, 2019. DOI: https://doi org/101007/978-1-4842-4246-9.
  25. Hunter JD. Matplotlib: A 2D graphics environment. Computing in science & engineering. 2007;9(03):90-5. 10.1109/MCSE.2007.55
  26. Liao S, Tan Y. A general approach to obtain series solutions of nonlinear differential equations. Studies in Applied Mathematics. 2007;119(4):297-354. https://doi.org/10.1111/j.14679590.2007.00387.x
  27. Momani S, Odibat Z. Homotopy perturbation method for nonlinear partial differential equations of fractional order. Physics Letters A. 2007;365(5-6):345-50. https://doi.org/10.1016/j.physleta.2007.01.046
  28. Kumar Mishra H, Nagar AK. He-Laplace method for linear and nonlinear partial differential equations. Journal of Applied Mathematics. 2012;2012. https://doi.org/10.1155/2012/180315
  29. Shijing D, Hongru C, Xudong W, Deshi W, Yongyong Z. Modal optimization design of supporting structure based on the improved particle swarm algorithm. International Journal of Engineering, TRANSACTIONS A: Basics. 2022;35(4):740-9. 10.5829/IJE.2022.35.04A.14
  30. Jalili P, Shateri A, Ganji AM, Jalili B, Ganji DD. Analytical analyzing mixed convection flow of nanofluid in a vertical channel using python approach. Results in Physics. 2023;52:106908. https://doi.org/10.1016/j.rinp.2023.106908
  31. Hamidi H, Seyed Lotfali S. Analysis of role of cloud computing in providing internet banking services: Case study bank melli iran. International Journal of Engineering, TRANSACTIONS B: Applications. 2022;35(5):1082-8. 10.5829/IJE.2022.35.05B.23
  32. Jalili B, Ganji AM, Shateri A, Jalili P, Ganji DD. Thermal analysis of non-Newtonian visco-inelastic fluid MHD flow between rotating disks. Case Studies in Thermal Engineering. 2023;49:103333. https://doi.org/10.1016/j.csite.2023.103333
  33. Marchione F. Analytical investigation on the stress distribution in structural elements reinforced with laminates subjected to axial loads. International Journal of Engineering, TRANSACTIONS A: Basics. 2022;35(4):692-7. 0.5829/IJE.2022.35.04A.08
  34. Agrawal V, Khairnar H. Analytical Modeling of Heat Transfer Coefficient Analysis in Dimensionless Number of an Electric Parking Brake Using CFD. International Journal of Engineering, TRANSACTIONS B: Applications. 2023;36(2):276-88. 10.5829/IJE.2023.36.02B.08
  35. Lap-Arparat P, Tuchinda K. Computational Study of Excitation Controlling Parameters Effect on Uniform Beam Deformation under Vibration. International Journal of Engineering, TRANSACTIONS A: Basics. 2023;36(1):60-70. 10.5829/IJE.2023.36.01A.08
  36. Baughman G, Sharma P. Entropic analysis of protein oscillations through langevin equations & fokker-planck equations. Journal of Human, Earth, and Future. 2022;3:56-70. 10.28991/HEF-SP2022-01-05
  37. Sutantyo T, Ripai A, Abdullah Z, Hidayat W, Zen FP. Soliton-like solution on the dynamics of modified Peyrard-bishop DNA model in the thermostat as a bio-fluid. Emerg Sci J(ISSN: 2610-9182). 2022;6(4). 10.28991/ESJ-2022-06-04-01
  38. Alrwashdeh SS, Ammari H, Madanat MA, Al-Falahat AaM. The effect of heat exchanger design on heat transfer rate and temperature distribution. Emerging Science Journal. 2022;6(1):128-37. 10.28991/ESJ-2022-06-01-010