In this work we propose a fourth-order compact method for solving the one-dimensional nonlinear Klein-Gordon equation. We apply a compact finite difference approximation of fourth-order for discretizing spatial derivative and a fourth-order A-stable diagonally-implicit Runge-Kutta-Nyström (DIRKN) method for the time integration of the resulting nonlinear secondorder system of ordinary differential equations. The proposed method has fourth order accuracy in both space and time variables and is unconditionally stable. Numerical results obtained from solving several problems possessing periodic, kinks, single and double-soliton waves show that the combination of a compact finite difference approximation of fourth order and a fourth-order A-stable DIRKN method gives an efficient algorithm for solving these problems.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.