Abstract

In this article, we present a novel enhancement to the -parameterized differential transform method (PDTM) for solving nonlinear boundary value problems. The proposed method is applied to solve the generalized Gardner equation by utilizing genetic algorithms to obtain optimal parameter values. Our proposed approach extends the general differential transformation method, allowing for the use of various values for the coefficient . Our solution procedure offers a distinct advantage by allowing the original differential transformation method to be divided into multiple steps, thereby illustrating specific solution properties for nonlinear boundary value problems. Additionally, possible alternative solutions based on varying parameter values are also explored and discussed. The results with those obtained through the DTM method and exact solutions are compared to confirm the accuracy of our method and its efficiency in reaching the exact solution quickly.

1. Introduction

Several methods were used in solving nonlinear partial differential equations, including the Adomian decomposition method, vibrational iteration method, and differential transform method [1, 2]. The differential transform method (DTM) is a potent approximate analytical technique for resolving nonlinear differential equations. Consequently, it offers a method that may be used broadly to create an analytical solution of differential equations. Real physical systems exhibit chaotic and nonlinear behaviour. Sometimes, it is impossible to solve the differential equations for these systems mathematically, so one must use specific procedures or methodologies to arrive at the analytical solutions. The DTM is one of the numerical techniques that allow us to obtain approximations of solutions to both linear and nonlinear differential equation systems. This method’s key benefit is that it does not require linearization and may be used directly on nonlinear ODEs. The ease of use, accuracy of computations, and breadth of applications of DTM are its well-known benefits. Another significant benefit of this approach is its ability to drastically reduce the amount of computational labor required while still accurately delivering the series solution with a rapid convergence rate [3]. Many methods have been developed to solve nonlinear differential equations. One such method is the -parameterized differential transform method (PDTM), which differs from the traditional DTM by calculating the coefficients of the Taylor polynomials differently [4]. Another variant is the reduced differential transform method (RDTM), which uses the DTM method and has been applied to solve two types of nonlinear partial differential equations [5, 6]. The generalized Gardner equation is as follows [7]:

With initial and boundary conditions, where and are arbitrary constants, with nonlinear terms of any order, and can take different values to derive known models. and are known functions. The parameters in equation (1) will be determined based on plasma parameters at a later time. In the special case when , the generalized Gardner equation (1) becomes the KdV equation; when , it becomes the mKdV equation; when , equation (1) converts to the KdV-mKdV equation. Demiray and Bulut utilized the extended trial equation method to obtain exact solutions for the generalized Gardner equation [7]. Another group of researchers, new techniques for determining new solutions of partial differential equations were created by Ghanbari and Baleanu [8]. Mathanaranjan used the first integral method to solve the generalized Gardner which contains dual high-order nonlinear terms [9]. Taghizade and Neirameh constructed travelling wave solutions involving parameters of the Gardner equations [10]. Daghan and Donmez studied the travelling wave solution of the Gardner equation analytically using the two dependent expansion and direct integration approaches [11].

GA has been widely used by researchers to solve differential equations. One such example is the work by Firouzi et al. [12], who proposed the use of GA for estimating large synchronous generator parameters. X. Li and M. Yin [13] also applied GA along with other heuristic techniques to solve the boundary value problem. S. A. Malik et al. [14] proposed a crossbred algorithm that combined differential evolution with artificial bee colony, which was implemented for parameter assessment of chaotic systems. In another study, Zeeshan and Atlas [15] utilized GA to find the best solution of the integrodifferential equation. In this paper, we propose a generalization of the -parameterized differential transform method (PDTM) and finding the parameter using genetic algorithm instead of using long steps to solve nonlinear systems to find them, which may take a long time, which is one of the disadvantages of the -parameterized differential transform method (PDTM) [4].

The structure of this paper is as follows: Section 2 provides an overview of the differential transform method, while Section 3 provides a brief introduction to GA. Section 4 outlines the proposed method, and Section 5 demonstrates the application of GA-MPDTM for solving a nonlinear general Gardner equation. Finally, Section 6 contains concluding remarks.

2. The Differential Transform Method

The first description is for some basic properties of the differential transform method.

Definition: if is a continuously differentiated analytical function with respect to both and in the corresponding domain, then the function is defined by [16]

Definition: the inverse transform of the transformed function can be defined as follows:

Then,

Consider the nonlinear partial differential equation where , is the linear, is the nonlinear operator, and is an inhomogeneous term. The recursive formula of (5) becomes where , and are the transformed functions. Table 1 enumerates the fundamental alterations that the RDTM effectively carries out.

The initial condition (6) is defined as

By inserting (8) into (7) and performing iterative calculations, we can derive the values. These values can be used to approximately solve the -terms by taking the inverse transformation of the sequence as

Consequently, the solution of (7) reads the regularity convergence of the series [17]

3. Genetic Algorithm

