On a finite-difference scheme defining a birational non-quadratic map between time layers

Cover Page

Cite item

Full Text

Abstract

The article considers reversible difference schemes for dynamical systems based on the system doubling method proposed by V.N. Abrashin and S.N. Sytova. The method duplicates the original variables, leading to an extended system whose finite-difference approximation defines a birational map between time layers. The preservation of algebraic integrals in such schemes is investigated. It is proved that if the original system admits a homogeneous quadratic first integral, the corresponding bilinear form is exactly preserved by the discrete scheme. This property is demonstrated on the Jacobi oscillator, where the geometric mean of the duplicated variables ensures exact conservation of the quadratic integral. A more detailed analysis is performed on the non-trivial Vanhaecke system, an integrable Hamiltonian system with two degrees of freedom and higher-degree polynomial integrals. Numerical experiments carried out in the computer algebra system Sage using the package fdm.sage confirm that the two copies oscillate synchronously around the exact values of the first integrals, and averaging reduces the oscillation amplitude. For separable Hamiltonian systems, the scheme is shown to be symplectic. The results obtained allow recommending the doubling method for constructing stable and structure-preserving numerical integrators for a wide class of dynamical systems with polynomial right-hand sides, including high-dimensional systems.

Full Text

1.     Introduction

Dynamical systems with quadratic right–hand sides can be approximated by finite-difference schemes. Timestep of these schemes is a birational map [1–5]. Appelroth’s quadratization allows any dynamical system with a polynomial right-hand side to be transformed into a system with a quadratic right-hand side to which the Kahan scheme can be applied [6]. Consequently, a very broad class of continuous dynamical systems admits approximation by 𝑡-symmetric finite-difference schemes that define a birational map between time layers. Following [5], we refer to such schemes as reversible. This property is of fundamental physical relevance. The time evolution of a dynamical system should, in general, be reversible: every initial state corresponds to exactly one final state, and every final state comes from exactly one initial state. Surprisingly, although the discrete-time methods often preserve one-to-one correspondence, it is not always true for the original continuous systems over the different time intervals [5].

It is worth mentioning that in the papers above the time step was implemented using a quadratic Cremona transformation. However, in the 1980s, V. N. Abrashin proposed a multicomponent alternating-direction method, which was successfully applied by S. N. Sytova. This method was used for modeling the nonlinear dynamics of electromagnetic radiation generated by charged particle beams in multidimensional spatially periodic structures [7, n. 4]. Like Appelroth’s quadratization, this approach also introduces extra variables. However, instead of using a complicated substitution, it does so in a very simple and clear way: by duplicating every original variable. Because of this straightforward construction, we call it the system doubling method. A closer look shows that this method can be used almost for any dynamical system to build a finite-difference scheme where each time step is described by a Cremona transformation. In this paper, we give a general description of the doubling method and explain its key algebraic properties.

2.     Methods

2.1.      System doubling method

Let 𝔵 = (𝑥1,…,𝑥𝑛) and there is a dynamical system

𝑑𝔵

                                                                            = 𝔣(𝔵).                                                                                                (1)

𝑑𝑡

For simplicity, assume that the right-hand sides in (1) are polynomials.

Introduce a new set of variables 𝔵, which duplicate the original set of variables 𝔵, and form the doubled system:

                                                                            𝑑𝔵            

                                                                          ⎧ 𝑑𝑡= 𝔣(𝔵 ),                                                                                              (2)

⎨𝑑𝔵

⎩ 𝑑𝑡 = 𝔣(𝔵).

We formulate the equivalence of these systems as a theorem.

Theorem 9. Every solution 𝔵 = 𝔥(𝑡) of system (1) extends to a solution 𝔵 = 𝔵= 𝔥(𝑡) of the doubled system (2). Conversely, any solution of system (2) that satisfies the initial condition 𝔵 = 𝔵at some time 𝑡0 satisfies the equation 𝔵(𝑡) = 𝔵(𝑡) for all 𝑡, and 𝔵 = 𝔵(𝑡) is a solution of the original system (1).

Proof. (i) Suppose 𝔵 = 𝔥(𝑡) is a solution of system (1). Then

𝑑𝔥

= 𝔣(𝔥).

𝑑𝑡

Substituting 𝔵(𝑡) = 𝔵(𝑡) = 𝔥(𝑡) into system (2), both equations are satisfied identically, since

                                             𝑑𝔵 = 𝑑𝔥 = 𝔣(𝔥) = 𝔣(𝔵′),                     𝑑𝔵′ = 𝑑𝔥 = 𝔣(𝔥) = 𝔣(𝔵).

                                          𝑑𝑡        𝑑𝑡                                            𝑑𝑡         𝑑𝑡

