Abstract

The generalized nonlinear Klien-Gordon equation is important in quantum mechanics and related fields. In this paper, a semi-implicit approach based on hybrid cubic B-spline is presented for the approximate solution of the nonlinear Klien-Gordon equation. The usual finite difference approach is used to discretize the time derivative while hybrid cubic B-spline is applied as an interpolating function in the space dimension. The results of applications to several test problems indicate good agreement with known solutions.

1. Introduction

Consider a generalized nonlinear Klien-Gordon (KG) equation in the form of [1] subject to the initial conditions and the Dirichlet boundary conditions where denotes the wave displacement at position and time , is a nonlinear function in , and are constants, and, , , , and are known functions.

In the last decade or so, spline functions have been utilized to solve differential equations. For example, Caglar et al. [2] have introduced a cubic B-spline interpolation method to solve two-point boundary value problems. The results obtained were compared to finite difference, finite element, and finite volume method. Caglar et al. [2] concluded that the B-spline interpolation is a better method to interpolate any smooth functions than others. Hamid et al. [3] have developed an alternative cubic trigonometric B-spline interpolation method for the same problem. They have found that the trigonometric B-spline gives better approximation compared to technique used by Caglar et al. Goh et al. [4] have presented a comparison between cubic B-spline and extended cubic B-spline collocation method for solving heat equation. It was concluded that the extended cubic B-spline gives better results. By using the same method, Abbas et al. [5] have solved coupled reaction diffusion system. They found that the B-spline function approximates the system very well and the results are in good agreement with known solutions.

Great deals of research on solving KG equation have been carried out and the results can be found in [613]. Dehghan and Shokri [14] have approximated the numerical solution of the nonlinear KG equation using thin plate splines (TPS) radial basis functions. The implementation of the method has been claimed to be simple as the finite difference method and the numerical results obtained were more accurate than others in literature. Khuri and Sayfy [1] have solved the generalized nonlinear KG equation using a finite element collocation approach based on third degree B-spline polynomials. Six examples of nonlinear KG equation including Sine-Gordon equation have been analyzed. The proposed method gives compatible results and better approximation compared to Dehghan and Shokri’s method in [14]. Rashidinia et al. [15] have presented a cubic B-spline collocation method for solving linear KG equation. The results show the proposed scheme is effective and accurate.

In this paper, a new approach by combining hybrid cubic B-spline function and central finite difference is proposed to solve the KG equation. The finite difference approach is used for the time derivative and the hybrid cubic collocation method is applied to interpolate the solutions at space dimension. The scheme obtained is analyzed by Von Neumann stability analysis. To show the feasibility and accuracy of the method, three problems are considered. Numerical solutions, absolute errors, maximum error, and order of convergence are calculated.

2. Temporal Discretization

Consider a uniform mesh with grid points to discretize the grid region with and , where and . The values of and denote mesh space size and time step size, respectively. The Klien-Gordon equation is approximated at time level as follows [16]: where , and the subscripts and are successive time levels. Central difference approach has been used to discretize the time derivative. In order to produce Crank-Nicolson scheme, is chosen to be 0.5. Hence, the scheme becomes At , there is term, , that is outside of domain. Therefore, initial condition (2b) is approximated by the following central difference approach. Thus, The whole scheme is solved numerically by substituting hybrid cubic B-spline function discussed in next section for at each time level .

3. Hybrid Cubic B-Spline Collocation Method

Through this section, hybrid cubic B-spline (HCuBS) is used to solve nonlinear KG equation. The approximate solution, , to the analytical solution, , is considered as where are time-dependent unknowns to be determined and is hybrid cubic B-spline basis function of order 4 as where is cubic B-spline basis function given as and is cubic trigonometric B-spline basis function [18, 19] given as with , , and . The value of plays an important role in the hybrid cubic basis function. If , the basis function is equal to cubic trigonometric B-spline basis function and if , the basis function is equal to cubic B-spline basis function. Hence, this work just considers the value of .

Due to local support properties of B-spline basis function, there are only three nonzero basis functions; namely, , , and are included over subinterval . Thus, the approximate solution and its derivatives with respect to at are where with where These approximations are substituted into (4) to produce the matrix system of order with unknown. In order to generate a unique solution, two additional equations are needed in the system. Hence, boundary conditions (2c) and (2d) are approximated as follows: Thus, the resulting system can be written as where with , , and .

This tridiagonal matrix system can be solved using Thomas Algorithm repeatedly for .

4. Initial State,

