<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">AM</journal-id><journal-title-group><journal-title>Applied Mathematics</journal-title></journal-title-group><issn pub-type="epub">2152-7385</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/am.2017.85055</article-id><article-id pub-id-type="publisher-id">AM-76439</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Analytical Solution for the Time-Dependent Emden-Fowler Type of Equations by Homotopy Analysis Method with Genetic Algorithm
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Waleed</surname><given-names>Al-Hayani</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Laheeb</surname><given-names>Alzubaidy</given-names></name><xref ref-type="aff" rid="aff2"><sup>2</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Ahmed</surname><given-names>Entesar</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>Department of Mathematics, College of Computer Science and Mathematics, University of Mosul, Mosul, Iraq</addr-line></aff><aff id="aff2"><addr-line>Department of Software Engineering, College of Computer Science and Mathematics, University of Mosul, Mosul, Iraq</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>waleedalhayani@yahoo.es(WA)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>15</day><month>05</month><year>2017</year></pub-date><volume>08</volume><issue>05</issue><fpage>693</fpage><lpage>711</lpage><history><date date-type="received"><day>30,</day>	<month>December</month>	<year>2016</year></date><date date-type="rev-recd"><day>22,</day>	<month>May</month>	<year>2017</year>	</date><date date-type="accepted"><day>25,</day>	<month>May</month>	<year>2017</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  In this paper, Homotopy Analysis method with Genetic Algorithm is presented and used to obtain an analytical solution for the time-dependent Emden-Fowler type of equations and wave-type equation with singular behavior at 
  <em>x</em> = 0. The advantage of this single global method employed to present a reliable framework is utilized to overcome the singularity behavior at the point 
  <em>x </em>= 0 for both models. The method is demonstrated for a variety of problems in one and higher dimensional spaces where approximate-exact solutions are obtained. The results obtained in all cases show the reliability and the efficiency of this method.
 