Thus, (𝔥(𝑡),𝔥(𝑡)) is a solution of the doubled system (2).

(ii) Conversely, let (𝔵(𝑡),𝔵(𝑡)) be a solution of (2) satisfying the initial condition 𝔵(0) = 𝔵(0). Define the differences

                                                        𝑢𝑖(𝑡) = 𝑥𝑖(𝑡) − 𝑥𝑖(𝑡),                𝑖 = 1,…,𝑛,

and collect them into the vector 𝔲(𝑡) = 𝔵(𝑡) − 𝔵(𝑡). Differentiating gives

                                                        𝑑𝑢𝑖        𝑑𝑥𝑖′       𝑑𝑥𝑖                                 ′).

                                                               =            −              = 𝑓𝑖(𝔵) − 𝑓𝑖(𝔵

                                                         𝑑𝑡          𝑑𝑡         𝑑𝑡

Since each component 𝑓𝑖 is a polynomial (by assumption), the difference 𝑓𝑖(𝔵) − 𝑓𝑖(𝔵) can be expressed as a linear combination of the differences 𝑥𝑗− 𝑥𝑗 = 𝑢𝑗 with polynomial coefficients. More precisely, there exist polynomials 𝑔𝑖𝑗(𝔵,𝔵) such that

𝑛

𝑓𝑖(𝔵) − 𝑓𝑖.

Hence, 𝔲(𝑡) satisfies the linear homogeneous system

                                                 𝑑𝑢𝑖               𝑛                                    ′(𝑡))𝑢𝑗,               𝑖 = 1,…,𝑛.

