0% found this document useful (0 votes)
5 views13 pages

2016 - AM (With Rustam)

This paper presents an efficient numerical scheme using a spectral method combined with Chebyshev wavelets to solve the Klein-Gordon and Sine-Gordon equations. The proposed method converts the problem into a system of algebraic equations, demonstrating superior accuracy and efficiency through various benchmark tests compared to existing methods. The study highlights the advantages of wavelet analysis and spectral methods in addressing complex partial differential equations in scientific applications.

Uploaded by

javid2iqbal
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views13 pages

2016 - AM (With Rustam)

This paper presents an efficient numerical scheme using a spectral method combined with Chebyshev wavelets to solve the Klein-Gordon and Sine-Gordon equations. The proposed method converts the problem into a system of algebraic equations, demonstrating superior accuracy and efficiency through various benchmark tests compared to existing methods. The study highlights the advantages of wavelet analysis and spectral methods in addressing complex partial differential equations in scientific applications.

Uploaded by

javid2iqbal
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Applied Mathematics, 2016, 7, 2097-2109

[Link]
ISSN Online: 2152-7393
ISSN Print: 2152-7385

Numerical Solution of Klein/Sine-Gordon


Equations by Spectral Method Coupled with
Chebyshev Wavelets

Javid Iqbal, Rustam Abass

Department of Mathematical Sciences, BGSB University, Rajouri, India

How to cite this paper: Iqbal, J. and Abass, Abstract


R. (2016) Numerical Solution of Klein/Sine-
Gordon Equations by Spectral Method Coupled The basic aim of this paper is to introduce and describe an efficient numerical
with Chebyshev Wavelets. Applied Mathe- scheme based on spectral approach coupled with Chebyshev wavelets for the ap-
matics, 7, 2097-2109. proximate solutions of Klein-Gordon and Sine-Gordon equations. The main charac-
[Link]
teristic is that, it converts the given problem into a system of algebraic equations that
Received: September 5, 2016 can be solved easily with any of the usual methods. To show the accuracy and the ef-
Accepted: November 12, 2016 ficiency of the method, several benchmark problems are implemented and the com-
Published: November 15, 2016
parisons are given with other methods existing in the recent literature. The results of
Copyright © 2016 by authors and
numerical tests confirm that the proposed method is superior to other existing ones
Scientific Research Publishing Inc. and is highly accurate.
This work is licensed under the Creative
Commons Attribution International Keywords
License (CC BY 4.0).
[Link] Chebyshev Wavelets, Spectral Method, Operational Matrix of Derivative, Klein and
Open Access Sine-Gordon Equations, Numerical Simulation, MATLAB

1. Introduction
Many physical phenomena encountered in science and engineering are governed by
ordinary as well as partial differential equations. Some disciplines that use partial
differential equations to describe the phenomena of interest are fluid mechanics, solid
mechanics, quantum mechanic, propagation of acoustic and electromagnetic waves and
problems in heat and mass transfer. Many linear and nonlinear phenomena appear in
several areas of scientific fields like physics, chemistry and biology can be modeled by
different type of partial differential equation such as evolution equation, reaction diffu-
sion equation, Schrodinger type wave equations, Vander Poll’s equation, Telegraph
equation, Lyapunov equation etc. A broad class of analytical methods and numerical

DOI: 10.4236/am.2016.717167 November 15, 2016


J. Iqbal, R. Abass

methods available in the literature are used to handle these problems. In this present
work we are dealing with two partial differential equation named as Klein-Gordon and
Sine-Gordon equations. The Klein-Gordon equation is as follows:
− β u yy + g ( u ) f ( x, y ) , ( x, y ) ∈ Ω, t ≥ 0
utt − α u xx = (1)

where u = u ( x, t ) represents the wave displacement at position x and time t, α and


