Arbitrarily high-order conservative schemes for the generalized Korteweg-de Vries equation
Abstract.
This paper proposes a new class of arbitrarily high-order conservative numerical schemes for the generalized Korteweg-de Vries (KdV) equation. This approach is based on the scalar auxiliary variable (SAV) method. The equation is reformulated into an equivalent system by introducing a scalar auxiliary variable, and the energy is reformulated into a sum of two quadratic terms. Therefore, the quadratic preserving Runge-Kutta method will preserve all the three invariants (momentum, mass and the reformulated energy) in the discrete time flow (assuming the spatial variable is continuous). With the Fourier pseudo-spectral spatial discretization, the scheme conserves the first and third invariant quantities (momentum and energy) exactly in the space-time full discrete sense. The discrete mass possesses the precision of the spectral accuracy. Our numerical experiment shows the great efficiency of this scheme in simulating the breathers for the mKdV equation.
Key words and phrases:
generalized KdV, SAV, energy conservation, high-order conservative scheme, breathers1. Introduction
This paper considers the numerical approximation of the generalized Korteweg–de Vries (gKdV) equation
(1.1) |
where is a positive integer.
When , it is known as the KdV equation.When , it is the modified KdV (mKdV) equation. One appealing feature of these two cases is that they form the integrable systems and possess infinitely many integrals, which are invariant in time, see [40]. This is accounted by reformulating the KdV equation into the Lax pairs [33]. When , it is known as the generalized KdV equation, which is not integrable. In general, the equation (1.1) conserves the following three invariant quantities:
(1.2) | |||
(1.3) | |||
(1.4) |
known as the momentum, mass and energy (Hamiltonian), respectively.
These evolution equations are among the simplest of a general class of models featuring nonlinear advection (the term in this case). This family of equations arise as mathematical models for the propagation of physical waves in a wide variety of situations, such as shallow-water waves with weakly non-linear restoring forces, long internal waves in a density-stratified ocean, ion-acoustic waves in a plasma, acoustic waves on a crystal lattice, etc., e.g., see [3], [27], [6], [5], [14], [7]. The equations also attracted attention from the mathematical theory side. Analytical and numerical investigations include well-posedness, [30], [31]; soliton stability, [8], [39]; dispersion limit, [21]; and singularity formations, [32]. Nevertheless, there are still many open questions, and therefore, an efficient and accurate numerical algorithm would be desirable for future investigations.
Numerical studies of the gKdV equation trace back to 1970’s, ranging from finite difference methods [18], [34], [16]; finite element methods [2], [4], [28]; spectral methods [17], [23], [26], [38], [43]; operator splitting methods [25], [24] and discontinuous Galerkin methods [11], [35], [49], [52], [36]. Besides the order of accuracy and the stiffness from the term , preserving the conservation laws (1.2)-(1.4) is also a main concern in designing a numerical method for (1.1). Indeed, for conservative PDEs, numerical methods, which can preserve the corresponding invariants, are often advantageous: besides the accuracy, a conservative scheme can preserve good stability properties, especially in long-time simulations. On the other hand, to our best knowledge, most of the papers above are only capable of preserving one or, possibly, two quantities from (1.2)-(1.4), with the second order accuracy in time.
The purpose of this paper is to present a numerical scheme for the gKdV equation that preserves all these three invariant quantities (1.2)-(1.4) exactly in the discrete time, together with an arbitrarily high order of temporal accuracy. This is achieved by applying the scalar auxiliary variable (SAV) approach. The SAV approach, which was developed from the IEQ approach ([50] and [51]), was proposed for minimizing the free energy by gradient flows, aiming to keep the energy stable in the discrete time flow, see [46], [45] and convergence analysis in [47]. The main difference between these two methods is that while the IEQ method is introducing an additional variable function from the nonlinear terms in the equation, the SAV method is introducing a scalar function from the potential part in the energy. Hence, when considering the spatial discretized system (assume is discretized into grid points or nodes), the IEQ method results in a system, and the SAV approach results in an system, which reduces the computational cost significantly. The SAV or IEQ methods are then applied to the Hamiltonian PDEs in [10] and [15]. Inspired by the same idea, we reformulate the equation (1.1) into an equivalent system by introducing an auxiliary variable. The reformulated system conserves the original momentum and mass, and also the modified energy, which is rewritten into the sum of two quadratic terms. Therefore, by the standard numerical ODE theory, the quadratic preserving (symplectic) Runge-Kutta methods will preserve all these three invariants exactly in the discrete time flow (assume the space variable is continuous). The standard Fourier pseudo-spectral method is chosen for the spatial discretization. This spatial discretization preserves the momentum and energy exactly in the spatial discrete sense (assuming time is continuous), and consequently, the error of the discrete mass only comes from the spatial discretization, which is of spectral accuracy and usually unnoticeable in our numerical experiments.
This paper is organized as follows. In Section 2, we give the equivalent form of the reformulated gKdV equation (1.1) and the modified energy (1.4) based on the SAV approach. In Section 3, we show that the family of the quadratic preserving (symplectic) Runge-Kutta methods will preserve the momentum, mass and modified energy in the discrete time flow. In Section 4, we describe the spatial discretization. We prove that the conservation laws (1.2) and (1.4) hold in the spatial discrete sense. We also show the error of (1.3) from this discretization. Combing with results in Section 3, we prove that the proposed scheme preserves the momentum and energy exactly in the space-time fully discretized scheme in the computation. In the meanwhile, we also give an error estimate of the discrete mass, which is for some constant coming from the error of the spatial discretization. Due to the high accuracy of the Fourier spectral method, the constant is generally on the order of , several orders smaller than the tolerance for solving the resulting nonlinear system, and thus, the discrete mass error is almost unnoticeable. In Section 5, we first describe the numerical algorithm for solving the resulting nonlinear system from the symplectic Runge-Kutta method. Next, we briefly describe the several existing algorithms for the gKdV equations, such as the modified Crank-Nicholson method, conventional SAV with Leap-Frog (SAV-LF) approach, the Strang-Splitting (SS) method from [25], and the 4th order modified exponential time differencing (mETDRK4) method ([13] and [29]). They will be used in this paper for comparison purpose. Finally, we list our numerical examples. Numerical results show the fulfillment of conservation laws and a high accuracy of the proposed scheme, especially in simulating the breathers, which is a type of highly oscillatory non-dispersing pulse solutions for the mKdV equations.
Acknowledgment:
The author is partially supported by the NSF grant DMS-1927258 (PI: Svetlana Roudenko). The author is thankful for Dr. Roudenko’s helpful discussion, reading and remarks on the paper.
2. Model reformulation by the SAV approach
In this section, we reformulate the equation (1.1) into an equivalent system, which possesses a modified energy function of a new variable.
We first define the inner product for the real valued functions functions
(2.1) |
Assume . Consider a new scalar variable
where is a large enough positive constant to prevent the expression under the square root to become negative during our simulation time . In Section 3, we will provide an adjustment process for when is close to at some time . Therefore, for now we only need to choose a constant at to make sure for . This can be easily achieved, since we assume that the solution is well-posed (smooth in time) in .
3. Temporal discretization
In this section, we describe the temporal discretization of the scheme. We first show that the family of the symplectic Runge-Kutta (SRK) methods will conserve all three quantities (2.3) (2.4) and (2.5) in the discrete time flow. Then, we propose a strategy to adjust the constant in the computation, which makes the reformulated system (2.2) valid all the time and keeps the energy invariant.
3.1. Symplectic Runge-Kutta method
We first recall the -stage collocation Runge-Kutta method. Consider the IVP of the ODE in general form
Define to be the time step. Let be distinct real numbers (usually ). The collocation polynomial is a polynomial of degree satisfying
and the numerical solution is defined by .
From [22], we know that the -stage collocation method is equivalent to the -stage Runge-Kutta method. Indeed, consider
Letting be the Lagrange polynomial, the Lagrange interpolation formula gives us
Integrating from to for each yields
Denote , and the intermediate values . We have the Runge-Kutta formulation
and, the solution is updated by
We rewrite the coefficients , and in the Butcher’s Tableaus ([9]):
For example, we list three commonly used Runge-Kutta methods in the Butcher’s Tableaus in Table 1. ’s are chosen from the Gaussian-Legendre collocation points. Thus, they are known as the -stage Gaussian-Legendre Runge-Kutta method, namely IRK2, IRK4 and IRK6 from their order of accuracy when , respectively. There are many other types of collocation Runge-Kutta methods, we refer the interested reader to [12], [41] and [42].
Now, we adapt the collocation Runge-Kutta methods into the equation (2.2). Denote the semi-discretization in time , . For simplicity, we rewrite the equation (2.2) as the system
(3.1) |
Denote the intermediate values and to be the solution satisfying (2.2) at the time . Then, and can be obtained from the relation
(3.2) |
where and . Then, and are updated by
(3.3) |
Denote and to be the invariant quantities from (2.3)-(2.5) at the time . We have the following theorem.
Theorem 3.1.
Proof.
The proof is standard, similar to [12], [41] and [37]. Putting (3.3) in (2.3) yields
The last equality comes from the conservation law from (2.2) at each collocation time .
Similarly, putting (3.3) in (2.4), and using (3.2), yields
since at each collocation time from the conservation law in (2.4).
Similarly, to show , we have
by for each , which follows from differentiating the conservation law (2.5) with respect to . This completes the proof. ∎
From the theorem, we know that any arbitrary order of collocation Runge-Kutta method will conserve the momentum (2.3), the symplectic Runge-Kutta method will conserve the mass (2.4) and modified energy (2.5) in the discrete time flow. Therefore, an arbitrarily high order time integrator can be constructed. In fact, from the proof of Theorem 3.1, reformulating the original equation (1.1) into the system (2.2) is only for the purpose of the energy conservation.
3.2. A adjustment process
The key part for this SAV approach is to make sure that the term is positive during the computational time . When considering the mKdV () case, will automatically hold for any positive constant , since is even. This is also true for considering the nonlinear Schrödinger (NLS) equations or the Gross-Pitaevskii (GP) equations in [15] and [37], as the authors there only consider the cubic nonlinearity . However, when considering the KdV () case, a prior bound for is needed for all . Otherwise, may happen at some time (though is satisfied in the beginning), and result in the failure of the algorithm. Instead of choosing carefully in the beginning of the simulation, we introduce a adjustment process when the value is approaching , and thus, we only need to choose the constant such that in the beginning of the computation.
Suppose at , , where is a given positive number (e.g., ). Then, we choose another constant such that . For example, we can take , which leads to our new . Then, by using from (2.5), we have our new
(3.5) |
Finally, we substitute the and in (4.5) with and , and then, continue with the time evolution for .
Remark 3.1.
Note that holds only at the collocation points for each in . However, the constant may not necessarily equal to or , e.g., see Table 1, which means does not hold at in the discrete time flow. Therefore, the new can only be evaluated by (3.5) to keep the discrete energy (2.5) invariant. In the actual computation, due to the dispersive nature of the negative data (e.g., Example 3), the adjustment process has not been executed yet.
4. Spatial discretization
In this section, we describe the spatial discretization. We show that the Fourier pseudo-spectral method will keep the momentum and energy invariant under such spatial discretization. Together with the temporal discretization in the previous section, the proposed scheme will preserve the discrete momentum and energy exactly in the discrete time flow. Moreover, we give an upper bound for the error of the discrete mass, which is caused by the spatial discretization.
Without loss of generality, we truncate the whole space into a bounded domain for sufficiently large with periodic boundary conditions at the boundary. We use the Fourier pseudo-spectral method to discretize the space because of the high-order accuracy and the application of the fast Fourier transform (FFT) (see. e.g., [44] and [48, Chapter 3]).
Now, we briefly introduce the spatial discretization strategy. Let be the number of nodes and to be the spatial step size. Denote and to be the spatial discretization for . By applying the standard discrete Fourier expansion, one obtains
(4.1) |
By introducing vectors , , and the discrete Fourier transform matrices
one can write and in a matrix form as and . Also note that Using the properties of the Fourier transform, one can easily obtain
Thus, we have the differential matrices and :
(4.2) |
where , , and . We note that are real matrices. Moreover, the matrix is symmetric. The matrix is antisymmetric () and circulant, i.e., . Also note that both the row sum and the column sum of the matrix equal to , i.e., for each fixed or ,
(4.3) |
This has been studied in many literatures, see e.g., [19] and [48, Chapter 3]. We remark here that in the actual computation, and are not explicitly assembled, instead, the fast Fourier transform (FFT) is typically used in the computation.
For simplicity, if is a vector, we denote to be the pointwise power. Then, we define the discrete norms. Given two vectors , define
(4.4) |
Note that when , . It is easy to see that , since is real and symmetric, and , since is antisymmetric.
Denote to be the spatial semi-discretization for , i.e., . Then, the system of equations (2.2) is discretized into the following system
(4.5) |
Note that and are an vectors, and and are scalars.
Now, the spatial discrete momentum, mass and energy are defined as follows
(4.6) | |||
(4.7) | |||
(4.8) |
where is an vector. We next obtain the conservation of the discrete momentum and energy, together with the error on the discrete mass.
Theorem 4.1.
The Fourier pseudo-spectral discretization to the equation (4.5) leads to the following properties:
(4.9) |
Moreover,
(4.10) |
Proof.
For proving (4.10), we first note that from the decomposition in (4.2). Then, from the antisymmetry of . On the other hand, . Thus, . Also, note that in the continuous time. Then,
(4.13) | ||||
which completes the proof.
∎
Theorem 4.1 shows that in the continuous time flow, the spatial discretization will keep the momentum (2.3) and energy (2.5) invariant in their corresponding discrete sense. However, the time derivative on the discrete mass (4.10) is not necessarily . We next show that the proposed scheme conserves the discrete momentum and energy, and also give an error estimate of the discrete mass. From Theorem 4.1, we have the following little corollary.
Corollary 4.1.
Suppose is the solution to (4.5), then we have
(4.14) | ||||
(4.15) | ||||
(4.16) |
Proof.
Define the full discretization in space and time and . Then, denote and to be the numerical solution to (4.5). Define the discrete momentum, mass and energy as follows:
(4.17) | |||
(4.18) | |||
(4.19) |
The following theorem shows the conservation of the discrete momentum (4.17) and the discrete energy (4.19) for the proposed scheme. It also shows the upper bound of the error for the discrete mass (4.18).
Theorem 4.2.
Proof.
Theorem 4.2 shows that the discrete momentum and energy will be preserved exactly in the proposed scheme. In the meanwhile, the inequality (4.21) shows the upper bound of the error for the discrete mass, which grows linearly with respect to time. However, note that the term is the Fourier spectral approximation of the integral , i.e.,
Hence, instead of decreasing in the 1st order with respect to , the term is of spectral accuracy and very small (generally on the order of ), which is usually several order lower than the tolerance of the fixed point solver for the resulting nonlinear system. Moreover, similar to previous results observed in [36] for the discontinuous Galerkin scheme, despite of the failure of the mass conservation, the error of discrete mass remains at the same level of the conserved quantities (discrete momentum and energy) in the simulation. These conserved discrete momentum and energy are likely to imply the cancellations of the mass error. As a consequence, the error of the discrete mass becomes unnoticeable during our simulation even up to the time , see details in the next section.
5. Numerical results
5.1. A fast solver
In this section, we show numerical examples for the proposed scheme. Before illustrating the examples, we describe a fast solver for solving the resulting nonlinear system from the IRK methods. This fast solver is similar to the one in [15], which is based on the fixed point iteration. It is on the same order of the computational cost in solving the original equation, despite of the new auxiliary variable being introduced. To be specific, we consider the IRK4 () case. The other cases can be easily generalized. We introduce the auxiliary variables and rewrite the system as
(5.1) |
and
(5.2) |
Then, and can be updated by (3.3).
The system (5.1) and (5.2) can be solved by the fixed point iteration. At the th iteration, we have
(5.3) |
where is the identity matrix and .
Note that from the system (5.3), each block in the matrix
is commute to each other (i.e., ). Therefore, can be easily inverted:
where .
Next, note that the matrix can be further decomposed by FFT. Therefore, the system (5.3) will be solved efficiently with the leading order of computational cost . After obtain , we can use (5.1) to obtain the values of other variables and . The total computational cost remains on the same order.
We set to start the iteration, and the iteration terminates when
where and is set to be for Example 1, or for Example 2 and 3 in our simulations.
In general, for the -stage Runge-Kutta method, we can always find the explicit for the system similar to (5.3). The computational cost is consequently on the order of . The -stage Gaussian-Legendre collocation methods will obtain the maximum order of on temporal accuracy.
5.2. Brief description of existing time integrators
Since we are going to compare our proposed methods to other time integrators, we briefly describe the other time integrators we used in this paper. For simplicity, we only discuss the temporal discretization in this subsection. The space-time full discretization can be easily adapted by applying the Fourier pseudo-spectral spatial discretization as described in the previous section.
5.2.1. Modified Crank-Nicholson method
We first review the widely used 2nd order conservative modified Crank-Nicolson (MCN) method as follows:
(5.4) |
The nonlinear system (5.4) can be solved by the fixed point iteration in the same spirit from (5.3). We omit the details for the purpose of conciseness.
Proposition 5.1.
The modified Crank-Nicolson scheme (5.4) preserves the following two invariants:
Consequently, if the the scheme is discretized by the Fourier pseudo-spectral method (section 4), then the discrete momentum and energy will be preserved ( and ).
Proof.
By taking the inner product with and the term
we obtain that three invariants and are preserved in the temporal semi-discretized sense (consider the spatial variable is continuous), respectively. Furthermore, by using the argument in the previous section, we can obtain and . ∎
5.2.2. Semi-implicit Scalar auxiliary variable method
We next consider the original semi-implicit SAV approach from [46]. The main advantage is that solving the resulting nonlinear algebraic system can be avoided. Other than the conventional Crank-Nicholson-Adam-Bashforth (CNAB) approach, we use the Leap-Frog scheme here, since it is time reversible. To be specific, we discretize the equation (2.2) as follows
(5.5) |
where , , and .
In order to solve this equation system, we rewrite the first equation in (5.5) as
(5.6) |
Assuming , putting it in (5.6) yields the linear decoupled system
(5.7) |
Hence, and can be obtained by inverting the operator , which will be easy if the Fourier spectral spatial discreitzation is considered.
Then, substituting and putting it into the second equation of (5.5), using the relation and , we obtain the formula for :
(5.8) |
The scheme (5.5) is a semi-implicit multistep method. The first step can be obtained from the MCN method (5.4) above. Moreover, we can have the modified energy conserved and the error of the mass is approximated by the third order in time () in the following proposition.
Proposition 5.2.
The scheme (5.5) preserves the momentum and the modified energy ; and the local error of the mass is at the third order in time, i.e.,
(5.9) |
Proof.
Taking the inner product of the first equation (5.5) with will yield the conservation of the momentum , which implies .
One can see that unlike the SAV-IRK methods in Theorem 3.1, the semi-implicit SAV-Leap Frog (SAV-LF) method will not preserve the mass. By following the same argument, similar results can be obtained by for the conventional SAV-CNAB method from [46]. Later in our numerical examples, we will show that the failure of mass conservation will lead to the failure of simulating the breathers.
5.2.3. Strang splitting method
Another widely used method for the gKdV equations is the operator splitting method, e.g., see [25] and [24]. We briefly describe the 2nd order Strang splitting (SS) method here. We consider the ODE (or PDE) of the form
(5.10) |
where is the linear part ( for gKdV), and is the nonlinear term ( for gKdV). The spirit of operator splitting method is to split the gKdV equation (1.1) into two equations. One is the linear dispersive equation
(5.11) |
We denote the time evolution from to for this linear dispersive equation as .
The other is the conservation law equation
(5.12) |
We denote the time evolution as .
We use the strategy in [25]. The time evolution is approximated by the standard Crank-Nicolson scheme:
and the time evolution for is approximated by the IRK2 (mid-point) method:
Again, in the same spirit of (5.4), the fixed point iteration can be used to solve the resulting nonlinear system after the spatial discretization. Then, the solution can be updated by
5.2.4. Exponential Time Differencing method
The other widely used efficient numerical method for the stiff ODE’s are the Exponential Time Differencing methods. Recall the Duhammel’s form of the equation (5.10):
(5.13) |
The linear stiff part could be solved exactly as from proper spatial discretizations (e.g., Fourier pseudo-spectral method), and the numerical quadrature can be constructed to approximate the nonlinear part in (5.13). One possible fourth order scheme is proposed by Cox and Matthews (known as modified ETDRK4 or mETDRK4), which gives the following formulas:
(5.14) |
where is the identity operator. The potential singularity of the term at the th Fourier node can be resolved by using the contour integrals from [29].
5.3. Numerical examples
In this subsection, we list our numerical examples by using the proposed schemes. We denote the -stage implicit Gaussian-Legendre Runge-Kutta methods in Table 3.1 as SAV-IRK2, SAV-IRK4 and SAV-IRK6, for , respectively.
We first compare the proposed SAV-IRK4 method with the existing (MCN, SAV-LF, SS and mETDRK4) methods by simulating the breathers, which is non-disperse oscillatory pulse, for the modified KdV (mKdV) equations. We find that only the conservative methods (SAV-IRK4 and MCN) are capable of simulating these type of solutions for long time, and the SAV-IRK4 method is the most efficient one.
Then, we switch to the widely considered soliton interaction solutions and scattering solutions in the next two examples. In these cases, while the invariant quantities , and could be preserved well as shown in Theorem 3.1, the 4th order mETDRK4 method is still the most efficient one, since it is an explicit method and no iteration is needed from solving the nonlinear system.
We track the the error , error of discrete momentum , discrete mass and discrete (modified) energy at as follows:
Example
We first consider the breathers for the modified KdV equation (), which describe the non-dispersing oscillatory pulses. The two parameter family of exact solutions can be written as
(5.15) |
with , and . The phase velocity of the pulse is given by , and the group velocity by traveling to the left. The authors in [1] showed that breathers have the orbital stability. In [20], the numerical experiments show that the numerical instability may easily occur as time evolves and the numerical error accumulates, which eventually leads to the failure of simulation. Thus, extra care is needed in simulating this type of solutions, especially for the long time simulation.
In our numerical experiment, we take , on the periodic domain with nodes. We take and . The time step is taking to be as large as possible such that the breathers will still behave good at the stopping time , but will collapse if we take twice of it. This can be an indication of the stability for different numerical schemes. Surprisingly, the SAV-LF scheme does not work for simulating the breathers. In our numerical experiment, when we take , the solution from the SAV-LF scheme collapse around time , and the solution collapse around if we take . Hence, the increasing mass error (see Proposition 5.2) from this scheme will lead to the instability to the breathers.
The top left subplot in Figure 1 illustrates the solution profiles of the breather at different time on the periodic domain. The rest of the subplots in Figure 1 show the conservation of the discrete momentum, mass and energy (modified energy for SAV-IRK4). These results justify the conservation properties of the schemes proposed in Theorem 3.1 and Proportion 5.1. Moreover, the SS and mETDRK4 schemes also preserve the discrete momentum from our simulation.




