• Views 656
• Citations 1
• ePub 17
• PDF 417
`International Journal of Partial Differential EquationsVolume 2014 (2014), Article ID 343497, 8 pageshttp://dx.doi.org/10.1155/2014/343497`
Research Article

## Numerical Solution of Nonlinear Sine-Gordon Equation by Modified Cubic B-Spline Collocation Method

Department of Mathematics, IIT Roorkee, Roorkee, Uttarakhand 247667, India

Received 11 May 2014; Accepted 16 July 2014; Published 10 August 2014

Copyright © 2014 R. C. Mittal and Rachna Bhatia. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

#### Abstract

Modified cubic B-spline collocation method is discussed for the numerical solution of one-dimensional nonlinear sine-Gordon equation. The method is based on collocation of modified cubic B-splines over finite elements, so we have continuity of the dependent variable and its first two derivatives throughout the solution range. The given equation is decomposed into a system of equations and modified cubic B-spline basis functions have been used for spatial variable and its derivatives, which gives results in amenable system of ordinary differential equations. The resulting system of equation has subsequently been solved by SSP-RK54 scheme. The efficacy of the proposed approach has been confirmed with numerical experiments, which shows that the results obtained are acceptable and are in good agreement with earlier studies.

#### 1. Introduction

In this paper we consider the one-dimensional sine-Gordon equation with initial conditions The Dirichlet boundary conditions are given by The nonlinear sine-Gordon equation arises in many different applications such as propagation of fluxion in Josephson junctions [1], differential geometry, stability of fluid motion, nonlinear physics, and applied sciences [2]. The sine-Gordon equation (1) is a particular case of Klein-Gordon equation, which plays a significant role in many scientific applications such as solid state physics, nonlinear optics and quantum field theory [3], given by where is a nonlinear force and is a constant.

In the literature several schemes have been developed for the numerical solution of sine-Gordon equation. Ben-Yu et al. [4] proposed two difference schemes; Bratsos and Twizell [5] used method of lines to transform the initial/boundary value problem associated with (1) into a first order nonlinear initial value problem. Mohebbi and Dehghan [6] presented a combination of a compact finite difference approximation of fourth order and a fourth-order A-stable DIRKN method. Kuang and Lu [7] proposed two classes of finite difference method for generalized sine-Gordon equation; Bratsos and Twizell [8] presented a family of finite difference method, in which time and space derivatives are replaced by finite-difference approximations and then the equation is converted into a linear algebraic system. Wei [9] used the discrete singular convolution algorithm for the integration of (1). A variational iteration method to obtain approximate analytical solution of the sine-Gordon equation without any discretization has been developed by Batiha et al. [10]. Zheng [11] presented a numerical solution of sine-Gordon equation defined on the whole real axis. Bratsos [12] used a fourth-order rational approximation to the matrix exponential term in a three-time level recurrence relation for the numerical solution of (1). Dehghan and Shokri [13] solved the equation using collocation points and approximate the solution using radial basis functions; Dehghan and Mirzaei [14] used a boundary integral equation method; Rashidinia and Mohammadi [15] developed two implicit finite difference schemes, by using spline function approximations. Li-Min and Zong-Min [16] presented a meshless scheme by using a multiquadric quasi-interpolation without solving a large-scale linear system of equations, but a polynomial was needed to improve the accuracy of the scheme, while Jiang and Wang [17] proposed meshless approach by directly using high accuracy MQ quasi-interpolation without using any polynomial. A modified decomposition method for explicit and numerical solutions of the sine-Gordon equation in the form of convergent power series has been proposed by Kaya [18]. Uddin et al. [19] proposed a meshfree approach based on radial basis function for numerical solution of (1).

The B-spline possesses several properties such as minimal compact support and smoothness, which makes them suitable for the numerical solution of linear and nonlinear partial differential equations. B-spline with collocation provides a very simple solution procedure of differential equations. They also produce a spline function which is useful to obtain the solution at any point of the domain, while in finite difference methods [4, 68, 15], we can find the solution only at the selected knots. In the present method, approximate solutions of sine-Gordon equation are obtained using a modified cubic B-spline collocation method (MCBCM) in space and strong stability preserving Runge-Kutta (SSP-RK54) scheme [20] in time. The equation is converted into a system of partial differential equations and then, using MCBCM, it reduces into a system of ordinary differential equations. Finally we use SSP-RK54 scheme to solve the obtained system of ODEs. Numerical solution of nonlinear sine-Gordon equation has been obtained without using any transformation or without linearizing the nonlinear term.