β are known constant, g ( u ) is the given nonlinear force and f is the known
function. If we assign the nonlinear force g ( u ) = sin u in (1) then it is known as Sine-
Gordon equation. The Klein-Gordon equation plays an important role in mathematical
physics [1] [2] [3] and attracted more attention from scientists and engineering in
different matter like investigation of the interaction of solutions in a collisionless
plasma, the recurrence of initial states and examination of the nonlinear wave equ-
ations, studying the solutions and condensed matter physics and relativistic physics as a
model of dispersive phenomena. On the other hand, Sine-Gordon equations appeared
in many physical problems like applications in relativistic field theory, Josephson junc-
tions or mechanical transmission lines [4] [5] [6] [7]. Numerical solution of partial
differential equations is far more demanding than the ordinary ones. Several analytical
or numerical methods such as decomposition method [8], variational iteration method
[9], He’s variational iteration method [10], collocation and radial basis functions [11],
auxiliary equation method [12], spectral method [13] [14] [15], wavelet method [16]
[17] [18] and the references therein have been proposed for the numerical solution of
these types of equations. Among all these method mentioned above, spectral and wave-
let method has got more attention of researcher from the last two decades.
Wavelet analysis had made a lot of successes in different fields of science and engi-
neering due to its beautiful properties such as orthogonality, multi-resolution analysis
and computational efficiency. Wavelet permits the accurate representation of a variety
of functions and operators. Wavelet analysis and wavelet transform are recently devel-
oped mathematical tool for solving the linear and non-linear ordinary differential equa-
tions, partial differential equations and integral equation. Wavelets also applied in nu-
merous disciplines such as image compression, data compression and deionising data.
Most commonly wavelets are Haar, Legendre, Chebyshev are used to find the numeri-
cal solution of partial differential equations. In addition wavelet approach can make a
connection with some fast and reliable numerical methods. The spectral method has
the advantage of exponential convergence property when orthogonal basis functions
are involved. As a result, it plays a vital role in solving partial differential equation. It is
important to choose the basis function for possible coupling with spectral method. The
wavelet basis can combine the advantages of both infinitely differentiable and small
compact support which is far better than the spectral and finite element basis.
In recent year, spectral method [19] [20] using Legendre polynomials and Legendre
wavelets as basic functions are considered to solve the Klein-Gordon and Sine-Gordon
equations. By inspiring the work done in [19] [20], we use the Chebyshev wavelet as
basis function coupled with spectral method for solving nonlinear Klein-Gordon and
Sine-Gordon equations. Therefore, spectral collocation methods based on Chebyshev

2098
J. Iqbal, R. Abass

wavelet basis can obtain good spatial and spectral resolution while still keeping high ef-
ficiency.
The rest of the paper is as follows: In Section 2, Chebyshev wavelet and its properties
are discussed. Operational matrix of derivative required for our subsequent develop-
ment is presented in Section 3. Section 4 is devoted to present the Chebyshev wavelets
spectral collocation method for solving Klein-Gordon and Sine-Gordon equations then
approximate the unknown function. Section 5 deals with the illustrative examples and
their solutions by the proposed approach compared with exact as well as with existing
literature. Finally, concluding remarks are made in Section 6.

2. Wavelets and Chebyshev Wavelets


In the past decades, wavelets [21] [22] [23] shows their interest in different fields of
science and technology due to its beautiful properties. Wavelets constitute the family of
functions constructed from the dilation and translation of a single function known as
the Mother wavelet. When the dilation parameter a and translation parameter b vary
continuously we have the following family of continuous wavelets [23]

1
t −b
=ψ a ,b(t ) a 2 ψ  ; a, b ∈ , a ≠ 0. (2)
 a 
If we choose a = a0− k and b = nb0 a − k where a0 > 1,b0 > 0 and n, k ∈  + then we
get the following family of discrete wavelets:

ψ ( a0k t − nb0 ) .
k
ψ k ,n ( t ) a0

= 2 (3)

These family of functions are a wavelet basis for L2 (  ) and makes an orthonormal
basis for the special case a0 = 2 and b0 = 1 .
Chebyshev wavelets ψ n ,m ( t ) = ψ ( k , m, n, t ) have four arguments, k = 0,1, 2, ,
n = 1, 2, , 2k , m is the degree of Chebyshev polynomial of first kind and t denotes the
normalized time. They are defined on the interval [ 0,1) by
α m 2k 2 n −1

ψ n ,m ( t ) =  π m
(
T 2k +1 t − 2n + 1 , ) 2 k
≤t ≤ k
2
n
(4)
0,
 otherwise

where

 2, m = 0
αm = 
2, m = 1, 2,

Tm ( t ) in (4) are well known Chebyshev polynomial of order m, which is orthogonal


1
with respect to the weight function ω ( t ) = and satisfy the following recursive
1− t2
formula:
T0 ( t ) = 1

T1 ( t ) = t

2099
J. Iqbal, R. Abass

Tm+1 ( t ) =
2tTm ( t ) − Tm−1 ( t ) , m =
1, 2, 3,.

