1. Introduction and Mathematical Preliminaries
Partial differential equations (PDEs) are essential mathematical instruments employed to describe a multitude of phenomena in engineering [
1], physics [
2,
3], and other applied sciences [
4]. Unlike ordinary differential equations, which focus on functions of a single variable, PDEs are inherently more complex and capable of modeling a broad spectrum of physical processes. They are vital for representing systems where changes occur with respect to multiple independent variables, such as time and space.
The study and application of PDEs are pivotal for technological advancement and the comprehension of natural phenomena (see [
5]). By developing efficient methods to solve these equations, researchers can simulate and predict the behavior of intricate systems, leading to breakthroughs in fields such as aerospace engineering [
6], climate modeling [
7], biomedical engineering [
8,
9], and more.
Analytically solving PDEs is often challenging due to their complexity. Consequently, numerical methods like finite element analysis [
10], finite difference methods [
11], and spectral methods [
12] are frequently utilized. Temimi et al. [
13] used an iterative finite difference algorithm to solve a two-dimensional Bratu problem numerically. They employed the Newton–Raphson–Kantorovich approximation in function space and designed an iterative finite difference approach that provided a straightforward algorithm for computing the sequence of numerical solutions. Darvishi et al. [
14] used a modification of the HPM technique to solve sine-Gordon and coupled sine-Gordon equations numerically. Darvishi [
15] also used domain decomposition schemes to solve partial differential equations. These techniques approximate the solutions of PDEs through computational algorithms, enabling the resolution of real-world problems that are otherwise analytically intractable.
The time-dependent Emden–Fowler equations are a class of partial differential equations that arise in various scientific and engineering contexts, particularly in astrophysics, fluid dynamics, and thermal analysis. Named after the astronomers Robert Emden [
16] and Richard Fowler [
17], these equations are extensions of the classical Emden–Fowler equations, incorporating time as a dynamic variable to model evolving systems.
The classical Emden–Fowler equations typically describe static, spherically symmetric stellar structures [
18,
19] and other similar phenomena where spatial variables alone dictate the system’s behavior. When extended to include time dependency, these equations become powerful tools for analyzing the temporal evolution of systems under various physical conditions. This extension is crucial for understanding dynamic processes such as the thermal behavior of stars, gas dynamics in astrophysical contexts, and transient heat conduction in materials. In our work, we consider the Emden–Fowler heat-type equation [
20] in the form
where
is a nonlinear function or nonlinear heat source. This equation is solved subject to boundary conditions:
and initial condition
The time-dependent version of this equation incorporates the effect of time, allowing it to model evolving systems where properties like density, temperature, or pressure change dynamically over time. In (
1),
is the primary variable of interest, which could represent physical quantities like density, temperature, or gravitational potential.
is a spatial coordinate often representing a radial distance in problems with spherical symmetry and
is a time coordinate indicating that
evolves over time or a related temporal parameter. Physically,
is a measure of the concavity or curvature of
in space and often appears in diffusion processes.
represents a type of “damping” or scaling effect in radial diffusion processes. This could represent heat spreading from a central source, mass diffusing in a spherically symmetric object, or energy dissipating in a star. The term
acts as a source or sink, adding or removing
based on its current state and location. This term could represent reactions like chemical decay or fusion, heat generation in a stellar context.
A significant amount of research has been conducted to examine singular boundary value problems using various methods. Culham et al. [
21] used the Galerkin method to solve time-dependent nonlinear boundary value problems. Netuzhylov et al. [
22] used space–time meshfree collocation method (STMCM) to solve system of partial differential equations by a consistent discretization in both space and time. Dehgan [
23] explored second-order finite difference methods for addressing a non-local boundary value problem in the two-dimensional diffusion equation with Neumann boundary conditions. Wazwaz et al. [
24] used a modified Adomian decomposition method to solve time-dependent Emden–Fowler equations numerically with boundary conditions. Singh et al. [
25] discussed the modified homotopy perturbation method for solving nonlinear and singular time-dependent Emden–Fowler type equations with the Neumann and Dirichlet boundary conditions. Mkhatshwa et al. [
26] presented the bivariate spectral collocation method with the use of overlapping grids when applying the Chebyshev spectral collocation method. Bataineh et al. [
27] solved time-dependent Emden–Fowler equations using the homotopy analysis method. Shahni [
28] proposed the Berstein polynomial technique to numerically solve derivative-dependent Emden–Fowler equations with boundary conditions.
We are using a Haar wavelet collocation technique with backward difference scheme to solve Emden–Fowler heat-type equations with boundary conditions. The backward difference scheme [
29] is a powerful numerical tool that offers stability, ease of implementation, and robustness, making it well suited for solving a variety of differential equations. The backward difference scheme can more easily handle complex boundary conditions compared to some explicit methods. This flexibility is important in accurately modeling physical systems with intricate boundary behaviors. Haar wavelet collocation method [
30] offers a combination of simplicity, efficiency, adaptability, and accuracy, making it an attractive choice for solving differential equations in various scientific and engineering applications.
Combining the backward difference scheme’s stability with the spatial adaptivity of the Haar wavelet collocation method leads to a robust overall framework. This method tends to minimize numerical dispersion and oscillations that can occur in high-gradient regions. Thus, this method is robust for a wide range of PDE problems, particularly those with sharp features or requiring stability over long time simulations. It is well suited for problems with discontinuities or local features, as the Haar wavelet collocation can adapt to these with lower computational costs due to the sparsity of the resulting system.
Haar Wavelet
The Haar wavelet functions are simple and piecewise constant, making them easy to implement and compute. Haar wavelets are widely used in computer vision and image processing applications [
31], including face detection [
32] and pattern recognition. The Haar wavelet function is defined as:
where
,
, and
. We define
, and
where
J is the maximum resolution, s represents a dilation parameter, and
Specifically, the Haar wavelet constitutes a square wave family that is orthogonal, generally written as
for
and
For resolution,
, the Haar function matrix is given by
We define the collocation points where we approximate any function as , for .
The integrals of wavelets are defined as
where
m is an integer.
Similarly, we can calculate
Haar wavelets have local support, which means they are non-zero only in a small region. This property reduces the computational complexity and increases efficiency, especially for problems with localized features. Haar wavelets are piecewise constant functions that can accurately represent functions with discontinuities, sharp gradients, or localized features, unlike Fourier or polynomial-based methods, which require many terms to capture these features accurately. The hierarchical structure of Haar wavelets allows for fast computations and efficient use of resources, which is beneficial for large-scale problems. The sparsity also simplifies the process of matrix inversion or solving linear systems, as fewer non-zero elements need to be processed, making it more computationally efficient compared to methods that result in dense matrices. The adaptive mesh refinement property of Haar wavelets is advantageous over finite difference or finite element methods, which may require uniform grids or more complex adaptivity schemes to capture localized phenomena accurately.
The structure of this study is organized as follows:
Section 1 presents the introduction and outlines essential mathematical preliminaries.
Section 2 details the procedure employed in this article.
Section 3 explores the convergence and error analysis.
Section 4 applies our procedure to various examples.
Section 5 addresses the numerical simulation of these examples. Finally,
Section 6 concludes with a summary of our findings.
5. Numerical Simulation
In this section, we present our numerical findings along with 2D and 3D graphs comparing the Haar solution and the exact solution.
Figure 2 shows the error and comparison of exact and Haar solutions for Example 1.
Figure 3 shows 3D surface plots of exact and Haar solutions for Example 1.
Figure 4 shows 3D contour plots of exact and Haar solutions for Example 1.
Figure 5 shows the error and comparison of exact and Haar solutions for Example 2.
Figure 6 shows 3D surface plots of exact and Haar solutions for Example 2.
Figure 7 shows 3D contour plots of exact and Haar solutions for Example 2.
Figure 8 shows the error and comparison of exact and Haar solutions for Example 3.
Figure 9 shows 3D surface plots of exact and Haar solutions for Example 3.
Figure 10 shows 3D contour plots of exact and Haar solutions for Example 3.
Figure 11 shows the error and comparison of exact and Haar solutions for Example 4.
Figure 12 shows 3D surface plots of exact and Haar solutions for Example 4.
Figure 13 shows 3D contour plots of exact and Haar solutions for Example 4.
Table 1 gives us the numerical comparison of exact and Haar solutions for different
for Example 1.
Table 2 gives the error norm for different resolutions for Example1.
Table 3 gives us the numerical comparison of exact and Haar solutions for different
for Example 2.
Table 4 gives us the numerical comparison of exact and Haar solutions for different
for Example 3. In
Table 5, we compare our results with other method for Example 3.
Table 6 gives us the numerical comparison of exact and Haar solutions for different
for Example 4. In
Table 7, we compare our results with other methods and provide the CPU run time to demonstrate the efficiency and convenience of our approach.
6. Conclusions
The numerical solution of the time-dependent Emden–Fowler equation offers a powerful way to simulate and understand time-dependent processes. In diffusion processes, the numerical solution provides the density or concentration profile over time and space, showing how a substance diffuses or a population disperses under the influence of nonlinear effects. In plasma physics, solutions to the time-dependent Emden–Fowler equation are relevant to understanding plasma behavior in various configurations, such as spherical or cylindrical plasma distributions. The Haar wavelet collocation method, combined with a backward difference scheme, has proven to be an effective and efficient approach for solving time-dependent Emden–Fowler equations, including both linear and nonlinear partial differential equations. The flexibility of this method in handling complex boundary conditions makes it particularly suitable for modeling physical systems with intricate boundary behaviors. The numerical results, supported by 2D and 3D visual comparisons between the Haar solution and the exact solution, highlight the accuracy, adaptability, and computational efficiency of this technique.
Additionally, the use of Haar wavelets introduces several advantages, such as simplicity, local support, and sparse representation, which reduces computational complexity and improves efficiency. A comparative analysis, including CPU run time and error metrics, indicated that this method not only met but often surpassed the performance of alternative methods in terms of accuracy and computational convenience. In general, the Haar wavelet collocation method is a promising tool for solving differential equations in scientific and engineering applications due to its combination of precision, efficiency, and ease of implementation.