SciELO - Scientific Electronic Library Online

 
vol.59 número2Astrophysical studies of 9 unstudied open star clusters using GAIA DR3A deep study of the open cluster NGC 5288 Using photometric and astrometric data from GAIA DR3 and 2MASS índice de autoresíndice de materiabúsqueda de artículos
Home Pagelista alfabética de revistas  

Servicios Personalizados

Revista

Articulo

Indicadores

Links relacionados

  • No hay artículos similaresSimilares en SciELO

Compartir


Revista mexicana de astronomía y astrofísica

versión impresa ISSN 0185-1101

Rev. mex. astron. astrofis vol.59 no.2 Ciudad de México oct. 2023  Epub 18-Oct-2024

https://doi.org/10.22201/ia.01851101p.2023.59.02.02 

Articles

On the correct computation of all lyapunov exponents in hamiltonian dynamical systemsS

D. D. Carpintero1  2 

J. C. Muzzio1  2 

1Facultad de Ciencias Astronómicas y Geofísicas, Universidad Nacional de La Plata, Paseo del Bosque s/n, 1900 La Plata, Argentina (ddc,jcmuzzio@fcaglp.unlp.edu.ar).

2Instituto de Astrofísica de La Plata, UNLP-Conicet, Paseo del Bosque s/n, 1900 La Plata, Argentina (ddc,jcmuzzio@fcaglp.unlp.edu.ar).


ABSTRACT

The Lyapunov characteristic exponents are a useful indicator of chaos in astronomical dynamical systems. They are usually computed through a standard, very efficient and neat algorithm published in 1980. However, for Hamiltonian systems the expected result of pairs of opposite exponents is not always obtained with enough precision. We find here why in these cases the initial order of the deviation vectors matters, and how to sort them in order to obtain a correct result.

Key Words: chaos; galaxies: kinematics and dynamics; methods: numerical; planets and satellites: dynamical evolution and stability

RESUMEN

Los exponentes característicos de Lyapunov constituyen un útil indicador de caos en sistemas dinámicos astronómicos. Habitualmente se los calcula mediante un algoritmo muy claro y eficiente publicado en 1980. Sin embargo, para sistemas hamiltonianos, el resultado esperable de pares de exponentes opuestos no siempre se obtiene con suficiente precisión. Aquí encontramos por qué en estos casos es importante el orden inicial de los vectores de desviación, y cómo deben distribuirse a fin de obtener un resultado correcto.

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)

λi1Nτk=1Nlnαi(tk), (1)

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:

λ1λ2λn. (2)

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)

Φ(x,y)=v022ln[Rc2+x2+y2q2+1Rex2+y2x2-y2], (3)

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 (x, y, x˙, y)˙= (0.1,0.5,0,1). From top to bottom, the sets of dots are generated by deviation vectors originally pointing along the directions ex,ey,ex˙ and ey˙, respectively. All the computations were performed with double precision. Since we are plotting the absolute value of the LCEs, if two of them were the opposite of the other two -as expected for a Hamiltonian system- only two sets of dots would be seen. 

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

C1pdq=C2pdq. (4)

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 (q,p)=(x,y,x˙,y˙). If we choose for C 1 the unit square in the plane (q1,p1)=x,x˙ at t 0, it will enclose the area spanned by δ w x (t 0) and δ w (t 0), and the Poincaré first invariant will have only the term corresponding to x˙dx. Furthermore, by virtue of Stokes’s theorem, the line integral will be equal to the enclosed area. If we choose the initial deviation vectors as before (unit vectors pointing along each Cartesian axis), this area will be equal to one, and by the invariance of the integral the area of the parallelogram spanned by δ w x (t) and δ w (t) for any t > t 0 will remain unitary.

Now, the orthogonalization of the Gram-Schmidt algorithm allows us to compute the area of the parallelogram spanned by δwxt and δwx˙(t) as simply αxαx˙, and since this area should be always equal to 1, we should have