Moreover, the set of Chebyshev wavelet are an orthogonal set with respect to the
(
( t ) ω 2k +1 t − 2n + 1 .
weight function ωn = )
Any function f ( t ) ∈ L2 [ 0,1] may be expanded in terms of Chebyshev wavelet as
∞ ∞
f ( t ) = ∑∑cnmψ nm ( t ) , (5)
= = 0
n 1m

where the wavelet coefficients of the series representation in (5) become


cnm = f ( t ) ,ψ nm ( t ) wn ( t )
. (6)

If the infinite series in (5) is truncated then Equation (5) can be written as
2k −1 M −1
f (t ) ≅ ∑ ∑cnmψ nm ( t ) =
C T Ψ (t ) , (7)
=
n 1=
m 0

where C and Ψ ( t ) are 2k −1 M × 1 matrices given by:


T
C = c1,0 , c1,1 , , c1,M −1 , c2,0 , c2,1 , , c2,M −1 , , c2k −1 ,0 , , c2k −1 M −1  , (8)
 
T
Ψ (t ) =
ψ 1,0 ,ψ 1,1 , ,ψ 1,M −1 ,ψ 2,0 ,ψ 2,1 , ,ψ 2,M −1 , ,ψ k −1 , ,ψ k −1  . (9)
 2 ,0 2 , M −1 

3. Chebyshev Wavelets Operational Matrix of Derivative


In this section, we first derive the operational matrix D of derivative which plays a great
role in order to reducing the given problem into solving the system of algebraic
equation. For this, we concern with some Theorem and Corollary as follows.
Theorem 1 [24]. Let Ψ ( t ) be the Chebyshev wavelets vector defined in (9), then we
have
dΨ ( t )
= DΨ ( t ) , (10)
dt
where D is 2 ( M + 1) operational matrix of derivative as follows:
k

F O … O
O F … O 
D= , (11)
   
 
O O … F 
in which O is an ( M − 1) × ( M + 1) zero matrix, F is an ( M + 1)( M + 1) matrix and
its ( i, j ) th element is defined as follows:

2
Fi , j = 
k +1
( 2r − 1)( 2s − 1) , i = 2, , ( M + 1) , j = 1, , i − 1 and ( i + j ) is odd
(12)

0, otherwise.

Corollary 1. By using Equation (10), the operational matrix for nth derivative can be
derived as
dnΨ (t )
= Dn Ψ (t ) ,
dt n

2100
J. Iqbal, R. Abass

where D n is the nth power of matrix D.

4. Chebyshev Wavelets Spectral Collocation Method


In different type of numerical methods, spectral methods are one of the most popular
methods of discretization for the numerical solution of partial differential equations
and integral equations. The main advantage of this method lies in their accuracy for a
given number of unknowns. For smooth problems in simple geometries, they offer ex-
ponential rates of convergence or spectral accuracy. In the recent literature, Galerkin,
collocation, and Tau methods are the three most widely used spectral versions, in which
collocation methods have become increasingly popular for solving differential equa-
tions, also they are very useful in providing highly accurate solutions to nonlinear dif-
ferential equations. Now, we focus on the solution nature of this method as follows:
Let us consider the equation in the form:
g ( u ) f ( x, t ) , x ∈ [ xL , xR ] , t ≥ 0,
utt − α u xx + = (13)

with the initial conditions



u ( x, 0 ) g1 ( x ) , =
= u ( x, 0 ) g 2 ( x ) , x ∈ Ω, t ≥ 0 (14)
∂t
or boundary conditions
u ( x, t ) h ( x, t ) , x ∈ ∂Ω, t > 0.
= (15)

In order to transform the arbitrary domain xL ≤ x ≤ xR into the domain defined for
Chebyshev wavelet basis 0 ≤ x ≤ 1 , on can use the translation
x − xL
x : [ xL , xR ] → [ 0,1] , X ( x) =
xR − xL

By employing θ-weight scheme [20], discreting the Equation (13), we can get
u n +1 − 2u n + u n −1  ∂ 2 u n +1   ∂ 2u n 
= θ α 2  (
− 1 − θ ) α 2 
+g =
un ( )
f n , 0 < θ ≤ 1, (16)
( ∆t ) ∂x   ∂x 
2

where ∆t is the time step size with the expression u n ( x ) = u ( tn , x ) , tn = n × ∆t.