From [1], we have the relation , and , where being the soliton solution from the equation
The consistency can be checked by tracking the numerical quantities of and with respect to time. That is, tracking
at different time and comparing with the inital given and . Note that the here for SAV-IRK scheme is the energy from the form (1.4), not the modified energy (2.5).


In Figure 2, there is no visual difference for the values of between SS and mETDRK4 methods, and so are for the conservative MCN and SAV-IRK4 methods, see the left subplot. When tracking , we observe that the SS method has the most deviation from the accurate value of . In the meanwhile, from the mETDRK4 method shows a good agreement to , but the deviation increases linearly (see the purple circle line in the right subplot). However, the conservative methods, MCN and SAV-IRK4, keep close to the accurate value all the time.
Table 2 gives more details on our simulation. The simulation is processed via Matlab 2019b on the workstation with 18 cores Intel processor i9-10980XE. One can see that the SAV-IRK4 scheme is the most efficient one, since we can take the largest time step size , and the quantities and still remain small () at the end of simulation. While the mETDRK4 scheme (with small ) takes less CPU time than the SAV-IRK4 scheme, as shown in Figure 2, the , which is relatively large and potential collapse may happen if extending the simulation time. Indeed, when we extend our simulation time to with the same time step size in Table 2, the breather collapse from the mETDRK4 scheme (red dash), but still keeps its shape from the SAV-IRK4 method (blue solid) (see the left subplot in Figure 3). In the right subplot of Figure 3, the oscillation of and are within the range of , which suggests the possible cancellation of the numerical errors from the SAV-IRK4 scheme, other than the accumulation of the numerical errors from the mETDRK4 scheme which leads to the failure of the simulation.
Method | CPU time | |||
---|---|---|---|---|
MCN | s | |||
SAV-LF | NA | NA | NA | NA |
SS | s | |||
SAV-IRK4 | s | |||
mETDRK4 | s |


