Abstract
In this paper, an approximate analytical solution of the bistable Allen–Cahn equation is given. The Allen–Cahn equation is a mathematical model to study the phase separation process in binary alloys and emerged as a convection-diffusion equation in fluid dynamics or reaction-diffusion equation in material sciences. A phase transition occurs at the interface when one material changes its composition or structure. The homotopy perturbation method and homotopy analysis method are used for finding the approximate solution. These methods don't need the use of any transformation, discretization, unrealistic restriction and assumption. The error estimates are computed by comparing with a numerical method, and a good agreement is observed.
Keywords: Mathematics, Chebyshev spectral method, Homotopy perturbation method, Numerical comparison, Allen-Cahn equation, Homotopy analysis method
Mathematics; Chebyshev spectral method; Homotopy perturbation method; Numerical comparison; Allen-Cahn equation; Homotopy analysis method
1. Introduction
The Allen-Cahn equation is a 2nd-order nonlinear parabolic partial differential equation representing some natural physical phenomenon [1]. This equation has been extensively used to study various physical problems, such as crystal growth [2], image segmentation [3] and the motion by mean curvature flows [4]. In particular, it has become a basic model equation for the diffuse interface approach developed to study phase transitions and interfacial dynamics in material science [5]. Thus, an efficient and accurate method for the solution of this equation has practical significance and has drawn the attention of many researchers. Finding exact or numerical solutions of nonlinear and stiff differential equations is not easy. However, with the advent of modern computers and sophisticated software, we are now able to solve such kind of problems using approximate analytical or numerical techniques. Numerical techniques are somewhat complicated due to different discretization schemes and computer coding. Therefore, approximate analytical methods are becoming popular for solving nonlinear differential equations. So far, many approximate analytical methods like Variational Iteration method [6, 7, 8, 9, 10], Homotopy analysis method [11, 12, 13], Adomian decomposition method [14, 15], Homotopy perturbation method [16, 17] among others are developed for solving a large class of differential equations [18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28]. In recent years many researchers used some modified and newly developed numerical and approximate analytical techniques to study the different problems of practical interest [29, 30, 31]. They also used different methods to study the fluids flow problems mainly non-Newtonian fluids and the effect of different physical parameters on the flow [32, 33, 34, 35].
In this paper, we consider the following time-dependent equation,
| (1) |
with initial and boundary conditions,
| (2) |
In the above equations, is a bounded domain, the parameter is a small positive constant which represents the interfacial thickness. The term with is a given double well potential. Eq. (1) describes the phase separation in binary alloys and the motion of antiphase boundaries in crystalline solids. It has become a basic model for the diffuse interface approach developed to study phase transitions and interfacial dynamics in material science.
2. Basic idea of homotopy perturbation method
In order to elaborate this method, we suppose the function given as;
| (3) |
subject to the boundary conditions:
| (4) |
where p is a differential operator, is known analytic function and β is boundary operator. The operator p can be further separated into linear and nonlinear operators, and respectively. Therefore, Eq. (3) can be written as:
| (5) |
We define a homotopy which satisfies:
| (6) |
where q ∈ [0,1] and is known as an embedding parameter, and is an initial approximation of Eq. (3). From Eq. (6), with q = 0 and q = 1, we will have respectively:
| (7) |
| (8) |
The variation of q from zero to one is same as change of from to . In topology, this is called deformation, while the terms and are called homotopy. By using HPM, we assume that the solution of Eq. (6) can be written as a power series in q:
| (9) |
Now setting q → 1, Eq. (9) yields:
| (10) |
In most cases, the series in Eq. (10) is convergent. For further details about convergence of the series solution obtained by using HPM the interested readers may referred to [36] and the reference there in. The unknowns can be calculated by comparing the like powers of q in Eq. (6).
3. Basic idea of homotopy analysis method
Let us consider the following nonlinear equation
| (11) |
Where is nonlinear operator, x and are independent variables and is the unknown function. By means of generalizing the traditional homotopy method, Liao [11] constructed the zero-order deformation equation as follows:
| (12) |
Where is the embedding parameter, is a non-zero auxiliary parameter, is an auxiliary function, is linear operator and is the initial guess of When and , Eq. (12) gives
| (13) |
Now expanding with respect to by Taylor series, we have
| (14) |
where
| (15) |
If we choose the linear operator, the initial guess, the auxiliary parameter and the auxiliary function properly, the series (14) converges at, then we get
| (16) |
Define the vector
| (17) |
The nth-order deformation equation obtained using Eq. (12) is given as,
| (18) |
Where
| (19) |
and
| (20) |
Now applying on both sides of Eq. (18) and simplifying, we get
| (21) |
In this way one can easily obtain the approximate solution of the form
| (22) |
where can be obtained by solving Eq. (21).
4. Solution of the Allen-Cahn equation using homotopy perturbation method
In this section, we solve the Allen-Cahn equation with different initial and boundary conditions using HPM.
4.1. Example 1
Consider the Allen-Cahn equation of the form [37],
| (23) |
with the initial condition,
| (24) |
By choosing initial condition as an initial guess, i.e.,
| (25) |
which satisfy the boundary conditions,
| (26) |
The homotopy expression for Eq. (23) will be,
| (27) |
here .
Now consider the series solution of Eq. (23) is of the form,
| (28) |
Taking limit in Eq. (28), we get,
| (29) |
Using Eq. (28) in Eq. (27) and comparing the like powers of embedding parameter ‘p’, we get the following system of equations,
| (30) |
| (31) |
| (32) |
Solving Eqs. (30), (31), and (32), we get the following solutions,
| (33) |
| (34) |
| (35) |
Similarly we can calculate to get the required accuracy.
Substituting the values of from Eqs. (33), (34), and (35) in Eq. (29) to get the approximate analytical solution of the form;
| (36) |
4.2. Graphical representation
Figure 1 and Figure 2 show the comparison of approximate analytical solution using HPM and numerical solution obtained by solving the Allen Cahn equation using Chebyshev spectral method [19] for different time scales at . The Figure 3 show the surface plot.
Figure 1.
Comparison of numerical solution and HPM solution at t = 0.1 and.
Figure 2.
Comparison of numerical solution and HPM solution at t = 1.0 and.
Figure 3.
Homotopy perturbation solution for for the first five approximations when.
4.3. Example 2
Next, we consider the Allen-Cahn equation with different initial and boundary conditions [29];
| (37) |
with the initial condition
| (38) |
Here, we will use initial condition as an initial guess,
| (39) |
with the homogeneous boundary conditions,
| (40) |
The homotopy expression for Eq. (37) will be,
| (41) |
Now consider the series solution of Eq. (37) as in Eq. (28). Using Eq. (28) in Eq. (41) and comparing the like powers of embedding parameter ‘p’, we get the following system of equations;
| (42) |
| (43) |
| (44) |
Solving Eqs. (42), (43), and (44), we get the following solutions;
| (45) |
| (46) |
| (47) |
Similarly, we can calculate to get the required accuracy.
Substituting the values of from Eqs. (45), (46), and (47) in Eq. (29) we get the approximate analytical solution as;
| (48) |
4.4. Graphical representation
Figure 4 and Figure 5 show the comparison of approximate analytical solution using HPM and numerical solution obtained by Chebyshev collocation method [19] for different time scales at Figure 6 show surface plot.
Figure 4.
Comparison of numerical solution and HPM solution at t = 0.1.
Figure 5.
Comparison of numerical solution and HPM solution at t = 1.0 and.
Figure 6.
Describes the homotopy Analysis results for for the first five approximations when.
5. Solution of the Allen Cahn equation using homotopy analysis method
In this section we will solve above examples using HAM and will compare the results with the HPM through absolute error tables.
5.1. Example 1
Here we repeat example (1) as represented in Eq. (23) along with given initial and boundary conditions. Using Eqs. (19) and (21), we can write nth order deformation equation for Eq. (23) given below;
| (49) |
where
| (50) |
For , Eq. (49) and Eq. (50) gives;
| (51) |
| (52) |
In order to obey both the rule of solution expression and the rule of the coefficient ergodicity [11], the corresponding auxiliary function can be determined uniquely H(x, t)=1. Using Eq. (25) in Eq. (52) to get and then using the value of in Eq. (51), we obtain first approximation,
| (53) |
Similarly, for , we get second approximation
| (54) |
Continuing in a similar manner we can find for and the final solution will be:
| (55) |
5.2. h-curves of the HAM solution for example (1)
The convergence and rate of approximation for the HAM solution strongly depends on the values of auxiliary parameter ‘h’. It is straightforward to choose a proper value of h which ensure that the solution series is convergent. It is easy to discover the valid region of h, which corresponds to the line segments nearly parallel to the horizontal axis [11]. Here h-curve is plotted after 5th-order of HAM approximations when, t = 0.5 and x = -1. Figure 7 clearly depicts the range for admissible values of ‘h’ is -2.5 < h < 1.5.
Figure 7.
h-curve of denoted by dashed line and denoted by solid line.
5.3. Absolute error analysis
In this section, we demonstrate how close an approximate solutions of the Alen-Cahn equation obtained using HPM and HAM. In Table 1 and Table 2 we have presented absolute error.
Table 1.
The absolute error between the solutions obtained by using HPM and HAM after fifth order approximations, taking and.
| 0.00 | 0.2 | 0.4 | 0.6 | 0.8 | 1.0 | |
|---|---|---|---|---|---|---|
| -1 | ||||||
| -0.5 | ||||||
| 0.00 | ||||||
| 0.5 | ||||||
| 1 |
Table 2.
The absolute error between the solutions obtained by using HPM and HAM after fifth order approximations, taking and.
| 0.00 | 0.2 | 0.4 | 0.6 | 0.8 | 1.0 | |
|---|---|---|---|---|---|---|
| 0 | ||||||
5.4. Effect of thickness parameter on solution
The effect of thickness parameter is studied in Figure 8, clearly this figure show the behaviour of solution for different values of thickness parameter at t = 0.5.
Figure 8.
Impact of thickness parameter on solution u(x, t).
6. Example 2
In this section we repeat example (2) as presented in Eq. (37) along with given initial and boundary conditions.
From Eqs. (19) and (21), we can write nth order deformation equation for Eq. (37) is given below;
| (56) |
where
| (57) |
Again from example 2, we assume.
For , Eq. (56) and Eq. (57) gives;
| (58) |
| (59) |
Using Eq. (39) in Eq. (59) and then using the result obtained in Eq. (58), we obtain first approximation,
| (60) |
Similarly, for, we get second approximation,
| (61) |
Continuing in a similar manner we can find forand the final solution will be;
| (62) |
6.1. h-curve for example 2
Here h-curve is plotted after 5th-order of HAM approximations for example (2) when, t = 0.5 and x = 2.5. Figure 9 clearly show the range for admissible values of ‘h’ is -3 < h < 2.
Figure 9.
h-curve of dashed line and.
6.2. Absolute error analysis
In this section absolute difference between the solution obtained by HPM and HAM for example (2) is presented.
6.3. Effect of thickness parameter on solution
The effect of thickness parameter for example (2) is studied in Figure 10, clearly this figure show the stability of solution for different values of thickness parameter at t = 0.5.
Figure 10.
Figure show the behaviour of solution for different values of.
7. Conclusion
In this work, the HPM and HAM are successfully implemented to obtain an approximate analytical solution of the Allen-Cahn equation. Comparison has made of the obtained analytical solutions with numerical one using Chebyshev spectral method. Computed results are illustrated graphically, and a good agreement is observed. However, analytical techniques require no discretization, transformation or large computer memory when compare to numerical methods. Also, comparison between HPM and HAM is provided in tabulated form (Table 1 and Table 2) to show the accuracy of the analytical solutions. Effect of thickness parameter has also been studied for different values and illustrated graphically.
Declarations
Author Contribution Statement
S. Hussain: Conceived and designed the experiments; Wrote the paper.
A. Shah: Analyzed and interpreted the data.
S. Ayub, A. Ullah: Contributed reagents, materials, analysis tools or data. Conceived and designed the experiments; Performed the experiments; Analyzed and interpreted the data; Contributed reagents, materials, analysis tools or data; Wrote the paper.
Funding Statement
This research did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors.
Competing Interest Statement
The authors declare no conflict of interest.
Additional Information
No additional information is available for this paper.
References
- 1.Allen S., Cahn J.W. A microscopic theory for antiphase boundary motion and its application to antiphase domain coarsening. Acta Metall. 1979;27:1085–1095. [Google Scholar]
- 2.Shah Abdullah, Sabir Muhammad, Peter Bastain. An efficient time-stepping scheme for numerical simulation of dendritic crystal growth. Eur. J. Comput. Mech. 2017;25(6):475–488. [Google Scholar]
- 3.Benes M., Chalupecky V., Mikula K. Geometrical image segmentation by the Allen–Cahn equation. Appl. Numer. Math. 2004;51(2):187–205. [Google Scholar]
- 4.Shah Abdullah, Sabir Muhammad, Qasim Muhammad, Bastain Peter. Efficient numerical scheme for solving the Allen-Cahn equation. Numer. Methods Partial. Differ. Equ. 2018;34:1820–1833. [Google Scholar]
- 5.Shah Abdullah, Yuan Li. Numerical solution of a phase-field model for incompressible two-phase flows based on artificial compressibility. Comput. Fluids. 2011;42(1):54–61. [Google Scholar]
- 6.He J.H. Variational iteration method some recent results and new interpretations. J. Comput. Appl. Math. 2007;207:3–17. [Google Scholar]
- 7.Wazwaz A.M. The variational iteration method for rational solutions for KdV, K(2,2), burgers and cubic boussinesq equations. J. Comput. Appl. Math. 2007;207(1):18–23. [Google Scholar]
- 8.Wazwaz A.M. The variational iteration method: a reliable analytic tool for solving linear and nonlinear wave equations. Comput. Math. Appl. 2007;54(7–8):926–932. [Google Scholar]
- 9.Wazwaz A.M. The variational iteration method for solving linear and nonlinear systems of PDEs. Comput. Math. Appl. 2007;54(7–8):895–902. [Google Scholar]
- 10.Shah Abdullah, Khlil S., Hussain S. An efficient iterative technique for solving some nonlinear problems. Int. J. of Nonlinear Sci. 2012;13(1) [Google Scholar]
- 11.Liao S.J. CRC Press; Boca Raton: 2003. Beyond Perturbation: Introduction to the Homotopy Analysis Method. Chapman & Hall. [Google Scholar]
- 12.Liao S.J. Shanghai Jiao Tong University; 1992. The Proposed Homotopy Snalysis Technique for the Solution of Nonlinear Problems, Ph.D. Thesis. [Google Scholar]
- 13.Liao S.J. Comparison between the homotopy analysis method and homotopy perturbation method. Appl. Math. Comput. 2005;169:1186–1194. [Google Scholar]
- 14.Adomian G.A. Review of the decomposition method in applied mathematics. J. Math. Anal. Appl. 1988;135:501–544. [Google Scholar]
- 15.Repaci A. Nonlinear dynamical systems: on the accuracy of Adomian’s decomposition method. Appl. Math. Lett. 1990;3(3):35–39. [Google Scholar]
- 16.He J.H. A coupling method of homotopy technique and perturbation technique for nonlinear problems. Int. J. Non-Linear Mech. 2000;35(1):37–43. [Google Scholar]
- 17.He J.H. Homotopy perturbation method for solving boundary value problems. Phys. Lett. A. 2006;350:87–88. [Google Scholar]
- 18.Ozdemir O., Kaya M.O. Flapwise bending vibration analysis of a rotating tapered cantilever Bernouli-Euler beam by differential transform method. J. Sound Vib. 2006;289:413–420. [Google Scholar]
- 19.Trefethen L.N. Oxford University; Oxford, England: 2000. Spectral Methods in Matlab. [Google Scholar]
- 20.Gristchak V.Z., Ye V.Z., Dmitrieva M. A hybrid WKB-galerkin method and its application. Tech. Mech. 1995;15:281–294. [Google Scholar]
- 21.Tadmor E. The exponential accuracy of Fourier and Chebyshev differencing methods. SIAM. Numer. Anal. 1986;23:1–10. [Google Scholar]
- 22.Abdel-Halim Hassan I.H. Application to differential transformation method for solving systems of differential equations. Appl. Math. Model. 2008;32(12):2552–2559. [Google Scholar]
- 23.Zaid M. Odibat, Differential transform method for solving Volterra integral equation with separable kernels. Math. Comput. Model. 2008;7(8):1144–1149. [Google Scholar]
- 24.Siddiqui A.M., Shah Abdullah, Ghori Q.K. Homotopy analysis of slider bearing lubricated with powell-eyring fluid. J. Appl. Sci. 2006;6(11):2358–2367. [Google Scholar]
- 25.Hussain S., Shah Abdullah. An analysis of two iterative techniques for solution of Cahn-Hilliard equation. Int. J. of Nonlinear Sci. 2011;12(1):42–47. [Google Scholar]
- 26.Malfliet W. The tanh method: a tool for solving certain classes of nonlinear evolution and wave equations. J. Comput. Appl. Math. 2004;(164–165):529–541. [Google Scholar]
- 27.Li Haofeng, Chen Wenzhen, Zhu Qian, Luo Lei. Exponential function method for solving point reactor neutron kinetics equations. Nucl. Power Eng. 2009;30(4):28–31. [Google Scholar]
- 28.Biazar J., Ghazvini H. Convergence of the homotopy perturbation method for partial differential equations. Nonlinear Anal. Real World Appl. 2009;10:2633–2640. [Google Scholar]
- 29.Marinca B., Marinca V. New exact and explicit solutions of the zakharov equations and generalized zakharov equations by the quotient trigonometric function expansion method. Proc. Rom. Acad. Ser. A. 2017;18:166–173. [Google Scholar]
- 30.Herisanu N., Marinca V., Madescu G., Gheorghe, Dragan F. Dynamic response of a permanent magnet synchronous generator to a wind gust. Energies. 2019;12(5):915. [Google Scholar]
- 31.Herisanu N., Marinca V. An iteration procedure with application to Van der Pol oscillator. Int. J. Nonlinear Sci. Numer. Stimul. 2009;10:353–361. [Google Scholar]
- 32.Marinca B., Marinca V. Approximate analytical solutions for thin film flow of a fourth grade fluid down a vertical cylinder. Proc. Rom. Acad. Ser. A. 2018;19:69–76. [Google Scholar]
- 33.Marinca B., Marinca V. Optimal auxiliary functions method for nonlinear thin film flow of a third grade fluid on a moving belt. Proc. Rom. Acad. Ser. A. 2018;19:575–580. [Google Scholar]
- 34.Marinca V., Vasile, Herişanu N. On the flow of a Walters-type B’ viscoelastic fluid in a vertical channel with porous wall. Int. J. Heat Mass Transf. 2014;79:146–165. [Google Scholar]
- 35.Khan M.I., Haq F., Hayat T., Alsaedi A., Rahman M. Natural bio-convective flow of Sisko nanofluid subject to gyrotactic microorganisms and activation energy. Phys. Scr. 2019 [Google Scholar]
- 36.Biazar J., Ghazvini H. Convergence of the homotopy perturbation method for partial differential equations. Nonlinear Anal. Real World Appl. 2009;10:2633–2640. [Google Scholar]
- 37.Huailing S., Lijian J., Qiuqi L. A reduced order method for Allen–Cahn equations. J. Comput. Appl. Math. 2016;292:213–229. [Google Scholar]