Now Equation (16) becomes
2 ∂ 2 u n +1 
u n +1 − θ ( ∆t )  α 
 ∂x 2 
(17)
2∂ u 
2 n
= 2u n + (1 − θ )( ∆t )  2
2
( )
 − ( ∆t ) g u + ( ∆t ) f − u .
n 2 n n −1

 ∂x 
In the light of Equation (7),the term u n can be expanded by Chebyshev wavelet as
u n ( x=
) CnT Ψ ( x ) . (18)

Submitting Equation (18) into Equation (17), we have

( x)
CnT+1 H Lψ= (C T
n ) 2
( )
H R − CnT−1 ψ ( x ) − ( ∆t ) g CnTψ ( x ) + ( ∆t ) f n ,
2
(19)

I αθ ( ∆t ) D 2 and H R = 2 I + α (1 − θ )( ∆t ) D 2 , where D is the deri-


in which H L =−
2 2

2101
J. Iqbal, R. Abass

vative matrix taken from Equation (10)


Also, by using the boundary conditions given in Equation (15), one can get
CnT+1Ψ ( 0 ) h ( 0, tn +1 ) and
= = CnT+1Ψ (1) h (1, tn +1 ) . (20)
k −1
{ xi }i = 2
M −1
Collocating Equation (19) in 2k −1 M − 2 Gauss-Chebyshev points
2
, we
have

( xi )
CnT+1 H L Ψ= (C T
n ) 2
( )
H R − CnT−1 Ψ ( xi ) − ( ∆t ) g CnT Ψ ( xi ) + ( ∆t ) f n ( xi , tn ) .
2
(21)

Equation (20) and (21) can be written as matrix form


ACn +1 = B, (22)

where A and B are 2k −1 M × 2k −1 M and 2k −1 M × 1 matrices, respectively.


Again using the first and second initial conditions given in Equation (14), we have

0 Ψ ( x)
C= gi ( x ) , x ∈ Ω (23)
T

and
u1 − u −1
= g2 (t ) , x ∈ Ω (24)
2∆t
Equation (24) can be written as
C−T1Ψ ( x ) = C1T Ψ ( x ) − 2∆tg 2 ( x )

Equation (22) using Equation (23) gives a linear system of equations with 2k −1 M
unknown and equations, which can be solved to find Cn +1 in each step n = 0,1, 2,
so the unknown function u ( x, tn ) in any time t = tn can be found. Moreover, we
defined the error bound for e L and e L as
2 ∞

∑ ( e j ) , e L max e j ,
M 2
=eL =
2 ∞ j
j =1

where
= ej ( uexact ) j − ( uapprox ) j and=e uexact − uapprox .

5. Numerical Results and Discussions


In this section, we use Chebyshev wavelets spectral collocation method described in
section 4 to solve nonlinear type of Klein-Gordon and Sine-Gordon equations. The
proposed method provides a reliable technique which is computer oriented if compared
with traditional techniques. To give the clear overview of this method we consider three
examples of Klein-Gordon equation and Sine-Gordon equation. All the results are
calculated by using the symbolic calculus software MATLAB 2013a and Mathematica.
Example 1 [25] We consider the nonlinear Klein-Gordon Equation (13) with α = 1 ,
− x cos t + x 2 cos 2 t in the interval [ −1,1] with the initial
g ( u ) = u 2 and f ( x, t ) =
conditions
u ( x, 0=
) x, ut ( x, 0=) 0, − 1 ≤ x ≤ 1
and the Dirichlet boundary condition
u ( x, t ) h ( x, t ) , x ∈ ∂Ω, t > 0.
=

2102
J. Iqbal, R. Abass

The analytical solution is given by


f ( x, t ) = − x cos t.

The obtained L2 and L∞ errors of Example 1 at step size 0.0001 is presented in


comparison with the existing method in Table 1 and Table 2 for= k 2,= M 3 and
=k 2,=M 4 and graphically shown in Figure 1 for= k 2,= M 4 . It is evident from
Table 1, Table 2 and Figure 1 that the solutions obtain by using CWSCM are in good
agreement and are better than the results obtained by existing method presented in [25].
However, the errors may be reduced significantly if we increase level of resolution.

Table 1. L2 and L∞ error of Example 1 at=k 2,=


M 3 and compared with [25].

L2 ( M = 3) L∞ ( M = 3)

t CWSCM MFDCM [25] CM [25] CWSCM MFDCM [25] CM [25]

