We consider the nonlinear Schrödinger equation with variable coefficients (1),
where is a scalar field function with two independent variables labeled by x and t and and are integrable real functions in t. We now use the triangle discretization and the square discretization respectively to obtain the nonstandard finite difference variational integrators.
3.1 Triangle discretization for the nonstandard finite difference variational integrator
We consider the same regular quadrangular mesh in the base space defined in Section 2.1. The triangle is the three-ordered triple at . Let be the set of all such triangles. The discrete jet bundle [23, 30] is defined as follows:
which is equal to .
Now, we use the nonstandard finite difference to define the discrete Lagrangian on , which is the discrete version of the Lagrangian density [30]. Here, for the nonlinear Schrödinger equation (1) with the Lagrangian
the discrete Lagrangian is defined as
(5)
where , ,
(6)
We have obeyed the rules of constructing nonstandard finite difference schemes in Mickens’ papers [24–28] in the following ways. In the triangle with three points :
-
1.
The discrete first-derivative is represented by
where denominator functions , [22, 23] satisfy the conditions
-
2.
Nonlocal representation on the discrete computational lattice is given by
and
By discrete Hamilton’s principle [23, 30], we have the discrete Euler-Lagrangian equation
(7)
where and are defined similarly to (5) by
and
Substituting , , and into above equation (7), we arrive at a nonstandard finite difference variational integrator. We rearrange it as follows:
This is a nonstandard finite difference variational integrator for the nonlinear Schrödinger equation with variable coefficients (1).
As we have mentioned in Section 2 and Lemma 2.1, the advantages of deriving multi-symplectic numerical schemes from the discrete variational principle are that they are naturally multi-symplectic, and the discrete multi-symplectic structures are also generated in the variational principle. Now, it is meaningful to show the multi-symplectic structure of this discrete variational integrator (8) which is based on the nonstandard finite difference method.
Since we employ the triangle discretization here, we focus on three adjacent triangles around and denote their area by U. Following the idea used in [30], the discrete boundary Lagrangian is given by
(9)
where
Taking exterior derivative twice on both sides and knowing that , we have the discrete multi-symplectic form formula of the following form [30]:
(10)
where (for ) and the discrete Poincaré-Cartan forms , , and are defined by
Thus, for the nonlinear Schödinger equation with variable coefficients (1), the multi-symplectic form formula of the scheme (8), based on the nonstandard finite difference methods, can be obtained by
where , , and . Now, we arrive at the first conclusion of this paper.
Theorem 3.1 The nonstandard finite difference variational integrator (8) for the nonlinear Schrödinger equation (1) is multi-symplectic, and its discrete multi-symplectic structure is (11).
We now analyze the truncation error of the integrator (8). We choose and here. By the Taylor series expansion, we have
Combining the above three equations, we can observe that the nonstandard finite difference variational integrator (8) has the truncation error .
3.2 Square discretization for the nonstandard finite difference variational integrator
In this case, we denote a square at with ordered quaternion by , and define to be the set of all such squares. Then the discrete jet bundle [23, 30] is defined as follows:
which is equal to .
According to the nonstandard finite difference method, the discrete Lagrangian on now is defined as follows:
In this case, we have used the following rules of nonstandard finite difference methods. In the square :
-
1.
The discrete first-derivative is represented by
where
-
2.
Nonlocal representations for u and are approximated by
Similarly, we give the definitions of on the other three squares adjoint to :
and
From the discrete variational principle, taking the derivative of the action functional with respect to , we have the discrete Euler-Lagrangian equation in this square discretization [22, 23, 30], which is defined by
After substituting the four discrete Lagrangian , , , and into above equation (13), we have
This scheme is multi-symplectic and symmetric with respect to and . Following the steps given in the above examples, we have the multi-symplectic form formula
Now, we summarize our conclusion as follows.
Theorem 3.2 The nonstandard finite difference variational integrator (14) for the nonlinear Schrödinger equation with variable coefficients (1) is multi-symplectic, and its discrete multi-symplectic form formula is shown by (15).
Now, we discuss the truncation error for the nonstandard finite difference variational integrator (14). Here, we choose and . By the Taylor series expansion, we have
From the above equations, we can readily observe that the nonstandard finite difference variational integrator (14) has a truncation error . To verify that the integrator has anticipated convergence accuracy, we investigate the numerical convergence order in our numerical experiments. See Section 4.