= ∑ 𝑔𝑖𝑗(𝔵(𝑡),𝔵

𝑑𝑡

𝑗=1

This system has continuous (in fact, smooth) coefficients along the trajectory (𝔵(𝑡),𝔵(𝑡)), and the initial condition 𝔲(0) = 0 holds by hypothesis. By uniqueness of solutions to linear ODEs, it follows that 𝔲(𝑡) ≡ 0 for all 𝑡 in the interval of existence. Therefore,

                                                                   𝔵(𝑡) = 𝔵(𝑡)       for all 𝑡.

Substituting this identity into the first equation of (2) results in

𝑑𝔵

= 𝔣(𝔵),

𝑑𝑡

so 𝔵(𝑡) is indeed a solution of the original system (1).                                                                                                                  

Remark 1. The polynomials 𝑢𝑖 arising in the proof are a natural generalization of Darboux polynomials [8–10].

System (2) is more complex than system (1), yet it admits a straightforward finite-difference discretization:

                                                                        𝔵 − 𝔵 = 𝔣(𝔵̂   )𝛥𝑡,

                                                                        {𝔵̂ − 𝔵= 𝔣(𝔵)𝛥𝑡.̂                                                                                           (3)

This scheme defines a birational map between the points (𝔵,𝔵) and (𝔵,̂ 𝔵̂ ).

In contrast to Kahan’s method, the scheme (3) is not 𝑡-symmetric [5]. However, it possesses a generalized analogue of 𝑡-symmetry: the equations (3) are invariant under the transformation

                                                        𝛥𝑡 ↦ −𝛥𝑡,            𝔵 ↦ 𝔵̂ ,             𝔵↦ 𝔵.̂

We shall refer to this property as generalized 𝑡-symmetry.

We have implemented the doubling-based scheme (3) in our fdm package for SAGE. All computations presented below were made using this package.

2.2.      Quadratic integrals

Theorem 10. Suppose that system (1) admits a homogeneous quadratic first integral

𝑣 = ∑𝑣𝑖𝑗 𝑥𝑖𝑥𝑗.

𝑖,𝑗

Then the doubled system (2) possesses the first integral

𝑤 = ∑𝑣𝑖𝑗 𝑥𝑖𝑥𝑗′,

𝑖,𝑗

which is exactly preserved by the discrete scheme (3), i.e.,

𝑤(𝔵,̂ 𝔵̂ ) = 𝑤(𝔵,𝔵).

Proof. We first observe that

𝑣 = 𝔵T𝑉𝔵,

where 𝑉 is the symmetric matrix representing the quadratic form 𝑣. By assumption,

𝑑𝑣

= 0,

𝑑𝑡

along solutions of (1), i.e.,

𝔣(𝔵)T𝑉𝔵 + 𝔵T𝑉𝔣(𝔵) = 0.

Since 𝑉 is symmetric, this simplifies to

                                                                           𝔵T𝑉𝔣(𝔵) = 0.                                                                                               (4)

This identity holds for all 𝔵 ∈ ℝ𝑛, as it is satisfied along every solution of (1).

The quantity 𝑤 is the bilinear form associated with the quadratic form 𝑣, so we can write

𝑤 = 𝔵T𝑉𝔵.

Differentiating 𝑤 along solutions of the doubled system (2) gives

𝑑𝑤 = 𝔣(𝔵′)T𝑉𝔵′ + 𝔵T𝑉𝔣(𝔵).

𝑑𝑡

Each term on the right-hand side vanishes by identity (4). Consequently, 𝑤 is a first integral of system (2).

We now turn to the finite-difference setting. Consider the increment

𝑤̂ − 𝑤 = 𝑤(𝔵,̂ 𝔵̂ ) − 𝑤(𝔵,𝔵) = 𝔵T̂ 𝑉𝔵̂ − 𝔵T𝑉𝔵. Adding and subtracting the term 𝔵T̂ 𝑉𝔵gives

𝑤̂ − 𝑤 = (𝔵T̂ 𝑉𝔵̂ − 𝔵T̂ 𝑉𝔵) + (𝔵T̂ 𝑉𝔵− 𝔵T𝑉𝔵).

Using the discrete scheme (3), we have

                                                        𝔵̂ − 𝔵= 𝔣(𝔵)𝛥𝑡,̂                𝔵 − 𝔵 = 𝔣(𝔵̂  )𝛥𝑡,

and therefore

𝔵T̂ 𝑉𝔵̂ − 𝔵T̂ 𝑉𝔵= 𝔵T̂ 𝑉(𝔵̂ − 𝔵) = 𝛥𝑡 𝔵T̂ 𝑉𝔣(𝔵),̂

                                                    𝔵T̂ 𝑉𝔵− 𝔵T𝑉𝔵= (𝔵 − 𝔵̂       )T𝑉𝔵= 𝛥𝑡 𝔣(𝔵)T𝑉𝔵.

By identity (4), both terms vanish. Hence 𝑤̂ = 𝑤, which shows that 𝑤 is exactly preserved by the discrete map (3).                  

2.3.      Hamiltonian formulation

Suppose the original system (1) is Hamiltonian, i.e., it can be written as

                                                   𝑑𝑝𝑖                  𝜕𝐻         𝑑𝑞𝑖             𝜕𝐻

                                                           = −         ,                =          ,         𝑖 = 1,…,𝑛.

                                                   𝑑𝑡            𝜕𝑞𝑖               𝑑𝑡         𝜕𝑝𝑖

Then the doubled system takes the form

                                                   𝑑𝑝𝑖                   𝜕𝐻′             𝑑𝑞𝑖             𝜕𝐻

                                                ⎧⎪ 𝑑𝑡 = − 𝜕𝑞𝑖′ ,           𝑑𝑡 = 𝜕𝑝𝑖′ ,           𝑖 = 1,…,𝑛,

⎨⎪𝑑𝑝𝑖′ = −𝜕𝐻 ,     𝑑𝑞′𝑖 = 𝜕𝐻 ,                  𝑖 = 1,…,𝑛. ⎩ 𝑑𝑡      𝜕𝑞𝑖                    𝑑𝑡               𝜕𝑝𝑖

where 𝐻 = 𝐻(𝑝,𝑞) and 𝐻= 𝐻(𝑝,𝑞). We introduce

 

𝐻2 = 𝐻(𝑝,𝑞) + 𝐻(𝑝,𝑞) and rewrite the system in the following way

(5)

                                                   𝑑𝑝             𝜕𝐻               

                                                ⎧         𝑖 = −        ′𝑖2 ,  𝑑𝑞𝑑𝑡𝑖 = 𝜕𝐻𝜕𝑝𝑖2 ,    𝑖 = 1,…𝑛,

                                                ⎪ 𝑑𝑡              𝜕𝑞

                                                ⎨𝑑𝑝𝑖′            𝜕𝐻2        𝑑𝑞𝑖        𝜕𝐻2

                                                ⎪           = −           ,                =          ,         𝑖 = 1,…𝑛.

                                                ⎩ 𝑑𝑡              𝜕𝑞𝑖                𝑑𝑡          𝜕𝑝𝑖

(6)

This combined Hamiltonian allows us to write the doubled system in a compact Hamiltonian form. It is now clear that this system is Hamiltonian, with the same Hamiltonian as in (5). Its symplectic structure is defined by the 1-form

𝑛

𝜔 = ∑(𝑝𝑖 𝑑𝑞𝑖 + 𝑝𝑖𝑑𝑞𝑖).

𝑖=1

Note the “cross” pairing of coordinates and momenta — each momentum is paired with the other set of coordinates.

The finite-difference scheme obtained by the doubling method reads

                                𝑝̂𝑖 − 𝑝𝑖             𝜕𝐻′       ′,𝑞′),               𝑞̂𝑖 − 𝑞𝑖 =          𝜕𝐻′ (𝑝′,𝑞′),          𝑖 = 1,…,𝑛,

                           ⎪⎧    𝛥𝑡         = − 𝜕𝑞′𝑖 (𝑝                            𝛥𝑡                𝜕𝑝𝑖′

                            ⎨𝑝̂𝑖′ − 𝑝𝑖′            𝜕𝐻

                            ⎪                   = −         (𝑝,̂ 𝑞)̂ ,

                            ⎩      𝛥𝑡                𝜕𝑞𝑖

Or, using (6), the scheme can be written as

𝑞̂′𝑖 − 𝑞′𝑖               𝜕𝐻

= (𝑝,̂ 𝑞)̂ , 𝛥𝑡            𝜕𝑝𝑖

𝑖 = 1,…,𝑛.

 

𝑝̂

                                 ⎧       𝑖 − 𝑝𝑖 = −𝜕𝐻′2 ,

                                 ⎪      𝛥𝑡                 𝜕𝑞𝑖

                                 ⎨𝑝̂𝑖′ − 𝑝𝑖′            𝜕𝐻2 ||

                                 ⎪                   = −

                                       𝛥𝑡                   𝜕𝑞 |

𝑞̂′𝑖 − 𝑞′𝑖       𝜕𝐻2 ||                   ,

=

𝛥𝑡                    𝜕𝑝𝑖 |𝑝=𝑝,𝑞=̂ 𝑞̂

𝑞̂

     ,                      𝑖 − 𝑞𝑖 = 𝜕𝐻′2 ,

                  𝛥𝑡             𝜕𝑝

𝑖 = 1,…,𝑛, 𝑖 = 1,…,𝑛.

(7)

                                 ⎩                                  𝑖     𝑝=𝑝,𝑞=̂ 𝑞̂                                          𝑖

Figure 1. Time evolution of the variables 𝑝(𝑡) and 𝑝(𝑡) for the Jacobi oscillator

3.     Results

3.1.      Jacobi oscillator

To understand the purpose of doubling the variables, consider a simple and well-studied example — the Jacobi oscillator:

𝑑𝑝

⎧⎪ 𝑑𝑡 = 𝑞𝑟,

⎪𝑑𝑞

⎪ 𝑑𝑡 = −𝑝𝑟,

𝑑𝑟 = −𝑘2𝑝𝑞,

⎨𝑑𝑡

𝑝(0) = 0, ⎪

⎪𝑞(0) = 1, ⎪

⎩𝑟(0) = 1. It is well known that the solution of this system is periodic and can be expressed in terms of elliptic functions. Figure 1 shows the time dependence of 𝑝(𝑡) and 𝑝(𝑡): the amplitude of oscillations of 𝑝 grows over time, while the amplitude of 𝑝decreases. The exact solution lies somewhere between these two trajectories. The behaviour shown in Fig. 1 closely resembles the classical idea of upper and lower solutions for differential equations, first introduced by Chaplygin [11].

Looking at this figure, one can expect that the average of 𝑝 and 𝑝approximates the exact solution, while half the absolute difference |𝑝 − 𝑝| provides an estimate of the error incurred by the method.

The graph of this error estimate is shown in Fig. 2.

Nevertheless, taking arithmetic averages does not produce the behavior typically expected from a geometric integrator. This is particularly clear from the phase portrait in the (𝑝,𝑞)-plane. Figure 3 displays the trajectories of the points (𝑝,𝑞) and (𝑝,𝑞). As anticipated, (𝑝,𝑞) spirals outward to infinity,

Figure 2. Error function 𝐸(𝑝) as a function of time 𝑡

 

Figure 3. Trajectories of the points (𝑝,𝑞) and (𝑝,𝑞)

q2, a.u.

 

Figure 4. Trajectory of the point (𝑝,𝑞)

 

Figure 5. Phase portrait of the Jacobi oscillator in the (𝑞,𝑝)-plane obtained using the geometric mean

whereas (𝑝,𝑞) spirals inward toward the origin. Forming the arithmetic mean — namely, the point

𝑝 + 𝑝𝑞 + 𝑞

                                                                (𝑝,𝑞) = (                 ,               ),

                                                                                  2              2

partially corrects this behavior (see Fig. 4), but the improvement is incomplete. The averaged trajectory still fails to lie on a closed curve, in contrast to the exact periodic orbits or those obtained with Kahan’s method. This indicates that the discretization introduces a small amount of numerical dissipation into the system.

However, if we use geometric means in our calculations, the situation improves dramatically. As clearly seen in Fig. 5, the point

(𝑝,𝑞) = (√𝑝𝑝,√𝑞𝑞)

lies exactly on the circle

                                                                           2         2

                                                                         𝑝     + 𝑞     = 1,

which is precisely the first integral of the Jacobi oscillator,

𝑝2 + 𝑞2 = 1.

Thus, in this case, using geometric averages exactly preserves the original system’s motion integral.

As an example of the quadratic integral preservation, the Jacobi oscillator possesses the quadratic first integral

𝑣 = 𝑝2 + 𝑞2.

Consequently, the doubled system admits the invariant

𝑤 = 𝑝𝑝+ 𝑞𝑞,

which is exactly conserved under the numerical scheme (3). When expressed in terms of geometric

means,

this invariant takes the form                         

                                                                         𝑤 = 𝑝      + 𝑞 ,

which explains the exact preservation of the circular phase trajectories observed in Fig. 5.

3.2.     Vanhaecke system

To see how integrals of degree higher than two behave under the discrete scheme (3), we look at a well-known example of a completely integrable Hamiltonian system — the Vanhaecke system [12– 14], first introduced by P. Vanhaecke in the 1990s. This system has two degrees of freedom and

Hamiltonian

𝐻 = 1(𝑝12 + 𝑝22) + 12(𝑞21 + 𝑞22)2 + 𝛼𝑞21 + 𝛽𝑞22 − 𝛼 − 𝛽, 2

where 𝛼 and 𝛽 are parameters of the system. This system has two polynomial first integrals:

𝐹 = (𝑝2𝑞1 − 𝑝1𝑞2)2 − (2𝑞41 + 2𝑞21𝑞22 + 2𝛼𝑞12 + 𝑝12)(𝛼 − 𝛽),

and

𝐺 = (𝑝2𝑞1 − 𝑝1𝑞2)2 + (2𝑞21𝑞22 + 2𝑞42 + 2𝛽𝑞22 + 𝑝22)(𝛼 − 𝛽),

                      Figure 6. Plots of 𝐻 and 𝐻′                                                                                                    Figure 7. Plot of the averaged Hamiltonian

F, a.u.

                      Figure 8. Plots of 𝐹 and 𝐹′                                                                                                          Figure 9. Plots of averaged values of 𝐹

which are in involution. Moreover, their difference is proportional to the Hamiltonian 𝐻. We integrated the system using the scheme (3) with the initial conditions

𝑞1(0)

⎪𝑞2(0)

⎨𝑝1(0)

⎩𝑝2(0)

= 0,

= 1,

= 1,

= 0,

parameters 𝛼 = 1, 𝛽 = 2, and time step 𝛥𝑡 = 0.05.

Figure 6 shows the values of 𝐻 = 𝐻(𝑝,𝑞) and 𝐻= 𝐻(𝑝,𝑞). Even with such a small time step, the energy changes noticeably — already in the first decimal place. However, 𝐻 and 𝐻oscillate out of phase around a value close to the exact one, and — most importantly — neither shows any long-term drift upward or downward.

Averaging in different ways reduces the size of these oscillations. We tried three approaches:

  • the simple average (𝐻 + 𝐻) — shown as the solid line in Fig. 7,
  • 𝐻(𝑝,𝑞), where 𝑝 = 𝑝+𝑝and 𝑞 = 𝑞+𝑞— dashed line,

                                            2                            2

  • 𝐻(𝑝,𝑞), where 𝑝 = √𝑝𝑝and 𝑞 = √𝑞𝑞— doted line.

This keeps the energy with an error of order 10−3, and, most importantly, the energy shows no long-term drift upward or downward.

Figure 8 shows how the integral 𝐹 behaves over time. When computing the averages (Fig. 9), we used only the first two of the three methods described above. The geometric mean was not used here because the expression for 𝐹 involves more than just squares of coordinates and momenta, which caused technical difficulties.

The same pattern is clearly visible as in the energy plot: the two copies 𝐹 and 𝐹oscillate out of phase around the true value, and averaging reduces the oscillation amplitude without introducing any drift.

3.3.      Symplecticity

The scheme (7) is a partitioned (or split) finite-difference method [15, 16]. The first 2𝑛 variables

(𝑝,𝑞) and the last 2𝑛 variables (𝑝,𝑞) are updated using different formulas, which is typical for such methods. Because of this structure, the scheme is expected to be symplectic.

Theorem 11. If the Hamiltonian splits as

𝐻 = 𝑇(𝑝) + 𝑈(𝑞),

then the discrete scheme (7) is symplectic, i.e.,

𝜔̂ − 𝜔 = 𝑑𝑆

for some function 𝑆.

Proof. Let us denote the partial derivatives of 𝑇 and 𝑈 by

                                                                        𝜕𝑇                           𝜕𝑈

                                                                𝑇𝑖 =   ,            𝑈𝑖 =   .

                                                                        𝜕𝑝𝑖                                        𝜕𝑞𝑖

Recall that the discrete symplectic form is

𝑛

𝜔̂ = ∑(𝑝̂𝑖 𝑑𝑞̂𝑖 + 𝑝̂𝑖𝑑𝑞̂𝑖).

𝑖=1

We treat the two parts separately. First, using the update rule from (7),

𝑞̂𝑖 = 𝑞𝑖 + 𝛥𝑡 𝑇𝑖(𝑝)̂ ,

so

                                  ∑𝑝̂𝑖 𝑑𝑞̂𝑖                 + 𝛥𝑡 𝑇𝑖(𝑝)̂) = ∑𝑝̂𝑖 𝑑𝑞𝑖 + 𝛥𝑡 ∑𝑝̂𝑖 𝑑𝑇𝑖(𝑝)̂ .

The second term is an exact differential. Indeed,

∑𝑝̂𝑖 𝑑𝑇𝑖(𝑝)̂ = 𝑑(∑𝑝̂𝑖𝑇𝑖(𝑝)̂ − 𝑇(𝑝)̂),

so we can write

∑𝑝̂𝑖 𝑑𝑞̂𝑖 = ∑𝑝̂𝑖 𝑑𝑞𝑖 + 𝑑𝑆1(𝑝)̂ ,

where 𝑆1(𝑝)̂ = 𝛥𝑡(∑𝑝̂𝑖𝑇𝑖(𝑝)̂ − 𝑇(𝑝)̂).

Now use the other half of the scheme: 𝑝̂𝑖 = 𝑝𝑖 − 𝛥𝑡 𝑈𝑖(𝑞), so

∑𝑝̂𝑖 𝑑𝑞𝑖 = ∑𝑝𝑖 𝑑𝑞𝑖 𝑝𝑖 𝑑𝑞𝑖 − 𝑑𝑈(𝑞).

Putting everything together,

∑𝑝̂𝑖 𝑑𝑞̂𝑖 = ∑𝑝𝑖 𝑑𝑞𝑖 − 𝑑𝑈(𝑞) + 𝑑𝑆1(𝑝)̂ .

A similar calculation for the second part gives

∑𝑝̂𝑖𝑑𝑞̂𝑖 = ∑𝑝𝑖𝑑𝑞̂𝑖 + 𝑑𝑈(𝑞)̂ = ∑𝑝𝑖𝑑𝑞𝑖 + 𝑑𝑆2(𝑝) + 𝑑𝑈(𝑞)̂ ,

where 𝑆    ) − 𝑇(𝑝)).