0.1 3.1 × 10−14 2.2 × 10−12 1.7 × 10−4 5.3 × 10−12 3.5 × 10−12 2.6 × 10−4

0.2 6.4 × 10−14 8.2 × 10−12 4.4 × 10−4 4.8 × 10−12 1.3 × 10−11 3.5 × 10−4

0.3 4.0 × 10−12 1.7 × 10−11 3.6 × 10−4 6.0 × 10−12 2.5 × 10−11 2.3 × 10−4

0.4 1.4 × 10−13 2.7 × 10−11 4.0 × 10−4 4.1 × 10−12 4.1 × 10−11 3.1 × 10−4

0.5 9.6 × 10−13 3.7 × 10−11 4.2 × 10−4 7.5 × 10−12 5.7 × 10−11 3.3 × 10−4

0.6 3.5 × 10−13 4.7 × 10−11 3.5 × 10−4 8.9 × 10−12 6.9 × 10−11 2.6 × 10−4

0.7 2.9 × 10−13 5.5 × 10−11 3.8 × 10−4 2.0 × 10−12 6.8 × 10−11 2.4 × 10−4

0.8 5.7 × 10−13 6.0 × 10−11 2.9 × 10−4 5.4 × 10−12 8.2 × 10−11 3.0 × 10−4

0.9 3.7 × 10−13 6.2 × 10−11 2.7 × 10−4 7.3 × 10−12 8.1 × 10−11 2.5 × 10−4

1.0 8.3 × 10−12 5.9 × 10−11 2.3 × 10−4 5.2 × 10−11 8.1 × 10−11 2.2 × 10−4

Table 2. L2 and L∞ error of Example 1 at=k 2,=


M 4 and compared with [25].

L2 ( M = 4 ) L∞ ( M = 4 )

t CWSCM MFDCM [25] CM [25] CWSCM MFDCM [25] CM [25]

0.1 6.4 × 10−14 5.6 × 10−14 4.1 × 10−5 5.3 × 10−13 6.7 × 10−14 6.7 × 10−5

0.2 5.5 × 10−14 9.6 × 10−13 3.6 × 10−5 1.3 × 10−14 4.1 × 10−12 4.2 × 10−5

0.3 5.4 × 10−13 2.4 × 10−12 4.9 × 10−5 9.1 × 10−13 3.8 × 10−12 5.6 × 10−5

0.4 7.9 × 10−13 4.7 × 10−12 5.4 × 10−5 7.5 × 10−13 5.9 × 10−12 7.3 × 10−5

0.5 8.1 × 10−13 4.2 × 10−12 6.3 × 10−5 6.9 × 10−13 5.8 × 10−12 8.3 × 10−5

0.6 4.5 × 10−13 4.8 × 10−12 4.5 × 10−5 1.4 × 10−13 7.3 × 10−12 6.6 × 10−5

0.7 4.7 × 10−13 6.3 × 10−12 5.8 × 10−5 6.2 × 10−13 8.2 × 10−12 7.4 × 10−5

0.8 7.3 × 10−13 7.1 × 10−12 7.0 × 10−5 8.9 × 10−13 8.9 × 10−12 8.1 × 10−5

0.9 9.4 × 10−13 6.9 × 10−12 5.2 × 10−5 9.7 × 10−13 8.8 × 10−12 7.9 × 10−5

1.0 9.6 × 10−13 6.4 × 10−12 5.3 × 10−5 4.1 × 10−13 8.7 × 10−12 7.7 × 10−5

2103
J. Iqbal, R. Abass

Figure 1. Comparison of exact solution with approximate solution for Example 1 at=k 2,=
M 4.

Example 2 [25] We consider the nonlinear Klein-Gordon Equation (13) with α = 1 ,