The paper is organized as follows. In Section 2, cubic B-spline collocation method is explained. In Section 3, modified cubic B-spline basis functions are introduced and how to find the solution of (1)–(3) using these basis functions is explained. Initial vectors have been computed in Section 4. Numerical experiments are conducted in Section 5, to demonstrate the viability and the efficiency of the proposed method computationally, and results are compared with some previous results. Finally, brief conclusions drawn from the present study are presented in Section 6.

#### 2. Description of Method

The solution domain is partitioned into a mesh of uniform length , where , such that .

In the cubic B-spline collocation method the approximate solution can be written as the linear combination of cubic B-spline basis functions for the approximation space under consideration. Our numerical treatment for solving (1) using the collocation method with cubic B-Spline is to find an approximate solution to the exact solution in the form where are the time dependent quantities to be determined from boundary conditions and collocation from the differential equation.

The cubic B-spline at the knots is given by where the set of functions forms a basis for the function defined over the region with the obvious adjustment of the boundary base functions to avoid undefined knots. Each cubic B-spline covers four elements so that an element is covered by four cubic B-splines. The values of and its derivatives are tabulated in Table 1.

Table 1: The values of and its derivatives.

Then, using approximate function (5) and Table 1, the approximate values of and its two derivatives at the knots are determined in terms of the time parameters as follows:

#### 3. Numerical Scheme

We have used the following modified form of cubic B-spline basis functions [21] in the combination with collocation, to solve the sine-Gordon equation. Modified cubic B-spline basis functions have been used for handling the Dirichlet boundary conditions and finally we obtain a diagonally dominant system of differential equations. The procedure for modifying the basis functions is given as follows:

To find the numerical solution of sine-Gordon equation (1), first it is rewritten as a pair of coupled equations using the following transformation: Then (1) transforms into a coupled system of equations as

Now for solving the couple of (10), using collocation method with modified cubic B-spline basis functions, first we assume our solution as the linear combination of modified cubic B-spline basis functions:

Using the approximate solution (11), the approximate value of can be written as where is the derivative of with respect to time .

Using modified basis function (8) and Table 1 in (12), the value of at different knots can be written as

Using (11) in coupled system (10) and imposing the boundary conditions (3) at the boundary points, we have where and are and , respectively.

Now using (13) in (14) and (8) and Table 1 in (15), we get the following system of equations:

The systems (16) represent a system of first order differential equations and can be written as where

Once the vector has been determined at a specific time level, using (7), we can compute the approximate solution at the required knots. So first we solve system (17) for vector , by using Thomas algorithm only once at each time level . Then the obtained system with the system (18) will give first order ordinary differential equations and finally first order ordinary differential equations have been solved by SSP-RK54 [20] scheme and consequently the approximate solution is computed.

#### 4. Computation of Initial Vector

To find the solution at specific time level , we need the initial vectors and .

Using initial conditions (2), we have the following.

##### 4.1. Initial Vector

Consider the following: System (20) is a tridiagonal system of equations, which can be written as where is tridiagonal matrix. Using Thomas algorithm the solution of (20) can be easily found.

##### 4.2. Initial Vector

Using the initial condition we have which gives the initial vector .

#### 5. Numerical Experiments

In this section, we consider four numerical examples to validate the proposed scheme. The accuracy of the scheme is verified by calculating , , and root mean square errors and results are also compared with some published work.

, , and RMS error norms are given by the following formulae:

Example 1. In this example the numerical solutions of (1) are obtained in the computational domain with the initial conditions The exact solution [6, 15, 16] is given as The boundary conditions (3) are obtained from the exact solution.

Case I (when ). First we solve the above example in the computational domain with and for space step sizes . In Table 2, we report the and errors and compare them with those given in Dehghan and Shokri [13]. We see that our results are in good agreement with [13], when we take . For our results are better than the result of [13] in terms of error. In Table 3, absolute errors, are reported at , with . A graph comparing the exact and numerical solutions at with and is depicted in Figure 1.

