arXiv:2611.00701math-phOct 2026

Manuscript Offprint

arXiv:2611.00701

Boosted Physics-Informed Neural Networks for Solving Homogeneous and Non-Homogeneous Lane-Emden Type Equations

Luke Oluwaseye Joel

Abstract

The Lane-Emden Equation is a class of nonlinear differential equations commonly used to model phenomena in astrophysics and mathematical physics, such as stellar structure and thermal behavior in polytropic gas spheres. This study presents a novel hybrid framework that integrates Physics-Informed Neural Networks (PINNs) with boosting methods to enhance the accuracy and robustness of solutions for Lane-Emden type differential equations. Standard PINNs leverage physical laws encoded within the loss function, but their predictive performance can be constrained by optimization challenges and approximation errors. To address this, we introduce a post-processing boosting stage where the residual errors from the PINN prediction are modeled using some regression algorithms - including LightGBM, Random Forest, XGBoost, and Support Vector Regression (SVR). The outputs from these boosted models are aggregated to generate a corrected, high-fidelity prediction. The proposed methodology is systematically validated through quantitative metrics and comparative analysis against the standard PINN baseline. The results demonstrate that the boosted PINN framework significantly reduces prediction error, and improves generalization, offering a powerful and flexible approach for solving scientific and engineering problems governed by differential equations.

Keywords: Lane-Emden Equation, Physics Informed Neural Networks, LightGBM, Boosting Algorithms, Differential Equation.

*oluwaseyejoel@gmail.com; ljoel@uj.ac.za

1 Introduction

The general non-homogeneous form of the Lane-Emden equation [1, 2, 3] includes an additional term f(ξ)f(\xi) that acts as an external source or sink:

1ξαddξ(ξαdθdξ)+θn=f(ξ)(1)\frac{1}{\xi^{\alpha}}\frac{d}{d\xi}\left(\xi^{\alpha}\frac{d\theta}{d\xi}\right)+\theta^{n}=f(\xi) \tag{1}

where α\alpha is a arbitrary constant in the radial term, ξ\xi is a dimensionless radial coordinate, θ\theta is a dimensionless function related to the density of the star by the following equation

ρ=ρcθn(2)\rho=\rho_c\theta^n \tag{2}

for central density ρc\rho_c. The index nn is the polytropic index that appears in the polytropic equation of state,

P=Kρ1+1n,(3)P=K\rho^{1+\frac{1}{n}}, \tag{3}

where PP and ρ\rho are the pressure and density, respectively, and KK is a constant of proportionality. The term, f(ξ)f(\xi) represents a non-homogeneous term that can vary with the radial coordinate ξ\xi. It can be used to model external effects such as heat sources, gravitational forces, or other radial-dependent forces not accounted for by the homogeneous form.

This general form, in Equation (1), is used in models where the system is not isolated or when external factors contribute to the dynamics. The function f(ξ)f(\xi) introduces additional complexity, as it can significantly affect the behavior of solutions depending on its form (e.g., constant, polynomial, or exponential in ξ\xi). Hence, the Lane-Emden equation, a type of nonlinear differential equation, plays a crucial role in astrophysics, particularly in the study of stellar structure and polytropic models of gas spheres. It describes the relationship between pressure, density, and gravitational forces in a spherically symmetric body, such as a star.

We obtain a second-order differential equation from Equation (1) by multiplying both sides of the equation by ξα\xi^{\alpha}, differentiating ξαdθdξ\xi^{\alpha}\frac{d\theta}{d\xi} using the product rule, and rewriting in a standard form. The resulting equation is as follows.

d2θdξ2+αξdθdξ+θn=f(ξ),(4)\frac{d^2\theta}{d\xi^2}+\frac{\alpha}{\xi}\frac{d\theta}{d\xi}+\theta^n=f(\xi), \tag{4}

subject to initial conditions θ(0)=β1\theta(0)=\beta_1 and dθdξ(0)=β2\frac{d\theta}{d\xi}(0)=\beta_2, where β1\beta_1 and β2\beta_2 are constants. This equation represents the general form of the Lane-Emden equation with an arbitrary constant in the radial term, allowing for flexibility in modeling various radial geometries or scaling properties and a source term f(ξ)f(\xi).

Studies which solve different Lane-Emden type equation abound in the literature. Gurbuz and Sezer [4] solved three examples of the Lane-Emden type equation using the laguerre polynomial approach (LPA). The results were only compared with the exact solution. Sinha and Maroju [5] solved the six different Lane-Emden problems arise in isothermal gas spheres, stellar structures, and physics using the advanced variational iteration method (AVIM). The results were compared with the exact solutions and with some existing methods [6, 7, 8, 9] in the literature. El-Essawy et al. [10] solved eleven Lane-Emden type equations using two computational algorithms based on Monte Carlo (MC) methods. Some results of the study were compared with several existing methods [11, 12, 4, 13, 6, 14, 15, 16, 17] in the literature.

Mall and Chakraverty [6] solved seven examples of Lane-Emden type equation using Chebyshev Neural Network (ChNN) model and compared the results with only the exact solution. Verma and Kumar [13] solved three examples of Lane-Emden type differential equation using multi-layer perceptron artificial neural network (MLP ANN) technique and the results were compared with the exact solutions and the results in [6]. Ahmad et al. [9] solved the three cases of the Lane-Emden type equation with five bio-inspired computational heuristic - pattern search(PS), genetic algorithm (GA), sequential quadratic programming (SQP), hybrid pattern search with sequential quadratic programming (PS-SQP) and hybrid genetic algorithm with sequential quadratic programming (GA-SQP). The results from these algorithms were compared with the exact solution and the ChNN method [6]. The study also performed some statistical comparison of the five heuristic algorithms used.

Singh et al. [18], in their study, solved ten examples of the Lane-Emden type equations using an algorithm based on the operational matrix of integration for Jacobi polynomials and the collocation method. The results of the study was shown for five different cases of jacobi polynomials - the Legendre polynomial (P1), the Chebyshev polynomials of the second kind (P2), the Chebyshev polynomials of the third kind (P3), the Chebyshev polynomials of the fourth kind (P4), and the Gegenbauer (or ultraspherical) polynomials (P5). These results were compared to the exact solution and some existing methods [15, 19, 20, 21, 22] in the literature.

This study introduces the integration of Physics-Informed Neural Networks (PINN) with ensemble boosting methods (LightGBM, Random Forest, XGBoost, SVR) for residual error correction in solving differential equations. It proposes a decoupled approach where PINN provides a physics-constrained baseline solution and ML models correct residual errors without altering the physics formulation. We showcase this by solving six different examples of Lane-Emden type equations - both homogeneous and non-homogenous.

The reminder of the paper is divided into the following parts. In Section 2, we discuss the PINN methods that is used in this study, the hyperparameter tuning that was done using the Bayesian optimization in Optuna framework and the machine learning (ML) algorithms used for boosting the PINN method. Section 3 details the six different problems we solve using PINN and their comparative solutions with some existing methods in the literature. The section also showcase the results for the Boosted PINNs. And Section 4 is the conclusion of the study.

References (23)