Adding both contributions and subtracting the original form

𝜔 = ∑(𝑝𝑖 𝑑𝑞𝑖 + 𝑝𝑖𝑑𝑞𝑖),

we find that all non-exact terms cancel each other out, and

𝜔̂ − 𝜔 = 𝑑𝑆

with 𝑆 = 𝑆1(𝑝)̂ + 𝑆2(𝑝′) − 𝑈(𝑞′) + 𝑈(𝑞)̂. Hence the scheme is symplectic.                                                                                

4.     Discussion

In general, it is highly convenient when a numerical method inherently includes a built-in error estimator. In contrast, methods like Runge–Kutta require such error estimation techniques to be added separately [17].

Nevertheless, taking arithmetic averages does not produce the behavior typically expected from a geometric integrator. This is particularly clear from the phase portrait in the (𝑝,𝑞)-plane. Figure 3 displays the trajectories of the points (𝑝,𝑞) and (𝑝,𝑞). As anticipated, (𝑝,𝑞) spirals outward to infinity,

whereas (𝑝,𝑞) spirals inward toward the origin.

Forming the arithmetic mean — namely, the point

𝑝 + 𝑝𝑞 + 𝑞

                                                                (𝑝,𝑞) = (                 ,               ),

                                                                                  2              2

partially corrects this behavior (see Fig. 4), but the improvement is incomplete. The averaged trajectory still fails to lie on a closed curve, in contrast to the exact periodic orbits or those obtained with Kahan’s method. This indicates that the discretization introduces a small amount of numerical dissipation into the system.