Table 2: and errors of Example 1 in the domain at different time levels.
Table 3: Absolute errors of Example 1 at different time levels with , .
Figure 1: Approximate and exact solution at with and .

Case II. In the domain , the solutions of Example 1 are obtained with and . In Table 4, we report the and RMS errors at different time levels and results are compared with those of Li-Min and Zong-Min [16]. We noticed that our results are in good agreement with [16] in terms of error and in terms of RMS error our results are better than [16]. Figure 2 depicts the comparison of exact and numerical solution at .

Table 4: and RMS errors of Example 1 in the domain with , at different time levels.
Figure 2: Approximate and exact solution at with and .

Example 2. In this example we consider (1) in the computational domain with the initial conditions and the exact solution [6, 15] is given by where is the velocity of solitary wave and .

The boundary conditions (3) can be obtained from the exact solution.

In Table 5, we report and errors, for different values of with and . We also compare our results with those of Dehghan and Shokri [13]. From Table 5, it is clear that our scheme and that of [13] have approximately similar errors, for . For our results are better than [13] in terms of errors and approximately similar in terms of error norm. We also compute error norm for different values of with at and calculate order of convergence, which is shown in Table 7. The absolute errors, for , are also reported in Table 6. Figure 3 depicts the graph between exact and numerical solutions at .

Table 5: and errors of Example 2 with at different time levels.
Table 6: Absolute errors of Example 2 at different time levels with , .
Table 7: Errors and order of convergence for Example 2 at .
Figure 3: Approximate and exact solution at with and .

Example 3. In this example we consider nonlinear sine-Gordon equation in the computational domain with the initial conditions The exact solution [12, 19] is given as where is the velocity of solitary wave and .

The boundary conditions (3) can be obtained from the exact solution.

We solve Example 3 with , , and . Computed and errors are reported in Table 8 and compared with Uddin et al. [19] and Bratsos [12]. As we see from Table 8, our results are better. In Table 9, we report and error norms for different values of with at , and using them we compute the order of convergence. It is clear that the present method is of second order of convergence. In Figure 4, we show the space-time graph of approximate solution for with and .

Table 8: and errors of Example 3 with , , at different time levels.
Table 9: Errors and order of convergence for Example 3 at .
Figure 4: The graph of approximate solution up to , in domain .

Example 4. Now we consider (1) in the computational domain with the initial conditions The exact solution [12, 19] is given as where is the velocity of solitary wave and . The boundary conditions (3) can be obtained from the exact solution.

We solve Example 4 with , , and and results are reported in Table 10. We compare our results with those given in Uddin et al. [19] and Bratsos [12] in terms of errors and found them better. In Table 11, we report the and error norms for different values of , with at , and using them compute the order of convergence of the method. Figure 5 depicts the space-time graph of approximate solution for with and .

Table 10: and errors of Example 4 with at different time levels.
Table 11: Errors and order of convergence for Example 4 at .
Figure 5: The graph of approximate solution up to , in domain .

#### 6. Conclusions

This paper investigates the application of B-spline collocation method to represent the solution of sine-Gordon equation with Dirichlet's boundary conditions, by reducing it into coupled system of equations. The combination of modified cubic B-spline basis function in space and SSP-RK54 in time successfully worked to give reliable and accurate solutions of sine-Gordon equation. The numerical approximate solutions have been computed without using any transformation and linearization process. To demonstrate the accuracy and usefulness of the present scheme, four numerical experiments are carried out and results are compared with some earlier work. It is observed that the proposed method produces good results in comparison to those available in the literature. From the order of convergence calculated in Tables 7, 9, and 11, the method is shown to have a second order of convergence. The results reveal that the present method is an applicable technique and approximates the solutions very well.

#### Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

#### References

