Numerical Calculation of Lyapunov Exponents PDF
Numerical Calculation of Lyapunov Exponents PDF
yO) J; kos at aL /. Threadly > yO + K1/2) J; Kae @t ACF /. Threadly ~> y0 + 12/2) 1; kos ot AL /- Toreadly -> yO + 43) 15 yo (eh + 2K2 +243 + KO/6] 80 THE MUTHEMATICALOURNAL © 196 eon besos ‘Topaogial Dynamics of LE aasdoot Simension the aactor spscrum 1 Fixed point ~3 2 apes 7 Hyperion T> 3 Chior on? 3eDea ___Hypercuos@® 0-3 eet Fixed point aan Period Mocion oon ot (w= Thor Qedens t (wo2}ehuos peg Qe dons keleDeN “TABLE 1. LOE specrum of continuous tine atactors rom Kein and Bier 1940, Wis TntYorEQ(F_List, OPhiLList, x_List, Phi List, xO_List, Phi0.List, th, dt] = Moduletin, f, y, yO, yt, engthls0]; Flatten[Join(F, 0Phi]]; y= Flatten(Joinlr, Pill: yO = Flstten(Join(xo, Phio}}; yt = Nest{ RiSteplf, y, #, Ndt]]8, MIyOL, Round(NCe1/at]) J; First(t], Restie)}e @ Partition(yt, 0 We also define functions to compute the Jacobian matrix of F and the Euclidean norm of a vector. vis JocobianPatrin{funs.List, vars.List] <= uter(D, funs, vars) Waele Mormfs] :* SqrtCkx} Choosing a step size of 0.02 and 7'=20, we compute the 3x3 mateix ®p(29) = Day fa): lane T= 205 ine stepsize = 0.025 vie 9 = Lengthts0]s wathe = Arrayla, 05 babe Phi = Meraytby dn, 0BD5 ism OPAL = Phi. TransposeLJacobiantatrda(FOs], 0s ioe PhiO = Tdentstynatria; oa AT, PhiTD = ‘ntarEq(FL, OPhi, x, Phi, 10, Paid, {T, stepsized]; ats aT cows {47.7334, 15.016, 53.42}ihe PRAT // MotriaForm outers uw 2 2 3.1698 10" 4.9580 1? 5.1210 u 2 2 5.9083 10" -8.¢52 10"? o,o0008 10 1 2 2.64816 10 “4.13294 10° 4.84979. 10? In the previous section, we mentioned that 2(x0, to) = Ay for almost al intial conditions 1 and for almost all tangent vectors up. Therefore, we can easily obtain an estimate of the largest LCE by directly applying the definition (3): be u = TabhefRandon{], {02 iih= LogtRorn(PhiT.u}]/T oa 1.46874 The calculation of the entire LCE spectrum is more prob- lematic. Oseledee [1968] shows that one can obtain the entire spectrum by computing the eigenvalues of the matrix, 5 (29)-y{z0), where } (20) isthe adjoint matrix of y(zo), and using the fact that they behave like e274, ..., ¢27*, Unfortunately, for large , (2) is anill-conditioned matrix, ‘because its columns tend to line up with the eigenvector asso: ciated to the largest eigenvalue. Consequently, the small rel ative errors in the largest eigenvalue might contaminate the smaller ones, giving unreliable estimates. To circumvent these problems, we adopt the algorithm discussed in [Benettin etal. 1980], which relies on the ealeu- lation of the order-p LCEs defined in equation 4 and the repeated application of the Gram-Schmidt orthonormaliza tion procedure. Given a set (uy stg} of p linearly independent vectors in RY, the Gram-Schmide procedure generates an orthonormal set (045 «+ Up] of vectors which spans the same subspace spanned by (ty, ..-slp). The vectors v, are given by w= uy = wifi w = uw=(auhr, ou = wr/|iwl, (8) Wp = Up— Supp riders te = wp/llelly where (,-)is the scalar product of vectors. It is easy to show thatthe volume ofthe parallelepiped spanned by (1, ,} ley Following the algorithm of [Benettin etal. 1980], we start by choosing an initial condition zp and an n xn matrix Uo=[us, «5 ud]. Using the Gram-Schmide procedure, we calculate the cortesponding matrix of orthonormal vectors Vo= [vfs ev] and integrate the variational equation (7) from {to, Vo) for a short interval 7, to obtain 2y = f"(zg) and Vol fuivotih= lll Ty 5 [upp es Ue] = Dy f7(Uo) = @rlto)« [uf ..., us Again, we calculate the orthonormalized version of U; and integrate the equation from [z;, V3] for T seconds to obtain 22) and Uy. We repeat this integration-orthonormalization procedure K times. During the k-th step, the p-dimensional volume Vol? defined in (4) increases by a factor of || wt || -- up|], where (wf, sm] is the set of orthogonal vectors calculated from Uy using (8). The definition (4) then implies (a0, th) = tin 1 Stn( pol ‘ AP (#0, Uo) = izn etn ot -~- Ip). Subtracting 27"! from 22 and using (5), we obtain the p-th LCE of order 1: ay fim 2S lato “This rlation suggests an easy way to calulate the Lyapunov spectrum, For a suitable value of 7, continue to ealeulate ‘the quantities FF Dwi oo BEV Ialuhlis an, until they show convergence (for example, using the rela tivelabsolute convergence test proposed in [Parker and Chia 1989, 302}) or until a maximum (sufficiently large) iteration count is reached. This procedure can be easily implemented with Mathe- ‘matica. Te function GranSchuidt is defined in the package Linear kigebra“Orthogonshization". baits <€ Lineartigebra*Orthogonaization” wath T= 0.45 wets PRIT = Pais lois = 8005, 2a Dot {0T, PhiT} = IntvartqQ FEC, OPRi, x, Phi, af, Pai, {T, stepsize} X= GranSchnidt(PhiT, Kornalized -> False); norms = Rep(torm, W; 5 = Appendts, norms]; hit = W/norns, Ws isis Leas « Rest[Feldlist(Plus, 0, Logls]II/(T RangelKd); ‘The three LCEs are mass LastDhees) cuane {4.48085, -0.0001195, ~72.4654) vouwes sue 81‘To show the convergence of the LCES, we use the Canver- sguncePlot command defined inthe package UE. me «LCE ts ConvergencePlot(lces] : 7 $0 as a a seeps -IQURE 2. Conese ot fh youn specu ote aren model ‘We can obtain the same results using the LCEs¢ command: uss LOESCLF, 49, 20, 50), 0.1, 800, 20, 0.02] cum 461. 48045, -0.0001195, -22.4654), 2.06558) ‘This function returns the LCE specteum and the Lyapunov dimension of the atractor. The convergence plot of the LCEs can be displayed by setting the option LCsFlat to rus. ‘An interesting example of a hyperchaotic continuous-time attractor (“Réssler hyperchaos") with two positive LCEs is siven by Inso= eossderE Ca Yay Zap WDD 2 Gy, x60. you, 344 z, 0.05 v= 0.5 2 (See [Rossler 1991].) The LCE spectrum is vas Leesrossler = LcEsC{rossler, {-10, -14, 0.3, 28}, 0.1, 2000, 1, 0.02] we €(0.182433, 0.006138, -0.00407495, -24.0851}, 3.00596) A 3D projection of the four-dimensional attractor of this dynamical system can be obtained with the PhaseSpacet command. isms PhaseSpaceC[rossler, £10, -14, 0.3, 29, 100, 20, 0.02, (1,2,31] 82 THE MATHEMATICA JOURNAL © 1985 ile Fnan itone FIGURE 3. A pojnton oh ou inarsoa Ress part ata The last argument {1,2,3} in the PhaseSpacet command speci- fies thatthe first three variables of the model (3, y, and 2) are to be plotted on the 2, y, 2 axes, respectively Finally, we can also make use of the algorithm in [Benettin et al. 1980] for estimating the LCEs of a nonautonomous system, for example the Duffing, model: ih duffingL, yy tH wih= LEESCLdutting, (0.8, 0.7, 0.2b, 0.05, 1000, 10, 0.02, LeEsPlot -> True] comsae 40. 0794484, 0., 0.159148}, 2.49730} Ys Ol y= 3+ 10 Cosle], D Lees | 020 40 «60001000 Sueps aun 4. Cnn pte be apr pec foe Dig del In this cas, there is a spurious Lyapunov exponent which converges to zero. It corresponds to the additional trivial evolution equation # = 1LCEs of Discrete Systems ‘The discrete-time case is much simpler because, by the chain rule, DaSi\to) = If Mxg)) I fleo)) Seas where J(za) = D-f(2)| nay: To avoid the above-mentioned numerical problems in the calculation of Df'z), and to show a different approach to the numerical calculation of the whole LCE spectrum, here we prefer to follow the simpler algorithm of [Eckman and Ruelle 1985]. We star by using the classical QR decomposition to write J(z) as Jtz) = QiRiy ‘where Q; is an orthogonal matrix and Ris upper triangular, ‘Then, for F=2, 3,..5f, we define UPON Qe 9) and decompose Ji’ = Qi. Clearly, Def'(z) = QuRy ~ Ry. It is possible to show that the diagonal elements u! of the uupper-triangular matrix product Y"" = R, Ry satisfy a “o 1 lim + inv =m ane Let us take, for example, the fourdimensional discrete time dynamical system wane Otte, WH = 85 = 22 = 0.05 4, x, ys 2d We can estimate the Lyapunov spectrum in the following way. First, define the starting condition and the system dimension: Hiss 10 = (0.1, 0, 0, 0; vis 9 = LengthCa0]; ‘Then, compute the QR decomposition of the Jacobian Jtx), after a 100-step transient: ose x AreayLa, as iss JEp.] s= dacobiamatrix[6Ee], 1] J. Theeadlx -> y) ats at = WestlG, HOO), 100]; i= {Gy P= QRDeconpositionLsCxe]}; Finally, repeat K times the QR decomposition procedure (9): wane K = 10005 wane 590; vans Dol it = Ghat]; {q, = Weconposition(JLst].Transposel 4]; 5 = Append{s, Teble(r(Li,i1], 44, eB], 41; wish Lees © Rest{Foldtist(Plus, 0, ReLLogls]]J1/Range(X]; ‘The LOEs are Ini6= LastChees) cots. {0. 16985, 0.160085, 0.156975, -3.48704) Ings ConvergencePlot ces) 0200 400-600 ~—«00—«1000 seeps FIGURE 8, Conerpne pat ofthe Lapua spectrum oe hypa hima, Again, we can obtain the same results using the LCESD com- mand defined in L¢E.m: nts Leeshyper2 = LeESDEG, {0.1, 0, 0, 0}, 1000, 100] cua 4016985, 0.160085, 0.156375, -3.48004), 3.13966) ‘The presence of three positive LCEs points out that the orbits of the system lie on a so-called “hyper’-chaotic attractor” [klein and Baier 1991), Lyapunov Dimension Kaplan and Yorke (1979, 228] have suggested an interesting conjecture that relates the fractal dimension of the attractor to the Lyapunov spectrum: where the LCEs are ordered in the usual way a8 hy 2s. 2 and where j isthe largest integer such that 2 +--+, > 0. In particular, Kaplan and Yorke suggest that Dis a lower bound of the capacity dimension, that is, D, < De. For more detail, see [Farmer etal. 1983] sith LyppunorBinensionlx} Modulel CL, su, jh, 1 = Sortls, Greater]; sunk = Rest{Felatist{Ptus, 0, 11) (j= LastlPosition(son, -7Positivell; First ~ sua UTIL 1 For the Réssler hyperchaos example, the Lyapunov dimen- sion is given by uss LyapunovDinension( First [Leesrossler]) aor 9.00596 voumes sue 49For the hyper’-chaotic attractor, Dy is vets yapunvDinension First Deeshyper2} st 3.1396 ‘Acknowledgments Lam very geateful to Prof. Giancarlo Benettin for his illumi- nating lectures on ergodic theory and many helpful discus- sions. Special thanks to Gianna Zuliani and Elena Alberti for their kind suggestions, and Giovanni Tondini for placing, ‘Mathematica at my disposal. Lam also grateful to Troels, Petersen and an anonymous reviewer for useful revisions to the paper and associated Mathematica program, References Beltrami, E. 1989. Mathematics for Dynamic Modeling. Boston: Academic Press. Benettn, Ga, L. Galganiy A. Giorgi, and J.M. Streleyn, 1980. Lyapunov characteristic exponents for smooth dynamical systems and for Hamiltonian systems: A method for computing all of them, Part 2: Numerical application. Meccanica 15:21-30. Fekmann, JP, and D. Ruelle, 1985, Ergodic theory of chaos and strange attractors, Reviews of Modern Physics $7 (3, Part I): 617-656. Falconer, K.J. 1985. The Geometry of Fractal Sets. Cam- bridge University Press. Farmer, J.D., E. Ort, and J.A. Yorke. 1983. The dimension of chaotic attractors. Physica 7D:153-180. Geist, KU, Parlit, and W. Lauterborn, 1990. Comparison of different methods for computing Lyapunov exponents. Progress of Theoretical Physics 83(5): 875-893. Guckenheimer, J., and P. Holmes. 1983. Nonlinear Oscilla- tions, Dynamical Systems and Bifrcation of Vector Felds. Berlin: Springer Verlag. (94 THE MATHEMATICA JOURNAL © 196 le Fearn Abies Haken, H, 1983. At least one Lyapunov exponent vanishes if the trajectory of an attractor does not contain a fixed point. Physics Letters 944(2}: 71-72. Kaplan, J., and J.A. Yorke. 1979. Functional differential ‘equations and the approximation of fixed points. In Suom- ‘merschool and Conference on Functional Differential Equations and Approximation of Fixed Points, University ‘of Bonn, 1978, edited by H.-O. Peitgen and H.-O. ‘Walther. Lectures Notes in Mathematics 730. Springer Verlag. Klein, M., and G. Baier, 1991. Hierachies of dynamical sys- tems. In A Chaotic Hierarchy, edited by G. Baier and M. Klein, Singapore: World Scientific. Maeder, R. 1991. Programming in Mathematica, 2nd ed. ‘Addison-Wesley. Oseledee, V.I, 1968. A multiplicative ergodic theorem: Lyapunov characteristic numbers for dynamical systems. Trans. Moscow Math. Soc. 19:197-231. Parkes, TS., and L.O. Chua. 1989. Practical Numerical ‘Algorithms for Chaotic Systems. New York: Springer- Verlag. Réssler, O.E. 1991. The chaotic hierarchy. In A Chaotic Hierarchy, edited by G. Baier and M. Klein. Singapore: World Scientific. Wiggins, $. 1988. Global Bifurcations and Chaos: Analytical Methods. New York: Springer-Verlag.