1. INTRODUCTION
The importance of chaos in astronomical dynamical systems is generally recognized nowadays and a complete summary of this subject can be found in the textbook of Contopoulos (2002). The algorithms commonly used to determine the regularity or chaoticity of a dynamical system can be grouped into two categories: those based on the frequency analysis of the orbits (e.g. Binney & Spergel 1982; Laskar 1990; Šidlichovský & Nesvorný 1996; Carpintero & Aguilar 1998; Papaphilippou & Laskar 1998) and the so-called variational indicators, based on the behaviour of deviation vectors (e.g. Voglis & Contopoulos 1994; Contopoulos & Voglis 1996; Froeschl´e et al. 1997; Voglis et al. 1999; Cincotta & Simó 2000; Sándor et al. 2000; Skokos 2001; Lega & Froeschlé 2001; Fouchard et al. 2002; Cincotta et al. 2003; Sándor et al. 2004; Skokos et al. 2007; Maffione et al. 2011; Darriba et al. 2012b,a; Maffione et al. 2013; Carpintero et al. 2014). Among the methods of the last group, the computation of the Lyapunov characteristic exponents (LCEs) (Benettin et al. 1976, 1980) stands out not only for being the oldest of them all but also for representing the very definition of chaos. They have been used to investigate chaos in elliptical galaxies, among others, by Udry & Pfenniger (1988), Merritt & Fridman (1996) and by ourselves (see Carpintero & Muzzio (2016) and its references to our previous work).
In the second part of a seminal paper, Benettin et al. (1980) gave for the first time a thorough description of an algorithm to compute all the LCEs of a system, which in turn was based on the theoretical work of the first part (Benettin et al. 1976). This algorithm quickly became a standard.
However, when dealing with a Hamiltonian system, the expected result of paired opposite LCEs is not always achieved with enough numerical precision, notwithstanding the neat procedure of the above-mentioned algorithm. We find here the origin of the problem and an easy way out.
2. SETTING THE STAGE
We assume that we are dealing with a dynamical system described by n differential equations of the first order. To compute the LCEs of one of its orbits with the algorithm of Benettin et al. (1980), one obtains the orbit itself -which we will call the unperturbed orbit- by integrating the corresponding equations of motion, plus the time evolution of n linearly independent vectors, the deviation vectors δ w i , i = 1,...,n, representing the phase space distance between the orbit and n additional orbits -the perturbed orbits- that start near the former. The time evolution of these vectors is obtained by integrating the so-called variational equations, that is, the first variation of the equations of the motion around the original orbit (e.g. Tabor 1989, p. 148). To obtain the LCEs λ i , i = 1,...,n from the deviation vectors, one computes (Benettin et al. 1980)
where α i (t k ) is the modulus of δ w i after an orthogonalization of the set {δ w j } j=1,...,n at time t k , τ is the step of integration, and N a positive integer which has to be large enough to get a good approximation. If the orthogonalization is carried out using the Gram-Schmidt method, the α i ’s can be obtained on the fly. Also, since the computation does not depend on the initial moduli or initial orientation of the δ w i (Benettin et al. 1980), it is customary to set initial deviation vectors of unitary modulus, each one aligned with one of the Cartesian axes.
Let us now assume, to fix ideas, that the LCEs are ordered in descending order according to their values:
Now we may ask: can we determine which of the δ w i ’s will give the α i with which λ 1 is obtained? Clearly, by equation (1), the deviation vector that accumulates the largest modulus after the orthogonalizations will be the one that gives λ 1. This vector is identifiable thanks to three circumstances. First, the orthogonalization at times t k includes a normalization of all the resulting vectors, in order to avoid numerical overflows due to their exponential growth. Thus, all the deviation vectors start their evolution always with the same modulus. Second, all the vectors tend to align towards the direction of maximum growth -the reason why an orthogonalization is done periodically, thus avoiding very small angles between vectors which would be numerically intractable. Therefore, all vectors tend to go into a direction with the same rate of growth; this reason, together with the previous one, allows us to claim that if the interval between t k and t k+1 is not too large, all vectors will have similar moduli just before the orthonormalization step. Third, by using the Gram-Schmidt method, the first vector entering the algorithm will keep its modulus; the second one, instead, will end up with a smaller modulus because it is projected into the subspace orthogonal to the first. The third, fourth, etc. vectors will end up with even smaller moduli, each one being projected into subspaces of lesser dimension. These three reasons together allow us to answer the question posed above: although at short times any vector could be the largest, given enough time the first vector entering the Gram-Schmidt algorithm will grow more than the rest, and will be the one with which λ 1 will be computed.
By reasoning in the same way, one could claim that the second vector entering the Gram-Schmidt algorithm will always have the second-largest modulus and therefore will be the one with which λ 2 will be computed, and so on for the rest of deviation vectors and LCEs. Therefore, if we sort the subindices of δ w i in the order with which they enter the Gram-Schmidt routine (i.e., δ w 1 the first one, δ w 2 the second one, etc.), then each δ w i should give the corresponding λ i -the latter sorted according to inequation (2). Although this is to be expected, it turns out that is not quite true in all cases.
3. THE PROBLEM: HAMILTONIAN SYSTEMS
If the dynamical system under study is Hamiltonian and autonomous, by Liouville’s theorem any volume of the phase space will be conserved along its evolution. From this is not hard to see (e.g. Jackson 1989) that, for any direction of the phase space that stretches exponentially (with corresponding LCE positive), there must be another one that shrinks at the same exponential rate (with an LCE equal to the negative of the latter). Thus, Hamiltonian systems always have pairs of LCEs that are negatives of each other. Also, one of those pairs is always zero. These are strong restrictions that may be used to control whether the computation of the LCEs has been successful. But it turns out that a naïve application of equation (1) does not always achieve this. Figure 1 shows the absolute value of the computed LCEs of an orbit in the two-dimensional Binney potential (Binney 1982)
where (x,y) are Cartesian coordinates and v 0, q, R c and R e are parameters. Since the system is Hamiltonian and autonomous, we expect that λ 1 = −λ 4 and λ 2 = −λ 3, the latter tending to zero as time goes by. However, although the computation was done with double precision, we can see that the four LCEs are not well paired in opposite pairs.