</p></abstract><kwd-group><kwd>Homotopy Analysis Method</kwd><kwd> Genetic Algorithm</kwd><kwd> Emden-Fowler Equation</kwd><kwd> Wave-Type Equation</kwd><kwd> Adomian Polynomials</kwd><kwd> Noise Terms</kwd><kwd> Pad&#233; Approximants</kwd><kwd> Simpson Rule</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>In many previous works of the diffusion of heat perpendicular to the surfaces of parallel planes are modeled by the heat equation</p><p>x − r ( x r y x ) x + a f ( x , t ) g ( y ) + h ( x , t ) = y t ,     0 &lt; x ≤ L ,     0 &lt; t &lt; T ,     r &gt; 0 , (1)</p><p>or equivalently</p><p>y x x + r x y x + a f ( x , t ) g ( y ) + h ( x , t ) = y t ,     0 &lt; x ≤ L ,     0 &lt; t &lt; T ,     r &gt; 0 , (2)</p><p>where f ( x , t ) g ( y ) + h ( x , t ) is the nonlinear heat source, y ( x , t ) is the temperature, and t is the dimensionless time variable. For the steady-state case, and for r = 2 , h ( x , t ) = 0 , Equation (2) is the Emden-Fowler equation [<xref ref-type="bibr" rid="scirp.76439-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.76439-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.76439-ref3">3</xref>] given by</p><p>y ″ + 2 x y ′ + a f ( x ) g ( y ) = 0 ,     y ( 0 ) = y 0 ,     y ′ ( 0 ) = 0 , (3)</p><p>where f ( x ) and g ( y ) are some given functions of x and y respectively. For f ( x ) = 1 and g ( y ) = y n , Equation (3) is the standard Lane-Emden equation that was used to model the thermal behavior of a spherical cloud of gas acting under the mutual attraction of its molecules [<xref ref-type="bibr" rid="scirp.76439-ref1">1</xref>] and subject to the classical laws of thermodynamics. For other special forms of g ( y ) , the well-known Lane- Emden equation was used to model several phenomena in mathematical physics and astrophysics such as the theory of stellar structure, the thermal behavior of a spherical cloud of gas, isothermal gas spheres, and theory of thermionic currents [<xref ref-type="bibr" rid="scirp.76439-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.76439-ref2">2</xref>] [<xref ref-type="bibr" rid="scirp.76439-ref3">3</xref>] . A substantial amount of work has been done on this type of problems for various structures of g ( y ) in [<xref ref-type="bibr" rid="scirp.76439-ref1">1</xref>] - [<xref ref-type="bibr" rid="scirp.76439-ref7">7</xref>] .</p><p>On the other hand, the wave type of equations with singular behavior is given by</p><p>x − r ( x r y x ) x + a f ( x , t ) g ( y ) + h ( x , t ) = y t t ,     0 &lt; x ≤ L ,     0 &lt; t &lt; T ,     r &gt; 0 , (4)</p><p>or equivalently</p><p>y x x + r x y x + a f ( x , t ) g ( y ) + h ( x , t ) = y t t ,     0 &lt; x ≤ L ,     0 &lt; t &lt; T ,     r &gt; 0 , (5)</p><p>will be examined as well, where f ( x , t ) g ( y ) + h ( x , t ) is a nonlinear source, t is the dimensionless time variable, and y ( x , t ) is the displacement of the wave at the position x and at time t. The singularity behavior that occurs at the point x = 0 is the main difficulty in the analysis of Equations (2) and (5). Wazwaz [<xref ref-type="bibr" rid="scirp.76439-ref8">8</xref>] used the Adomian decomposition method (ADM) to get an analytical solution for the time-dependent Emden-Fowler type of equations and wave-type equation with singular behavior.</p><p>The main objective of this paper is to apply Homotopy Analysis Method (HAM) to obtain approximate-exact solutions for different models for the time- dependent Emden-Fowler type of equations and wave-type equation with singular behavior at x = 0 . While the VIM [<xref ref-type="bibr" rid="scirp.76439-ref9">9</xref>] [<xref ref-type="bibr" rid="scirp.76439-ref10">10</xref>] requires the determination of Lagrange multiplier in its computational algorithm, HAM is independent of any such requirements, HAM handles linear and nonlinear terms in a simple and straightforward manner without any additional requirements. Also, in this paper we apply Genetic Algorithm (GA) to obtain an approximate solution of the same equations.</p><p>In what follows, we give a brief review of Homotopy analysis method and Genetic algorith.</p></sec><sec id="s2"><title>2. Analysis of the Homotopy Analysis Method</title><p>To describe the basic ideas of the HAM, we consider the following differential equation:</p><p>N [ y ( x , t ) ] = k ( x , t ) , (6)</p><p>where N is a nonlinear operator, x and t denote the independent variables, y ( x , t ) is an unknown function and k ( x , t ) is a known analytic function. For simplicity, we ignore all boundary or initial conditions, which can be treated in the similar way. By means of generalizing the traditional Homotopy method, Liao [<xref ref-type="bibr" rid="scirp.76439-ref11">11</xref>] constructs the so called zero-order deformation equation</p><p>( 1 − q ) L [ ϕ ( x , t ; q ) − y 0 ( x , t ) ] = q h [ N [ ϕ ( x , t ; q ) ] − k ( x , t ) ] , (7)</p><p>where q ∈ [ 0,1 ] is an embedding parameter, h is a nonzero auxiliary parameter, L is an auxiliary linear operator, y 0 ( x , t ) is an initial guess of y ( x , t ) and ϕ ( x , t ; q ) is an unknown function. It is important, that one has great freedom to choose auxiliary objects such as h and L in HAM. Obviously, when q = 0 and q = 1 it holds</p><p>ϕ ( x , t ; 0 ) = y 0 ( x , t ) ,       ϕ ( x , t ; 1 ) = y ( x , t ) , (8)</p><p>respectively. Thus, as q increases from 0 to 1, the solution ϕ ( x , t ; q ) varies from the initial guess y 0 ( x , t ) to the solution y ( x , t ) . Expanding ϕ ( x , t ; q ) in Taylor series with respect to q, we have</p><p>ϕ ( x , t ; q ) = y 0 ( x , t ) + ∑ m = 1 + ∞     y m ( x , t ) q m , (9)</p><p>where</p><p>y m ( x , t ) = 1 m ! ∂ m ϕ ( x , t ; q ) ∂ q m | q = 0 . (10)</p><p>If the auxiliary linear operator, the initial guess, the auxiliary parameter h, and the auxiliary function are so properly chosen, the above series (9) converges at q = 1 , then we have</p><p>ϕ ( x , t ; 1 ) = y 0 ( x , t ) + ∑ m = 1 + ∞     y m ( x , t ) , (11)</p><p>which must be one of the solutions of the original nonlinear equation, as proved by Liao [<xref ref-type="bibr" rid="scirp.76439-ref11">11</xref>] . If h = − 1 , Equation (7) becomes</p><p>( 1 − q ) L [ ϕ ( x , t ; q ) − y 0 ( x , t ) ] + q [ N [ ϕ ( x , t ; q ) ] − k ( x , t ) ] = 0 , (12)</p><p>which is used mostly in the Homotopy perturbation method [<xref ref-type="bibr" rid="scirp.76439-ref12">12</xref>] .</p><p>According to Equation (10), the governing equation can be deduced from the zero-order deformation Equation (7). We define the vectors</p><p>y i = { y 0 ( x , t ) , y 1 ( x , t ) , ⋯ , y i ( x , t ) } . (13)</p><p>Differentiating Equation (7) m times with respect to the embedding parameter q and then setting q = 0 and finally dividing them by m ! , we have the so- called mth-order deformation equation</p><p>L [ y m ( x , t ) − χ m y m − 1 ( x , t ) ] = h R m ( y m − 1 ) , (14)</p><p>where</p><p>R m ( x m − 1 ) = 1 ( m − 1 ) ! ∂ m − 1 { N [ ϕ ( x , t ; q ) ] − k ( x , t ) } ∂ q m − 1 | q = 0 , (15)</p><p>and</p><p>χ m = { 0 , m ≤ 1 , 1 , m &gt; 1. (16)</p><p>It should be emphasized that y m ( x , t ) ( m ≥ 1 ) are governed by the linear Equation (14) with the linear boundary conditions that come from the original problem, which can be easily solved by symbolic computation softwares such as Maple and Mathematica.</p></sec><sec id="s3"><title>3. Genetic Algorithms</title><p>Definition 1 Genetic Algorithms are search and optimization techniques based on Darwin’s Principle of Natural Selection.</p><p>Definition 2 Genetic Algorithm Operators [<xref ref-type="bibr" rid="scirp.76439-ref13">13</xref>] [<xref ref-type="bibr" rid="scirp.76439-ref14">14</xref>]</p><p>The simplest form of genetic algorithm involves three types of operators: selection, crossover and mutation.</p><p>Selection: This operator selects chromosomes in the population for reproduction. The fitter the chromosome, the more times it is likely to be selected to reproduce.</p><p>Crossover: This operator randomly chooses a locus and exchanges the subsequences before and after that locus between two chromosomes to create two offspring. For example, the strings 10000100 and 11111111 could be crossed over after the third locus in each to produce the two offspring 10011111 and 11100100.</p><p>The crossover operator roughly mimics biological recombination between two single-chromosome (haploid) organisms.</p><p>Mutation: This operator randomly flips some of the bits in a chromosome. For example, the string 00000100 might be mutated in its second position to yield 01000100. Mutation can occur at each bit position in a string with some probability, usually very small (e.g., 0.001).</p><p>Algorithm 3 A Simple Genetic Algorithm [<xref ref-type="bibr" rid="scirp.76439-ref13">13</xref>] [<xref ref-type="bibr" rid="scirp.76439-ref14">14</xref>]</p><p>Given a clearly defined problem to be solved and a bit string representation for candidate solutions, a simple GA works as follows:</p><p>1. Start with a randomly generated population of n l-bit chromosomes (candidate solutions to a problem).</p><p>2. Calculate the fitness f ( x , t ) of each chromosome x and t in the population.</p><p>3. Repeat the following steps until n offspring have been created:</p><p>(a) Select a pair of parent chromosomes from the current population, the probability of selection being an increasing function of fitness. Selection is done “with replacement,” meaning that the same chromosome can be selected more than once to become a parent.</p><p>(b) With probability pc (the “crossover probability” or “crossover rate”), cross over the pair at randomly chosen point (chosen with uniform probability) to form two offspring. If no crossover takes place, form two offspring that are exact copies of their respective parents. (Note that here the crossover rate is defined to be the probability that two parents will crossover in a single point. There are also “multi-point crossover” versions of the GA in which the crossover rate for a pair of parents is the number of points at which a crossover takes place).</p><p>(c) Mutate the two offspring at each locus with probability pm (the “mutation probability” or “mutation rate”), and place the resulting chromosomes in the new population. If n is odd, one new population member can be discarded at random.</p><p>4. Replace the current population with the new population.</p><p>5. Go to step 2.</p><p>Also see the flow chart (<xref ref-type="fig" rid="fig1">Figure 1</xref>).</p></sec><sec id="s4"><title>4. Applications of the Method</title><p>In this work, we examine six distinct models with singular behavior at x = 0 , two linear time-dependent Lane-Emden type of equations, two linear models of wave-type equation, and two nonlinear singular models. To show the high accuracy of the solution results compared with the exact solution, we give the numerical results applying the Genetic Algorithm (GA), HAM ( n = 5 ) , Pad&#233; approximants (PA) of order [ p / q ] , and the numerical solution with the Simpson rule (SIMP). Twenty points have been used in the Simpson rule. The computations associated with the examples were performed using a Maple 13 package with a precision of 20 dgits.</p><sec id="s4_1"><title>4.1. Time-Dependent Lane-Emden Type</title><p>Example 1. Firstly, let us consider the following linear homogeneous equation</p><p>y x x + 2 x y x − ( 6 + 4 x 2 − cos t ) y = y t , (17)</p><p>subject to initial conditions</p><p>y ( 0 , t ) = e sin t ,       y x ( 0 , t ) = 0. (18)</p><p>To solve Equations (17)-(18) by means of the standard HAM, we choose the initial approximation</p><p>y 0 ( x , t ) = e sin t , (19)</p><p>and the linear operator</p><p>L [ ϕ ( x , t ; q ) ] = ∂ 2 ϕ ( x , t ; q ) ∂ x 2 + 2 x ∂ ϕ ( x , t ; q ) ∂ x , (20)</p><p>with the property</p><p>L [ − c 1 x + c 2 ] = 0 , (21)</p><p>where c i ( i = 1 , 2 ) are constants of integration. Furthermore, Equation (17) suggests that we define the nonlinear operator as</p><p>N [ ϕ ( x , t ; q ) ] = ∂ 2 ϕ ( x , t ; q ) ∂ x 2 + 2 x ∂ ϕ ( x , t ; q ) ∂ x − ( 6 + 4 x 2 − cos t ) ϕ ( x , t ; q ) − ∂ ϕ ( x , t ; q ) ∂ t . (22)</p><p>Using the above definition, we construct the zeroth-order deformation equation as in (7) and (8) and the mth-order deformation equation for m ≥ 1 is</p><p>L [ y m ( x , t ) − χ m y m − 1 ( x , t ) ] = h R m ( y m − 1 ) , (23)</p><p>with the initial conditions</p><p>y m ( 0 , t ) = 0 ,       ( y m ) x ( 0 , t ) = 0 (24)</p><p>where</p><p>R m ( y m − 1 ) = ( y m − 1 ) x x + 2 x ( y m − 1 ) x − ( 6 + 4 x 2 − cos t ) y m − 1 − ( y m − 1 ) t . (25)</p><p>Now, the solution of the mth-order deformation Equation (23) for m ≥ 1 is</p><p>y m ( x , t ) = χ m y m − 1 ( x , t ) + h ∫ 0 x x − 2 ∫ 0 x x 2 R m ( y m − 1 ) . (26)</p><p>We now successively obtain</p><p>y 1 ( x , t ) = ( − 1 5 h x 4 − h x 2 ) e sin t , y 2 ( x , t ) = [ 1 90 h 2 x 8 + 13 105 h 2 x 6 − ( 1 5 h − 1 10 h 2 ) x 4 − ( h + h 2 ) x 2 ] e sin t , y 3 ( x , t ) = [ − 1 3510 h 3 x 12 − 59 11550 h 3 x 10 + ( 1 45 h 2 − 1 210 h 3 ) x 8 ] e sin t + [ ( 26 105 h 2 + 43 210 h 3 ) x 6 − 1 5 ( h − h 2 − 2 h 3 ) x 4 − ( h + 2 h 2 + h 3 ) x 2 ] e sin t ,               ⋮ (27)</p><p>and so on, in this manner the rest of the iterations can be obtained. Thus, the approximate solution in a series form is given by</p><p>y ( x , t ) = y 0 ( x , t ) + ∑ m = 1 + ∞     y m ( x , t ) , (28)</p><p>Hence, the series solution when h = − 1 is</p><p>y ( x , t ) = ( 1 + x 2 + 1 2 ! x 4 + 1 3 ! x 6 + 1 4 ! x 8 + ⋯ ) e sin t . (29)</p><p>This series has the closed form as n → ∞</p><p>y ( x , t ) = e x 2 + sin t , (30)</p><p>which is the exact solution of (17)-(18) compatible with ADM [<xref ref-type="bibr" rid="scirp.76439-ref8">8</xref>] .</p><p>Also, this example is solved by using GA as follows:</p><p>We’ll choose six values of x between ( 0,1 ) randomly, and converting them from the decimal format to the binary format</p><p>0.2 = 0.001100 ︸ x 1 110011 ︸ t 1</p><p>0.3 = 0.010011 ︸ x 2 001100 ︸ t 2</p><p>0.5 = 0.100000 ︸ x 3 000000 ︸ t 3</p><p>0.6 = 0.100110 ︸ x 4 011000 ︸ t 4</p><p>0.8 = 0.110011 ︸ x 5 001100 ︸ t 5</p><p>0.9 = 0.111001 ︸ x 6 100100 ︸ t 6</p><p>that is,</p><p>Now,</p><p>where f ( x i , t i ) is the series solution of HAM given by (29) and p ( x i , t i ) =</p><p>f ( x i , t i ) ∑ i = 1 6 f ( x i , t i ) is the probability of each chromosomes with</p><p>∑ i = 1 6 f ( x i , t i ) = 12.8110.</p><p>We arrange the chromosomes an ascending order and then choose less than four chromosomes to find the best solution</p><p>x 31 = 0.100000 , t 31 = 0.000000 x 21 = 0.010011 , t 21 = 0.001100 x 41 = 0.100110 , t 41 = 0.011000 x 11 = 0.001100 , t 11 = 0.110011</p><p>In this step of GA, crossover operation (two points) is done as follows:</p><p>              c u t 1 = 2 ,                   c u t 2 = 5 x 32 = 0.100000 ,       t 32 = 0.001100 x 22 = 0.010011 ,       t 22 = 0.000000 x 42 = 0.101110 ,       t 42 = 0.010000 x 12 = 0.000100 ,       t 12 = 0.111011</p><p>In the last step of GA a mutation operation (bit inverse, m = 3 ) and then converting them from the binary format to the decimal format:</p><p>x 33 = 0.101000 = 0.6250 , t 33 = 0.000100 = 0.0625 x 23 = 0.011011 = 0.4219 , t 23 = 0.001000 = 0.1250 x 43 = 0.100110 = 0.5938 , t 43 = 0.011000 = 0.3750 x 13 = 0.001100 = 0.1875 , t 13 = 0.110011 = 0.7969</p><p>The optimal solution is found after 51 generation to converge to the exact solution, where x = 7.2959306 E − 04 and t = 2.2287430 E − 05 . After execute the Equation (29) many times by using GA as in <xref ref-type="table" rid="table1">Table 1</xref> we found the optimal solution.</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Optimal solution of genetic algorithm for example 1</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >x</th><th align="center" valign="middle" >t</th><th align="center" valign="middle" >y<sub>Exact</sub>(x, t)</th><th align="center" valign="middle" >GA</th><th align="center" valign="middle" >HAM(n = 5)</th><th align="center" valign="middle" >PA [6/6]</th><th align="center" valign="middle" >SIMP</th></tr></thead><tr><td align="center" valign="middle" >7.296E−04</td><td align="center" valign="middle" >2.229E−05</td><td align="center" valign="middle" >1.0000228</td><td align="center" valign="middle" >1.0000228</td><td align="center" valign="middle" >1.0000228</td><td align="center" valign="middle" >1.0000228</td><td align="center" valign="middle" >1.0000228</td></tr><tr><td align="center" valign="middle" >0.023</td><td align="center" valign="middle" >0.002</td><td align="center" valign="middle" >1.0025321</td><td align="center" valign="middle" >1.0023269</td><td align="center" valign="middle" >1.0025321</td><td align="center" valign="middle" >1.0025321</td><td align="center" valign="middle" >1.0025321</td></tr><tr><td align="center" valign="middle" >0.029</td><td align="center" valign="middle" >0.031</td><td align="center" valign="middle" >1.0323482</td><td align="center" valign="middle" >1.0328346</td><td align="center" valign="middle" >1.0323482</td><td align="center" valign="middle" >1.0323482</td><td align="center" valign="middle" >1.0323482</td></tr><tr><td align="center" valign="middle" >0.064</td><td align="center" valign="middle" >0.003</td><td align="center" valign="middle" >1.0071212</td><td align="center" valign="middle" >1.0074105</td><td align="center" valign="middle" >1.0071212</td><td align="center" valign="middle" >1.0071212</td><td align="center" valign="middle" >1.0071212</td></tr><tr><td align="center" valign="middle" >0.222</td><td align="center" valign="middle" >0.011</td><td align="center" valign="middle" >1.0621379</td><td align="center" valign="middle" >1.0623118</td><td align="center" valign="middle" >1.0621379</td><td align="center" valign="middle" >1.0621379</td><td align="center" valign="middle" >1.0621379</td></tr></tbody></table></table-wrap><p>Example 2. We consider the following linear inhomogeneous equation,</p><p>y x x + 2 x y x − ( 5 + 4 x 2 ) y = y t + 6 − 5 x 2 − 4 x 4 , (31)</p><p>subject to initial conditions</p><p>y ( 0 , t ) = e t ,       y x ( 0 , t ) = 0. (32)</p><p>To solve Equations (31)-(32) by means of the standard HAM, we choose the initial approximation</p><p>y 0 ( x , t ) = e t , (33)</p><p>and the linear operator</p><p>L [ ϕ ( x , t ; q ) ] = ∂ 2 ϕ ( x , t ; q ) ∂ x 2 + 2 x ∂ ϕ ( x , t ; q ) ∂ x , (34)</p><p>with the property</p><p>L [ − c 1 x + c 2 ] = 0 , (35)</p><p>where c i ( i = 1 , 2 ) are constants of integration. Furthermore, Equation (31) suggests that we define the nonlinear operator as</p><p>N [ ϕ ( x , t ; q ) ] = ∂ 2 ϕ ( x , t ; q ) ∂ x 2 + 2 x ∂ ϕ ( x , t ; q ) ∂ x − ( 5 + 4 x 2 ) ϕ ( x , t ; q ) − ∂ ϕ ( x , t ; q ) ∂ t − ( 6 − 5 x 2 − 4 x 4 ) . (36)</p><p>Using the above definition, we construct the zeroth-order deformation equation as in (7) and (8) and the mth-order deformation equation for m ≥ 1 is</p><p>L [ y m ( x , t ) − χ m y m − 1 ( x , t ) ] = h R m ( y m − 1 ) , (37)</p><p>with the initial conditions</p><p>y m ( 0 , t ) = 0 ,       ( y m ) x ( 0 , t ) = 0 (38)</p><p>where</p><p>R m ( y m − 1 ) = ( y m − 1 ) x x + 2 x ( y m − 1 ) x − ( 5 + 4 x 2 ) y m − 1 − ( y m − 1 ) t − ( 1 − χ m ) ( 6 − 5 x 2 − 4 x 4 ) . (39)</p><p>Now, the solution of the mth-order deformation Equation (37) for m ≥ 1 is</p><p>y m ( x , t ) = χ m y m − 1 ( x , t ) + h ∫ 0 x x − 2 ∫ 0 x x 2 R m ( y m − 1 ) . (40)</p><p>We now successively obtain</p><p>y 1 ( x , t ) = − ( 1 5 x 4 + x 2 ) h e t + ( 2 21 x 6 + 1 4 x 4 − x 2 ) h , y 2 ( x , t ) = ( 1 90 h 2 x 8 + 13 105 h 2 x 6 + 1 10 h 2 x 4 − 1 5 h x 4 − h 2 x 2 − h x 2 ) e t − 4 1155 h 2 x 10                             − 31 1512 h 2 x 8 + ( 9 56 h 2 + 2 21 h ) x 6 + ( 1 2 h 2 + 1 4 h ) x 4 − ( h 2 + h ) x 2 ,           ⋮ (41)</p><p>and so on, in this manner the rest of the iterations can be obtained. Thus, the approximate solution in a series form is given by</p><p>y ( x , t ) = y 0 ( x , t ) + ∑ m = 1 + ∞     y m ( x , t ) , (42)</p><p>Hence, the series solution when h = − 1 is given by</p><p>y ( x , t ) = x 2 + ( 1 + x 2 + 1 2 ! x 4 + 1 3 ! x 6 + 1 4 ! x 8 + ⋯ ) e t + noiseterms . (43)</p><p>This series has the closed form as n → ∞</p><p>y ( x , t ) = x 2 + e x 2 + t , (44)</p><p>which is the exact solution of the problem (31)-(32) compatible with ADM [<xref ref-type="bibr" rid="scirp.76439-ref8">8</xref>] . Notice that the noise terms that appear between various components vanish in the limit.</p><p>Using GA by the same procedure as in example 1, we get the optimal solution is found after 51 generation to converge to the exact solution, where x = 4.9489E−05 and t = 7.6780 E − 05 . After execute the Equation (43) many times by using GA as in <xref ref-type="table" rid="table2">Table 2</xref> we found the optimal solution.</p></sec><sec id="s4_2"><title>4.2. Singular Wave-Type Equations</title><p>Example 3. Now, we consider the inhomogeneous singular wave-type equation,</p><p>y x x + 2 x y x − ( 5 + 4 x 2 ) y = y t t + 12 x − 5 x 3 − 4 x 5 , (45)</p><p>subject to initial conditions</p><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> Optimal solution of genetic algorithm for example 2</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >x</th><th align="center" valign="middle" >t</th><th align="center" valign="middle" >y<sub>Exact</sub>(x, t)</th><th align="center" valign="middle" >GA</th><th align="center" valign="middle" >HAM(n = 5)</th><th align="center" valign="middle" >PA [6/6]</th><th align="center" valign="middle" >SIMP</th></tr></thead><tr><td align="center" valign="middle" >4.949E−05</td><td align="center" valign="middle" >7.678E−05</td><td align="center" valign="middle" >1.0000767</td><td align="center" valign="middle" >1.0000767</td><td align="center" valign="middle" >1.0000767</td><td align="center" valign="middle" >1.0000767</td><td align="center" valign="middle" >1.0000767</td></tr><tr><td align="center" valign="middle" >0.000</td><td align="center" valign="middle" >0.085</td><td align="center" valign="middle" >1.0887170</td><td align="center" valign="middle" >1.0882976</td><td align="center" valign="middle" >1.0887170</td><td align="center" valign="middle" >1.0887170</td><td align="center" valign="middle" >1.0887170</td></tr><tr><td align="center" valign="middle" >0.065</td><td align="center" valign="middle" >0.023</td><td align="center" valign="middle" >1.0318239</td><td align="center" valign="middle" >1.0322448</td><td align="center" valign="middle" >1.0323482</td><td align="center" valign="middle" >1.0323482</td><td align="center" valign="middle" >1.0323482</td></tr><tr><td align="center" valign="middle" >0.125</td><td align="center" valign="middle" >0.002</td><td align="center" valign="middle" >1.0334062</td><td align="center" valign="middle" >1.0333424</td><td align="center" valign="middle" >1.0334062</td><td align="center" valign="middle" >1.0334062</td><td align="center" valign="middle" >1.0334062</td></tr><tr><td align="center" valign="middle" >0.185</td><td align="center" valign="middle" >0.175</td><td align="center" valign="middle" >1.2669473</td><td align="center" valign="middle" >1.2667575</td><td align="center" valign="middle" >1.2669473</td><td align="center" valign="middle" >1.2669473</td><td align="center" valign="middle" >1.2669473</td></tr></tbody></table></table-wrap><p>y ( 0 , t ) = e − t ,       y x ( 0 , t ) = 0. (46)</p><p>To solve Equations (45)-(46) by means of the standard HAM, we choose the initial approximation</p><p>y 0 ( x , t ) = e − t , (47)</p><p>and the linear operator</p><p>L [ ϕ ( x , t ; q ) ] = ∂ 2 ϕ ( x , t ; q ) ∂ x 2 + 2 x ∂ ϕ ( x , t ; q ) ∂ x , (48)</p><p>with the property</p><p>L [ − c 1 x + c 2 ] = 0 , (49)</p><p>where c i ( i = 1 , 2 ) are constants of integration. Furthermore, Equation (45) suggests that we define the nonlinear operator as</p><p>N [ ϕ ( x , t ; q ) ] = ∂ 2 ϕ ( x , t ; q ) ∂ x 2 + 2 x ∂ ϕ ( x , t ; q ) ∂ x − ( 5 + 4 x 2 ) ϕ ( x , t ; q ) − ∂ 2 ϕ ( x , t ; q ) ∂ t 2 − ( 12 x − 5 x 3 − 4 x ) .</p><p>Using the above definition, we construct the zeroth-order deformation equation as in (7) and (8) and the mth-order deformation equation for m ≥ 1 is</p><p>L [ y m ( x , t ) − χ m y m − 1 ( x , t ) ] = h R m ( y m − 1 ) , (50)</p><p>with the initial conditions</p><p>y m ( 0 , t ) = 0 ,       ( y m ) x ( 0 , t ) = 0 (51)</p><p>where</p><p>R m ( y m − 1 ) = ( y m − 1 ) x x + 2 x ( y m − 1 ) x − ( 5 + 4 x 2 ) y m − 1 − ( y m − 1 ) t t − ( 1 − χ m ) ( 12 x − 5 x 3 − 4 x 4 ) . (52)</p><p>Now, the solution of the mth-order deformation Equation (50) for m ≥ 1 is</p><p>y m ( x , t ) = χ m y m − 1 ( x , t ) + h ∫ 0 x x − 2 ∫ 0 x x 2 R m ( y m − 1 ) . (53)</p><p>We now successively obtain</p><p>y 1 ( x , t ) = − ( 1 5 x 4 + x 2 ) h e − t + ( 1 14 x 7 + 1 6 x 5 − x 3 ) h , y 2 ( x , t ) = ( 1 90 h 2 x 8 + 13 105 h 2 x 6 + 1 10 h 2 x 4 − 1 5 h x 4 − h 2 x 2 − h x 2 ) e − t − 1 462 h 2 x 11                           − 43 3780 h 2 x 9 + ( 43 336 h 2 + 1 14 h ) x 7 + ( 1 3 h 2 + 1 6 h ) x 5 − ( h 2 + h ) x 3 ,             ⋮ (54)</p><p>and so on, in this manner the rest of the iterations can be obtained. Thus, the approximate solution in a series form is given by</p><p>y ( x , t ) = y 0 ( x , t ) + ∑ m = 1 + ∞     y m ( x , t ) , (55)</p><p>Hence, the series solution when h = − 1 is given by</p><p>y ( x , t ) = x 3 + ( 1 + x 2 + 1 2 ! x 4 + 1 3 ! x 6 + 1 4 ! x 8 + ⋯ ) e − t + noiseterms . (56)</p><p>This series has the closed form as n → ∞</p><p>y ( x , t ) = x 3 + e x 2 − t , (57)</p><p>which is the exact solution of the problem (45)-(46) compatible with ADM [<xref ref-type="bibr" rid="scirp.76439-ref8">8</xref>] . Notice that the noise terms that appear between various components vanish in the limit.</p><p>Using GA by the same procedure as in example 1, we get the optimal solution is found after 51 generation to converge to the exact solution, where x = 0 and t = 0.879 . After execute the Equation (56) many times by using GA as in <xref ref-type="table" rid="table3">Table 3</xref> we found the optimal solution</p><p>Example 4. We now examine the inhomogeneous wave-type equation,</p><p>y x x + 4 x y x − ( 18 x + 9 x 4 ) y = y t t − 2 − ( 18 x + 9 x 4 ) t 2 , (58)</p><p>subject to initial conditions</p><p>y ( 0 , t ) = 1 + t 2 ,       y x ( 0 , t ) = 0. (59)</p><p>To solve Equations (58)-(59) by means of the standard HAM, we choose the initial approximation</p><p>y 0 ( x , t ) = 1 + t 2 , (60)</p><p>and the linear operator</p><p>L [ ϕ ( x , t ; q ) ] = ∂ 2 ϕ ( x , t ; q ) ∂ x 2 + 4 x ∂ ϕ ( x , t ; q ) ∂ x , (61)</p><p>with the property</p><p>L [ − c 1 3 x + c 2 ] = 0 , (62)</p><p>where c i ( i = 1 , 2 ) are constants of integration. Furthermore, Equation (58) suggests that we define the nonlinear operator as</p><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> Optimal solution of genetic algorithm for example 3</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >x</th><th align="center" valign="middle" >t</th><th align="center" valign="middle" >y<sub>Exact</sub>(x, t)</th><th align="center" valign="middle" >GA</th><th align="center" valign="middle" >HAM(n = 5)</th><th align="center" valign="middle" >PA [5/5]</th><th align="center" valign="middle" >SIMP</th></tr></thead><tr><td align="center" valign="middle" >0.000</td><td align="center" valign="middle" >0.879</td><td align="center" valign="middle" >0.4151979</td><td align="center" valign="middle" >0.4150192</td><td align="center" valign="middle" >0.4151979</td><td align="center" valign="middle" >0.4151979</td><td align="center" valign="middle" >0.4151979</td></tr><tr><td align="center" valign="middle" >0.011</td><td align="center" valign="middle" >0.872</td><td align="center" valign="middle" >0.4181664</td><td align="center" valign="middle" >0.4183309</td><td align="center" valign="middle" >0.4181664</td><td align="center" valign="middle" >0.4181664</td><td align="center" valign="middle" >0.4181664</td></tr><tr><td align="center" valign="middle" >0.092</td><td align="center" valign="middle" >0.845</td><td align="center" valign="middle" >0.4339872</td><td align="center" valign="middle" >0.4338056</td><td align="center" valign="middle" >0.4339872</td><td align="center" valign="middle" >0.4339872</td><td align="center" valign="middle" >0.4339872</td></tr><tr><td align="center" valign="middle" >0.136</td><td align="center" valign="middle" >0.901</td><td align="center" valign="middle" >0.4400918</td><td align="center" valign="middle" >0.4161477</td><td align="center" valign="middle" >0.4400918</td><td align="center" valign="middle" >0.4400918</td><td align="center" valign="middle" >0.4400918</td></tr><tr><td align="center" valign="middle" >0.203</td><td align="center" valign="middle" >0.961</td><td align="center" valign="middle" >0.4069677</td><td align="center" valign="middle" >0.4071075</td><td align="center" valign="middle" >0.4069677</td><td align="center" valign="middle" >0.4069677</td><td align="center" valign="middle" >0.4069677</td></tr></tbody></table></table-wrap><p>N [ ϕ ( x , t ; q ) ] = ∂ 2 ϕ ( x , t ; q ) ∂ x 2 + 4 x ∂ ϕ ( x , t ; q ) ∂ x − ( 18 x + 9 x 4 ) ϕ ( x , t ; q )     − ∂ 2 ϕ ( x , t ; q ) ∂ t 2 + ( 18 x + 9 x 4 ) t 2 + 2. (63)</p><p>Using the above definition, we construct the zeroth-order deformation equation as in (7) and (8) and the mth-order deformation equation for m ≥ 1 is</p><p>L [ y m ( x , t ) − χ m y m − 1 ( x , t ) ] = h R m ( y m − 1 ) , (64)</p><p>with the initial conditions</p><p>y m ( 0 , t ) = 0 ,       ( y m ) x ( 0 , t ) = 0 (65)</p><p>where</p><p>R m ( y m − 1 ) = ( y m − 1 ) x x + 4 x ( y m − 1 ) x − ( 18 x + 9 x 4 ) y m − 1 − ( y m − 1 ) t t + ( 1 − χ m ) [ ( 18 x + 9 x 4 ) t 2 + 2 ] . (66)</p><p>Now, the solution of the mth-order deformation Equation (64) for m ≥ 1 is</p><p>y m ( x , t ) = χ m y m − 1 ( x , t ) + h ∫ 0 x x − 4 ∫ 0 x x 4 R m ( y m − 1 ) . (67)</p><p>We now successively obtain</p><p>y 1 ( x , t ) = − 1 6 h x 6 − h x 3 , y 2 ( x , t ) = 1 120 h 2 x 12 + 1 9 h 2 x 9 + 1 6 ( h 2 − h ) x 6 − ( h 2 + h ) x 3 , y 3 ( x , t ) = − 1 5040 h 3 x 18 − 23 5400 h 3 x 15 − ( 1 90 h 3 − 1 60 h 2 ) x 12 + ( 1 6 h 3 + 2 9 h 2 ) x 9                             + 1 6 ( 3 h 3 + 2 h 2 − h ) x 6 − ( h 3 + 2 h 2 + h ) x 3 ,             ⋮ (68)</p><p>and so on, in this manner the rest of the iterations can be obtained. Thus, the approximate solution in a series form is given by</p><p>y ( x , t ) = y 0 ( x , t ) + ∑ m = 1 + ∞     y m ( x , t ) , (69)</p><p>Thus, the series solution when h = − 1 is given by</p><p>y ( x , t ) = t 2 + ( 1 + x 3 + 1 2 ! x 6 + 1 3 ! x 9 + 1 4 ! x 12 + ⋯ ) . (70)</p><p>This series has the closed form as n → ∞</p><p>y ( x , t ) = t 2 + e x 3 , (71)</p><p>which is the exact solution of the problem (58)-(59) compatible with ADM [<xref ref-type="bibr" rid="scirp.76439-ref8">8</xref>] .</p><p>Using GA by the same procedure as in example 1, we get the optimal solution is found after 51 generation to converge to the exact solution, where x = 4.6903E−06 and t = 1.1498 E − 06 . After execute the Equation (70) many times by using GA as in <xref ref-type="table" rid="table4">Table 4</xref> we found the optimal solution</p><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> Optimal solution of genetic algorithm for example 4</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >x</th><th align="center" valign="middle" >t</th><th align="center" valign="middle" >y<sub>Exact</sub>(x, t)</th><th align="center" valign="middle" >GA</th><th align="center" valign="middle" >HAM(n = 5)</th><th align="center" valign="middle" >PA [6/6]</th><th align="center" valign="middle" >SIMP</th></tr></thead><tr><td align="center" valign="middle" >4.693E−06</td><td align="center" valign="middle" >1.150E−06</td><td align="center" valign="middle" >1.0000000</td><td align="center" valign="middle" >1.0000000</td><td align="center" valign="middle" >1.0000000</td><td align="center" valign="middle" >1.0000000</td><td align="center" valign="middle" >1.0000000</td></tr><tr><td align="center" valign="middle" >0.000</td><td align="center" valign="middle" >0.102</td><td align="center" valign="middle" >1.0104040</td><td align="center" valign="middle" >1.0103960</td><td align="center" valign="middle" >1.0104040</td><td align="center" valign="middle" >1.0104040</td><td align="center" valign="middle" >1.0104040</td></tr><tr><td align="center" valign="middle" >0.058</td><td align="center" valign="middle" >0.035</td><td align="center" valign="middle" >1.0014201</td><td align="center" valign="middle" >1.0013941</td><td align="center" valign="middle" >1.0014201</td><td align="center" valign="middle" >1.0014201</td><td align="center" valign="middle" >1.0014201</td></tr><tr><td align="center" valign="middle" >0.164</td><td align="center" valign="middle" >0.079</td><td align="center" valign="middle" >1.0106616</td><td align="center" valign="middle" >1.0106261</td><td align="center" valign="middle" >1.0106616</td><td align="center" valign="middle" >1.0106616</td><td align="center" valign="middle" >1.0106616</td></tr><tr><td align="center" valign="middle" >0.173</td><td align="center" valign="middle" >0.001</td><td align="center" valign="middle" >1.0051921</td><td align="center" valign="middle" >1.0051844</td><td align="center" valign="middle" >1.0051921</td><td align="center" valign="middle" >1.0051921</td><td align="center" valign="middle" >1.0051921</td></tr></tbody></table></table-wrap></sec><sec id="s4_3"><title>4.3. Nonlinear Models</title><p>In what follows we close this analysis by examining two nonlinear time-de- pendent equations</p><p>Example 5. We now consider the nonlinear time-dependent equation,</p><p>y x x + 5 x y x + ( 24 t + 16 t 2 x 2 ) e y − 2 x 2 e y 2 = y t , (72)</p><p>subject to initial conditions</p><p>y ( 0 , t ) = 0 ,       y x ( 0 , t ) = 0. (73)</p><p>To solve Equations (72)-(73) by means of the standard HAM, we choose the initial approximation</p><p>y 0 ( x , t ) = 0 , (74)</p><p>and the linear operator</p><p>L [ ϕ ( x , t ; q ) ] = ∂ 2 ϕ ( x , t ; q ) ∂ x 2 + 5 x ∂ ϕ ( x , t ; q ) ∂ x , (75)</p><p>with the property</p><p>L [ − c 1 4 x + c 2 ] = 0 , (76)</p><p>where c i ( i = 1 , 2 ) are constants of integration. Furthermore, Equation (72) suggests that we define the nonlinear operator as</p><p>N [ ϕ ( x , t ; q ) ] = ∂ 2 ϕ ( x , t ; q ) ∂ x 2 + 5 x ∂ ϕ ( x , t ; q ) ∂ x + ( 24 t + 16 t 2 x 2 ) e ϕ ( x , t ; q ) − 2 x 2 e ϕ ( x , t ; q ) 2 − ∂ ϕ ( x , t ; q ) ∂ t . (77)</p><p>Using the above definition, we construct the zeroth-order deformation equation as in (7) and (8) and the mth-order deformation equation for m ≥ 1 is</p><p>L [ y m ( x , t ) − χ m y m − 1 ( x , t ) ] = h R m ( y m − 1 ) , (78)</p><p>with the initial conditions</p><p>y m ( 0 , t ) = 0 ,       ( y m ) x ( 0 , t ) = 0 (79)</p><p>where</p><p>R m ( y m − 1 ) = ( y m − 1 ) x x + 5 x ( y m − 1 ) x + ( 24 t + 16 t 2 x 2 ) A m − 1 − 2 x 2 B m − 1 − ( y m − 1 ) t . (80)</p><p>For the nonlinear terms e ϕ ( x , t ; q ) = ∑ m = 1 ∞     A m − 1 and e ϕ ( x , t ; q ) 2 = ∑ m = 1 ∞   B m − 1 , the corresponding Adomian polynomials [<xref ref-type="bibr" rid="scirp.76439-ref15">15</xref>] [<xref ref-type="bibr" rid="scirp.76439-ref16">16</xref>] are:</p><p>A 0 = e y 0 , A 1 = y 1 e y 0 , A 2 = [ y 2 + ( 1 2 ! ) y 1 2 ] e y 0 , A 3 = [ y 3 + y 1 y 2 + ( 1 3 ! ) y 1 3 ] e y 0 , A 4 = [ y 4 + ( 1 2 ! ) y 2 2 + y 1 y 3 + ( 1 2 ! ) y 1 2 y 2 + ( 1 4 ! ) y 1 4 ] e y 0 ,           ⋮ (81)</p><p>and</p><p>B 0 = e y 0 / 2 , B 1 = 1 2 y 1 e y 0 / 2 , B 2 = [ 1 2 y 2 + 1 4 ( 1 2 ! ) y 1 2 ] e y 0 / 2 , B 3 = [ 1 2 y 3 + 1 4 y 1 y 2 + 1 8 ( 1 3 ! ) y 1 3 ] e y 0 / 2 , B 4 = [ 1 2 y 4 + 1 4 ( 1 2 ! y 2 2 + 1 4 y 1 y 3 ) + 1 8 ( 1 2 ! ) y 1 2 y 2 + 1 16 ( 1 4 ! ) y 1 4 ] e y 0 / 2 ,           ⋮ (82)</p><p>Now, the solution of the mth-order deformation Equation (78) for m ≥ 1 is</p><p>y m ( x , t ) = χ m y m − 1 ( x , t ) + h ∫ 0 x x − 5 ∫ 0 x x 5 R m ( y m − 1 ) . (83)</p><p>We now successively obtain</p><p>y 1 ( x , t ) = 1 2 h t 2 x 4 − 1 16 h x 4 + 2 h t x 2 , y 2 ( x , t ) = ( 1 12 h 2 t 4 − 1 64 h 2 t 2 + 1 1536 h 2 ) x 8 + ( 11 15 h 2 t 3 − 3 40 h 2 t ) x 6                             + ( 2 h 2 t 2 + 1 2 h t 2 − 1 8 h 2 − 1 16 h ) x 4 + 2 ( h 2 + h ) t x 2 ,               ⋮ (84)</p><p>and so on, in this manner the rest of the iterations can be obtained. Thus, the approximate solution in a series form is given by</p><p>y ( x , t ) = y 0 ( x , t ) + ∑ m = 1 + ∞     y m ( x , t ) , (84)</p><p>Thus, the series solution when h = − 1 is given by</p><p>y ( x , t ) = − 2 ( t x 2 − 1 2 t 2 x 4 + 1 3 t 3 x 6 − 1 4 t 4 x 8 + ⋯ ) + noise   terms . (85)</p><p>This series has the closed form as n → ∞</p><p>y ( x , t ) = − 2 ln ( 1 + t x 2 ) , (86)</p><p>which is the exact solution of the problem (72)-(73) compatible with ADM [<xref ref-type="bibr" rid="scirp.76439-ref8">8</xref>] . Notice that the noise terms that appear between various components vanish in the limit.</p><p>Using GA by the same procedure as in example 1, we get the optimal solution is found after 51 generation to converge to the exact solution, where x = 0.470 and t = 0.895 . After execute the Equation (85) many times by using GA as in <xref ref-type="table" rid="table5">Table 5</xref> we found the optimal solution</p><p>Example 6. Finally, we examine the nonlinear homogeneous equation,</p><p>y x x + 6 x y x + ( 14 t + x 4 ) y + 4 t y ln y = y t t , (87)</p><p>subject to initial conditions</p><p>y ( 0 , t ) = 1 ,       y x ( 0 , t ) = 0. (88)</p><p>To solve Equations (87)-(88) by means of the standard HAM, we choose the initial approximation</p><p>y 0 ( x , t ) = 1 , (89)</p><p>and the linear operator</p><p>L [ ϕ ( x , t ; q ) ] = ∂ 2 ϕ ( x , t ; q ) ∂ x 2 + 6 x ∂ ϕ ( x , t ; q ) ∂ x , (90)</p><p>with the property</p><p>L [ − c 1 5 x + c 2 ] = 0 , (91)</p><p>where c i ( i = 1 , 2 ) are constants of integration. Furthermore, Equation (87) suggests that we define the nonlinear operator as</p><p>N [ ϕ ( x , t ; q ) ] = ∂ 2 ϕ ( x , t ; q ) ∂ x 2 + 6 x ∂ ϕ ( x , t ; q ) ∂ x + ( 14 t + x 4 ) ϕ ( x , t ; q )     + 4 t ϕ ( x , t ; q ) ln ϕ ( x , t ; q ) − ∂ 2 ϕ ( x , t ; q ) ∂ t 2 . (92)</p><table-wrap id="table5" ><label><xref ref-type="table" rid="table5">Table 5</xref></label><caption><title> Optimal solution of genetic algorithm for example 5</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >x</th><th align="center" valign="middle" >t</th><th align="center" valign="middle" >y<sub>Exact</sub>(x, t)</th><th align="center" valign="middle" >GA</th><th align="center" valign="middle" >HAM(n = 5)</th><th align="center" valign="middle" >PA [6/6]</th></tr></thead><tr><td align="center" valign="middle" >0.470</td><td align="center" valign="middle" >0.895</td><td align="center" valign="middle" >−0.3608152</td><td align="center" valign="middle" >−0.3606302</td><td align="center" valign="middle" >−0.3603871</td><td align="center" valign="middle" >−0.3608131</td></tr><tr><td align="center" valign="middle" >0.841</td><td align="center" valign="middle" >0.813</td><td align="center" valign="middle" >−0.9085352</td><td align="center" valign="middle" >−0.8831179</td><td align="center" valign="middle" >−0.8170968</td><td align="center" valign="middle" >−0.9083255</td></tr><tr><td align="center" valign="middle" >0.866</td><td align="center" valign="middle" >0.878</td><td align="center" valign="middle" >−1.0117805</td><td align="center" valign="middle" >−0.9155520</td><td align="center" valign="middle" >−0.8245006</td><td align="center" valign="middle" >−1.0114234</td></tr><tr><td align="center" valign="middle" >0.946</td><td align="center" valign="middle" >0.728</td><td align="center" valign="middle" >−1.0033665</td><td align="center" valign="middle" >−0.9260635</td><td align="center" valign="middle" >−0.8376409</td><td align="center" valign="middle" >−1.0030238</td></tr><tr><td align="center" valign="middle" >0.974</td><td align="center" valign="middle" >0.672</td><td align="center" valign="middle" >−0.9863539</td><td align="center" valign="middle" >−0.9277153</td><td align="center" valign="middle" >−0.8436189</td><td align="center" valign="middle" >−0.9860390</td></tr></tbody></table></table-wrap><p>Using the above definition, we construct the zeroth-order deformation equation as in (7) and (8) and the mth-order deformation equation for m ≥ 1 is</p><p>L [ y m ( x , t ) − χ m y m − 1 ( x , t ) ] = h R m ( y m − 1 ) , (93)</p><p>with the initial conditions</p><p>y m ( 0 , t ) = 0 ,       ( y m ) x ( 0 , t ) = 0 (94)</p><p>where</p><p>#Math_199# (95)</p><p>For the nonlinear term ϕ ( x , t ; q ) ln ϕ ( x , t ; q ) = ∑ m = 1 ∞     A m − 1 , the corresponding Adomian polynomials [<xref ref-type="bibr" rid="scirp.76439-ref15">15</xref>] [<xref ref-type="bibr" rid="scirp.76439-ref16">16</xref>] are:</p><p>#Math_201# (96)</p><p>Now, the solution of the mth-order deformation Equation (93) for m ≥ 1 is</p><p>y m ( x , t ) = χ m y m − 1 ( x , t ) + h ∫ 0 x x − 6 ∫ 0 x x 6 R m ( y m − 1 ) . (97)</p><p>We now successively obtain</p><p>y 1 ( x , t ) = 1 66 h x 6 + h t x 2 , y 2 ( x , t ) = 1 13464 h 2 x 12 + 7 572 h 2 t x 8 + 1 66 ( h 2 + h ) x 6 + 1 2 h 2 t 2 x 4 + ( h 2 + h ) t x 2 , y 3 ( x , t ) = 1 5574096 h 3 x 18 + 965 18290844 h 3 t x 14 + 1 6732 ( h 3 + h 2 ) x 12                             + 67 12870 h 3 t 2 x 10 + 7 286 ( h 3 + h 2 ) t x 8 + 1 66 ( 11 h 3 t 3 + 2 h 2 + h ) x 6                             + ( h 3 + h 2 ) t 2 x 4 + ( h 3 + 2 h 2 + h ) t x 2 ,               ⋮ (98)</p><p>and so on, in this manner the rest of the iterations can be obtained. Thus, the approximate solution in a series form is given by</p><p>y ( x , t ) = y 0 ( x , t ) + ∑ m = 1 + ∞     y m ( x , t ) , (99)</p><p>Thus, the series solution when h = − 1 is given by</p><p>y ( x , t ) = 1 − t x 2 + 1 2 ! t 2 x 4 − 1 3 ! t 3 x 6 + 1 4 ! t 4 x 8 + ⋯ . (100)</p><table-wrap id="table6" ><label><xref ref-type="table" rid="table6">Table 6</xref></label><caption><title> Optimal solution of genetic algorithm for example 6</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >x</th><th align="center" valign="middle" >t</th><th align="center" valign="middle" >y<sub>Exact</sub>(x, t)</th><th align="center" valign="middle" >GA</th><th align="center" valign="middle" >HAM(n = 5)</th><th align="center" valign="middle" >PA [6/6]</th></tr></thead><tr><td align="center" valign="middle" >0.270</td><td align="center" valign="middle" >0.935</td><td align="center" valign="middle" >0.8117150</td><td align="center" valign="middle" >0.8116540</td><td align="center" valign="middle" >0.8117157</td><td align="center" valign="middle" >0.8117155</td></tr><tr><td align="center" valign="middle" >0.478</td><td align="center" valign="middle" >0.913</td><td align="center" valign="middle" >1.0025321</td><td align="center" valign="middle" >1.0023269</td><td align="center" valign="middle" >1.0025321</td><td align="center" valign="middle" >1.0025321</td></tr><tr><td align="center" valign="middle" >0.855</td><td align="center" valign="middle" >0.954</td><td align="center" valign="middle" >0.4978791</td><td align="center" valign="middle" >0.4974576</td><td align="center" valign="middle" >0.4983086</td><td align="center" valign="middle" >0.4979100</td></tr><tr><td align="center" valign="middle" >0.903</td><td align="center" valign="middle" >0.973</td><td align="center" valign="middle" >0.4523075</td><td align="center" valign="middle" >0.4521125</td><td align="center" valign="middle" >0.4532268</td><td align="center" valign="middle" >0.4522629</td></tr><tr><td align="center" valign="middle" >0.981</td><td align="center" valign="middle" >0.938</td><td align="center" valign="middle" >0.4054755</td><td align="center" valign="middle" >0.4052946</td><td align="center" valign="middle" >0.4069536</td><td align="center" valign="middle" >0.4057609</td></tr></tbody></table></table-wrap><p>This series has the closed form as n → ∞</p><p>y ( x , t ) = e − t x 2 , (101)</p><p>which is the exact solution of the problem (87)-(88) compatible with ADM [<xref ref-type="bibr" rid="scirp.76439-ref8">8</xref>] .</p><p>Using GA by the same procedure as in example 1, we get the optimal solution is found after 51 generation to converge to the exact solution, where x = 0.270 and t = 0.935 . After execute the Equation (100) many times by using GA as in <xref ref-type="table" rid="table6">Table 6</xref> we found the optimal solution.</p></sec></sec><sec id="s5"><title>5. Conclusions</title><p>To our best knowledge, this is the first result on the application of the HAM with GA to solve models of the time-dependent Emden-Fowler type of equations and wave-type equation with singular behaviors. The HAM with GA has been successfully applied to solve models of the time-dependent Emden-Fowler type of equations and wave-type equation with singular behaviors. The HAM with GA has worked effectively to handle these models giving it a wider applicability. The proposed scheme of HAM has been applied directly without any need for transformation formulae or restrictive assumptions. The solution process of HAM is compatible with those methods in the literature providing analytical approximation such as ADM.</p><p>The approach of HAM with GA has been tested by employing the method to obtain approximate-exact solutions of six examples. The results obtained in all cases demonstrate the reliability and the efficiency of this method.</p></sec><sec id="s6"><title>Acknowledgements</title><p>We would like to thank the referees for their careful review of our manuscript.</p></sec><sec id="s7"><title>Cite this paper</title><p>Al-Hayani, W., Alzubaidy, L. and Entesar, A. (2017) Analytical Solution for the Time-Dependent Emden-Fowler Type of Equations by Homotopy Analysis Method with Genetic Algorithm. Applied Mathematics, 8, 693-711. https://doi.org/10.4236/am.2017.85055</p></sec></body><back><ref-list><title>References</title><ref id="scirp.76439-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Davis, H.T. (1962) Introduction to Nonlinear Differential and Integral Equations. Dover Publications, New York.</mixed-citation></ref><ref id="scirp.76439-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Chandrasekhar, S. (1967) Introduction to the Study of Stellar Structure. Dover Publications, New York.</mixed-citation></ref><ref id="scirp.76439-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Richardson, O.U. (1921) The Emission of Electricity from Hot Bodies. London.</mixed-citation></ref><ref id="scirp.76439-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Adomian, G., Rach, R. and Shawagfeh, N.T. (1995) On the Analytic Solution of Lane-Emden Equation, Found. Physics Letters, 8, 161-181.  
https://doi.org/10.1007/BF02187585</mixed-citation></ref><ref id="scirp.76439-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Shawagfeh, N.T. (1993) Nonperturbative Approximate Solution for Lane-Emden Equation. Journal of Mathematical Physics, 34, 4364-4369.  
https://doi.org/10.1063/1.530005</mixed-citation></ref><ref id="scirp.76439-ref6"><label>6</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Wazwaz</surname><given-names> A.M. </given-names></name>,<etal>et al</etal>. (<year>2001</year>)<article-title>A New Method for Solving Differential Equations of the Lane-Emden Type</article-title><source> Applied Mathematics and Computation</source><volume> 118</volume>,<fpage> 287</fpage>-<lpage>310</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.76439-ref7"><label>7</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Wazwaz</surname><given-names> A.M. </given-names></name>,<etal>et al</etal>. (<year>2005</year>)<article-title>Adomian Decomposition Method for a Reliable Treatment of the Emden-Fowler Equation</article-title><source> Applied Mathematics and Computation</source><volume> 161</volume>,<fpage> 543</fpage>-<lpage>560</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.76439-ref8"><label>8</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Wazwaz</surname><given-names> A.M. </given-names></name>,<etal>et al</etal>. (<year>2005</year>)<article-title>Analytical Solution for the Time-Dependent Emden-Fowler Type of Equations by Adomian Decomposition Method</article-title><source> Applied Mathematics and Computation</source><volume> 166</volume>,<fpage> 638</fpage>-<lpage>651</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.76439-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Yildirim, A. and Ozis, T. (2009) Solutions of Singular IVPs of Lane-Emden Type by the Variational Iteration Method. Nonlinear Analysis, 70, 2480-2484.</mixed-citation></ref><ref id="scirp.76439-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Dehghan, M. and Shakeri, F. (2008) Approximate Solution of a Differential Equation Arising in Astrophysics Using the Variational Iteration Method. New Astronomy, 13, 53-59.</mixed-citation></ref><ref id="scirp.76439-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Liao, S.J. (2003) Beyond Perturbation: Introduction to the Homotopy Analysis Method. Chapman and Hall, CRC Press, Boca Raton.  
https://doi.org/10.1201/9780203491164</mixed-citation></ref><ref id="scirp.76439-ref12"><label>12</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>He</surname><given-names> J.H. </given-names></name>,<etal>et al</etal>. (<year>2003</year>)<article-title>Homotopy Perturbation Method: A New Nonlinear Analytical Technique</article-title><source> Applied Mathematics and Computation</source><volume> 135</volume>,<fpage> 73</fpage>-<lpage>79</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.76439-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Gen, M. and Cheng, R. (1997) Genetic Algorithms and Engineering Design. John Wiley &amp; Sons, Hoboken.</mixed-citation></ref><ref id="scirp.76439-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Melanie, M. (1998) An Introduction to Genetic Algorithms. MIT Press, Cambridge.</mixed-citation></ref><ref id="scirp.76439-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Adomian, G. (1989) Nonlinear Stochastic Systems Theory and Applications to Physics. Kluwer Academic Publishers, Dordrecht.  
https://doi.org/10.1007/978-94-009-2569-4</mixed-citation></ref><ref id="scirp.76439-ref16"><label>16</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Wazwaz</surname><given-names> A.M. </given-names></name>,<etal>et al</etal>. (<year>2000</year>)<article-title>A New Algorithm for Calculating Adomian Polynomials for Nonlinear Operators</article-title><source> Applied Mathematics and Computation</source><volume> 111</volume>,<fpage> 53</fpage>-<lpage>69</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref></ref-list></back></article>