Approximate Solution of Non-Linear Fractional Klein-Gordon Equation Using Spectral Collocation Method

In this paper, we implement the spectral collocation method with the help of the Legendre polynomials for solving the non-linear Fractional (Caputo sense) Klein-Gordon Equation (FKGE). We present an approximate formula of the fractional derivative. The Legendre collocation method is used to reduce FKGE to the solution of system of ODEs which is solved by using finite difference method. The results of applying the proposed method to the non-linear FKGE show the simplicity and the efficiency of the proposed method.


Introduction
The theory of fractional calculus is initiated by Leibniz, Liouville, Riemann, Grunwald and Letnikov and since then has been found many applications in science and engineering.Finding accurate and efficient method for solving fractional differential equations has been an active research subject.Finding the exact solution for most of these equations is not an easy task, thus analytical and numerical methods must be used.
The Klein-Gordon equation plays a significant role in mathematical physics and many scientific applications such as solid-state physics, nonlinear optics, and quantum field theory [1].The equation has attracted much attention in studying solitons and condensed matter physics, in investigating the interaction of solitons in a collisionless plasma and the recurrence of initial states, and in examining the nonlinear wave equations [2].Wazwaz has obtained the various exact traveling wave solutions such as compactons, solitons and periodic solutions by using the tanh method [1].The study of numerical solutions of the Klein-Gordon equation has been investigated considerably in the last few years.In the previous studies, the most papers have carried out different spatial discretization of the equation ( [2] [3]).
In this work, we apply spectral collocation method (with the help of Legendre polynomials) to obtain the numerical solution of the non-linear FKGE of the form tt u x t aD u x t bu x t cu x t f x t x L t where D α denotes the Caputo fractional derivative of order α with respect to x, ( ) , u x t is unknown func- tion, and 0 a < , , b c and γ are known constants with γ ∈  , 1 γ ≠ ± .We consider the initial conditions and the boundary conditions as follows: ,0 , ,0 , 0,1 , ( ) ( ) The existence and the uniqueness of the solution of Equations ( 1)-( 3) are given in ([2]- [4]).

An Approximate Formula of the Fractional Derivative
The well-known Legendre polynomials are defined on the interval [ ] and can be determined with the aid of the following recurrence formula [19] ( ) ( ) ( ) In order to use these polynomials on the interval [ ] 0,1 we define the so called shifted Legendre polynomials by introducing the change of variable where ( ) The function ( ) u x , which is square integrable in [ ] 0,1 , may be expressed in terms of shifted Legendre po- lynomials as where the coefficients i c are given by ( ) ( ) ( ) In practice, only the first ( ) Theorem 1 [14].
Let ( ) u x be approximated by shifted Legendre polynomials as (8) and also suppose Theorem 2 [14].The error , where
Consider the fractional-order cubically nonlinear Klein-Gordon problem with the initial and boundary conditions ( ) ( ) where the source term ( ) The exact solution of this problem is ( ) In order to use the proposed method, we approximate ( ) , .
From Equation (11) and Theorem 1 we have We now collocate Equation ( 13) at ( ) For suitable collocation points we use roots of shifted Legendre polynomial ( ) In this case, the roots p x of shifted Legendre polynomial ( ) 2 P x , i.e. 0 1 0.1465, 0.8873.x x = = Also, by substituting Equation (12) in the boundary conditions we can find ( ) ( ) ( ) By using Equation (14) and Equation ( 15) we obtain the following non-linear system of ODEs: ( ) ( ) ( ) ( ) where Now, to use FDM [20] for solving the system ( 16)-( 19), we will use the following notations: n t n t = ∆ to be the integration time 0 16)- (19), is discretized and takes the following form: ( ) .
This system presents the numerical scheme of the proposed problem and is non-linear system of algebraic equations, and by solving this system yields the numerical solution of the non-linear FKGE (11).
The obtained numerical results by means of the proposed method are shown in Table 1 and Figure 1 and Figure 2. In Table 1, the absolute errors between the exact solution ex u and the approximate solution approx u , at with the following initial and boundary conditions:

Conclusion and Remarks
We have implemented Legendre spectral method for solving the non-linear FKGE.The proposed method gives excellent results when it is applied to FKGE.Absolute error by the method decreases while increasing iterations or level of resolution or both, as shown in Figures 1-4.It is evident that the overall errors can be made smaller by adding new terms from the series (8).Comparisons are made between approximate solutions and exact solutions to illustrate the validity and the great potential of the technique.
be obtained as follows: analytic form of the shifted Legendre polynomials ( ) k P x of de- gree k is given by

= with the final time 1 t
= are given.But, in Figure1, we presented comparison between the solution and the approximate solution using the proposed method at 1Consider the fractional cubically non-linear Klein-Gordon problem:

Figure 1 .
Figure 1.The exact and approximate solutions at 1.8 α = for different values of t.

Figure 2 .
Figure 2. The approximate solution at 2 t = for different values of α .
results by means of the proposed method are shown in Figure3and Figure4.In Figure3, we presented comparison between the exact solution and the approximate solution using the proposed method Also, in Figure4, we presented the behavior of the approximate solution at 2 t = for different values of 1

Figure 3 .
Figure 3.The exact and approximate solutions at 1.6 α = for different values of time t.

Figure 4 .
Figure 4.The approximate solution at 2 t = for different values of α .

Table 1 .
The absolute error between the exact and approximate solutions at