Our remaining examples consider the comparison between the IRK methods directly from (1.1) and the SAV-IRK methods, showing that the conservative SAV-IRK approach will preserve the discrete momentum and energy as desired, regardless for the soliton type of solutions or the fast oscillating disperse soltuions. The results from the mETDRK4 method is also included as a comparison.
Example
. We consider the interaction of two soliton solutions to the KdV () equation. The exact solution satisfies
(5.16) |
where we take the parameters
This initial condition represents two solitons, a larger one is on the left of the smaller one (see the left subplot in Figure 4). Both of the solitons travel to the right. The larger soliton travels with faster speed, and thus, will catch up with the smaller one. Then, they are supposed to merge and split again. We take with in space. The time step is taken to be and the stopping time . Figure 4 shows the solution profile obtained by the SAV-IRK4 method. The left subplot is the initial condition , the right subplot is the time evolution. One can see that the solitons travel to the right with different speeds, intersect, and then split again with their initial speeds. This is similar to the result in [52].


Figure 5 tracks the results obtained by different time integrators. The top left subplot in Figure 5 shows with respect to time, where is the exact solution. One can see that the error by using the mETDRK4 method is between the error by IRK2 type methods (IRK2 and SAV-IRK4) and IRK4 type methods (IRK4 and SAV-IRK4). This is reasonable, since IRK2 type methods are of the second order accuracy in time, whereas the rest three are of the 4th order accuracy in time. The IRK4 type methods are more accurate in simulating the soliton interactions at the same time step level. However, IRK4 type methods are implicit methods which require iterations at each time step. For example, given the same time step size, the mETDRK4 method is usually to times faster than the SAV-IRK4 scheme. Hence, for this soliton type of solutions, choosing smaller time step for the mETDRK4 method will generate more accurate results than the IRK4 methods in shorter actual computational time. The two IRK2 methods (IRK2 and SAV-IRK2), and the two IRK4 methods (IRK4 and SAV-IRK4) are indistinguishable from each other in the subplot. In fact, their difference are on the order of for IRK2 methods, and for IRK4 methods.
The rest of the subplots, from the top right to the bottom right in Figure 5, track the errors for the discrete momentum (), discrete mass () and discrete energy ( from (1.4)) from IRK and mETDRK4 methods or the modified discrete energy ( from (2.5)) from SAV-IRK methods. The conservation of the and modified energy show the good agreement to the Theorem 3.1. We also observe that in this case, error of discrete mass in Theorem 4.2 is very small, even smaller than our fixed point solver tolerance (), where the theoretical conservation could not be provided in Theorem 3.1.




