Long time error analysis of finite difference time domain methods for the nonlinear Klein-Gordon equation with weak nonlinearity
Weizhu Bao, Yue Feng, Wenfan Yi

TL;DR
This paper derives long-time error bounds for finite difference time domain methods applied to the nonlinear Klein-Gordon equation with weak nonlinearity, providing guidelines for mesh size and time step in simulations.
Contribution
It establishes rigorous error bounds for FDTD methods over long times in the weak nonlinearity regime, with explicit dependence on the small parameter and validation through numerical tests.
Findings
Error bounds valid up to time O(1/ε^β) for 0 ≤ β ≤ 2
Error bounds depend explicitly on mesh size h, time step τ, and ε
Numerical results confirm the sharpness of the bounds
Abstract
We establish error bounds of the finite difference time domain (FDTD) methods for the long time dynamics of the nonlinear Klein-Gordon equation (NKGE) with a cubic nonlinearity, while the nonlinearity strength is characterized by with a dimensionless parameter. When , it is in the weak nonlinearity regime and the problem is equivalent to the NKGE with small initial data, while the amplitude of the initial data (and the solution) is at . Four different FDTD methods are adapted to discretize the problem and rigorous error bounds of the FDTD methods are established for the long time dynamics, i.e. error bounds are valid up to the time at with , by using the energy method and the techniques of either the cut-off of the nonlinearity or the mathematical induction to…
| 3.77E-2 | 9.65E-3 | 2.43E-3 | 6.09E-4 | 1.52E-4 | 3.84E-5 | |
| order | - | 1.97 | 1.99 | 2.00 | 2.00 | 1.98 |
| 3.33E-2 | 8.35E-3 | 2.09E-3 | 5.22E-4 | 1.31E-4 | 3.34E-5 | |
| order | - | 2.00 | 2.00 | 2.00 | 1.99 | 1.97 |
| 3.48E-2 | 8.74E-3 | 2.19E-3 | 5.47E-4 | 1.37E-4 | 3.50E-5 | |
| order | - | 1.99 | 2.00 | 2.00 | 2.00 | 1.97 |
| 3.55E-2 | 8.92E-3 | 2.23E-3 | 5.58E-4 | 1.40E-4 | 3.57E-5 | |
| order | - | 1.99 | 2.00 | 2.00 | 1.99 | 1.97 |
| 3.57E-2 | 8.97E-3 | 2.24E-3 | 5.61E-4 | 1.40E-4 | 3.59E-5 | |
| order | - | 1.99 | 2.00 | 2.00 | 2.00 | 1.96 |
| 3.27E-2 | 8.57E-3 | 2.19E-3 | 5.53E-4 | 1.39E-4 | 3.48E-5 | |
| order | - | 1.93 | 1.97 | 1.99 | 1.99 | 2.00 |
| 2.10E-2 | 5.45E-3 | 1.39E-3 | 3.49E-4 | 8.76E-5 | 2.20E-5 | |
| order | - | 1.96 | 1.97 | 1.99 | 1.99 | 1.99 |
| 1.84E-2 | 4.75E-3 | 1.21E-3 | 3.04E-4 | 7.63E-5 | 1.91E-5 | |
| order | - | 1.95 | 1.97 | 1.99 | 1.99 | 2.00 |
| 1.78E-2 | 4.59E-3 | 1.17E-3 | 2.94E-4 | 7.37E-5 | 1.85E-5 | |
| order | - | 1.96 | 1.97 | 1.99 | 2.00 | 1.99 |
| 1.77E-2 | 4.56E-3 | 1.16E-3 | 2.91E-4 | 7.31E-5 | 1.83E-5 | |
| order | - | 1.96 | 1.97 | 2.00 | 1.99 | 2.00 |
| 3.77E-2 | 9.65E-3 | 2.43E-3 | 6.09E-4 | 1.52E-4 | 3.84E-5 | |
| order | - | 1.97 | 1.99 | 2.00 | 2.00 | 1.98 |
| 7.31E-2 | 1.77E-2 | 4.38E-3 | 1.09E-3 | 2.74E-4 | 7.02E-5 | |
| order | - | 2.05 | 2.01 | 2.01 | 1.99 | 1.96 |
| 6.60E-1 | 1.71E-1 | 4.31E-2 | 1.08E-2 | 2.70E-3 | 6.91E-4 | |
| order | - | 1.95 | 1.99 | 2.00 | 2.00 | 1.97 |
| 2.78E+0 | 7.25E-1 | 1.80E-1 | 4.50E-2 | 1.13E-2 | 2.88E-3 | |
| order | - | 1.94 | 2.01 | 2.00 | 1.99 | 1.97 |
| 5.67E+0 | 8.48E-1 | 3.96E-1 | 1.10E-1 | 2.81E-2 | 7.22E-3 | |
| order | - | 2.74 | 1.10 | 1.85 | 1.97 | 1.96 |
| 3.27E-2 | 8.57E-3 | 2.19E-3 | 5.53E-4 | 1.39E-4 | 3.48E-5 | |
| order | - | 1.93 | 1.97 | 1.99 | 1.99 | 2.00 |
| 4.01E-2 | 9.95E-3 | 2.49E-3 | 6.22E-4 | 1.56E-4 | 3.89E-5 | |
| order | - | 2.01 | 2.00 | 2.00 | 2.00 | 2.00 |
| 3.45E-1 | 8.79E-2 | 2.21E-2 | 5.53E-3 | 1.38E-3 | 3.46E-4 | |
| order | - | 1.97 | 1.99 | 2.00 | 2.00 | 2.00 |
| 1.47E+0 | 3.69E-1 | 9.19E-2 | 2.29E-2 | 5.74E-3 | 1.43E-3 | |
| order | - | 1.99 | 2.01 | 2.00 | 2.00 | 2.01 |
| 8.58E-1 | 7.05E-1 | 2.20E-1 | 5.75E-2 | 1.45E-2 | 3.64E-3 | |
| order | - | 0.28 | 1.68 | 1.94 | 1.99 | 1.99 |
| 3.77E-2 | 9.65E-3 | 2.43E-3 | 6.09E-4 | 1.52E-4 | 3.84E-5 | |
| order | - | 1.97 | 1.99 | 2.00 | 2.00 | 1.98 |
| 3.98E-2 | 9.56E-3 | 2.39E-3 | 5.97E-4 | 1.49E-4 | 3.81E-5 | |
| order | - | 2.06 | 2.00 | 2.00 | 2.00 | 1.97 |
| 7.17E-1 | 1.82E-1 | 4.55E-2 | 1.14E-2 | 2.85E-3 | 7.27E-4 | |
| order | - | 1.98 | 2.00 | 2.00 | 2.00 | 1.97 |
| 2.78E+0 | 6.54E-1 | 1.58E-1 | 3.92E-2 | 9.78E-3 | 2.50E-3 | |
| order | - | 2.09 | 2.05 | 2.01 | 2.00 | 1.97 |
| 3.31E+0 | 1.78E+0 | 5.92E-1 | 1.55E-1 | 3.93E-2 | 1.01E-2 | |
| order | - | 0.89 | 1.59 | 1.93 | 1.98 | 1.96 |
| 3.27E-2 | 8.57E-3 | 2.19E-3 | 5.53E-4 | 1.39E-4 | 3.48E-5 | |
| order | - | 1.93 | 1.97 | 1.99 | 1.99 | 2.00 |
| 2.56E-2 | 6.32E-3 | 1.58E-3 | 3.94E-4 | 9.86E-5 | 2.47E-5 | |
| order | - | 2.02 | 2.00 | 2.00 | 2.00 | 2.00 |
| 3.91E-1 | 9.83E-2 | 2.46E-2 | 6.16E-3 | 1.54E-3 | 3.85E-4 | |
| order | - | 1.99 | 2.00 | 2.00 | 2.00 | 2.00 |
| 1.40E+0 | 3.32E-1 | 8.14E-2 | 2.03E-2 | 5.06E-3 | 1.26E-3 | |
| order | - | 2.08 | 2.03 | 2.00 | 2.00 | 2.01 |
| 1.81E+0 | 1.13E+0 | 3.16E-1 | 8.07E-2 | 2.03E-2 | 5.07E-3 | |
| order | - | 0.68 | 1.84 | 1.97 | 1.99 | 2.00 |
| 1.68E-2 | 4.26E-3 | 1.07E-3 | 2.68E-4 | 6.72E-5 | 1.76E-5 | |
| order | - | 1.98 | 1.99 | 2.00 | 2.00 | 1.93 |
| 5.60E-2 | 1.44E-2 | 3.63E-3 | 9.08E-4 | 2.27E-4 | 5.69E-5 | |
| order | - | 1.96 | 1.99 | 2.00 | 2.00 | 2.00 |
| 2.00E-1 | 5.68E-2 | 1.45E-2 | 3.63E-3 | 9.07E-4 | 2.27E-4 | |
| order | - | 1.82 | 1.97 | 2.00 | 2.00 | 2.00 |
| 4.83E-1 | 2.02E-1 | 5.70E-2 | 1.45E-2 | 3.63E-3 | 9.12E-4 | |
| order | - | 1.26 | 1.83 | 1.97 | 2.00 | 1.99 |
| 6.21E-1 | 4.86E-1 | 2.03E-1 | 5.74E-2 | 1.48E-2 | 3.97E-3 | |
| order | - | 0.35 | 1.26 | 1.82 | 1.96 | 1.90 |
| 4.11E-3 | 2.64E-4 | 1.66E-5 | 1.05E-6 | 7.82E-8 | 1E-8 | |
| order | - | 1.98 | 2.00 | 1.99 | 1.87 | - |
| 4.88E-2 | 3.24E-3 | 2.04E-4 | 1.28E-5 | 8.29E-7 | 6.48E-8 | |
| order | - | 1.96 | 1.99 | 2.00 | 1.97 | 1.84 |
| 4.98E-1 | 5.06E-2 | 3.23E-3 | 2.02E-4 | 1.28E-5 | 8.73E-7 | |
| order | - | 1.65 | 1.98 | 2.00 | 1.99 | 1.94 |
| 1.75E+0 | 5.18E-1 | 5.13E-2 | 3.23E-3 | 2.02E-4 | 1.28E-5 | |
| order | - | 0.88 | 1.67 | 1.99 | 2.00 | 1.99 |
| 1.93E+0 | 1.71E+0 | 5.27E-1 | 5.18E-2 | 3.24E-3 | 2.02E-4 | |
| order | - | 0.09 | 0.85 | 1.67 | 2.00 | 2.00 |
| 1.68E-2 | 4.26E-3 | 1.07E-3 | 2.68E-4 | 6.72E-5 | 1.76E-5 | |
| order | - | 1.98 | 1.99 | 2.00 | 2.00 | 1.93 |
| 5.64E-2 | 1.46E-2 | 3.66E-3 | 9.16E-4 | 2.30E-4 | 5.74E-5 | |
| order | - | 1.95 | 2.00 | 2.00 | 2.00 | 2.00 |
| 2.01E-1 | 5.71E-2 | 1.46E-2 | 3.65E-3 | 9.12E-4 | 2.28E-4 | |
| order | - | 1.82 | 1.97 | 2.00 | 2.00 | 2.00 |
| 4.83E-1 | 2.03E-1 | 5.71E-2 | 1.45E-2 | 3.64E-3 | 9.14E-4 | |
| order | - | 1.25 | 1.83 | 1.98 | 1.99 | 1.99 |
| 6.22E-1 | 4.86E-1 | 2.03E-1 | 5.74E-2 | 1.48E-2 | 3.97E-3 | |
| order | - | 0.36 | 1.26 | 1.82 | 1.96 | 1.90 |
| 4.11E-3 | 2.64E-4 | 1.66E-5 | 1.05E-6 | 7.82E-8 | 1E-8 | |
| order | - | 1.98 | 2.00 | 1.99 | 1.87 | - |
| 4.99E-2 | 3.31E-3 | 2.08E-4 | 1.31E-5 | 8.48E-7 | 9.37E-8 | |
| order | - | 1.96 | 2.00 | 1.99 | 1.97 | 1.59 |
| 5.03E-1 | 5.13E-2 | 3.28E-3 | 2.05E-4 | 1.29E-5 | 8.85E-7 | |
| order | - | 1.65 | 1.98 | 2.00 | 2.00 | 1.93 |
| 1.77E+0 | 5.21E-1 | 5.17E-2 | 3.26E-3 | 2.04E-4 | 1.29E-5 | |
| order | - | 0.88 | 1.67 | 1.99 | 2.00 | 1.99 |
| 1.93E+0 | 1.72E+0 | 5.28E-1 | 5.19E-2 | 3.25E-3 | 2.03E-4 | |
| order | - | 0.08 | 0.85 | 1.67 | 2.00 | 2.00 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
\emails
[email protected] (W. Bao), [email protected] (Y. Feng),[email protected] (W. Yi)
Long time error analysis of finite difference time domain methods for the nonlinear Klein-Gordon equation with weak nonlinearity
Weizhu Bao
1
Yue Feng\comma\corrauth
1
Wenfan Yi
2
11affiliationmark: Department of Mathematics, National University of Singapore, Singapore 119076
22affiliationmark: School of Mathematics and Econometrics, Hunan University, Changsha, 410082, Hunan Province, P. R. China
Abstract
We establish error bounds of the finite difference time domain (FDTD) methods for the long time dynamics of the nonlinear Klein-Gordon equation (NKGE) with a cubic nonlinearity, while the nonlinearity strength is characterized by with a dimensionless parameter. When , it is in the weak nonlinearity regime and the problem is equivalent to the NKGE with small initial data, while the amplitude of the initial data (and the solution) is at . Four different FDTD methods are adapted to discretize the problem and rigorous error bounds of the FDTD methods are established for the long time dynamics, i.e. error bounds are valid up to the time at with , by using the energy method and the techniques of either the cut-off of the nonlinearity or the mathematical induction to bound the numerical approximate solutions. In the error bounds, we pay particular attention to how error bounds depend explicitly on the mesh size and time step as well as the small parameter , especially in the weak nonlinearity regime when . Our error bounds indicate that, in order to get “correct” numerical solutions up to the time at , the -scalability (or meshing strategy) of the FDTD methods should be taken as: and . As a by-product, our results can indicate error bounds and -scalability of the FDTD methods for the discretization of an oscillatory NKGE which is obtained from the case of weak nonlinearity by a rescaling in time, while its solution propagates waves with wavelength at in space and in time. Extensive numerical results are reported to confirm our error bounds and to demonstrate that they are sharp.
keywords:
nonlinear Klein-Gordon equation, finite difference time domain methods, long time error analysis, weak nonlinearity, oscillatory nonlinear Klein-Gordon equation.
\ams
35L70, 65M06, 65M12, 65M15, 81-08
Dedicated to Professor Jie Shen on the occasion of his 60th birthday
1 Introduction
Consider the nonlinear Klein-Gordon equation (NKGE) with a cubic nonlinearity on a torus [23, 27, 36, 37] as
[TABLE]
Here is time, is the spatial coordinates, is a real-valued scalar field, is a dimensionless parameter, and and are two given real-valued functions which are independent of . The NKGE is a relativistic (and nonlinear) version of the Schrödinger equation and it is widely used in quantum electrodynamics, particle and/or plasma physics to describe the dynamics of a spinless particle in some extra potential [36, 13, 4, 7, 22, 33, 34]. Provided that and , the NKGE (1) is time symmetric or time reversible and conserves the energy [5, 19], i.e.,
[TABLE]
We remark here that, when , rescaling the amplitude of the wave function by introducing , then the NKGE (1) with weak nonlinearity can be reformulated as the following NKGE with small initial data, while the amplitude of the initial data (and the solution) is at :
[TABLE]
Again, the above NKGE (3) is time symmetric or time reversible and conserves the energy [5, 19], i.e.,
[TABLE]
In other words, the NKGE with weak nonlinearity and initial data, i.e. (1), is equivalent to it with small initial data and nonlinearity, i.e. (3). In the following, we only present numerical methods and their error bounds for the NKGE with weak nonlinearity. Extensions of the numerical methods and their error bounds to the NKGE with small initial data are straightforward.
There are extensive analytical results in the literature for the NKGE (1) (or (3)). For the existence of global classical solutions and almost periodic solutions as well as asymptotic behavior of solutions, we refer to [11, 12, 15, 42, 10, 40, 41] and references therein. For the Cauchy problem with small initial data (or weak nonlinearity), the global existence and asymptotic behavior of solutions were studied in different space dimensions and with different nonlinear terms [26, 25, 31, 35, 38]. Recently, more attentions have been devoted to analyzing the life-span of the solutions of the NKGE (3) [25, 32]. The results indicate that the life-span of a smooth solution to the NKGE (3) (or (1)) is at least up to time at [18, 16]. For more details related to this topic, we refer to [17, 21] and references therein.
For the numerical aspects of the NKGE (1) (or (3)), different numerical methods have been proposed and analyzed in the literatures [5, 14, 20, 44], including the finite difference time domain (FDTD) methods [5, 14, 20, 44], exponential wave integrator Fourier pseudospectral (EWI-FP) method [5, 6, 9], multiscale time integrator Fourier pseudospectral (MTI-FP) method [4], etc. In these results, the error bounds are normally valid up to the time at . Since the life-span of the solution of the NKGE (1) can be up to the time at , it is a natural question to ask how the performance of a numerical method for (1) up to the time at , i.e. long time error analysis. In other words, one has to establish error bounds of the numerical method for (1) up to the time at instead of the classical error bounds which are only valid up to the time at . The purpose of this paper is to carry out rigorous error analysis of four widely used FDTD methods for the NKGE (1) in the long time regime. In our error bounds, we pay particular attention to how the error bounds depend explicitly on the mesh size and time step as well as the small parameter . In our numerical analysis, besides the standard technique of the energy method and the inverse inequality, we adapt the cut-off of the nonlinearity for the conservative methods, and resp., the mathematical induction for nonconservative methods, to obtain a priori bound of the numerical solution in the norm. Based on our rigorous error bounds, in order to obtain “correct” numerical approximations of the NKGE (1) (or (3)) up to the long time at with a fixed constant, the -scalability (or meshing strategy requirement) of the FDTD methods when is:
[TABLE]
As a by-product, by rescaling the time as with in (1), then the problem (1) can be re-formulated as an oscillatory NKGE whose solution propagates waves with wavelength at in space and in time. The FDTD methods to (1) and their error bounds over long time can be extended straightforwardly to the oscillatory NKGE up to the time at . With the error bounds, the -scalability (or meshing strategy) of the FDTD methods for the oscillatory NKGE can be drawn.
The rest of the paper is organized as follows. In Section 2, different explicit/semi-implicit/implicit and conservative/nonconservative FDTD discretizations are presented for the NKGE (1) and their properties of the stability, conservation and solvability are analyzed. In Section 3, we establish rigorous error estimates of the FDTD methods for the NKGE (1) over long time dynamics. Extensive numerical results are reported in Section 4 to confirm our error bounds. In Section 5, we extend the FDTD methods and their error bounds to an oscillatory NKGE. Finally, some conclusions are drawn in Section 6. Throughout this paper, we adopt the notation to represent that there exists a generic constant , which is independent of the mesh size and time step as well as such that .
2 FDTD methods and their analysis
In this section, we adapt four different FDTD methods to discretize the NKGE (1) and analyze their properties, such as stability, energy conservation and solvability. For simplicity of notations, we shall only present the numerical methods and their analysis for the NKGE (1) in one space dimension (1D). Thanks to tensor grids, generalizations to higher dimensions are straightforward and results remain valid with minor modifications. In 1D, consider the following NKGE
[TABLE]
with periodic boundary conditions.
2.1 FDTD methods
Choose the temporal step size and the spatial mesh size , and denote being a positive integer and the grid points and time steps as:
[TABLE]
Denote and we always use and if they are involved. The standard discrete , semi- and norms and inner product in are defined as
[TABLE]
with defined as for .
Let be the numerical approximation of for , and denote the numerical solution at time as . We introduce the finite difference operators as
[TABLE]
[TABLE]
Here we consider four frequently used FDTD methods to discretize the NKGE (5):
I. The Crank-Nicolson finite difference (CNFD) method
[TABLE]
II. A semi-implicit energy conservative finite difference (SIFD1) method
[TABLE]
III. Another semi-implicit finite difference (SIFD2) method
[TABLE]
IV. The leap-frog finite difference (LFFD) method
[TABLE]
Here,
[TABLE]
The initial and boundary conditions in (5) are discretized as
[TABLE]
where the initial velocity is employed to update the first step by the Taylor expansion and the NKGE (5) as
[TABLE]
It is easy to check that the above FDTD methods are all time symmetric or time reversible, i.e. they are unchanged if interchanging and . In addition, the LFFD (10) is explicit and might be the simplest and the most efficient discretization for the NKGE (5) with the computational cost per time step at . The others are implicit schemes. Nevertheless, the CNFD (7) and SIFD1 (8) can be solved via either a direct solver or an iterative solver with the computational cost per time step depending on the solver, which is usually larger than , especially in two dimensions (2D) and three dimensions (3D). Meanwhile, the solution of the SIFD2 (9) can be explicitly updated in the Fourier space with computational cost per time step, and such approach is valid in higher dimensions.
2.2 Stability, energy conservation and solvability
Let be a fixed constant and , and denote
[TABLE]
Following the von Neumann linear stability analysis of the classical FDTD methods for the NKGE in the nonrelativistic limit regime [5, 29], we can conclude the linear stability of the above FDTD methods for the NKGE (5) in the following lemma.
Lemma 2.1**.**
(linear stability) For the above FDTD methods applied to the NKGE (5) up to the time , we have:
(i) The CNFD (7) is unconditionally stable for any and .
(ii) When , the SIFD1 (8) is unconditionally stable for any and ; and when , this scheme is conditionally stable under the stability condition
[TABLE]
(iii) When , the SIFD2 (9) is unconditionally stable for any and ; and when , this scheme is conditionally stable under the stability condition
[TABLE]
(iv) The LFFD (10) is conditionally stable under the stability condition
[TABLE]
Remark 2.2**.**
The stability of schemes (9) - (10) is related to , dependent on the boundedness of the norm of the numerical solution at the previous time step. The convergence estimates up to the previous time step could ensure such a bound in the norm, by making use of the inverse inequality, and such an error estimate could be recovered at the next time step, as given by the Theorems presented in Section 3.
For the CNFD (7) and SIFD1 (8), we can show that they conserve the energy in the discretized level with the proofs proceeding in the analogous lines as those in [5, 30, 37] and we omit the details here for brevity.
Lemma 2.3**.**
(energy conservation) For , the CNFD (7) conserves the discrete energy as
[TABLE]
Similarly, the SIFD1 (8) conserves the discrete energy as
[TABLE]
Based on Lemma 19, we can show the unique solvability of the CNFD (7) at each time step as follows.
Lemma 2.4**.**
(solvability of CNFD) For any given (), the solution of the CNFD (7) is unique at each time step.
Proof 2.5**.**
Firstly, we prove the existence of the solution for the CNFD (7). To simplify the notations, we denote the grid function with
[TABLE]
For any , we rewrite the CNFD (7) as
[TABLE]
where with
[TABLE]
Define a map as
[TABLE]
It is obvious that () is continuous from to . Moreover, the fact
[TABLE]
implies
[TABLE]
Then, we can conclude that there exists a solution such that by applying the Brouwer fixed point theorem [2, 8, 28]. In other words, the CNFD (7) is solvable.
Now, we proceed to verify the uniqueness. From (18), we can get
[TABLE]
Hence, by employing the discrete Sobolev inequality [2, 39], we can obtain
[TABLE]
For any , we define a functional as
[TABLE]
It is easy to check that is strictly convex with the gradient of it denoted as turning out to be
[TABLE]
By the strict convexity of , we can get the uniqueness of , which yields the uniqueness of immediately. Thus, the proof is completed.
Remark 2.6**.**
The solvability of the SIFD1 (8) can be obtain similarly to the CNFD (7) in Lemma 2.3. There exists a unique solution for the SIFD2 due to the fact that it solves a linear system with a strictly diagonally dominant matrix. The solvability and uniqueness for (10) are straightforward since it is explicit.
3 Error estimates
In this section, we will establish error bounds of the FDTD methods.
3.1 Main results
Motivated by the analytical results in [26, 25, 31, 35, 38, 18, 16] and references therein, we make the following assumptions on the exact solution of the NKGE (5) up to the time :
[TABLE]
here and for .
Denote and the grid ‘error’ function as
[TABLE]
where is the numerical approximation of the NKGE (5).
For the CNFD (7), we can establish the following error estimates (see its detailed proof in Section 3.2):
Theorem 3.1**.**
Under the assumption (), there exist constants and sufficiently small and independent of , such that, for any , when and , we have the following error estimates for the CNFD (7) with (12) and (13)
[TABLE]
For the LFFD (10), the error estimates can be established as follows (see its detailed proof in Section 3.3):
Theorem 3.2**.**
Assume and under the assumption (), there exist constants and sufficiently small and independent of , such that for any , when and and under the stability condition (17), we have the error estimates for the LFFD (10) with (12) and (13) as
[TABLE]
Similarly, for the SIFD1 (8) and SIFD2 (9), we have the following error estimates (their proofs are quite similar and thus they are omitted for brevity):
Theorem 3.3**.**
Assume and under the assumption (), there exist constants and sufficiently small and independent of , such that for any , when , and under the stability condition (15), we have the following error estimates for the SIFD1 (8) with (12) and (13)
[TABLE]
Theorem 3.4**.**
Assume and under the assumption (), there exist constants and sufficiently small and independent of , such that for any , when , and under the stability condition (16), we have the following error estimates for the SIFD2 (9) with (12) and (13)
[TABLE]
Remark 3.5**.**
In 2D with and 3D with cases, the above theorems are still valid under the technical conditions and where when , and when .
Hence, the four FDTD methods studied here share the same spatial/temporal resolution capacity for the NKGE (5) up to the long time at with . In fact, given an accuracy bound , the -scalability (or meshing strategy) of the FDTD methods should be taken as
[TABLE]
This implies that, in order to get “correct” numerical solution up to the time at , one has to take the meshing strategy: and ; and resp., in order to get “correct” numerical solution up to the time at , one has to take the meshing strategy: and . These results are very useful for practical computations on how to select mesh size and time step such that the numerical results are trustable!
3.2 The proof of Theorem 3.1
For the CNFD (7), we establish the error estimates in Theorem 3.1. The key of the proof is to deal with the nonlinearity and overcome the main difficulty in uniformly bounding the numerical solution , i.e., . Here, we adapt the cut-off technique which has been widely used in the literature[1, 2, 39], i.e., the nonlinearity is truncated to a global Lipschitz function with compact support.
Denote , choose a smooth function and define
[TABLE]
then has compact support and is smooth and global Lipschitz, i.e., there exists independent of , and , such that
[TABLE]
Set , and determine for as follows
[TABLE]
In fact, can be viewed as another approximation of for and . It is easy to verify that the scheme (38) is uniquely solvable for sufficiently small by using the properties of and standard techniques in Section 2. Define the corresponding ‘error’ function as
[TABLE]
and we can establish the following estimates:
Theorem 3.6**.**
Under the assumption (A), there exist constants and sufficiently small and independent of , such that for any , when and , we have the following error estimates
[TABLE]
We begin with the local truncation error of the scheme (38) given as
[TABLE]
The following estimates hold for .
Lemma 3.7**.**
Under the assumption (A), we have
[TABLE]
Proof 3.8**.**
Under the assumption (A), by applying the Taylor expansion to (41), it leads to
[TABLE]
Similarly, we have for . These immediately imply (42).
Next, we control the nonlinear term as follows.
Lemma 3.9**.**
For and , denote the error of the nonlinear term
[TABLE]
under the assumption (A), we have
[TABLE]
Proof 3.10**.**
Noticing (37) and (43), direct calculation for and leads to
[TABLE]
where the constant is independent of and . Under the assumption (A) and the properties of , we have
[TABLE]
*which completes the proof. *
Now, we proceed to study the growth of the errors and verify Theorem 40. Subtracting (38) from (41), the error satisfies
[TABLE]
Define the ‘energy’ for the error vector as
[TABLE]
It is easy to see that
[TABLE]
Proof 3.11**.**
(Proof of Theorem 40) When , the estimates in (40) are obvious and the case is already verified in Lemma 3.1 for sufficiently small and . Thus, we only need to prove (40) for .
Multiplying both sides of (47) by , summing up for , noticing the fact and making use of the Young’s inequality and Lemmas 42 &44, we derive
[TABLE]
Summing the above inequalities for time steps from 1 to , there exists a constant such that
[TABLE]
Hence, the discrete Gronwall’s inequality suggests that there exists a constant sufficiently small, such that when , the following holds
[TABLE]
Recalling when , we can obtain the error estimate
[TABLE]
Finally, we estimate for . The discrete Sobolev inequality implies
[TABLE]
Thus, there exist and sufficiently small, when and , we obtain
[TABLE]
The proof is completed by choosing and .
Proof 3.12**.**
(Proof of Theorem 3.1) In view of the definition of , Theorem 40 implies that (38) collapses to (7). By the unique solvability of the CNFD, is identical to . Thus, Theorem 3.1 is a direct consequence of Theorem 40.
3.3 The proof of Theorem 3.2.
For the LFFD (10), we establish the error estimates in Theorem 3.2. Throughout this section, the stability condition (17) is assumed. Here, we sketch the proof and omit those parts similar to the proof of Theorem 3.1 in Section 3.2.
Proof 3.13**.**
Denote the local truncation error as
[TABLE]
and the error of the nonlinear term as
[TABLE]
Similar to Lemma 42, under the assumption (A), we have
[TABLE]
The error equation for the LFFD (10) can be derived as
[TABLE]
We adapt the mathematical induction to prove Theorem 3.2, i.e. we want to demonstrate that there exist and , such that, when and , under the stability condition (17), the error bounds hold
[TABLE]
for all and , where , and will be classified later. For , (60) is trivial. For , the error equation (59) and the estimate (58) imply
[TABLE]
In view of the triangle inequality, discrete Sobolev inequality and the assumption (A), there exist and sufficiently small, when and , we have
[TABLE]
In other words, (60) hold for .
Now we assume that (60) is valid for all , then we need to show shat it is still valid when . From (57), the error of the nonlinear term can be controlled as
[TABLE]
Define the ‘energy’ for the error vector as
[TABLE]
where
[TABLE]
Under the assumption , we have . Since
[TABLE]
we can conclude that
[TABLE]
Similar to the proof in Section 3.2, there exists sufficiently small, when ,
[TABLE]
where depends on and the exact solution . Letting , we have
[TABLE]
where depends on and the exact solution .
It remains to estimate for . In fact, the discrete Sobolev inequality implies
[TABLE]
Thus, there exist and sufficiently small, when and , we obtain
[TABLE]
Under the stability condition (17) and the choices of , and , the estimates in (60) are valid when . Hence, the mathematical induction process is done and the proof of Theorem 3.2 is completed.
4 Numerical results
In this section, we present numerical results of the FDTD methods for the NKGE (5) up to the long time at with to verify our error bounds. We only show numerical results for the CNFD (7) and the results for other FDTD methods are quite similar which are omitted for brevity. In the numerical experiments, we take , and choose the initial data as
[TABLE]
The ‘exact’ solution is obtained numerically by the exponential-wave integrator Fourier pseudospectral method [5, 19] with a very fine mesh size and a very small time step, e.g. and . Denote as the numerical solution at time obtained by a numerical method with mesh size and time step . In order to quantify the numerical results, we define the error function as follows:
[TABLE]
Here we study the following three cases with respect to different :
Case I. Fixed time dynamics up to the time at , i.e., ;
Case II. Intermediate long time dynamics up to the time at , i.e., ;
Case III. Long time dynamics up to the time at , i.e., .
We first test the spatial discretization errors at for different . In order to do this, we fix the time step as such that the temporal error can be ignored, and solve the NKGE (5) under different mesh size . Tables 1, 3 and 5 depict the spatial errors for , and , respectively. Then we check the temporal errors at for different with different time step and a fine mesh size such that the spatial errors can be neglected. Tables 2, 4 and 6 show the temporal errors for , and , respectively.
From Tables 1-6 for the CNFD and additional similar numerical results for other FDTD methods not shown here for brevity, we can draw the following observations:
(i) For any fixed or , the FDTD methods are uniformly second-order accurate in both spatial and temporal discretizations (cf. Tables 1 & 2 and the first rows in Tables 3-6), which agree with those results in the literature. (ii) In the intermediate long time regime, i.e. , the second order convergence in space and time of the FDTD methods can be observed only when and (cf. upper triangles above the diagonals (corresponding to and , and being labelled in bold letters) in Tables 3-4), which confirm our error bounds. (iii) In the long time regime, i.e. , the second order convergence in space and time of the FDTD methods can be observed only when and (cf. upper triangles above the diagonals (corresponding to and , and being labelled in bold letters) in Tables 5-6), which again confirm our error bounds. In summary, our numerical results confirm our rigorous error bounds and show that they are sharp.
5 Extension to an oscillatory NKGE
Introducing a rescaling in time by with and denoting , we can reformulate the NKGE (1) into the following oscillatory NKGE
[TABLE]
Again, the oscillatory NKGE (71) is time symmetric or time reversible and conserves the energy [5, 19], i.e.,
[TABLE]
In fact, the long time dynamics of the NKGE (1) up to the time at is equivalent to the dynamics of the oscillatory NKGE (71) up to the fixed time at . Of course, the solution of of the NKGE (1) propagates waves with wavelength at in both space and time, and wave speed in space at too. On the contrary, the solution of the oscillatory NKGE (71) propagates waves with wavelength at in space and in time, and wave speed in space at . To illustrate this, Figures 1 & 2 show the solutions and , respectively, of the oscillatory NKGE (71) with , and initial data (69) for different and . We remark here that the oscillatory nature of the oscillatory NKGE (71) is quite different with that of the NKGE in the nonrelativistic limit regime. In fact, in the nonrelativistic limit regime of the NKGE [3, 4, 5, 7], the solution propagates waves with wavelength at in space and in time, and wave speed in space at !
In the following, we extend the FDTD methods and their error bounds for the NKGE (1) in previous sections to the oscillatory NKGE (71). Again, for simplicity of notations, the FDTD methods and their error bounds are only presented in 1D, and the results can be easily generalized to high dimensions with minor modifications. In addition, the proofs for the error bounds are quite similar to those in Sections 2&3, and thus they are omitted for brevity. We adopt similar notations as those used in Sections 2&3 except stated otherwise. In 1D, consider the following oscillatory NKGE
[TABLE]
with periodic boundary conditions.
5.1 FDTD methods
Choose the temporal step size and denote time steps as for . Let be the numerical approximation of for and , and denote the numerical solution at time as . Introduce the temporal finite difference operators as
[TABLE]
We consider the following four FDTD methods:
I. The Crank-Nicolson finite difference (CNFD) method
[TABLE]
II. A semi-implicit energy conservative finite difference (SIFD1) method
[TABLE]
III. Another semi-implicit finite difference (SIFD2) method
[TABLE]
IV. The Leap-frog finite difference (LFFD) method
[TABLE]
The initial and boundary conditions are discretized as
[TABLE]
Using the Taylor expansion and noticing (73), the first step can be computed as
[TABLE]
In fact, if we take in the FDTD methods in this section, then they are consistent with those FDTD methods presented in Section 2. Thus they have the same solutions.
We remark here that, in practical computations, in order to uniformly bound the first step value for , in the above approximation (79), and are replaced by and , respectively [5, 8].
5.2 Stability and energy conservation
Denote
[TABLE]
Similar to Section 2, following the von Neumann linear stability analysis of the classical FDTD methods for the NKGE in the nonrelativistic limit regime [5, 29], we can conclude the linear stability of the above FDTD methods for oscillatory NKGE (73) up to the fixed time in the following lemma.
Lemma 5.1**.**
For the above FDTD methods applied to the oscillatory NKGE (73) up to the fixed time , we have:
(i) The CNFD (74) is unconditionally stable for any and .
(ii) When , the SIFD1 (75) is unconditionally stable for any and ; and when , this scheme is conditionally stable under the stability condition
[TABLE]
(iii) When , the SIFD2 (76) is unconditionally stable for any and ; and when , this scheme is conditionally stable under the stability condition
[TABLE]
(iv) The LFFD (77) is conditionally stable under the stability condition
[TABLE]
For the CNFD (74) and SIFD1 (75), we have the following energy conservation properties:
Lemma 5.2**.**
The CNFD (74) conserves the discrete energy as
[TABLE]
Similarly, the SIFD1 (75) conserves the discrete energy as
[TABLE]
5.3 Main results
Again, motivated by the analytical results and the assumptions on the NKGE (5), we assume that the exact solution of the oscillatory NKGE (73) satisfies
[TABLE]
Define the grid ‘error’ function as
[TABLE]
where is the numerical approximation of the oscillatory NKGE (73) obtained by one of the FDTD methods.
By taking in the above FDTD methods and noting the error bounds in Section 3, we can immediately obtain error bounds of the above FDTD methods for the oscillatory NKGE (73).
Theorem 5.3**.**
Under the assumption (B), there exist constants and sufficiently small and independent of , such that for any , when and , we have the following error estimates for the CNFD (74) with (78) and (79)
[TABLE]
Theorem 5.4**.**
Assume and under the assumption (B), there exist constants and sufficiently small and independent of , such that for any , when , and under the stability condition (81), we have the following error estimates for the SIFD1 (75) with (78) and (79)
[TABLE]
Theorem 5.5**.**
Assume and under the assumption (B), there exist constants and sufficiently small and independent of , such that for any , when , and under the stability condition (82), we have the following error estimates for the SIFD2 (76) with (78) and (79)
[TABLE]
Theorem 5.6**.**
Assume and under the assumption (B), there exist constants and sufficiently small and independent of , such that for any , when , and under the stability condition (83), we have the following error estimates for the LFFD (77) with (78) and (79)
[TABLE]
The above four FDTD methods share the same spatial/temporal resolution capacity for the oscillatory NKGE (73) up to the fixed time at . In fact, given an accuracy bound , the -scalability (or meshing strategy) of the FDTD methods for the oscillatory NKGE (73) should be taken as
[TABLE]
Again, these results are very useful for practical computations on how to select mesh size and time step such that the numerical results are trustable!
5.4 Numerical results of the oscillatory NKGE in the whole space
Consider the following oscillatory NKGE in -dimensional () whole space
[TABLE]
Similar to the oscillatory NKGE (71), the solution of of the oscillatory NKGE (92) propagates waves with wavelength at in space and in time, and wave speed in space at . To illustrate the rapid wave propagation in space at , Figure 3 shows the solution of the oscillatory NKGE (92) with and initial data
[TABLE]
Similar to those in the literature, by using the fast decay of the solution of the oscillatory NKGE (92) at the far field (see [5, 20, 37] and references therein), in practical computation, we usually truncate the originally whole space problem onto a bounded domain with periodic boundary conditions, provided that is large enough such that the truncation error is negligible. Then the truncated problem can be solved by the FDTD methods. Of course, due to the rapid wave propagation in space of the oscillatory NKGE (92) (cf. Fig. 3), in order to compute numerical solution up to the time at , in general, the size of the bounded domain has to be taken as .
In the following, we report numerical results of the oscillatory NKGE (92) with . The initial data is chosen as (93) and the bounded computational domain is taken as . The ‘exact’ solution is obtained numerically by the exponential-wave integrator Fourier pseudospectral method with a very fine mesh size and a very small time step, e.g. and . Denote as the numerical solution at obtained by a numerical method with mesh size and time step . In order to quantify the numerical results, we define the error function as follows:
[TABLE]
Tables 7 and 8 show the spatial and temporal errors, respectively, of the CNFD method with , and Tables 9 and 10 show similar results for . The results for other FDTD methods are quite similar and they are omitted here for brevity.
From Tables 7-10 for the CNFD and additional similar numerical results for other FDTD methods not shown here for brevity, we can draw the following observations on the FDTD methods for the oscillatory NKGE (71) (or (92)):
(i) For any fixed or , the FDTD methods are uniformly second-order accurate in both spatial and temporal discretizations (cf. the first rows in Tables 7-10), which agree with those results in the literature. (ii) In the intermediate oscillatory case, i.e. , the second order convergence in space and time of the FDTD methods can be observed only when and (cf. upper triangles above the diagonals (corresponding to and , and being labelled in bold letters) in Tables 7-8), which confirm our error bounds. (iii) In the highly oscillatory case, i.e. , the second order convergence in space and time of the FDTD methods can be observed only when and (cf. upper triangles above the diagonals (corresponding to and , and being labelled in bold letters) in Tables 9-10), which again confirm our error bounds. In summary, our numerical results confirm our rigorous error bounds and show that they are sharp.
6 Conclusion
Four different finite difference time domain FDTD methods were adapted to discretize the nonlinear Klein-Gordon equation (NKGE) with a weak cubic nonlinearity, while the nonlinearity strength is characterized by with a dimensionless parameter. Rigorous error estimates were established for the long time dynamics of the NKGE up to the time at with . The error bounds depend explicitly on the mesh size and time step as well as the small parameter , which indicate the temporal and spatial resolution capacities of the FDTD methods for the long time dynamics of the NKGE. Based on the error bounds, in order to get “correct” numerical solution of the NKGE up to the long time at with , the -scalability (or meshing strategy) of the FDTD methods has to be taken as: and . In addition, the FDTD methods were also applied to solve an oscillatory NKGE and their error bounds were also obtained. Extensive numerical results were reported to confirm our error bounds and to demonstrate that they are sharp.
Acknowledgments
We thank fruitful discussion with Dr Chunmei Su. This work was partially supported by the Ministry of Education of Singapore grant R-146-000-223-112.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] W. Bao and Y. Cai , Uniform error estimates of finite difference methods for the nonlinear Schrödinger equation with wave operator, SIAM J. Numer. Anal., 50 (2012) 492-521.
- 2[2] W. Bao and Y. Cai , Optimal error estimates of finite difference methods for the Gross-Pitaevskii equation with angular momentum rotation, Math. Comp., 82 (2013) 99-128.
- 3[3] W. Bao, Y. Cai, X. Jia and J. Yin , Error estimates of numerical methods for the nonlinear Dirac equation in the nonrelativistic limit regime, Sci. China Math., 59 (2016), 1461-1494.
- 4[4] W. Bao, Y. Cai and X. Zhao , A uniformly accurate multiscale time integrator pseudospectral method for the Klein-Gordon equation in the nonrelativistic limit regime, SIAM J. Numer. Anal., 52 (2014) 2488-2511.
- 5[5] W. Bao and X. Dong , Analysis and comparison of numerical methods for the Klein-Gordon equation in the nonrelativistic limit regime, Numer. Math., 120 (2012) 189-229.
- 6[6] W. Bao, X. Dong and X. Zhao , An exponential wave integrator pseudospectral method for the Klein-Gordon-Zakharov system, SIAM J. Sci. Comput., 35 (2013), A 2903-A 2927.
- 7[7] W. Bao, X. Dong and X. Zhao , Uniformly accurate multiscale time integrators for highly oscillatory second order differential equations, J. Math. Study, 47 (2014) 111-150.
- 8[8] W. Bao and C. Su , Uniform error bounds of a finite difference method for the Klein-Gordon-Zakharov system in the subsonic limit regime, Math. Comp., 87 (2018) 2133-2158.
