A note on the continuous-stage Runge-Kutta-(Nystr\"om) formulation of Hamiltonian Boundary Value Methods (HBVMs)
Pierluigi Amodio, Luigi Brugnano, Felice Iavernaro

TL;DR
This paper explores the continuous-stage Runge-Kutta(-Nyström) formulation of Hamiltonian Boundary Value Methods (HBVMs), providing deeper insight into their structure and properties for energy-conserving numerical solutions of Hamiltonian problems.
Contribution
It introduces a continuous-stage formulation of HBVMs, enhancing understanding of their structure and potential advantages in solving Hamiltonian systems.
Findings
Provides a new perspective on HBVMs as continuous-stage methods
Deepens theoretical understanding of energy-conserving numerical methods
Facilitates potential improvements in numerical algorithms for Hamiltonian problems
Abstract
In recent years, the class of energy-conserving methods named Hamiltonian Boundary Value Methods (HBVMs) has been devised for numerically solving Hamiltonian problems. In this short note, we study their natural formulation as continuous-stage Runge-Kutta(-Nystr\"om) methods, which allows a deeper insight in the methods.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
A note on the continuous-stage Runge-Kutta(-Nyström) formulation of Hamiltonian Boundary Value Methods (HBVMs)
Pierluigi Amodio1
Luigi Brugnano2
Felice Iavernaro1
(1 Dipartimento di Matematica, Università di Bari, Italy, {pierluigi.amodio,felice.iavernaro}@uniba.it
2 Dipartimento di Matematica e Informatica “U. Dini”, Università di Firenze, Italy, [email protected])
Abstract
In recent years, the class of energy-conserving methods named Hamiltonian Boundary Value Methods (HBVMs) has been devised for numerically solving Hamiltonian problems. In this short note, we study their natural formulation as continuous-stage Runge-Kutta(-Nyström) methods, which allows a deeper insight in the methods.
Keywords: continuous-stage Runge-Kutta methods, Runge-Kutta-Nyström methods, Hamiltonian Boundary Value Methods, HBVMs.
MSC: 65L05, 65P10.
1 Introduction
The numerical solution of Hamiltonian problems has been recently tackled by defining energy-conserving methods, which can be regarded as continuous-stage Runge-Kutta (RK, hereafter) methods (e.g., [34, 18, 30, 36]). In their simplest (and most effective) form,111For a more general form which, however, we shall not consider here, we refer, e.g., to [33]. continuous-stage RK methods are “methods” that, when applied for solving an initial value problem for ODEs (ODE-IVP, hereafter), which we assume without loss of generality in the form
[TABLE]
with analytical, define an approximating function such that
[TABLE]
with , and a corresponding approximation to ,
[TABLE]
As is usual, this procedure can be summarized by the following (generalized) Butcher tableau,
[TABLE]
We observe that (2)-(3) is not yet an actual numerical method, due to the fact that the involved integrals need to be conveniently approximated by means of quadrature rules. In so doing, one obtains “usual” RK methods.222I.e., having discrete stages. Nevertheless, (2)-(3) can be useful for purposes of analysis [29, 20, 35, 36, 38, 37, 32] since, essentially, it allows to discuss all Runge-Kutta methods derived by using different quadratures for approximating the involved integrals. In particular, the papers [38, 37] have inspired the present note, where we provide the continuous-stage RK formulation of Hamiltonian Boundary Value Methods (HBVMs) [17, 16, 18, 21, 24, 12, 14], a class of energy-conserving methods for Hamiltonian problems, which have been developed along several directions [4, 13, 22, 23, 26, 8, 9], including Hamitonian BVPs [1], highly-oscillatory problems [25, 2], Hamiltonian PDEs [7, 3, 15, 6, 10, 27, 11], and also considering their efficient implementation [19, 5]. Here, we shall also consider the continuous formulation of such methods when applied for solving special second-order problems [12], i.e., problems in the form
[TABLE]
where, for the sake of brevity, we shall again assume to be analytical.
With these premises, the structure of the paper is as follows: in Section 2 we study the case of first order ODE problems; Section 3 is devoted to study the case where one solves special second-order problems; at last, a few concluding remarks are drawn in Section 4.
2 The framework
Generalizing the arguments in [20], let us consider the orthonormal Legendre polynomial basis on the interval :
[TABLE]
where is the set of polynomials of degree . Then, the ODE-IVP (1) can be written, by expanding the right-hand side along the Legendre basis, as
[TABLE]
from which, integrating side by side, one obtains the following formal expression for the solution of (1):
[TABLE]
The above equations can be cast in vector form by introducing the infinite vectors
[TABLE]
respectively as:
[TABLE]
and
[TABLE]
Moreover, by considering that
[TABLE]
with the identity operator and
[TABLE]
one also obtains that
[TABLE]
Setting we can cast (10) as:
[TABLE]
which, by virtue of (11)–(13), can be also written as
[TABLE]
In other words, we are speaking about the application of the following continuous-stage RK method to problem (1) :
[TABLE]
As is clear, by virtue of (11)-(12), the coefficients of this “continuous-stage RK method”, providing the exact solution of (1), are given by
[TABLE]
2.1 Polynomial approximation
In order to obtain a polynomial approximation to , let us now introduce the truncated vectors
[TABLE]
in place of the corresponding infinite ones in (8). In so doing, we replace (16) with the continuous-stage RK method
[TABLE]
whose coefficients are now polynomials of degree . Consequently, by setting now the approximation to , one obtains:
[TABLE]
The following straightforward result holds true.
Theorem 1
The continuous-stage RK method (19)-(20) coincides with the HBVM method in [18].333In particular when one retrieves the AVF method in [34].
Proof In fact, from (18), one has that (20) is equivalent to
[TABLE]
which, according to [18, Definition 1] (see also [14]), is the Master Functional Equation defining a HBVM method.
Furthermore, by considering that (see (18) and (12))
[TABLE]
one easily obtains that (compare with (17))
[TABLE]
As a result, from (19) and (22), one obtains that
[TABLE]
which is clearly equivalent to (20).
Remark 1
We observe that, in a sense, (24) can be regarded as a continuous extension of the -transformation in [31, Section IV.5]. Moreover, by considering, in place of (24), the following Butcher tableau,
[TABLE]
one obtains the continuous extension of the low-rank symplectic methods in [28].
2.1.1 Discretization
We conclude this section by recalling that [18, 20, 12] for the polynomial defined in (20)-(21), one has .444One could obtain the result also by using the symplifying assumptions for continuous-stage RK methods [35, 36, 33]. Moreover, by approximating the integrals
[TABLE]
appearing in (21) by means of a Gauss-Legendre formula of order , one obtains a HBVM method, which retains the order of the approximation defined by (21), for all . In particular, when , one obtains the -stage Gauss-Legendre collocation method. As a result, the Butcher tableau of a HBVM method turns out to be given by
[TABLE]
with the matrix defined in (22),
[TABLE]
the vectors containing the weights and abscissae of the quadrature, respectively,555Any quadrature is in principle allowed, provided that it is enough accurate.
[TABLE]
and
[TABLE]
In particular, from (2.1) one obtains that the entries of matrix in (25) are given by
[TABLE]
3 Second order problems
Inspired by [38, 37] (see also [12]), we now consider the case of special second order problems, i.e., ODE-IVPs in the form (4). By setting , one then obtains the following equivalent system of first order ODEs,
[TABLE]
HBVMs have been considered for numerically solving this problem [19]. We can then consider the use of HBVM, too. To begin with, by applying same steps as above, one then obtains that (29) can be formally written as
[TABLE]
Simplifying the expressions, integrating side by side, and imposing the initial conditions, then gives
[TABLE]
Substituting the second equation in the first one, and taking into account (11)-(12), then gives, setting e_{1}=\left(\begin{array}[]{ccc}1,&0,&\dots{}\end{array}\right)^{\top} and considering that ,
[TABLE]
where, by considering that (see (12))
[TABLE]
and taking into account (8), we have set :
[TABLE]
Moreover, by setting and (see (29)) , one obtains
[TABLE]
and, by also considering that , ,
[TABLE]
Next, by taking into account (11), one obtains:
[TABLE]
In conclusion, we can summarize the above procedure as follows (see (3)):
[TABLE]
In other words, we are speaking about the application of the following “continuous-stage Runge-Kutta-Nyström (RKN, hereafter) method” for solving problem (29), i.e., (4) :
[TABLE]
which provides the exact solution of the problem.
3.1 Polynomial approximation
As done for first order problems, also in this case we can consider a polynomial approximation to . This is done by resorting to the same finite vectors and matrices defined in (18) and (22), resulting into the following continuous-stage RKN method:
[TABLE]
which defines the application of the HBVM method for solving (4). One has, then,
[TABLE]
It is well-known [12, 14] that .666Also in this case, one could derive the result through the simplifying assumptions for continuous-stage RKN methods [37].
Remark 2
We observe, however, that in order for (32) to hold, one must have . Conversely, one would obtain , in place of .
Moreover, considering that (compare with (30))
[TABLE]
one obtains:
[TABLE]
in place of (3).
3.1.1 Discretization
We conclude this section by recalling that, by approximating the integrals appearing in (36) by means of a Gauss-Legendre formula of order , one obtains a HBVM method, which retains the order of the approximation defined by (36), for all .777In particular, when , one obtains the RKN method induced by the -stage Gauss collocation method, . The Butcher tableau of this -stage RKN method turns out to be given by:
[TABLE]
with the Hadamard (i.e., componentwise) product, and the same matrices and vectors defined in (22) and (26)–(28). As in the case of first order problems, one has that the entries of the Butcher matrix in (39) are given by (see (38))
[TABLE]
for all and .
4 Conclusions
In this paper, we have studied the formulation of the class of energy-conserving methods named Hamiltonian Boundary Value Methods (HBVMs) as continuous-stage RK methods. When applied for solving special second-order problems, such methods also provide a class of continuous-stage RKN methods, whose derivation has been provided in full details. The formulation of HBVMs as continuous-stage RK/RKN methods, in turn, is interesting by itself, even though the efficient implementation and analysis of the methods is better addressed, in our opinion, in their original formulation (see, e.g., the monograph [12] or the review paper [14].)
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] P. Amodio, L. Brugnano, F. Iavernaro. Energy-conserving methods for Hamiltonian Boundary Value Problems and applications in astrodynamics. Adv. Comput. Math. 41 (2015) 881–905.
- 2[2] P. Amodio, L. Brugnano, F. Iavernaro. Analysis of Spectral Hamiltonian Boundary Value Methods (SHBV Ms) for the numerical solution of ODE problems. Numer. Algorithms (2019) 1–20. https://doi.org/10.1007/s 11075-019-00733-7 · doi ↗
- 3[3] L. Barletti, L. Brugnano, G. Frasca Caccia, F. Iavernaro. Energy-conserving methods for the nonlinear Schrödinger equation. Appl. Math. Comput. 318 (2018) 3–18.
- 4[4] L. Brugnano, M. Calvo, J.I. Montijano, L. Rández. Energy preserving methods for Poisson systems. J. Comput. Appl. Math. 236 (2012) 3890–3904.
- 5[5] L. Brugnano, G. Frasca Caccia, F. Iavernaro. Efficient implementation of Gauss collocation and Hamiltonian Boundary Value Methods. Numer. Algorithms 65 (2014) 633–650.
- 6[6] L. Brugnano, G. Frasca Caccia, F. Iavernaro. Line Integral Solution of Hamiltonian PD Es. Mathematics 7 (3) (2019) article n. 275. https://doi.org/10.3390/math 7030275 · doi ↗
- 7[7] L. Brugnano, G. Frasca Caccia, F. Iavernaro. Energy conservation issues in the numerical solution of the semilinear wave equation. Appl. Math. Comput. 270 (2015) 842–870.
- 8[8] L. Brugnano, G. Gurioli, F. Iavernaro. Analysis of Energy and Q Uadratic Invariant Preserving (EQUIP) methods. J. Comput. Appl. Math. 335 (2018) 51–73.