We also list the error for the SAV-IRK2 and SAV-IRK4 methods from different time steps in Table 3. The rate stands for the ratio of the error in the previous row divide the error in the current row, and etc. One can see that the error for SAV-IRK2 method decreases at the second order speed, and the error for SAV-IRK4 method decreases at the 4th order speed, except for , where the temporal error is too close to the error of solving the nonlinear system, and thus, affects the final results. Therefore, the SAV-IRK2 and SAV-IRK4 are still of the 2nd order and the 4th order temporal accuracy, respectively. Moreover, by taking for the mETDRK4 scheme, we obtain the more accurate result () in shorter computational time (s).
SAV-IRK2 | SAV-IRK4 | |||||
error | rate | CPU time | error | rate | CPU time | |
NA | s | NA | s | |||
s | s | |||||
s | s | |||||
s | s |
Example
. We next consider the scattering solution for the KdV equation with the initial condition . This example is a soliton type data with negative sign. The KdV evolution will lead to the dispersion, and possible negative value for . Here, the adjustment process in (3.5) will make stay positive, and thus, will keep the algorithm applicable for all times. The exact solution is not explicitly given, since it is not exactly the soliton due to the negative sign and coefficients chosen. We compute the reference solution by both mETDRK4 and SAV-IRK4 methods separately with an ultimately small time step (). The results from these two different approaches differ at the level of . Therefore, we can take the reference solution as the “exact” solution. In the simulation, we take , with and , the same as in the previous example.
The left subplot in Figure 6 shows the solution profile evolving in time. One can see that it disperses to the left. The right subplot shows the solution profile at the stopping time . The fast oscillations on the left can be observed. Figure 7 tracks the data , , and that we are interested in. We conclude that for this kind of scattering data, the mETDRK4 method is still the most efficient since it produces the smallest error in the shortest computational time.
The top right subplot in Figure 7 shows that the momentum is conserved for all these five approaches. The bottom subplots track the errors of mass and energy. The results are as expected and similar to the Example 2.