A genetic algorithm (GA) is a type of algorithms that uses natural selection to optimize a solution. Introduced by John Holland in 1970 [18]. GA is a simple and effective optimization technique. The search space, which represents all feasible solutions, comprises points where each point represents one feasible solution. The quality of each solution is expressed as a fitness value. A fitness function is utilized to evaluate the performance of all individuals in the population. The GA employs three primary operations in this population: selection, crossover, and mutation, to reach the optimal solution. The GA usually generates a random population of individuals at the start using a special procedure to create a higher quality initial population. Each chromosome consists of N genes representing unknown coefficients to be optimized.

The outline of the basic GAs involves these fundamental concepts [19]. (1)Start. A random population of chromosomes is generated (expected solutions).(2)Fitness Functions. The fitness of each chromosome is evaluated using a fitness function (i)New Population. A new population is created through a sequence of steps(ii)Selection (Reproduction). Select two parent (two chromosomes) from a solution according to their fitness(iii)Crossover. The first is selection, where two chromosomes are chosen as parents based on their fitness level. These two individuals then undergo a crossover operation, which combines their genetic information to create new offspring(iv)Mutation. Mutations are also introduced to maintain genetic diversity and explore new potential solutions(v)Acceptable. Once a new offspring has been generated and evaluated, it is added to the new population(3)Replace. This process continues until a new population is formed. At this point, this population replaces the previous one, and the process continues to a condition is met(4)Termination. If the condition is satisfied, the best solution in the current population is returned, and the entire process can begin again from step one for further optimization(5)Loop. Go to step 2

4. Proposed Method (GA-MPDTM)

The main idea of the proposed method depends on using the boundary conditions around an interval of the nonlinear differential equation in the differential transformation method (DTM) instead of relying on the initial condition only. If the differential equation contains the following boundary conditions,

The solution is divided into the following steps:

First: finding the solution by differential transformation method (DTM) about the beginning of the interval.

Secondly: finding the solution by differential transformation method (DTM) around the end of the interval.

Third: calculation of the rate using the convexity function to get a general solution about the interval .

Once the MPDTM solution series (14) has been obtained, it can be used as a basis for formulating the fitness function in a genetic algorithm, which will then be employed to search for the optimal parameters of a nonlinear differential equation. This involves utilizing a set of equations to define the fitness function within the algorithm. where and represent the total numbers of steps. represents the fitness function ().

5. Application

In this paper, the general Gardner equation (1) will be solved by the proposed method with boundary conditions [9]:

Case 1. Let Using equation (12) and Table 1 when , the solution about boundary condition (16) for equation (1) is When and , Then, For and ,

In the same way, we find the solution about the boundary condition (17)

For ,

Consequently, the final solution of equation (1) via equation (14) is as follows:

The exact solution for equation (1) with the boundary conditions ((16)–(17)) is [9]

We note that in Table 2, the -parameterized differential transform method gives better results than classic differential transform method and for different values for . A genetic algorithm was used to obtain the best value.

In Figure 1, we observe the convergence of the approximate solution using MPDTM with the exact solution. The methodology suggests starting with a standard model structure in which certain parameters are unknown. The aim is to determine the optimal values of these parameters within the context of the nonlinear Gardner equation (1), with the goal of minimizing the error.

Case 2. Let us have the boundary conditions [9]. such that and arbitrary constants.
Using the proposed method, we get The exact solution for equation (1) with the boundary conditions ((26)–(27)) is [9]

Note that in Table 3, the -parameterized differential transform method gives better results than classic differential transform method and for different values for . As listed in Table 3, the parameter values utilized in GA code are available within the commercial software MATLAB® R2021a.

We note that in Tables 4 and 5, the use of the genetic algorithm helped in understanding the behavior of parameters in solving a general Gardner equation where the mean square error decreases when and the best value for -parameterized in modified differential transform method in interval [0,1] is .

6. Conclusion

This paper presents a solution for the general Gardner equation using modified -parameterized differential transform method and genetic algorithm. The proposed method effectively generates approximate solutions for generalized Gardner equations, which, for specific parameter selections, reduce the numerical solutions to the exact solutions of classical Gardner. The -parameterized differential transform method and genetic algorithm have been utilized to approximate solutions for the Gardner equation. These solutions can be applied to physical plasmas that contain electron acoustic waves in a nonextensive positron electron-ion configuration. The findings are significant in understanding the dynamic characteristics of solitons and shock waves within different astrophysical plasma systems. This research provides a more comprehensive understanding of electron acoustic solitons. In addition, the obtained solutions are modified through genetic algorithm to optimize parameters and describe their effects on the solutions. This method can be considered a beneficial approach for acquiring novel solutions of nonlinear partial differential equations. These newly derived, precise solutions may be invaluable in explaining various nonlinear physical phenomena. Using the program MAPLE and MATLAB, they are possible to secure the remaining components of the equation similarly.

Data Availability

The authors will provide the data used to support the findings of this study upon request.

Conflicts of Interest

The authors affirm that there are no conflicts of interest pertaining to the publication of this paper.

Acknowledgments

The research is supported by the College of Computer Science and Mathematics, University of Mosul, Republic of Iraq.