However, if we use geometric means in our calculations, the situation improves dramatically. As clearly seen in Fig. 5, the point

(𝑝,𝑞) = (√𝑝𝑝,√𝑞𝑞)

lies exactly on the circle

                                                                           2         2

                                                                         𝑝     + 𝑞     = 1,

which is precisely the first integral of the Jacobi oscillator,

𝑝2 + 𝑞2 = 1.

Thus, in this case, using geometric averages exactly preserves the original system’s motion integral.

In this sense, scheme (3) actually works better than Kahan’s method. Unlike the doubling scheme, Kahan’s method does not preserve the original integral 𝑝2 + 𝑞2. Instead, it conserves a modified expression dependent on 𝛥𝑡. Finding this expression for the Kahan scheme was the main result of the work [18], in [5] this expression was found according to the Lagutinsky method.

Exact preservation is important in many cases. For example, one conservation law for the spinning top simply says that the sum of the squares of the direction cosines is always 1 [19]. Kahan’s method preserves a modified expression [20], i.e., adds tiny corrections that don’t have a clear geometric meaning. Because scheme (3) preserves this integral exactly, it looks very promising for building geometric integrators — methods that respect the underlying geometry of the problem.

Overall, we can say that the scheme (3) keeps all integrals of the system close to their exact values allowing only small oscillations around them. This is a very good property and suggests that the scheme may be reliable for long-time simulations. At the same time, it is important to note that the energy integral is not preserved exactly, no matter how we average it.