The initial vector, , is obtained from initial condition (2a) and boundary values of the derivatives of the initial condition as follows [2, 16]:(i) for ,(ii) for ,(iii) for .

This operation yields matrix system: The solution of the tridiagonal system is obtained by using the Thomas Algorithm [20].

5. Von Neumann Stability Analysis

The growth of error in single Fourier mode is considered as where and is the mode number. It is known that this method is applicable to linear scheme. Hence, (1) is linearized by assuming all nonlinear terms equal zero [15]. The following equation is obtained after substituting (10) into the linear scheme: where By substituting (18) into (19), the following characteristic equation is generated: where , and . Based on Routh-Hurwitz criterion, the transformation, , is applied to the characteristic equation [15, 21]. Then, the equation becomes The necessary and sufficient conditions for are , and . Thus, the following terms have been proved: Hence, this scheme is concluded to be unconditionally stable.

6. Numerical Results and Discussions

In this section, two problems involving KG equation with initial conditions and Dirichlet boundary conditions are tested. In order to measure the accuracy of the method, absolute errors and maximum error are calculated using [22] where and are analytical solution and approximate solution, respectively. The numerical order of convergence, , is obtained by using [1] where and are the at number of partitions and , respectively.

Problem 1. Consider the following nonlinear Klien-Gordon equation as [1, 14] subject to the initial conditions and boundary conditions The analytical solution is given by . Figure 1 shows the space-time plot for this analytical solution.

Initially, this problem is tested by and . Numerical solutions of this problem at are listed in Table 1. The absolute errors of this problem at the same point are tabulated in Table 2. The absolute errors at with , , and are also depicted in Figure 2. It can be seen numerically and graphically that HCuBS with is capable of giving better results. This observation is established by comparing the maximum error obtained with the maximum error obtained by Khuri and Sayfy [1], Dehghan and Shokri [14], and Mat Zin et al. [17]. Table 3 tabulates the comparison value of maximum errors at different time levels.

Then, this problem is tested by and . Tables 4 and 5 illustrate the numerical solutions and absolute errors of this problem at , respectively. Graphically, the absolute error of this problem at with , , and is plotted in Figure 3. The comparison of maximum error obtained from present method with Khuri and Sayfy [1], Dehghan and Shokri [14], and Mat Zin et al. [17] methods is shown in Table 6. Clearly from the tables and figures, HCuBS with approximates this problem very well compared to Khuri and Sayfy [1], Dehghan and Shokri [14], and Mat Zin et al. [17].

The order of convergence of the present problem is tabulated in Table 7. An examination of this table indicates that the method has a nearly second order of convergence.

Problem 2. The nonlinear Klien-Gordon equation is considered as [14] with the initial and boundary conditions where , , and . The analytical solution is known to be . Space-time plot for this analytical solution is shown in Figure 4.

This problem is solved numerically using and . Tables 8 and 9 list approximate solutions and absolute errors at , respectively. The graphical plot of absolute errors at with three different values of is shown in Figure 5. The maximum error of this problem is compared with Dehghan and Shokri [14] work which is listed in Table 10. The tables indicate that HCuBS with gives better results to this problem.

Problem 3. Let the nonlinear Klien-Gordon equation be considered as [1] This equation is also known as Sine-Gordon equation. The initial and boundary conditions are given by The analytical solution of this problem is given as . Figure 6 presents the space-time graph of this analytical solution.

HCuBS collocation method is used to solve this problem numerically with parameters and . Table 11 tabulates the approximate solutions of this problem at and Table 12 tabulates the absolute errors of this problem also at . The graphical comparison of the absolute errors with different value of at is depicted in Figure 7. The maximum errors of this problem are compared with Khuri and Sayfy [1] and Mat Zin et al. [17] work (Table 13). The table shows that Mat Zin et al. produce better results which are the errors just slightly better than HCuBS with .

7. Conclusion

In this work, the generalized Klien-Gordon equation was successfully solved using HCuBS collocation method. Specifically, the central difference approach has been applied to discretize the time derivative and hybrid cubic B-spline function had been used to interpolate the solution in space dimension. Three problems have been tested using the proposed method and the solutions obtained were in good agreement with the analytical solution. Through this method, an accurate solution at an intermediate point can be easily calculated.

Conflict of Interests

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

Acknowledgment

The authors acknowledge financial support by Fundamental Research Grant Scheme (FRGS) with no. 203/PMATHS/6711324 from School of Mathematical Sciences, Universiti Sains Malaysia (USM), Penang, Malaysia.