Abstract
The recently-introduced relaxation approach for Runge–Kutta methods can be used to enforce conservation of energy in the integration of Hamiltonian systems. We study the behavior of implicit and explicit relaxation Runge–Kutta methods in this context. We find that, in addition to their useful conservation property, the relaxation methods yield other improvements. Experiments show that their solutions bear stronger qualitative similarity to the true solution and that the error grows more slowly in time. We also prove that these methods are superconvergent for a certain class of Hamiltonian systems.
This is a preview of subscription content,
to check access.














Similar content being viewed by others
References
Allen, M.P., Tildesley, D.J.: Computer Simulation of Liquids. Oxford University Press, Oxford (2017)
Barber, C.B., Dobkin, D.P., Huhdanpaa, H.: The quickhull algorithm for convex hulls. ACM Trans. Math. Softw. (TOMS) 22(4), 469–483 (1996). https://doi.org/10.1145/235815.235821
Bogacki, P., Shampine, L.F.: An efficient Runge–Kutta (4,5) pair. Comput. Math. Appl. 32(6), 15–28 (1996). https://doi.org/10.1016/0898-1221(96)00141-1
Butcher, J.C.: Numerical Methods for Ordinary Differential Equations. Wiley, Chichester (2016). https://doi.org/10.1002/9781119121534
Calvo, M., Hernández-Abreu, D., Montijano, J.I., Rández, L.: On the preservation of invariants by explicit Runge–Kutta methods. SIAM J. Sci. Comput. 28(3), 868–885 (2006). https://doi.org/10.1137/04061979X
Calvo, M., Laburta, M., Montijano, J., Rández, L.: Projection methods preserving Lyapunov functions. BIT Numer. Math. 50(2), 223–241 (2010). https://doi.org/10.1007/s10543-010-0259-3
Calvo, M., Laburta, M., Montijano, J.I., Rández, L.: Error growth in the numerical integration of periodic orbits. Math. Comput. Simul. 81(12), 2646–2661 (2011). https://doi.org/10.1016/j.matcom.2011.05.007
Calvo, M.P., Sanz-Serna, J.M.: The development of variable-step symplectic integrators, with application to the two-body problem. SIAM J. Sci. Comput. 14(4), 936–952 (1993). https://doi.org/10.1137/0914057
Cano, B., Lewis, H.R.: A comparison of symplectic and Hamilton’s principle algorithms for autonomous and non-autonomous systems of ordinary differential equations. Appl. Numer. Math. 39(3–4), 289–306 (2001). https://doi.org/10.1016/S0168-9274(00)00037-4
Cano, B., Sanz-Serna, J.M.: Error growth in the numerical integration of periodic orbits, with application to Hamiltonian and reversible systems. SIAM J. Numer. Anal. 34(4), 1391–1417 (1997). https://doi.org/10.1137/S0036142995281152
Cooper, G.: Stability of Runge–Kutta methods for trajectory problems. IMA J. Numer. Anal. 7(1), 1–13 (1987). https://doi.org/10.1093/imanum/7.1.1
De Frutos, J., Sanz-Serna, J.M.: Accuracy and conservation properties in numerical integration: the case of the Korteweg–de Vries equation. Numer. Math. 75(4), 421–445 (1997). https://doi.org/10.1007/s002110050247
Dekker, K., Verwer, J.G.: Stability of Runge–Kutta Methods for Stiff Nonlinear Differential Equations, CWI Monographs, vol. 2. North-Holland, Amsterdam (1984)
Fehlberg, E.: Low-order classical Runge–Kutta formulas with stepsize control and their application to some heat transfer problems. Technical Report NASA TR R-315, NASA, NASA George C. Marshall Space Flight Center, Marshall Ala. USA (1969)
Gassner, G.J., Winters, A.R., Kopriva, D.A.: Split form nodal discontinuous Galerkin schemes with summation-by-parts property for the compressible Euler equations. J. Comput. Phys. 327, 39–66 (2016). https://doi.org/10.1016/j.jcp.2016.09.013
Gonzalez, O.: Time integration and discrete Hamiltonian systems. J. Nonlinear Sci. 6(5), 449 (1996). https://doi.org/10.1007/BF02440162
Hairer, E.: Energy-preserving variant of collocation methods. J. Numer. Anal. Ind. Appl. Math. 5, 73–84 (2010)
Hairer, E., Lubich, C.: Energy behaviour of the Boris method for charged-particle dynamics. BIT Numer. Math. 58(4), 969–979 (2018). https://doi.org/10.1007/s10543-018-0713-1
Hairer, E., Lubich, C., Wanner, G.: Geometric Numerical Integration: Structure-Preserving Algorithms for Ordinary Differential Equations. Springer Series in Computational Mathematics, vol. 31. Springer, Berlin (2006). https://doi.org/10.1007/3-540-30666-8
Hairer, E., McLachlan, R.I., Skeel, R.D.: On energy conservation of the simplified Takahashi–Imada method. ESAIM Math. Model. Numer. Anal. 43(4), 631–644 (2009). https://doi.org/10.1051/m2an/2009019
Hairer, E., Nørsett, S.P., Wanner, G.: Solving Ordinary Differential Equations I: Nonstiff Problems. Springer Series in Computational Mathematics, vol. 8. Springer, Berlin (2008). https://doi.org/10.1007/978-3-540-78862-1
Hairer, E., Wanner, G.: Solving Ordinary Differential Equations II: Stiff and Differential-Algebraic Problems. Springer Series in Computational Mathematics, vol. 14. Springer, Berlin (2010). https://doi.org/10.1007/978-3-642-05221-7
Heun, K.: Neue Methoden zur approximativen Integration der Differentialgleichungen einer unabhängigen Veränderlichen. Z. Math. Phys. 45, 23–38 (1900)
Iserles, A., Zanna, A.: Preserving algebraic invariants with Runge–Kutta methods. J. Comput. Appl. Math. 125(1–2), 69–81 (2000). https://doi.org/10.1016/S0377-0427(00)00459-3
Ketcheson, D.I.: Relaxation Runge–Kutta methods: conservation and stability for inner-product norms. SIAM J. Numer. Anal. 57(6), 2850–2870 (2019). https://doi.org/10.1137/19M1263662. arXiv:1905.09847 [math.NA]
Kutta, W.: Beitrag zur näherungsweisen Integration totaler Differentialgleichungen. Z. Math. Phys. 46, 435–453 (1901)
McLachlan, R.I., Quispel, G., Robidoux, N.: Geometric integration using discrete gradients. Philos. Trans. R. Soc. Lond. Ser. A Math. Phys. Eng. Sci. 357(1754), 1021–1045 (1999). https://doi.org/10.1098/rsta.1999.0363
Nørsett, S.P.: Semi-explicit Runge–Kutta methods. Report Mathematics and Computation 4/74, Department of Mathematics, University of Trondheim, Norway (1974)
Portillo, A., Sanz-Serna, J.M.: Lack of dissipativity is not symplecticness. BIT Numer. Math. 35(2), 269–276 (1995). https://doi.org/10.1007/BF01737166
Prince, P.J., Dormand, J.R.: High order embedded Runge–Kutta formulae. J. Comput. Appl. Math. 7(1), 67–75 (1981). https://doi.org/10.1016/0771-050X(81)90010-3
Quispel, G., McLaren, D.I.: A new class of energy-preserving numerical integration methods. J. Phys. A Math. Theor. 41(4), 045,206 (2008). https://doi.org/10.1088/1751-8113/41/4/045206
Ranocha, H.: Generalised summation-by-parts operators and entropy stability of numerical methods for hyperbolic balance laws. Ph.D. thesis, TU Braunschweig (2018)
Ranocha, H.: Mimetic properties of difference operators: product and chain rules as for functions of bounded variation and entropy stability of second derivatives. BIT Numer. Math. 59(2), 547–563 (2019). https://doi.org/10.1007/s10543-018-0736-7. arXiv:1805.09126 [math.NA]
Ranocha, H.: On strong stability of explicit Runge–Kutta methods for nonlinear semibounded operators. IMA J. Numer. Anal. (2020). https://doi.org/10.1093/imanum/drz070. arXiv:1811.11601 [math.NA]
Ranocha, H., Ketcheson, D.I.: Energy stability of explicit Runge-Kutta methods for non-autonomous or nonlinear problems (2019). arXiv:1909.13215 [math.NA]
Ranocha, H., Ketcheson, D.I.: Hamiltonian-RRK-notebooks. Relaxation Runge–Kutta methods for Hamiltonian problems. https://github.com/ranocha/Hamiltonian-RRK-notebooks (2020). https://doi.org/10.5281/zenodo.3607523
Ranocha, H., Lóczi, L., Ketcheson, D.I.: General relaxation methods for initial-value problems with application to multistep schemes (2020). arxiv:2003.03012 [math.NA]
Ranocha, H., Sayyari, M., Dalcin, L., Parsani, M., Ketcheson, D.I.: Relaxation Runge–Kutta methods: fully-discrete explicit entropy-stable schemes for the compressible Euler and Navier–Stokes equations. SIAM J. Sci. Comput. 42(2), A612–A638 (2020). https://doi.org/10.1137/19M1263480. arXiv:1905.09129 [math.NA]
Richtmyer, R.D., Morton, K.W.: Difference Methods for Boundary-Value Problems. Wiley, New York (1967)
Sanz-Serna, J.M.: An explicit finite-difference scheme with exact conservation properties. J. Comput. Phys. 47(2), 199–210 (1982). https://doi.org/10.1016/0021-9991(82)90074-2
Sanz-Serna, J.M., Calvo, M.P.: Numerical Hamiltonian Problems, Applied Mathematics and Mathematical Computation, vol. 7. Chapman & Hall, London (1994)
Sanz-Serna, J.M., Manoranjan, V.: A method for the integration in time of certain partial differential equations. J. Comput. Phys. 52(2), 273–289 (1983). https://doi.org/10.1016/0021-9991(83)90031-1
Shu, C.W., Osher, S.: Efficient implementation of essentially non-oscillatory shock-capturing schemes. J. Comput. Phys. 77(2), 439–471 (1988). https://doi.org/10.1016/0021-9991(88)90177-5
Virtanen, P., Gommers, R., Oliphant, T.E., Haberland, M., Reddy, T., Cournapeau, D., Burovski, E., Peterson, P., Weckesser, W., Bright, J., van der Walt, S.J., Brett, M., Wilson, J., Jarrod Millman, K., Mayorov, N., Nelson, A.R.J., Jones, E., Kern, R., Larson, E., Carey, C., Polat, İ., Feng, Y., Moore, E.W., Vand erPlas, J., Laxalde, D., Perktold, J., Cimrman, R., Henriksen, I., Quintero, E.A., Harris, C.R., Archibald, A.M., Ribeiro, A.H., Pedregosa, F., van Mulbregt, P., SciPy 1. 0 Contributors: SciPy 1.0—Fundamental Algorithms for Scientific Computing in Python (2019). arXiv:1907.10121 [cs.MS]
Wolfram Research, Inc.: Mathematica (2019). https://www.wolfram.com
Acknowledgements
Research reported in this publication was supported by the King Abdullah University of Science and Technology (KAUST). The authours would like to thank Ernst Hairer for a discussion of symplecticity and the preservation of phase space volume.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Conflict of interest
On behalf of all authors, the corresponding author states that there is no conflict of interest.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Superconvergence Theorem Proofs
Superconvergence Theorem Proofs
To facilitate the proof of the general result 1, we first present and prove a version restricted to linear problems.
Theorem 2
Consider the linear Euclidean Hamiltonian system
and an explicit Runge–Kutta method of order \(p \in {\mathbb {N}}\) with \(s \ge p\) stages. The corresponding RRK scheme conserving the Hamiltonian has an order of accuracy \(p+1\) if p is odd.
In the proof of Theorem 2, the following lemma will be used.
Lemma 1
For \(s,m \in {\mathbb {N}}\), \(2m \le s+1\),
Proof
Use some explicit calculations or the Mathematica [45] notebook Combinatorial_Lemma.nb in the repository [36]. \(\square \)
Proof of Theorem 2
It suffices to consider the first step. The baseline RK method starting from \(u_0\) yields
where \(\alpha _k\) are the monomial coefficients of the corresponding stability polynomial. The relaxation method results in the new value
with squared Euclidean norm

