Abstract
We consider compact difference schemes of approximation order \(4+2 \) on a three-point spatial stencil for the Klein–Gordon equations with constant and variable coefficients. New compact schemes are proposed for one type of second-order quasilinear hyperbolic equations. In the case of constant coefficients, we prove the strong stability of the difference solution under small perturbations of the initial conditions, the right-hand side, and the coefficients of the equation. A priori estimates are obtained for the stability and convergence of the difference solution in strong mesh norms.
Similar content being viewed by others
Avoid common mistakes on your manuscript.
INTRODUCTION
Improving the accuracy of numerical methods for solving problems of mathematical physics on minimal stencils has always been a topical problem in numerical analysis (see, e.g., [1,2,3,4]). A special place among the methods for constructing difference schemes of higher approximation order is occupied by so-called compact schemes, which are written on a stencil that differs insignificantly from the ones traditional for the equation in question [5]. The fundamental paper [6] on this topic for classical equations of mathematical physics with a self-adjoint elliptic operator was published by Samarskii more than 50 years ago. Compact difference schemes for other classes of equations, including convection–diffusion type equations, nonlinear equations without mixed derivatives, and aerohydrodynamic problems were constructed in [7,8,9].
In the present paper, we study compact difference schemes of approximation order \(4+2 \) on the usual three-point stencil for various types of the Klein–Gordon equation. This equation plays an important role in mathematical physics; in particular, it is used in the study of solitons and in condensed matter physics [10]. Compact difference schemes for this equation were constructed and studied, e.g., in [9, 11]. Some results on the topic were also announced in [12, 13]. For this equation, although the differential and difference problems with variable coefficients are linear, one fails to obtain relevant a priori estimates by applying well-known results from Samarskii’s stability theory of three-level operator-difference schemes [1, Ch. VI, Sec. 3]. In the present paper, we apply the method of energy inequalities to compact difference schemes approximating the Klein–Gordon equations with variable coefficients to obtain a priori estimates for the stability and convergence of the difference solution in the mesh norms of \(L_{2}(\omega _{h})\), \(W_{2}^{1}(\omega _{h})\), \(C(\omega _{h}) \), or \(L_{\infty }(\omega _{h}) \). We use a numerical experiment for a quasilinear equation that is a corollary of the system of gasdynamic equations as an example shown how to use the Runge rule for determining various orders of the convergence rate of the solution of a difference scheme in the case of two independent variables.
1. NECESSARY AND SUFFICIENT CONDITIONS FOR THE STABILITY OF TWO- AND THREE-LEVEL OPERATOR-DIFFERENCE SCHEMES
When studying compact difference schemes approximating linear Klein–Gordon equations, it is natural to use Samarskii’s general theory [1, Ch. VI, Sec. 3] of operator-difference schemes. Below, we suggest to use some other canonical forms of operator-difference schemes, for which the stability conditions are much simpler and do not contain conditions on the relationship between the operators.
Consider a real finite-dimensional Euclidean space \(H \) and a time mesh \(\overline {\omega }_{\tau }=\{t_{n}=n\tau \), \(n={0,\ldots ,N_{0}} \), \(\tau N_{0}=T\}=\omega _{\tau }\cup \{0\} \). Let the inner product on \(H \) be denoted by \((\cdot ,\cdot ) \), and let \(A, B, D: H\to H \) be linear operators independent of \(\tau \) and \(t_{n} \).
Consider the Cauchy problem for the two-level operator-difference scheme
where \( y^{n}=y(t_{n})\in H\) is the desired vector function, \(\varphi ^{n}=\varphi (t_n)\) and \(u_{0} \) are given, and \(y^{(\sigma )}=\sigma y^{n+1}+(1-\sigma )y^{n}\), \(y^{n}\in H \). Then the Samarskii criterion (see [1, p. 333]) can be stated for \(\varphi (t)\equiv 0 \) as follows.
Theorem 1.
The conditions
are necessary and sufficient for the stability of the solution of the difference problem (1), (2) in \(H_{A} \) with respect to the initial data, i.e., for the estimate
where, as usual, \( \|v\|_A=(Av,v)^{1/2}\) for each \(v\in H\).
We will use the following canonical form for three-level operator-difference schemes:
where \(y^{(\sigma _{1},\sigma _{2})}=\sigma _{1}y^{n+1} +(1-\sigma _{1}-\sigma _{2})y^{n}+\sigma _{2}y^{n-1} \), \(0\leq \sigma _{1},\sigma _{2}\leq 1 \).
In the present paper, we use the notation in [1, 2]. In what follows, we assume that \(D\) and \(A_{1} \) are positive, self-adjoint, and constant operators,
Then the following assertion holds.
Theorem 2.
The difference scheme (3), (4) is stable in \(H_{A_{1}}\) with respect to the initial data and the right-hand side, and one has the a priori estimate
Here \( Q^{n}=\{\|y_{\overline {t}}\|_{D}^{2} +(\|y\|^2_{A_{1}}+\|\check {y}\|^2_{A_{1}})/2\}^{1/2}\).
Proof. Multiplying Eq. (3) by \(2\tau y_{\overset {\circ }t}=\tau (y_{t}+y_{\overline {t}})\) in the sense of the inner product on \(H \), we arrive at the energy relation
This implies the desired estimate.
2. KLEIN–GORDON EQUATION WITH CONSTANT COEFFICIENTS
2.1. Statement of the Problem and the Difference Scheme
In the domain \(\overline {Q}_T=\{(x,t): 0\le x\le l,\; 0\le t\le T\} \), we consider the initial–boundary value problem for the Klein–Gordon equation with constant coefficients
Note that Eq. (6) is a generalization of the wave equation and is used to describe rapidly moving particles with nonzero rest mass. From now on, we assume that there exists a unique solution of the differential problem and that all of its derivatives needed in the exposition are continuous in \(\overline {Q}_{T} \).
On the uniform mesh of grid points \(\overline {\omega }=\overline {\omega }_h\times \overline {\omega }_{\tau }=\{(x_{i},t_{n})\in \overline {Q}_{T}\}\), where \(\overline {\omega }_h=\{x_{i}=ih\), \(0\le i\le N \), \(h=l/N\}=\omega _h\cup \{0, l\} \) and \(\overline {\omega }_{\tau }=\{t_{n}=n\tau \), \(0\le n\le N_{0} \), \(\tau =T/N_{0}\}=\omega _{\tau }\cup \{0\} \), we replace the differential problem by the difference problem
where
Just as in the monograph [1, p. 309], one can readily show that the discrepancy
and the approximation error in the second initial condition satisfy the a priori estimates
i.e., the difference scheme (9)–(11) approximates the original differential problem with the fourth order in space and the second order in time.
2.2. Stability with Respect to the Initial Data and the Right-Hand Side
To study these issues in the linear case, one usually applies the theory of three-level operator-difference schemes developed by Samarskii [1, Ch. VI, Sec. 3]. The requirement for the main spatial operator to be self-adjoint,
results in stringent restrictions on the homogeneity of the boundary conditions. To avoid this, consider the perturbed solution \(\tilde {y}\) produced by the difference scheme (9)–(11) with perturbed right-hand side \(\tilde {f} \) and perturbed initial conditions \(\tilde {u}_{0} \), \(\tilde {u}_{1}\). Then the problem for the perturbation \(\overline {y}=\tilde {y}-y \) can be written in the operator form
Here \(\overline {u}_{0}=\tilde {u}_{0}-u_{0}\), \(\overline {u}_{1}=\tilde {u}_{1}-u_{1}\), and \(\overline {\varphi }=\tilde {\varphi }-\varphi \).
The operator \(A\) defined by relation (14) is constant, positive, and self-adjoint, \(0<A^{*}=A: H\to H\); here \(H \) is the space of mesh functions defined on \(\overline {\omega }_{h}\) and vanishing for \(x=0 \) and \(x=l \). Therefore, the operators \(D \) and \(A_{1} \) are positive, constant, and self-adjoint as well, \(D=D^{*}>E \) and \(A_{1}=A^{*}_{1}>A \).
Note the following well-known properties of the operator \(A \) [1, Ch. II, Sec. 3]:
We need the following assertion.
Lemma 1 [1, p. 373].
Assume that the operators \(D\) and \(A_{1}\) in the canonical form (15), (16) are constant, positive, and self-adjoint in \(H\) and satisfy the inequality
Then the solution of the scheme (15), (16) satisfies the a priori estimate
In particular, if \(\varepsilon =1 \), \( D\geq E\), and \( A_{1}^{-1}<A^{-1}\leq \delta ^{-1}E \), then the estimate (20) acquires the form
Let us apply the estimate (21) to the stability analysis of the compact difference scheme (9)–(11). In what follows, we assume that
Then condition (19) is satisfied. Indeed,
Thus, the following assertion holds.
Theorem 3.
Let condition (22) be satisfied. Then the difference scheme with the inhomogeneous boundary conditions (9)–(11) is conditionally stable with respect to the initial data and the right-hand side, and its solution satisfies the a priori estimate
Remark.
In the linear case, the change of variables
reduces the original differential problem to a problem with homogeneous boundary conditions for \(v\). Further, the stability of the solution of difference schemes for these problems with respect to the boundary conditions and the right-hand side takes place simultaneously for both problems. However, this change of variables may fail to produce the desired result for the nonlinear Klein–Gordon equation.
Thus, we have proved the stability of solution of the difference scheme in the weak \(L_{2}(\omega _{h})\) energy norm under rather weak constraints on the function weight \(\sigma \). Such estimates are useful when studying the convergence of difference schemes with generalized solutions [14]. To produce a priori estimates in the stronger \( W^{1}_{2}(\omega _{h})\) and \(C(\omega _{h}) \) norms, we will use Theorem 2 and the embedding (see [1, p. 107])
Let us write the difference scheme for the perturbation \(\overline {y}=\tilde {y}-y \) in the canonical form (3) for \(h/\sqrt {6}\le \tau \le 1/\sqrt {m} \) and \(\sigma =1-h^2/(12\tau ^2) \),
where
Then the following assertion holds.
Theorem 4.
The solution of the difference scheme (24), (25) for \( h/\sqrt {6}\le \tau \le 1/\sqrt {m} \) and \( \sigma =1-h^2/(12\tau ^2)\) is stable with respect to the initial data and the right-hand side, and for all \( n={2,\ldots ,N_{0}}\) one has the a priori estimates
Proof. If \(h/\sqrt {6}\le \tau \le 1/\sqrt {m}\) and \(\sigma =1-h^2/(12\tau ^2) \), then condition (5) is satisfied; therefore, by Theorem 2,
Since \(A_{1}>A\) and \(D^{-1}\leq 2E \), we have the estimate
Consequently, it follows from the lemma and the embedding (23) that
The proof of the theorem is complete.
2.3. Strong Stability
When studying the well-posedness of difference schemes, attention is mainly paid to the stability of the solution with respect to the initial data and the right-hand side [1, 2]. However, when solving a differential problem numerically, it may turn out that the coefficients of the equation are given approximately rather than exactly. This shows how important it is to study schemes with perturbed coefficients. By strong stability we mean the stability of the solution of the difference problem with respect to small perturbations in the initial conditions, right-hand side, and coefficients of the equation [15].
Along with the difference scheme (9)–(11), consider the corresponding perturbed problem
We subtract Eqs. (9)–(11) from the respective equations (27)–(29) and obtain a problem for the perturbation \(\overline {y}=\tilde {y}-y \), which we write in the operator form (15), (16),
Here \(D=D^{*}>E\) and \(\tilde {A}_{1}=\tilde {A}_{1}^{*}>A\geq \delta E\) are positive constant self-adjoint operators.
Note that condition (19) is satisfied for \( h/\sqrt {6}\leq \tau \leq \sqrt {1/\tilde {m}} \); therefore, we obtain the inequality
for \(\overline {y} \) based on the a priori estimate (21). By virtue of relations (17) and (18), we have \(\|A\|<4/h^2 \), and consequently, the estimate (21) implies the estimate
where
Thus, we are now in a position to state the strong stability theorem.
Theorem 5.
Assume that the grid increments satisfy the condition
Then the solution of the difference scheme (9)–(11) is strongly stable, and the perturbation of the solution satisfies the a priori estimate
2.4. Convergence Theorem
Let us denote the method error by \(z=y-u\). We substitute \(z+u \) for \(y \) into the difference equations (9)–(11) and obtain the problem
for \(z\).
Since problems (9)–(11) and (30)–(32) are identical, we can use Theorem 4 to estimate the method error.
Theorem 6.
Let the assumptions of Theorem 4 be satisfied. Then the solution of the difference problem (9)–(11) converges to the exact solution of the differential problem (6)–(8) in the \(C(\omega _{h}) \) mesh norm, and the solution satisfies the error estimate
Proof. Indeed, the a priori estimates (12), (13), and (26) imply the inequality
Consequently, the difference solution converges to the exact solution with the fourth order in space and the second order in time.
3. KLEIN–GORDON EQUATION WITH VARIABLE COEFFICIENTS
3.1. Statement of the Problem and the Difference Scheme
In the domain \(\overline {Q}_T=\{(x,t): 0\le x\le l \), \(0\le t\le T\}\), consider the initial–boundary value problem for the Klein–Gordon equation with variable coefficients
where \(0<k_{1}\leq k(x,t)\leq k_{2} \), \(u(x,t)\in C^{4,6}(\overline {Q}_{T}) \), \(p\in C^{0,5}(\overline {Q}_{T}) \), and \(f\in C^{0,4}(\overline {Q}_{T}) \).
We approximate the original differential problem by the difference scheme
on the mesh \(\overline {\omega } \) constructed above. Here
Following the papers [5, 6, 8], one can readily show that the difference scheme (36)–(38) approximates the original problem (33)–(35) with the fourth order in space and the second order in time; i.e., the discrepancy
and the second initial condition satisfy the a priori estimates
3.2. Stability
To avoid cumbersome calculations, we restrict ourselves to the case in which the coefficient \(k=k(x) \) depends on the spatial variable alone. Consider the perturbed solution \(\tilde {y}\) produced by the difference scheme (36)–(38) with perturbed right-hand side \(\tilde {f} \) and perturbed initial conditions \(\tilde {u}_{0} \) and \(\tilde {u}_{1} \). Then the problem for the perturbation \(\overline {y}=\tilde {y}-y\) acquires the form
Here \(\overline {u}_{0}=\tilde {u}_{0}-u_{0}\), \(\overline {u}_{1}=\tilde {u}_{1}-u_{1}\), and \(\overline {\varphi }=\tilde {\varphi }-\varphi \).
Unfortunately, although the difference problem is linear, the Samarskii theory of three-level operator-difference schemes [1] does not apply. We will use the method of energy inequalities; in addition to some well-known facts from the theory of difference schemes such as the first difference Green’s formula, the Cauchy–Schwarz inequality with \(\varepsilon \) [1, Ch. II, Sec. 3], and the difference analog of Gronwall’s lemma [16, Ch. III, Sec. 1], we also need the following assertion.
Lemma 2.
The expression
where \( p_{(-1)}=p_{i-1}\) , is nonnegative, \(Q^{n}\geq 0 \) , if the conditions
are satisfied.
Proof. It suffices to show that the expression
is nonnegative. In view of the obvious inequalities
the expression (43) satisfies the estimate
Under the first condition in (42), the inequality
holds. Consequently, we have
under the second condition in (42). The proof of the lemma is complete.
To obtain an a priori estimate for \(\overline {y} \), we multiply the difference equation (39) by \(2\tau y_{\overset {\circ }t} \) in the sense of the inner product and apply the first Green’s difference formula to obtain the energy relation
Consider the terms other than \(Q^{n} \) and \(Q^{n+1} \) in (44). We apply the Cauchy–Schwarz inequality with \(\varepsilon \) and readily obtain the estimates
where \(c>0 \) is a case-specific constant depending on \(m \), \(\varepsilon \), and \(\underset {x\in \overline {\omega }_{h}}\max |p_{\overline {x}}(x)|\).
We take into account inequalities (45)–(47) in (44) and, under conditions (42), arrive at the recursion relation
Thus, the following assertion holds.
Theorem 7.
Let the condition
be satisfied. Then one has the estimate
which implies the \(\rho \)-stability of the solution of the difference scheme (36)–(38) with respect to the initial data and the right-hand side in the \(L_{2}(\omega _{h}) \), \( W_{2}^{1}(\omega _{h})\), and \(C(\overline {\omega }_{h}) \) mesh norms.
The proof of the theorem follows from inequality (48), the Gronwall lemma, and the embedding [1, p. 107]
3.3. Convergence of the Difference Scheme in the \(C(\overline {\omega }_{h}) \) Mesh Norm
We substitute \(z+u\) for \(y \) into the difference equations (36)–(38), where \(u \) is the solution of problem (33)–(35), and obtain the problem
for the error \(z \).
Problems (50)–(52) and (39)–(41) are identical. Therefore, we can apply Theorem 7 to estimate the method error. Then, in accordance with inequality (49), we obtain the estimate
where \(M_{1}=\mathrm {const}>0 \).
Thus, we are now in a position to formulate the convergence theorem.
Theorem 8.
Let the assumptions of Theorem 7 be satisfied. Then the solution of the difference scheme (36)–(38) converges to the exact solution of the differential problem (33)–(35) in the \(C(\overline {\omega }_{h}) \) mesh norm, and the solution satisfies the error estimate
where \( M_{2}=\mathrm {const}>0\).
4. QUASILINEAR KLEIN–GORDON EQUATIONS
For equations with variable coefficients, the compact difference schemes proposed by Samarskii have the disadvantage that it is impossible to generalize them to the case of quasilinear equations, because the corresponding stencil functional must be calculated at a half-integer point, which does not exist in the quasilinear case. Nevertheless, compact schemes of order \(4+2 \), similar to schemes for the case of constant coefficients, can also be constructed for the quasilinear Klein–Gordon equations
with the condition \(\phi ^{\prime}_{u}=k(u)\geq k_{1}>0\).
The difference scheme of approximation order \(4+2 \) on the standard stencil has the form
where
To implement this scheme, one needs to use the Newton iteration method.
5. COMPUTATIONAL EXPERIMENT
Here we present the results of numerical calculations obtained when solving an initial–boundary value problem for the equation
with parameter values \(\gamma =5\), \(l=2 \), and \(T=2 \). The initial and boundary conditions are determined from the exact solution
Equation (53) is a corollary of the system of equations of gas dynamics in Lagrangian variables with the equation of state for a polytropic gas, where \(u=\eta \) is the specific volume.
The difference scheme of approximation order \(4+2 \) for Eq. (53) has the form
where \(\sigma =1 \) and \(\phi (u)=-u^{-\boldsymbol \gamma }/{\boldsymbol \gamma }\).
To find the solution of the difference scheme (54), we apply the Newton iteration method
On each layer, this process stops when the following condition is satisfied for some \(M \):
The order of convergence in the time and space variables in the \(L_{\infty }=C \) norm is determined by the formulas
Since the difference solution converges to the exact solution with the fourth order in space and the second order in time, we select steps \(h \) and \(\tau \) satisfying the inequality \(h^{4}\leq \tau ^2 \) to verify the rate of convergence in the time variable. Then we obtain an \(O(\tau ^2)\) scheme and deal with the second Runge rule (55).
In a similar way, when considering the order with respect to \(h \), we take care that the inequality \(h^{4}\geq \tau ^2 \) holds in the calculations. Then we can apply the first Runge rule (55).
Tables 1 and 2 list the rates of convergence of the approximate solution to the exact one.
Hence we see that the constructed difference scheme has the fourth order of accuracy in the spatial variable and the second order of accuracy in the time variable.
In addition, in Figs. 1 and 2 one can clearly see by colors and figures that the approximate solution converges to the exact solution as the grid increments \(h \) and \(\tau \) are refined. For convenience of visual observation, the above results were produced in the domain \(0\leq x\leq 10\), \(0\leq t\leq 10 \).
The computational experiment confirms our theoretical conclusions.
REFERENCES
Samarskii, A.A., Teoriya raznostnykh skhem (Theory of Difference Schemes), Moscow: Nauka, 1989.
Samarskii, A.A., Vabishchevich, P.N., and Matus, P.P., Raznostnye skhemy s operatornymi mnozhitelyami (Difference Schemes with Operator Multipliers), Minsk: ZAO “TsOTZh”, 1998.
Lemeshevsky, S., Matus, P., and Poliakov, D., Exact Finite-Difference Schemes, Berlin–Boston: Walter de Gruyter, 2016.
Vabishchevich, P.N., Two-level finite difference scheme of improved accuracy order for time-dependent problems of mathematical physics, Comput. Math. Math. Phys., 2010, vol. 50, no. 1, pp. 118–130.
Paasonen, V.I., Compact difference schemes for systems of second-order equations with convective terms, Chisl. Metody Mekh. Sploshnoi Sredy, 1998, vol. 3, no. 1, pp. 55–66.
Samarskii, A.A., Scheme of improved order of accuracy for a multidimensional heat equation, Zh. Vychisl. Mat. Mat. Fiz., 1963, vol. 3, no. 5, pp. 812–840.
Tolstykh, A.I., Kompaktnye raznostnye skhemy i ikh primenenie v zadachakh aerogidrodinamiki (Compact Difference Schemes and Their Application to Aerohydrodynamic Problems), Moscow: Nauka, 1990.
Paasonen, V.I., Generalization of improved accuracy methods for second-order nonlinear equations in orthogonal coordinate systems, Chisl. Metody Mekh. Sploshnoi Sredy, 1977, vol. 8, no. 2, pp. 94–99.
Paasonen, V.I., Dissipative asymmetric compact schemes for the equation of vibrations, Vychisl. Tekhnol. Spets. Vypusk, 2001, vol. 6, no. 2, pp. 475–479.
Caudrey, P.J., Eilbeck, J.C., and Gibbon, J.D., The sine-Gordon equation as a model classical field theory, Il Nuovo Cimento B. Ser. 11 , 1975, vol. 25, no. 2, pp. 497–512.
Luo, Y., Li, X., and Guo, C., Fourth-order compact and energy conservative scheme for solving nonlinear Klein–Gordon equation, Numer. Methods Partial Differ. Equat., 2017, vol. 33, no. 4, pp. 1283–1304.
Matus, P.P. and Hoang Thi Kieu Anh, Compact difference schemes for the Klein–Gordon equation, Dokl. Nats. Akad. Nauk Belarusi, 2020, vol. 64, no. 5, pp. 526–533.
Matus, P.P. and Hoang Thi Kieu Anh, Compact difference schemes for the Klein–Gordon equation with variable coefficients, Dokl. Nats. Akad. Nauk Belarusi, 2021, vol. 65, no. 1, pp. 25–32.
Moskal’kov, M.N., On the accuracy of difference schemes approximating the wave equation with piecewise smooth solutions, Zh. Vychisl. Mat. Mat. Fiz., 1974, vol. 14, no. 2, pp. 390–401.
Matus, P.P. and Panaiotova, I.N., Coefficient stability of three-level operator-difference schemes, Comput. Math. Math. Phys., 2001, vol. 41, no. 5, pp. 678–687.
Samarskii, A.A. and Gulin, A.V., Ustoichivost’ raznostnykh skhem (Stability of Difference Schemes), Moscow: Nauka, 1973.
Author information
Authors and Affiliations
Corresponding authors
Additional information
Translated by V. Potapchouck
Rights and permissions
Open Access. This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Matus, P.P., Hoang Thi Kieu Anh Compact Difference Schemes on a Three-Point Stencil for Second-Order Hyperbolic Equations. Diff Equat 57, 934–946 (2021). https://doi.org/10.1134/S0012266121070090
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1134/S0012266121070090