Fig. 1 LCEs of an orbit in the potential of equation (3) with parameters v
0 = 1, q = 0.9, R
c
= 0.14 and R
e
= 3, started at the phase space point
4. THE SOLUTION
An important property of Hamiltonian dynamics is that Poincaré invariants are preserved along the flow (e.g. Tabor 1989). Let q and p stand for the coordinates and momenta of a canonical set, respectively; in addition, let C 1 be any closed curve in the n-dimensional phase space encompassing a tube of orbits, and C 2 any other closed curve enclosing the same set of trajectories. The first Poincaré invariant can be expressed as
We note that C
2 could be the curve C
1 evolved in time. Let us take, to fix ideas, n = 2 and Cartesian coordinates
Now, the orthogonalization of the Gram-Schmidt algorithm allows us to compute the area of the parallelogram spanned by
for all t. The same will happen with the y coordinate. Looking at equation (1), we see that the deviation vectors started on the
But here we see the problem. On the one hand, as we have just seen, if for example δ
w
1 = δ
w
x
, then we must have
Figure 2 shows the LCEs of the same orbit as in Figure 1, but computed with the deviation vectors ordered originally in the directions

Fig. 2 LCEs of the same orbit of Figure 1, but starting with unitary deviation vectors
Besides, using the order of the initial vectors that we propose has the additional and more practically useful advantage that it yields better defined values of the computed LCEs. As an example, we computed the LCEs of orbits in the perturbed cubic force model used by Muzzio (2017) with −0.166843 < e 1 < −0.166507, −0.324941 < e 2 < −0.323994 and grid spacings ∆e 1 = 2−17 and ∆e 2 = 2−16 (see Muzzio, 2017, for details). The integrations were done for 5×106 time units in all the cases. Figure 3 presents the resulting λ 1 versus λ 2 with the usual ordering (top panel), and the same with our ordering (bottom panel). Clearly, the dispersion of the λ 2 values is smaller and their value better defined with our ordering of the initial vectors.
5. CONCLUSION
The results obtained for the LCEs of a Hamiltonian autonomous system with the Benettin et al. (1980) method depend on the order used for the initial deviation vectors. To obtain the expected opposite pairs of LCEs, the deviation vectors should be ordered by pairs, the first, second, etc. ones having to be conjugate with the last, the penultimate, etc., respectively. The results obtained with such an ordering have the additional advantage of resulting in better defined values of the computed LCEs.










nueva página del texto (beta)