Table 4 shows the convergence rates for mETDRK4, SAV-IRK2 and SAV-IRK4. From Table 4, we find that the convergence rates is lower than the expected rate for all these approaches. However, as the time step decreases, the rates are approaching their theoretical values ( for the 2nd order methods and for the 4th order methods). The sub-convergence rate is most likely caused by the fast oscillations of the solution as well as insufficiently small .
mETDRK4 | SAV-IRK2 | SAV-IRK4 | ||||
error | rate | error | rate | error | rate | |
NA | NA | NA | ||||
6. Conclusion
We propose a numerical scheme for the generalized KdV equations, which can preserve all the three invariant quantities in the discrete time flow with an arbitrarily high order of temporal accuracy from the the combination of the symplectic Runge-Kutta method and the scalar auxiliary variable reformulation. In fact, instead of the power nonlinearity , the general flux can also be adapted to this algorithm, i.e., one can create the auxiliary variable such that . Then, the modified energy will be conserved in the discrete SRK time flow.
In our numerical experiments, besides the fulfillment of conservation laws for our proposed numerical methods, we also show that among the popular existing time integrators, the mETDRK4 method is likely to be the most efficient one for the soliton type and the scattering type of solutions. However, for the long time simulation on the oscillatory non-dispersing solutions, such as the breathers for the mKdV equations, the conservative methods are recommended. Our numerical simulations demonstrate the high accuracy and efficiency of the proposed schemes in these cases.
References
- [1] M. A. Alejo and C. Muñoz. Nonlinear stability of mkdv breathers. Communications in Mathematical Physics, 324(1):233–262, 2013.
- [2] D. N. Arnold and R. Winther. A superconvergent finite element method for the Korteweg-de-Vries equation. Mathematics of Computation, 38(157):23–36, 1982.
- [3] T. B. Benjamin, J. L. Bona, and J. J. Mahony. Model equations for long waves in nonlinear dispersive systems. Philosophical Transactions of the Royal Society of London. Series A, Mathematical and Physical Sciences, 272(1220):47–78, 1972.
- [4] J. Bona, V. Dougalis, O. Karakashian, W. McKinney, and F. Smith. Conservative, high-order numerical schemes for the generalized Korteweg-de-Vries equation. Philosophical Transactions of the Royal Society of London. Series A: Physical and Engineering Sciences, 351(1695):107–164, 1995.
- [5] J. Bona, W. Pritchard, and L. Scott. An evaluation of a model equation for water waves. Philosophical Transactions of the Royal Society of London. Series A, Mathematical and Physical Sciences, 302(1471):457–510, 1981.
- [6] J. L. Bona. On solitary waves and their role in the evolution of long waves. Applications of nonlinear analysis in the physical sciences, pages 183–205, 1981.
- [7] J. L. Bona, T. Colin, and D. Lannes. Long wave approximations for water waves. Archive for rational mechanics and analysis, 178(3):373–410, 2005.
- [8] J. L. Bona, P. E. Souganidis, and W. A. Strauss. Stability and instability of solitary waves of Korteweg-de Vries type. Proceedings of the Royal Society of London. A. Mathematical and Physical Sciences, 411(1841):395–412, 1987.
- [9] J. C. Butcher. Implicit Runge-Kutta processes. Mathematics of Computation, 18(85):50–64, 1964.
- [10] J. Cai and J. Shen. Two classes of linearly implicit local energy-preserving approach for general multi-symplectic Hamiltonian PDEs. Journal of Computational Physics, 401:108975, 2020.
- [11] Y. Cheng and C.-W. Shu. A discontinuous Galerkin finite element method for time dependent partial differential equations with higher order derivatives. Mathematics of Computation, 77(262):699–730, 2008.
- [12] G. Cooper. Stability of Runge-Kutta methods for trajectory problems. IMA journal of numerical analysis, 7(1):1–13, 1987.
- [13] S. M. Cox and P. C. Matthews. Exponential time differencing for stiff systems. J. Comput. Phys., 176(2):430–455, 2002.
- [14] W. Craig. An existence theory for water waves and the Boussinesq and Korteweg-de Vries scaling limits. Communications in Partial Differential Equations, 10(8):787–1003, 1985.
- [15] J. Cui, Y. Wang, and C. Jiang. Arbitrarily high-order structure-preserving schemes for the Gross–Pitaevskii equation with angular momentum rotation. Computer Physics Communications, 261:107767, 2021.
- [16] Y. Cui and D.-K. Mao. Numerical method satisfying the first two conservation laws for the Korteweg-de Vries equation. Journal of Computational Physics, 227(1):376–399, 2007.
- [17] B. Fornberg and G. B. Whitham. A numerical and theoretical study of certain nonlinear wave phenomena. Philosophical Transactions of the Royal Society of London. Series A, Mathematical and Physical Sciences, 289(1361):373–404, 1978.
- [18] K. Goda. Numerical studies on recurrence of the Korteweg-de-Vries equation. Journal of the Physical Society of Japan, 42(3):1040–1046, 1977.
- [19] Y. Gong, J. Cai, and Y. Wang. Multi-symplectic fourier pseudospectral method for the Kawahara equation. Communications in Computational Physics, 16(1):35–55, 2014.
- [20] C. Gorria, M. A. Alejo, and L. Vega. Discrete conservation laws and the convergence of long time simulations of the mkdv equation. Journal of Computational Physics, 235:274–285, 2013.
- [21] T. Grava and C. Klein. A numerical study of the small dispersion limit of the Korteweg-de Vries equation and asymptotic solutions. Physica D: Nonlinear Phenomena, 241(23-24):2246–2264, 2012.
- [22] A. Guillou and J. L. Soulé. La résolution numérique des problèmes différentiels aux conditions initiales par des méthodes de collocation. ESAIM: Mathematical Modelling and Numerical Analysis - Modélisation Mathématique et Analyse Numérique, 3(R3):17–44, 1969.
- [23] B.-Y. Guo and J. Shen. On spectral approximations using modified Legendre rational functions: application to the Korteweg-de-Vries equation on the half line. Indiana University Mathematics Journal, pages 181–204, 2001.
- [24] H. Holden, K. Karlsen, N. Risebro, and T. Tao. Operator splitting for the KdV equation. Mathematics of Computation, 80(274):821–846, 2011.
- [25] H. Holden, K. H. Karlsen, and N. H. Risebro. Operator splitting methods for generalized Korteweg-de-Vries equation. Journal of Computational Physics, 153(1):203–222, 1999.
- [26] W. Huang and D. M. Sloan. The pseudospectral method for third-order differential equations. SIAM Journal on Numerical Analysis, 29(6):1626–1647, 1992.
- [27] A. Jeffrey and T. Kakutani. Weak nonlinear dispersive waves: A discussion centered around the Korteweg–de Vries equation. SIAM Review, 14(4):582–643, 1972.
- [28] O. Karakashian and W. McKinney. On optimal high-order in time approximations for the Korteweg-de-Vries equation. Mathematics of Computation, pages 473–496, 1990.
- [29] A.-K. Kassam and L. N. Trefethen. Fourth-order time-stepping for stiff PDEs. SIAM J. Sci. Comput., 26(4):1214–1233, 2005.
- [30] T. Kato. On the cauchy problem for the (generalized) Korteweg-de Vries equation. Studies in Appl. Math. Adv. in Math. Suppl. Stud., 8:93–128, 1983.
- [31] C. E. Kenig, G. Ponce, and L. Vega. Well-posedness and scattering results for the generalized Korteweg-de Vries equation via the contraction principle. Communications on Pure and Applied Mathematics, 46(4):527–620, 1993.
- [32] C. Klein and R. Peter. Numerical study of blow-up and dispersive shocks in solutions to generalized Korteweg-de Vries equations. Phys. D, 304/305:52–78, 2015.
- [33] P. D. Lax. Integrals of nonlinear equations of evolution and solitary waves. Communications on Pure and Applied Mathematics, 21(5):467–490, 1968.
- [34] J. Li and M. R. Visbal. High-order compact schemes for nonlinear dispersive waves. Journal of Scientific Computing, 26(1):1–23, 2006.
- [35] H. Liu and J. Yan. A local discontinuous Galerkin method for the Korteweg-de Vries equation with boundary effect. Journal of Computational Physics, 215(1):197–218, 2006.
- [36] H. Liu and N. Yi. A Hamiltonian preserving discontinuous Galerkin method for the generalized Korteweg–de Vries equation. Journal of Computational Physics, 321:776–796, 2016.
- [37] Z. Liu, H. Zhang, X. Qian, and S. Song. Mass and energy conservative high order diagonally implicit Runge-Kutta schemes for nonlinear Schrödinger equation in one and two dimensions. arXiv preprint arXiv:1910.13700, 2019.
- [38] H. Ma and W. Sun. A Legendre–Petrov–Galerkin and Chebyshev collocation method for third-order differential equations. SIAM Journal on Numerical Analysis, 38(5):1425–1438, 2000.
- [39] Y. Martel and F. Merle. Instability of solitons for the critical generalized Korteweg—de Vries equation. Geometric & Functional Analysis GAFA, 11(1):74–123, 2001.
- [40] R. M. Miura, C. S. Gardner, and M. D. Kruskal. Korteweg‐de Vries equation and generalizations. II. Existence of conservation laws and constants of motion. Journal of Mathematical Physics, 9(8):1204–1209, 1968.
- [41] J. Sanz-Serna. Runge-Kutta schemes for Hamiltonian systems. BIT Numerical Mathematics, 28(4):877–883, 1988.
- [42] J. Sanz-Serna and L. Abia. Order conditions for canonical Runge-Kutta schemes. SIAM Journal on Numerical Analysis, 28(4):1081–1096, 1991.
- [43] J. Shen. A new dual-Petrov-Galerkin method for third and higher odd-order differential equations: application to the KdV equation. SIAM Journal on Numerical Analysis, 41(5):1595–1619, 2003.
- [44] J. Shen, T. Tang, and L.-L. Wang. Spectral methods, volume 41 of Springer Series in Computational Mathematics. Springer, Heidelberg, 2011. Algorithms, analysis and applications.
- [45] J. Shen and J. Xu. Convergence and error analysis for the scalar auxiliary variable (SAV) schemes to gradient flows. SIAM Journal on Numerical Analysis, 56(5):2895–2912, 2018.
- [46] J. Shen, J. Xu, and J. Yang. The scalar auxiliary variable (SAV) approach for gradient flows. Journal of Computational Physics, 353:407–416, 2018.
- [47] J. Shen, J. Xu, and J. Yang. A new class of efficient and robust energy stable schemes for gradient flows. SIAM Review, 61(3):474–506, 2019.
- [48] L. N. Trefethen. Spectral methods in MATLAB, volume 10 of Software, Environments, and Tools. Society for Industrial and Applied Mathematics (SIAM), Philadelphia, PA, 2000.
- [49] Y. Xu and C.-W. Shu. Error estimates of the semi-discrete local discontinuous Galerkin method for nonlinear convection–diffusion and KdV equations. Computer methods in applied mechanics and engineering, 196(37-40):3805–3822, 2007.
- [50] X. Yang. Linear, first and second-order, unconditionally energy stable numerical schemes for the phase field model of homopolymer blends. Journal of Computational Physics, 327:294–316, 2016.
- [51] X. Yang, J. Zhao, and Q. Wang. Numerical approximations for the molecular beam epitaxial growth model based on the invariant energy quadratization method. Journal of Computational Physics, 333:104–127, 2017.
- [52] N. Yi, Y. Huang, and H. Liu. A direct discontinuous Galerkin method for the generalized Korteweg-de Vries equation: energy conservation and boundary effect. Journal of Computational Physics, 242:351–366, 2013.