1. J. K. Perring and T. H. R. Skyrme, “A model unified field equation,” Nuclear Physics, vol. 31, pp. 550–555, 1962.
2. A. Barone, F. Esposito, C. J. Magee, and A. C. Scott, “Theory and applications of the sine-Gordon equation,” La Rivista del Nuovo Cimento, vol. 1, no. 2, pp. 227–267, 1971.
3. M. Dehghan and A. Shokri, “Numerical solution of the nonlinear Klein-Gordon equation using radial basis functions,” Journal of Computational and Applied Mathematics, vol. 230, no. 2, pp. 400–410, 2009.
4. G. Ben-Yu, P. J. Pascual, M. J. Rodriguez, and L. Vázquez, “Numerical solution of the sine-Gordon equation,” Applied Mathematics and Computation, vol. 18, no. 1, pp. 1–14, 1986.
5. A. G. Bratsos and E. H. Twizell, “The solution of the sine-Gordon equation using the method of lines,” International Journal of Computer Mathematics, vol. 61, no. 3-4, pp. 271–292, 1996.
6. A. Mohebbi and M. Dehghan, “High-order solution of one-dimensional sine-Gordon equation using compact finite difference and DIRKN methods,” Mathematical and Computer Modelling, vol. 51, no. 5-6, pp. 537–549, 2010.
7. J. X. Kuang and L. H. Lu, “Two classes of finite-difference methods for generalized sine-Gordon equations,” Journal of Computational and Applied Mathematics, vol. 31, no. 3, pp. 389–396, 1990.
8. A. G. Bratsos and E. H. Twizell, “A family of parametric finite-difference methods for the solution of the sine-Gordon equation,” Applied Mathematics and Computation, vol. 93, no. 2-3, pp. 117–137, 1998.
9. G. W. Wei, “Discrete singular convolution for the sine-Gordon equation,” Physica D, vol. 137, no. 3-4, pp. 247–259, 2000.
10. B. Batiha, M. S. M. Noorani, and I. Hashim, “Numerical solution of sine-Gordon equation by variational iteration method,” Physics Letters A, vol. 370, no. 5-6, pp. 437–440, 2007.
11. C. Zheng, “Numerical solution to the sine-Gordon equation defined on the whole real axis,” SIAM Journal on Scientific Computing, vol. 29, no. 6, pp. 2494–2506, 2007.
12. A. G. Bratsos, “A fourth order numerical scheme for the one-dimensional sine-Gordon equation,” International Journal of Computer Mathematics, vol. 85, no. 7, pp. 1083–1095, 2008.
13. M. Dehghan and A. Shokri, “A numerical method for one-dimensional nonlinear sine-Gordon equation using collocation and radial basis functions,” Numerical Methods for Partial Differential Equations, vol. 24, no. 2, pp. 687–698, 2008.
14. M. Dehghan and D. Mirzaei, “The boundary integral equation approach for numerical solution of the one-dimensional sine-Gordon equation,” Numerical Methods for Partial Differential Equations, vol. 24, no. 6, pp. 1405–1415, 2008.
15. J. Rashidinia and R. Mohammadi, “Tension spline solution of nonlinear sine-Gordon equation,” Numerical Algorithms, vol. 56, no. 1, pp. 129–142, 2011.
16. M. Li-Min and W. Zong-Min, “A numerical method for one-dimensional nonlinear sine-Gordon equation using multiquadric quasi-interpolation,” Chinese Physics B, vol. 18, no. 8, pp. 3099–3103, 2009.
17. Z.-W. Jiang and R.-H. Wang, “Numerical solution of one-dimensional Sine-Gordon equation using high accuracy multiquadric quasi-interpolation,” Applied Mathematics and Computation, vol. 218, no. 15, pp. 7711–7716, 2012.
18. D. Kaya, “A numerical solution of the sine-Gordon equation using the modified decomposition method,” Applied Mathematics and Computation, vol. 143, no. 2-3, pp. 309–317, 2003.
19. M. Uddin, S. Haq, and G. Qasim, “A meshfree approach for the numerical solution of nonlinear sine-Gordon equation,” International Mathematical Forum, vol. 7, no. 21–24, pp. 1179–1186, 2012.
20. S. Gottlieb, C.-W. Shu, and E. Tadmor, “Strong stability-preserving high-order time discretization methods,” SIAM Review, vol. 43, no. 1, pp. 89–112 (electronic), 2001.
21. R. C. Mittal and R. Bhatia, “Numerical solution of second order one dimensional hyperbolic telegraph equation by cubic B-spline collocation method,” Applied Mathematics and Computation, vol. 220, pp. 496–506, 2013.