lnαx(t)=-lnαx˙(t) (5)

for all t. The same will happen with the y coordinate. Looking at equation (1), we see that the deviation vectors started on the x and x˙ axes will give a pair of opposite LCEs, while those started on the y and y˙ axes will give the other pair.

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 δw4=δwx˙ in order to obtain the pair of opposite LCEs. But, on the other hand, this is not necessarily the order in which they are entered into the Gram-Schmidt routine. If these vectors are not the first and fourth, we are forcing the algorithm to find an opposite value of λ 1 with a vector that is not the expected one, thus compelling the routine to give the correct modulus to a vector that was not the one that formed a unitary parallelogram with the first. This is numerically inefficient. Therefore, since the first and last deviation vectors inserted into the Gram-Schmidt routine should give the maximum LCE and its opposite sibling, they should be those originally pointing along a Cartesian coordinate and its corresponding velocity (in any order among them). The same occurs for the second and penultimate vectors, etc.

Figure 2 shows the LCEs of the same orbit as in Figure 1, but computed with the deviation vectors ordered originally in the directions (ex,ey,ey˙,ex˙). There are four sets of points plotted in the figure, generated by the evolution of those vectors. But the sets generated by ex and ex˙ are superimposed, so only one set is visible (the top one in the figure). In the same way, the two sets generated by ey and ey˙ are superimposed (the bottom set in the figure). Thus, we can see that the very same algorithm with the same orbit used before gives now exact opposite LCEs, as expected.

Fig. 2 LCEs of the same orbit of Figure 1, but starting with unitary deviation vectors δw1=ex,δw2=ey, δw3=ey˙ and δw4=ex˙. The top set of points were generated by ex and ex˙, though they are the same, so a unique set is seen. The same for the bottom set, which is a superposition of the sets generated by ey and ey˙

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.

Fig. 3 Top: logarithmic plot of the largest (λ 1) versus the second largest (λ 2) LCEs for a perturbed cubic oscillator (see text for details) using the standard ordering of the deviation vectors. Bottom: the same but using the proposed ordering of the deviation 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.

Acknowledgements

The authors are very grateful to Juani Rodriguez for his technical support and they acknowledge financial support from the Universidad Nacional de La Plata, Argentina [Proyecto 11/G168] and from the Consejo Nacional de Investigaciones Científicas y Técnicas, Argentina [PIP 2169].

REFERENCES

Benettin, G., Galgani, L., & Strelcyn, J.-M. 1976, PhRvA, 14, 2338, https://doi.org/10.1103/ PhysRevA.14.2338 [ Links ]

Benettin, G., Galgani, L., Giorgilli, A., & Strelcyn, J.-M. 1980, Mecc, 15, 9 [ Links ]

Binney, J. 1982, MNRAS, 201, 1, https://doi.org/10.1093/mnras/201.1.1 [ Links ]

Binney, J. & Spergel, D. 1982, ApJ, 252, 308, https://doi.org/10.1086/159559 [ Links ]

Carpintero, D. D. & Aguilar, L. A. 1998, MNRAS, 298, 1, https://doi.org/10.1046/j.1365-8711.1998.01320.x [ Links ]

Carpintero, D. D., Maffione, N., & Darriba, L. 2014, A&C, 5, 19, https://doi.org/10.1016/j.ascom.2014.04.001 [ Links ]

Carpintero, D. D. & Muzzio, J. C. 2016, MNRAS, 459, 1082, https://doi.org/10.1093/mnras/stw720 [ Links ]

Cincotta, P. M., Giordano, C. M., & Simó, C. 2003, PhyD, 182, 151, https://doi.org/10.1016/s0167-2789(03)00103-9 [ Links ]

Cincotta, P. M. & Simó, C. 2000, A&AS, 147, 205, https://doi.org/10.1051/aas:2000108 [ Links ]