It should also be mentioned that the Vanhaecke system has cubic right-hand sides, so it cannot be directly discretized by Kahan’s method. Even if it could, there are no general results guaranteeing that Kahan’s method preserves arbitrary polynomial integrals. The only case that is well understood is the preservation of the energy (Hamiltonian) itself [2].

Energy conservation in symplectic integrators has been studied extensively. It is well known that the original Hamiltonian is not preserved exactly. However, one can construct a modified Hamiltonian 𝐻(𝑚) that is conserved up to any desired order of accuracy [15, 21]. Because of this, numerical experiments typically show the energy oscillating around a constant value that is close to — but not exactly equal to — the true energy. This is precisely what we observed in theVanhaecke system. Looking at Fig. 7, one might even guess that the different averaging strategies we used correspond to modified Hamiltonians of different orders.

5.     Conclusion

In this work, we studied reversible finite-difference schemes for dynamical systems based on the doubling method introduced by V. N. Abrashin and S. N. Sytova. We carried out a detailed analysis of algebraic integral preservation for two benchmark systems: the classical Jacobi oscillator and the Vanhaecke system.

First of all, quadratic integrals are proven to preserve exactly (Th. 9). In particular, the quadratic integrals for the Jacobi oscillator are preserved exactly if we replace the squares of the quantities with the geometric mean. For comparison’s sake, Kahan’s method does not preserve the original quadratic integral 𝑝2 + 𝑞2, but conserves a modified expression dependent on 𝛥𝑡. Exact preservation is important for geometrical interpretation of expressions like the sum of the squares of the direction cosines.