The second sum can also be written as
The non-zero value of the relaxation parameter conserving the Euclidean norm is
For a p-th order baseline scheme,
Hence, for odd p, the numerator of \(\gamma \) (33) is
Because of Lemma 1, the denominator of \(\gamma \) (33) for odd p is
Thus,
Comparing the analytical solution
with the RRK solution,
Inserting \(\gamma \) (37) and expanding the term \((\gamma - \gamma ^2) {\varDelta t}^2 L^2 u_0\) results in
Finally, the second term in brackets vanishes because of the special structure of L (27). \(\square \)
To prove Theorem 1, expansions using rooted trees will be applied, cf. [4, Chapter 3]. The following structural results will be used.
Lemma 2
For the Euclidean Hamiltonian system (23), \(m \in {\mathbb {N}}\), and \(n \in \left\{ 0, \ldots , m\right\} \), there exists a smooth function \(h_{m,n}\) such that
Proof (Proof by induction)
The induction hypothesis is fulfilled for the basic cases \(m = 1\) and \(n \in \left\{ 0,1\right\} \), since
and \(g, g'\) depend on \(\left\| u\right\| ^2\).
The induction step from m to \(m+1\) can be carried out by differentiating the identity (41). For even n, the derivative with respect to \(u^j\) of the right hand side is
Multiplication by \(u^j\) and \(f^j\), respectively, yield
Similarly, for odd n, the derivative of the right hand side is
and multiplication by \(u^j\) and \(f^j\), respectively, result in
For all n, multiplication of the derivative of the right hand side by \(u^j\) doesn’t change the direction while multiplication by \(f^j\) flips the direction from u to f and vice versa.
The derivative with respect to \(u^j\) of the left hand side of (41) is
Multiplication of all but the first term on the right hand side by \(u^j\) doesn’t change the direction while multiplication by \(f^j\) flips the direction from u to f and vice versa, exactly as for the derivative of the right hand side of (41). Hence, the term \(f^i_{j_1 \ldots j_m j} f^{j_{1}} \ldots f^{j_{n}} u^{j_{n+1}} \ldots u^{j_{m}}\) must show the same behavior, proving the induction hypothesis (41) for \(m+1\) instead of m.
\(\square \)
Lemma 3
For the Euclidean Hamiltonian system (23) and a rooted tree t,
where \(\parallel \) indicates that two vectors are parallel.
Proof
The result is proved by induction using the hypothesis “Consider a rooted tree \(t = [t_1, \ldots , t_m]\) with elementary differential \(F(t)(u_0) = f^{(m)}(u_0)\bigl ( F(t_1)(u_0), \ldots , F(t_m)(u_0) \bigr )\). If a leaf is added to one of the \(t_i\) or the direction of one of the arguments of \(f^{(m)}(u_0)\) is changed from \(u_0\) to \(f(u_0)\) or vice versa, the direction of \(F(t)(u_0)\) changes from \(u_0\) to \(f(u_0)\) and vice versa. Additionally, (48) holds.”
The induction hypothesis is fulfilled for the base case \(|t| = 1\) because of (42).
Induction step: Appending a leaf or changing the direction of one of the arguments flips the direction because of the induction hypothesis. The bushy trees behave as desired because of Lemma 2. \(\square \)
Proof of Theorem 1
To generalize the approach for the linear case in the proof of Theorem 2, the leading order term of \(\gamma - 1\) has to be computed and \(u_+^\gamma \) has to be compared with \(u(\gamma {\varDelta t})\).
The relaxation parameter \(\gamma \) can be written as [25, eq. (11) and Remark 4]
Hence, the denominator of \(\gamma \) is the numerator plus a high order correction \(\left\| u_+\right\| ^2 - \left\| u_0\right\| ^2\), exactly as in the linear case.
For \(n \in {\mathbb {N}}\), the approximate solution of the baseline RK scheme after one step can be expanded as [4, eq. (313c)]
For an at least second order baseline scheme, the numerator of \(\gamma \) is
Because of (42),
This is in perfect agreement with the corresponding term \(\left\| L u_0\right\| ^2\) in the linear case.
Since the baseline method has an order of accuracy p,
where \(\ell _{\mathrm {ot}}\) denotes the leading order term. In conclusion, the relaxation parameter \(\gamma \) can be expanded as
To compute the order of accuracy, the expansions [4, eqs. (311d) and (313c)]
will be used. The order conditions
are satisfied for the baseline RK scheme. Hence,
Inserting the value of \(\gamma \) and the only rooted tree
of order two,
Using \(\Vert u_0\Vert ^2 = \Vert u({\varDelta t})\Vert ^2\) and the expansions (50) and (55),
The last sum on the right hand side vanishes, since \(|t_1|, |t_2| \in \left\{ 1, \ldots , p\right\} \) and consequently \(\varPhi (t_i) = \nicefrac {1}{t_i!}\) because of the order conditions.
Finally, using Lemma 3 and inserting \(f' f(u_0)\), noticing that \(\Vert u_0\Vert ^2 = |q_0|^2 + |p_0|^2\),
Hence, the RRK method has an order of accuracy \(p+1\). \(\square \)
Rights and permissions
About this article
Cite this article
Ranocha, H., Ketcheson, D.I. Relaxation Runge–Kutta Methods for Hamiltonian Problems. J Sci Comput 84, 17 (2020). https://doi.org/10.1007/s10915-020-01277-y
Received:
Revised:
Accepted:
Published:
DOI: https://doi.org/10.1007/s10915-020-01277-y
Keywords
- Runge–Kutta methods
- Relaxation Runge–Kutta methods
- Hamiltonian problems
- Energy conservation
- Structure preservation
- Geometric numerical integration