Contopoulos, G. 2002, Order and chaos in dynamical astronomy (Berlin Springer) [ Links ]

Contopoulos, G. & Voglis, N. 1996, CeMDA, 64, 1, https://doi.org/10.1007/BF00051601 [ Links ]

Darriba, L. A., Maffione, N. P., Cincotta, P. M., & Giordano, C. M. 2012a, in 3rd La Plata International School on Astronomy and Geophysics: Chaos, diffusion and non-integrability in Hamiltonian Systems Application to astronomy, ed. C. E. P. M. Cincotta, C. M. Giordano (Universidad Nacional de La Plata Asociación Argentina de Astronomía), 345 [ Links ]

Darriba, L. A., Maffione, N. P., Cincotta, P. M., & Giordano, C. M. 2012b, IJBC, 22, 1230033, https://doi.org/10.1142/s0218127412300339 [ Links ]

Fouchard, M., Lega, E., Froeschlé, C., & Froeschlé, C. 2002, CeMDA, 83, 205 [ Links ]

Froeschlé, C., Gonczi, R., & Lega, E. 1997, Planet. Space Sci., 45, 881, https://doi.org/10.1016/S0032-0633(97)00058-5 [ Links ]

Jackson, E. A. 1989, Perspectives of Nonlinear Dynamics, Volume 1 (Cambridge, MA: CUP) [ Links ]

Laskar, J. 1990, Icar, 88, 266, https://doi.org/10.1016/0019-1035(90)90084-M [ Links ]

Lega, E. & Froeschlé, C. 2001, CeMDA, 81, 129 [ Links ]

Maffione, N. P., Darriba, L. A., Cincotta, P. M., & Giordano, C. M. 2011, CeMDA, 111, 285, https: //doi.org/10.1007/s10569-011-9373-z [ Links ]

______. 2013, MNRAS, 429, 2700, https://doi.org/10.1093/mnras/sts539 [ Links ]

Merritt, D. & Fridman, T. 1996, ApJ, 460, 136, https://doi.org/10.1086/176957 [ Links ]

Muzzio, J. C. 2017, MNRAS, 471, 4099, https://doi.org/10.1093/mnras/stx1922 [ Links ]

Papaphilippou, Y. & Laskar, J. 1998, A&A, 329, 451 [ Links ]

Sándor, Z., Erdi, B., & Efthymiopoulos, C. 2000, CeMDA, 78, 113, https://doi.org/10.1023/A:1011112228708 [ Links ]

Sándor, Z., Erdi, B., Széll, A., & Funk, B. 2004, CeMDA, 90, 127, https://doi.org/10.1007/ s10569-004-8129-4 [ Links ]

Šidlichovský, M. & Nesvorný, D. 1996, CeMDA, 65, 137, https://doi.org/10.1007/BF00048443 [ Links ]

Skokos, C. 2001, JPhA, 34, 10029, https://doi.org/10.1088/0305-4470/34/47/309 [ Links ]

Skokos, C., Bountis, T. C., & Antonopoulos, C. 2007, PhyD, 231, 30, https://doi.org/10.1016/j.physd.2007.04.004 [ Links ]

Tabor, M. 1989, Chaos and Integrability in Nonlinear Dynamics: An Introduction (Wiley Interscience) \href{https://books.google.com.ar/books?id=TkvvAAAAMAAJ} [ Links ]

Udry, S. & Pfenniger, D. 1988, A&A, 198, 135 [ Links ]

Voglis, N., Contopoulos, G., & Efthymiopoulos, C. 1999, CeMDA, 73, 211, https://doi.org/10.1023/A:1008307332442 [ Links ]

Voglis, N. & Contopoulos, G. J. 1994, JPhA, 27, 4899, https://doi.org/10.1088/0305-4470/27/14/017 [ Links ]

Received: March 07, 2023; Accepted: April 03, 2023

Creative Commons License This is an open-access article distributed under the terms of the Creative Commons Attribution License