For Hamiltonian systems, this method is symplectic in the sense of the theorem 11. Thus the original Hamiltonian is not preserved exactly, but one can construct a modified Hamiltonian 𝐻(𝑚) that is conserved up to any desired order. It seems that the different averaging strategies we used correspond to modified Hamiltonians of different orders. In any way, the scheme keeps all integrals of the Vanhaecke system close to their exact values allowing only small oscillations around them. Thus the scheme may be reliable for long-time simulations.

×

About the authors

Lyubov O. Lapshenkova

RUDN University

Email: lapshenkova-lo@rudn.ru
ORCID iD: 0000-0002-1053-4925

Assistant of Department of Computational Mathematics and Artificial Intelligence

6 Miklukho-Maklaya St, Moscow, 117198, Russian Federation

Kseniia S. Mashkovtseva

RUDN University

Email: 1132226438@rudn.ru
ORCID iD: 0009-0002-6927-4467

Student of Department of Computational Mathematics and Artificial Intelligence

6 Miklukho-Maklaya St, Moscow, 117198, Russian Federation

Alina A. Trusova

RUDN University

Email: 1132246715@rudn.ru
ORCID iD: 0009-0008-5140-5629

Student of Department of Computational Mathematics and Artificial Intelligence

6 Miklukho-Maklaya St, Moscow, 117198, Russian Federation

Mikhail D. Malykh

RUDN University; Joint Institute for Nuclear Research

Author for correspondence.
Email: malykh-md@rudn.ru
ORCID iD: 0000-0001-6541-6603
Scopus Author ID: 6602318510
ResearcherId: P-8123-2016

DSc., Head of Department of Computational Mathematics and Artificial Intelligence of RUDN University; Senior Researcher of Joint Institute for Nuclear Research