g ( u ) = u 2 and f ( x,= ( )
t ) 6 xt x 2 − t 2 + x 6t 6 in the interval [ 0,1] with the initial con-
ditions
) 0, ut ( x, 0=) 0, 0 ≤ x ≤ 1
u ( x, 0=

and the Dirichlet boundary condition


u ( x, t ) h ( x, t ) , x ∈ ∂Ω, t > 0.
=

The analytical solution is given by


f ( x , t ) = x 3t 3 .

The L2 and L∞ errors of Example 2 at step size 0.0001 are presented in com-
parison with the existing method in Table 3 and Table 4 for= k 2,=M 3 and k = 2,
M = 4 . From Table 3, Table 4 and Figure 2, it is clear that CWSCM performs much
better than existing methods [25] and with the increase in number of collocation points
the errors decrease for the solution.

2104
J. Iqbal, R. Abass

Table 3. L2 and L∞ error of Example 2 at=k 2,=


M 3 and compared with [25].

L2 ( M = 3) L∞ ( M = 3)

t CWSCM MFDCM [25] CM [25] CWSCM MFDCM [25] CM [25]

0.1 4.5 × 10−11 3.9 × 10−9 1.5 × 10−4 1.5 × 10−12 6.0 × 10−9 3.1 × 10−4

0.2 6.5 × 10−11 6.3 × 10−8 1.7 × 10−4 7.3 × 10−12 9.2 × 10−8 3.5 × 10−4

0.3 3.4 × 10−10 3.0 × 10−7 9.7 × 10−4 7.2 × 10−12 4.7 × 10−7 1.8 × 10−4

0.4 5.9 × 10−10 9.1 × 10−7 1.8 × 10−4 6.4 × 10−12 1.4 × 10−6 3.7 × 10−4

0.5 9.3 × 10−11 1.2 × 10−6 9.7 × 10−4 1.9 × 10−12 3.0 × 10−6 2.5 × 10−4

0.6 2.6 × 10−10 4.2 × 10−6 1.7 × 10−4 1.4 × 10−12 5.8 × 10−6 3.7 × 10−4

0.7 1.7 × 10−10 3.2 × 10−6 1.6 × 10−4 2.8 × 10−12 5.9 × 10−6 3.6 × 10−4

0.8 3.6 × 10−10 6.1 × 10−6 1.1 × 10−4 7.3 × 10−12 7.3 × 10−6 2.2 × 10−4

0.9 5.4 × 10−10 5.7 × 10−6 2.0 × 10−4 9.4 × 10−12 6.8 × 10−6 4.5 × 10−4

1.0 1.4 × 10−10 5.5 × 10−6 8.7 × 10−4 6.1 × 10−11 7.5 × 10−6 2.4 × 10−4

Table 4. L2 and L∞ error of Example 2 at=k 2,=


M 4 and compared with [25].

L2 ( M = 4 ) L∞ ( M = 4 )

t CWSCM MFDCM [25] CM [25] CWSCM MFDCM [25] CM [25]

0.1 1.9 × 10 −11


4.4 × 10 −10
3.6 × 10 −5
3.2 × 10 −11
5.3 × 10 −10
5.3 × 10−5

0.2 4.3 × 10−10 7.8 × 10−9 3.9 × 10−5 5.1 × 10−11 9.4 × 10−9 5.7 × 10−5

0.3 7.1 × 10−9 4.5 × 10−8 2.7 × 10−5 9.0 × 10−11 5.5 × 10−8 4.1 × 10−5

0.4 9.4 × 10−9 1.7 × 10−7 3.8 × 10−5 1.3 × 10−10 3.8 × 10−7 5.6 × 10−5

0.5 6.0 × 10−9 3.1 × 10−7 3.2 × 10−5 2.8 × 10−9 5.6 × 10−7 4.5 × 10−5

0.6 5.3 × 10−9 5.6 × 10−7 3.4 × 10−5 7.9 × 10−9 7.1 × 10−7 5.9 × 10−5

0.7 9.1 × 10−9 5.4 × 10−7 3.5 × 10−5 6.5 × 10−9 7.0 × 10−7 5.9 × 10−5
0.8 6.4 × 10−9 6.8 × 10−7 3.1 × 10−5 5.2 × 10−9 8.6 × 10−7 4.5 × 10−5
0.9 7.1 × 10−9 7.2 × 10−7 3.8 × 10−5 8.4 × 10−9 7.9 × 10−7 6.3 × 10−5
1.0 4.6 × 10−9 6.0 × 10−7 3.3 × 10−5 1.0 × 10−9 8.2 × 10−7 4.6 × 10−5

Example 3 [20] Consider the following nonlinear Sine-Gordon equation


∂ 2u ∂ 2u
− + sin u = 0, − 10 ≤ x ≤ 10, t > 0
∂t 2 ∂x 2
where f ( x, t ) = 0 , and the initial conditions
( x, 0 ) 0, u=
u= t ( x, 0 ) 4sech ( x ) , 0 ≤ x ≤ 1

and the Dirchlet boundary conditions


u ( x, t ) h ( x, t ) , x ∈ ∂Ω, t ≥ 0.
=

The exact solution is given by


u ( x, t ) = 4 tan −1 ( sech ( x ) t )

2105
J. Iqbal, R. Abass

Figure 2. Comparison of exact solution with approximate solution for Example 2 at=k 2,=
M 4.

The numerical solution of Sine-Gordon equation has presented in Table 5 which


shows the comparison of the errors of the present method with the exact solution. It is
obvious from the table that the present method is more accurate, simple and fast.
Comparison between an exact and approximate solution is shown in Figure 3.

6. Concluding Remarks
In this article, we have proposed an efficient and accurate method based on Chebyshev
wavelets to solve both Klein-Gordon and Sine-Gordon equations arising in different
field of sciences, engineering and technology. The main advantage of this method is
that it transforms the problem into algebraic equation so that the computation is
effective and simple. To appraise the performance and efficiency of the method, three
benchmark problems are included and discussed. The numerical results are compared
with a few existing methods reported recently in the literature. The numerical experi-
ments confirm that the spectral method coupled with Chebyshev wavelets is superior to
other existing ones.

2106
J. Iqbal, R. Abass

Table 5. L2 and L∞ error of Example 3 at=k 2,=


M 3 and 4.

( k 2,=
CWSCM = M 3) ( k 2,=
CWSCM = M 4)

t L2 L∞ L2 L∞

0.1 2.4 × 10−10 8.3 × 10−11 6.2 × 10−10 7.4 × 10−10

0.2 5.7 × 10−10 6.7 × 10−11 4.1 × 10−11 1.9 × 10−9

0.3 1.6 × 10−9 2.9 × 10−10 9.1 × 10−10 4.3 × 10−9

0.4 8.0 × 10−10 7.1 × 10−9 1.7 × 10−9 2.9 × 10−9

0.5 7.6 × 10−9 6.1 × 10−9 8.8 × 10−8 9.6 × 10−9

0.6 4.3 × 10−9 5.7 × 10−9 7.1 × 10−8 4.1 × 10−9

0.7 9.5 × 10−9 4.4 × 10−9 7.5 × 10−8 7.4 × 10−9

0.8 9.4 × 10−9 1.9 × 10−9 5.8 × 10−8 1.6 × 10−9

0.9 7.4 × 10−9 4.2 × 10−9 5.3 × 10−8 7.5 × 10−9

1.0 9.6 × 10−9 6.5 × 10−9 2.2 × 10−8 7.5 × 10−8

Figure 3. Comparison of exact solution with approximate solution for Example 3 at=k 2,=
M 4.

Acknowledgements
We thank the Editor and the referee for their comments.

References
[1] Dehghan, M. and Shokri, A. (2009) Numerical Solution of the Nonlinear Klein-Gordon

2107
J. Iqbal, R. Abass

Equation Using Radial Basis Functions. Journal of Computational and Applied Mathemat-
ics, 230, 400-410. [Link]
[2] Dehghan, M., Mohebbi, A. and Asghari, Z. (2009) Fourth-Order Compact Solution of the
Nonlinear Kleingordon Equation. Numerical Algorithms, 52, 523-540.
[Link]
[3] Wazwaz, A.M. (2005) The Tanh and the Sine-Cosine Methods for Compact and Noncom-
pact Solutions of the Nonlinear Klein-Gordon Equation. Applied Mathematics and Com-
putation, 167, 1179-1195. [Link]
[4] Duncan, D.B. (1997) Symplectic Finite Difference Approximations of the Nonlinear Klein-
Gordon Equation. SIAM Journal on Numerical Analysis, 34, 1742-1760.
[Link]
[5] Grella, G. and Marinaro, M. (1978) Special Solutions of the Sine-Gordon Equation in 2 + 1
Dimensions. Lettere al Nuovo Cimento, 23, 459-464. [Link]
[6] Koshelev, A.E. (2010) Stability of Dynamic Coherent States in Intrinsic Josephson-Junction
Stacks near Internal Cavity Resonance. Physical Review B, 82, 174-512.
[Link]
[7] Krasnov, V.M. (2010) The Emission form Intrinsic Josephson Junctions at Zeros Magnetic
Field via Breather Auto-Oscillations. Physical Review B, 83, 174-512.
[8] El-Sayed, S.M. (2003) The Decomposition Method for Studying the Klein-Gordon Equa-
tion. Chaos Solitons & Fractals, 18, 1025-1030.
[Link]
[9] Batiha, B., Noorani, M.S.M. and Hashim, I. (2007) Numerical Solution of Sine-Gordon Eq-
uation by Variational Iteration Method. Physics Letters A, 370, 437-440.
[Link]
[10] Shakeri, F. and Dehghan, M. (2008) Numerical Solution of the Klein Gordon Equation via
He’s Variational Iteration Method. Nonlinear Dynamics, 51, 89-97.
[Link]
[11] Dehghan, M. and Shokri, A. (2008) A Numerical Method for One-Dimensional Nonlinear
Sine-Gordon Equation Using Collocation and Radial Basis Functions. Numerical Methods
for Partial Differential Equations, 24, 687-698. [Link]
[12] Sirendaoreji (2007) Auxiliary Equation Method and New Solutions of Klein-Gordon Equa-
tions. Chaos, Solitons & Fractals, 31, 943-950. [Link]
[13] Guo, B.-Y., Xun, L. and Vazquez, L. (1996) A Legendre Spectral Method for Solving the
Nonlinear Klein-Gordon Equation. The Journal of Computational and Applied Mathemat-
ics, 15, 19-36.
[14] Li, X. and Guo, B. Y. (1997) A Legendre Spectral Method for Solving the Nonlinear Klein-
Gordon Equation. Journal of Computational Mathematics, 15, 105-126.
[15] Sweilam, N.H., et al. (2016) New Spectral Second Kind Chebyshev Wavelets Scheme for
Solving Systems of Integro-Differential Equations. International Journal of Applied and
Computational Mathematics, 4, 29-51.
[16] Hariharan, G. (2011) Haar Wavelet Method for Solving the Klein-Gordon and the Sine-
Gordon Equations. International Journal of Nonlinear Sciences, 11, 180-189.
[17] Yin, F., Song, J. and Lu, F. (2014) A Coupled Method of Laplace Transform and Legendre
Wavelets for Nonlinear Klein-Gordon Equations. Mathematical Methods in the Applied
Sciences, 37, 781-791. [Link]
[18] Iqbal J. and Abass R. (2016) Numerical Solution of Hammerstein Integral Equation Using

2108
J. Iqbal, R. Abass

Chebyshev Wavelet Method. Journal of Mathematical and Computational Science.


[19] Guo, B.Y., Li, X. and Vazquez, L. (1996) A Legendre Spectral Method for Solving the Non-
linear Klein-Gordon Equation. Applied Mathematics and Computation, 15, 19-36.
[20] Fukang, Y., et al. (2015) Spectral Methods Using Legendre Wavelets for Nonlinear Klein/
Sine-Gordon Equations. Journal of Computational and Applied Mathematics, 275, 321-334.
[Link]
[21] Babolian, E. and Fattahzadeh, F. (2007) Numerical Solution of Differential Equations by
Using Chebyshev Wavelet Operational Matrix of Integration. Applied Mathematics and
Computation, 188, 417-426. [Link]
[22] Boggess, A. and Narcowich, F.J. (2001) A First Course in Wavelets with Fourier Analysis.
John Wiley and Sons, Hoboken.
[23] Gu, J.S. and Jiang, W.S. (1996) The Haar Wavelets Operational Matrix of Integration. In-
ternational Journal of Systems Science, 27, 623-628.
[Link]
[24] Hosseini, [Link]. and Mohammadi, F. (2011) A New Operational Matrix of Derivative for
Chebyshev Wavelets and Its Applications in Solving Ordinary Differential Equations with
Non Analytic Solution. Applied Mathematical Sciences, 5, 2537-2548.
[25] Lakestani, M. and Dehghan, M. (2010) Collocation and Finite Difference-Collocation Me-
thods for the Solution of Nonlinear Klein-Gordon Equation. Computer Physics Communi-
cations, 181, 1392-1401. [Link]

Submit or recommend next manuscript to SCIRP and we will provide best service
for you:
Accepting pre-submission inquiries through Email, Facebook, LinkedIn, Twitter, etc.
A wide selection of journals (inclusive of 9 subjects, more than 200 journals)
Providing 24-hour high-quality service
User-friendly online submission system
Fair and swift peer-review system
Efficient typesetting and proofreading procedure
Display of the result of downloads and visits, as well as the number of cited articles
Maximum dissemination of your research work
Submit your manuscript at: [Link]
Or contact am@[Link]

2109

You might also like