6, Miklukho-Maklaya St., Moscow, 117198, Russian Federation; 6, Joliot-Curie St., Dubna, Moscow Region, 141980, Russian Federation

References

  1. Petrera, M. & Suris, Y. B. On the Hamiltonian structure of Hirota-Kimura discretization of the Euler top. Math. Nachr. 283, 1654–1663. doi: 10.1002/mana.200711162 (2010).
  2. Celledoni, E., McLachlan, R. I., Owren, B. & Quispel, G. R. W. Geometric properties of Kahan’s method. J. Phys. A: Math. Theor. 46, 025201. doi: 10.1088/1751-8113/46/2/025201 (2013).
  3. Petrera, M., Pfadler, A., Suris, Y. B. & Fedorov, Y. N. On the Construction of Elliptic Solutions of Integrable Birational Maps. Experimental Mathematics 26, 324–341. doi: 10.1080/10586458.2016. 1166354 (2017).
  4. Petrera, M., Smirin, J. & Suris, Y. B. Geometry of the Kahan discretizations of planar quadratic Hamiltonian systems. Proc. R. Soc. A 475, 20180761. doi: 10.1098/rspa.2018.0761 (2019).
  5. Malykh, M., Gambaryan, M., Kroytor, O. & Zorin, A. Finite Difference Models of Dynamical Systems with Quadratic Right-Hand Side. Mathematics 12, 167. doi: 10.3390/math12010167 (2024).
  6. Malykh, M., Ayryan, E., Lapshenkova, L. & Sevastianov, L. Difference Schemes for Differential Equations with a Polynomial Right-Hand Side, Defining Birational Correspondences. Mathematics 12, 2725. doi: 10.3390/math12172725 (2024).
  7. Sytova, S. N. Finite-Difference Methods in Problems Modeling Volume Free Electron Lasers. Differ. Equ. 37, 1026–1031 (2001).
  8. Goriely, A. Integrability and nonintegrability of dynamical systems (World Scientific, 2001).
  9. Gorbuzov, V. N. Integrals of differential systems In Russian (Grodno State University, Grodno, 2006).
  10. Pranevich, A. F. On Poisson’s Theorem of Building First Integrals for Ordinary Differential Systems. Rus. J. Nonlin. Dyn. 15, 87–96 (2019).
  11. Nefedov, N. N. Differential equations – Lectures Russian. URL: https://teach-in.ru/file/synopsis/pdf/differential-equation-M1.pdf (date: 14.01.2025). 2019.
  12. Vanhaecke, P. A special case of the Garnier system, (1,4)-polarized abelian surfaces and their moduli. Compositio Mathematica 92, 157–203 (1994).
  13. Vanhaecke, P. Integrable Systems in the Realm of Algebraic Geometry 2nd (Springer, 2001).
  14. Shiwei,W., Malykh, M. D., Sevastianov, L. A. & Zorin, A.V. On the behavior of orbits ofVanhaecke system on integral surfaces. Discrete and Continuous Models and Applied Computational Science 34, xx–xx (2026).
  15. Sanz-Serna, J. M. & Calvo, M. P. Numerical Hamiltonian Problems (CHAPMAN & HALL, London, Glasgow, New York, Tokyo, Melbourne, Madras, 1994).
  16. Gevorkyan, M. N. Specific implementations of symplectic numerical methods. Bulletin of the Peoples Friendship University of Russia. Series: Mathematics informatics physics., 77–89 (2013).
  17. Sarafyan, D., Outlaw, C. & Derr, L. An investigation of Runge-Kutta processes, and equivalence of scalar and vector cases. Journal of Mathematical Analysis and Applications 104, 568–588. doi: 10.1016/0022-247X(84)90021-0 (1984).
  18. Hirota, R. & Kimura, K. Discretization of the Euler Top. Journal of the Physical Society of Japan 69, 627–630 (2000).
  19. Golubev, V. V. Lectures on integration of the equations of motion of a rigid body about a fixed point (Israel Program for Scientific Translations, Jerusalem, 1960).
  20. Hirota, R. & Kimura, K. Discretization of the Lagrange Top. Journal of the Physical Society of Japan 69, 3193–3199 (2000).
  21. Malykh, M. D. & Konyaeva, M. A. Calculation of modified Hamiltonian in Sage. Discrete and Continuous Models and Applied Computational Science 34, xx–xx (2026).

Supplementary files

Supplementary Files
Action
1. JATS XML

Copyright (c) 2026 Lapshenkova L.O., Mashkovtseva K.S., Trusova A.A., Malykh M.D.

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.