1 INTRODUCTION

The detection of integrals of motion is an important task in the study of dynamical systems. The existence of integrals of motion is related to certain symmetries of the equations of motion of the system (through Noether’s theorem) and gives a deep insight into their time evolution. Furthermore, it simplifies significantly the calculations, since it decreases the independent variables of the system and can be used for the error control of the calculations.

The integrals of motion appear in two main categories: a) the exact integrals of motion and b) the approximate integrals of motion. In the case a) these integrals are analytical mathematical expressions of the variables of the system that do not depend on time. In the case b) the approximate integrals (also called formal integrals) are non-convergent series expansions, truncated at a certain order that remain approximately constant in time.

Formal integrals of motion have been proved to be very useful in dynamical astronomy and especially galactic dynamics. In particular, their construction in the case of autonomous dynamical systems has already been considered in the past, even to high orders using computer algebra [1, 2, 3, 4].

As regards time-periodic Hamiltonians, a general method for calculating formal integrals [5] was first presented as far back as 1966. This method was applied to some simple Hamiltonians of one and two degrees of freedom. However, due to the lack of computer algebra systems at that time, the calculations were made by hand and were limited to second order with respect to the perturbation parameter \(\varepsilon\).

In recent years there has been much interest in time-periodic Hamiltonians, especially in Russia. Most of this work dealt with stability problems in one or more degrees of freedom (e.g., Markeev [6, 7, 8, 9, 10], Kholostova [11, 12, 13], Bardin and Lanchares [14]). More recently Bruno [15, 16] calculated normal forms in particular problems.

On the other hand, some authors (Kandrup [17, 18] and Terzić and Kandrup [19]) have calculated orbits in time-periodic potentials, with emphasis on the generation of chaos.

Our interest in this problem was revived because of our need to compare the classical results with the quantum mechanical results (Efthymiopoulos and Contopoulos [20]).

In the present paper we exploit the power of the Maple Computer Algebra System in order to construct high-order integrals of motion in simple time-periodic Hamiltonian systems. As a first step towards this direction we apply our algorithm on a simple Hamiltonian system whose equations of motion can be written in a single second-order differential equation of the form

$$\displaystyle\frac{d^{2}x}{dt^{\prime 2}}+\Big{[}a-2q\cos(2t^{\prime})\Big{]}x=0.$$
(1.1)

Although this differential equation is linear in \(x\) and there is no chaos in its orbits, it is very useful in applied mathematics. It is the well-known Mathieu equation (ME) [21, 22] and has applications in various fields of physical sciences, such as acoustics (e. g., in the study of an elliptical drum [23]), quantum mechanics (e. g., in the study of the quantum pendulum [24]), general relativity (e. g., in the study of the solutions of wave equations in curved spaces [25]) and quantum chemistry (charged particles in a quadruple field [26]). Many applications of MEs can be found in [27].

As already known from the theory, different parameters in ME can lead to bounded or unbounded motion. We make a detailed study of the orbits and their invariant curves on a stroboscopic surface of section by solving numerically in Python 3.7 the Hamilton equations. In the case of bounded orbits we construct in Maple 2016 an integral of motion which is convergent for small perturbations and describes very well the invariant curves. This integral becomes divergent and the forms of the orbits change abruptly at the threshold of the escapes.

In Section 2 of the present paper we give the Hamiltonian of our model and describe our algorithm for the calculation of formal integrals of motion up to an arbitrary order in the absence of resonances. Then in Section 3 we present our results in the case where the perturbation parameter \(\varepsilon\) is positive, by calculating both the orbits and their stroboscopic sections (i. e., the distribution of their points after successive periods). We apply our algorithm and calculate the integrals at successive orders of the perturbation parameter and show their convergence to the form of the invariant curves on the stroboscopic sections. Then in Section 4 we examine the case of the negative values of the perturbation parameter and in Section 5 we study a formal integral in a resonant case. Finally, in Section 6 we summarise our results and draw our conclusion.

2 INTEGRAL OF THE MATHIEU EQUATION

In the special case of the Mathieu equation we have

$$\displaystyle H=H_{0}+\varepsilon H_{i}=\frac{1}{2}(y^{2}+\omega_{i}^{2}x^{2})-\varepsilon x^{2}\cos(\omega t).$$
(2.1)

The corresponding equations of motion are

$$\displaystyle\frac{dx}{dt}=y,\quad\frac{dy}{dt}=\frac{d^{2}x}{dt^{2}}={-\Big{[}\omega_{1}^{2}-2\varepsilon\cos(\omega t)\Big{]}x}.$$
(2.2)

The second equation takes the form of the Mathieu equation if we set \(\omega t=2t^{\prime},a=4\omega_{1}^{2}/\omega^{2}\) and \(q=\frac{4\varepsilon}{\omega^{2}}\). In particular, if \(\omega=2\) we have \(t=t^{\prime},a=\omega_{1}^{2}\) and \(q=\varepsilon\). There are resonance conditions when \(a=1,4,9,16\dots\). For \(\omega=2\) resonances appear if \(\omega_{1}=1,2,3,\dots\) An integral of motion

$$\displaystyle\Phi=\Phi_{0}+\varepsilon\Phi_{1}+\varepsilon^{2}\Phi_{2}+\dots+\varepsilon^{s}\Phi_{S}+\dots$$
(2.3)

must satisfy the equation

$$\displaystyle\frac{d\Phi}{dt}=\frac{\partial\Phi}{\partial t}+[\Phi,H]=0,$$
(2.4)

where \([\Phi,H]\) is the Poisson bracket

$$\displaystyle[\Phi,H]\equiv\frac{\partial\Phi}{\partial x}\frac{\partial H}{\partial y}-\frac{\partial\Phi}{\partial y}\frac{\partial H}{\partial x}.$$
(2.5)

We apply Eq. (2.4) to the terms of successive orders in \(\varepsilon\) and find

$$\displaystyle\frac{\partial\Phi_{s+1}}{\partial t}+[\Phi_{s+1},H_{0}]-K_{s}=0,$$
(2.6)

where

$$\displaystyle{K_{s}=-[\Phi_{s},H_{1}]}.$$
(2.7)

If we set \(\Phi_{0}=H_{0}\) we can calculate successively the terms of various orders of \(\Phi\) expressed in trigonometric terms of multiplicities of \(\omega t\). From the characteristic curves of Eq. (2.6) we find

$$\displaystyle dt=\frac{dx}{y}=\frac{dy}{-\omega_{1}^{2}x}=\frac{d\Phi_{s+1}}{K_{s}}.$$
(2.8)

The zeroth-order solution is

$$\displaystyle x=\frac{\sqrt{2\Phi_{0}}}{\omega_{1}}\sin(\omega_{1}t),y=\sqrt{2\Phi_{0}}\cos(\omega_{1}t).$$
(2.9)

Consequently, from Eqs. (2.8) we get

$$\displaystyle\Phi_{s+1}=\int_{0}^{t}K_{s}dt,$$
(2.10)

where \(K_{S}\) is expressed in trigonometric terms of multiples of \(\omega t\) and \(\omega_{1}t\). After the integration we use again Eqs. (2.9) to express back the trigonometric terms of \(\Phi_{s+1}\) which contain \(\omega_{1}t\) in terms of \(y^{2},x^{2},xy\) multiplied by trigonometric terms of multiples of \(\omega t\). Consequently, the integral \(\Phi\), which is in practice truncated at some order, is \(\Phi=\Phi(x,y,\omega t)\).

In particular, \(\Phi_{0}=H_{0}\) and

$$\displaystyle\Phi_{1}=\int_{0}^{t}\frac{\partial\Phi_{0}}{\partial y}\frac{\partial H_{1}}{\partial x}dt=-2\int_{0}^{t}xy\cos(\omega t)dt.$$
(2.11)

The integral \(\Phi\) is a series in \(\varepsilon\) and of second order in \(x,y\). Up to second order in \(\varepsilon\) it is

$$\displaystyle\Phi=\frac{1}{2}\Big{(}C_{x}{\omega_{1}}^{2}{x}^{2}+C_{y}{y}^{2}+C_{xy}xy\Big{)},$$
(2.12)

where

$$\displaystyle C_{x}=1+{\frac{4\varepsilon\left(\cos\left(\omega t\right)+1\right)}{{\omega}^{2}-4{\omega_{1}}^{2}}}$$
$$\displaystyle+{\frac{{\varepsilon}^{2}\left(16\left({\omega}^{2}-{\omega_{1}}^{2}\right)\cos\left(\omega t\right)+\left(4{\omega_{1}}^{2}+7{\omega}^{2}-{\frac{2{\omega}^{4}}{{\omega_{1}}^{2}}}\right)\cos\left(2\omega t\right)+12{\omega_{1}}^{2}-7{\omega}^{2}+{\frac{4{\omega}^{4}}{{\omega_{1}}^{2}}}\right)}{\left({\omega}^{2}-4{\omega_{1}}^{2}\right)^{2}\left({\omega}^{2}-{\omega_{1}}^{2}\right)}}$$
$$\displaystyle+\dots$$
(2.13)
$$\displaystyle C_{y}=1-{\frac{4\varepsilon\left(\cos\left(\omega t\right)-1\right)}{{\omega}^{2}-4{\omega_{1}}^{2}}}$$
$$\displaystyle+{\frac{{\varepsilon}^{2}\Big{(}-16\left({\omega}^{2}-{\omega_{1}}^{2}\right)\cos\left(\omega t\right)+3\left({\omega}^{2}-4{\omega_{1}}^{2}\right)\cos\left(2\omega t\right)+13{\omega}^{2}-4{\omega_{1}}^{2}\Big{)}}{\left({\omega}^{2}-4{\omega_{1}}^{2}\right)^{2}\left({\omega}^{2}-{\omega_{1}}^{2}\right)}}+\dots$$
(2.14)

and

$$\displaystyle C_{xy}={\frac{-4\varepsilon\omega\sin\left(\omega t\right)}{{\omega}^{2}-4{\omega_{1}}^{2}}}+{\frac{{\varepsilon}^{2}\omega\Big{(}-16\left({\omega}^{2}-{\omega_{1}}^{2}\right)\sin\left(\omega t\right)+6\left({\omega}^{2}-4{\omega_{1}}^{2}\right)\sin\left(2\omega t\right)\Big{)}}{\left({\omega}^{2}-4{\omega_{1}}^{2}\right)^{2}\left({\omega}^{2}-{\omega_{1}}^{2}\right)}}+\dots$$
(2.15)

We notice that the first-order terms in \(\varepsilon\) contain \(\cos(\omega t),\sin(\omega t)\) and a constant, the second-order terms contain also \(\cos(2\omega t)\) and \(\sin(2\omega t)\) and so on. The constant terms are due to the fact that the integral starts at \(t=0\).

Fig. 1
figure 1

The invariant curves (ellipses) of the stroboscopic surface of section in the case \(\omega=2,\omega_{1}=0.9,\varepsilon=0.1\) and various initial conditions (IC) for the first 200 periods. The various concentric ellipses are similar to each other.

In general the terms of order \(\varepsilon^{m}\) contain cosines of multiples of \(\omega t\) up to order \(m\omega t\) together with constant terms in the coefficients of \(x^{2}\) and \(y^{2}\), while they contain only sines up to order \(m\omega t\) in the coefficient of \(xy\). The denominators contain factors of the form \((\omega^{2}-4\omega_{1}^{2}),(\omega^{2}-\omega_{1}^{2}),(\omega^{2}-9\omega_{1}^{2}),\dots(\omega^{2}-m^{2}\omega_{1}^{2})\).

Using our program for the construction of this integral we have calculated its terms up to order 28. For \(\varepsilon\) not large the integral \(\Phi\) represents an ellipse of the form

$$\displaystyle\Phi=Ax^{2}+By^{2}+2Dxy.$$
(2.16)

If \(t=2k\pi/\omega=kT\) we have

$$\displaystyle A=\frac{\omega_{i}^{2}}{2}\Big{[}1+\frac{8\varepsilon}{\omega^{2}-4\omega_{1}^{2}}+\frac{2\varepsilon^{2}\omega^{2}(\omega^{2}+8\omega_{1}^{2})+\dots}{\omega_{1}^{2}(\omega^{2}-4\omega_{1}^{2})^{2}(\omega^{2}-\omega_{1}^{2})}\Big{]},\quad B=\frac{1}{2},D=0.$$
(2.17)

This represents an ellipse passing through the initial point \((x_{0}=0,y_{0}=1)\) with semiaxes \(a=\sqrt{\frac{\Phi}{A}},b=\sqrt{\frac{\Phi}{B}}\). The points \((x,y)\) of an orbit on a stroboscopic Poincaré surface of section \(t=kT\) lie on this ellipse if the series giving \(A\) converges.

We have calculated several orbits and verified that, if \(\varepsilon\) is small and \(\omega\) is not close to a resonance \(\omega=\omega_{i},2\omega_{i},3\omega_{i}\ldots\), the points of the orbits on the stroboscopic surface of sections lie on such an ellipse. Figure 1 represents a set of such ellipses for \(\varepsilon=0.1,\omega=2\) and \(\omega_{1}=0.9\). In fact, for various initial conditions we have similar concentric ellipses.

3 APPLICATIONS FOR \(\varepsilon>0\)

If we fix \(\omega=2\) and \(\omega_{1}=0.9\) and the initial condition \(x_{0}=0,y_{0}=1\), we have \(\Phi=1/2\). Then the semiaxes of the ellipses are \(a=\frac{1}{\sqrt{2A}},b=1\). In Fig. 2 we present the stroboscopic surface of section for these parameters for various values of \(\varepsilon\). We observe that they are all ellipses with one axis from \(y=1\) to \(y=-1\). The same holds for other non-resonant values of \(\omega\) and \(\omega_{1}\).

In Figs. 3a, 3b we mark the successive points after times \(T,2T,3T\dots\) etc. for \(\varepsilon=0.1\) and \(\varepsilon=0.18\). At the same time we draw the ellipses found if we truncate the integral \(\Phi\) after the terms of order \(2,4,6\)…in \(\varepsilon\). We see that the ellipse of order 2 is far from the points of the numerical solution. But as we increase the order of the truncation, the ellipses approach gradually the invariant curve formed by the successive points. In the case \(\varepsilon=0.1\) we have good convergence at order 6, in the case \(\varepsilon=0.15\) good convergence is reached at order 20, while in the case \(\varepsilon=0.18\) we have not yet reached good convergence up to order 28. However, these figures indicate that the integral \(\Phi\) in fact converges all the way up to \(\varepsilon=0.1857\), namely, up to the critical value of \(\varepsilon\) above which we have escapes to infinity.

Fig. 2
figure 2

Invariant curves on the stroboscopic surface of section in the case with \(\omega=2,\omega_{1}=0.9\) for various values of \(\varepsilon\) and the same initial conditions (\(x_{0}=0,y_{0}=1\)). In particular we have given the successive points \(1,2,\dots,11\) covering clockwise the invariant curve for \(\varepsilon=0.1\).

Fig. 3
figure 3

Successive points of the orbits with \(\omega=2,\omega_{1}=0.9\) and initial conditions (\(x_{0}=0,y_{0}=1\)) on the stroboscopic surface of section in the cases (a) \(\varepsilon=0.1\) and (b) \(\varepsilon=0.18\). The successive points are joined by straight lines. The points cover roughly for the first time the corresponding invariant curve. Their numbers are 13 in case (a) and 39 in case (b). The set of points is approached by the theoretical invariant curves truncated at various successive orders as shown by colors.

Moreover, we see that the angles between the lines joining the successive points decrease as \(\varepsilon\) increases. In particular, for \(\varepsilon=0\) the successive points are on a circle on a plane (\(\omega_{1}x,y\)) and the successive angles are \(\Delta\phi=\frac{2\pi\omega_{1}}{\omega}=0.9\pi\). Thus, the number of points required to cover roughly the invariant curve is about 11 (Fig. 3a). In the case \(\varepsilon=0.1\) this number is about 13, for \(\varepsilon=0.15\) it is 17, for \(\varepsilon=0.18\) it is about 40 and for \(\varepsilon=0.185\) it is almost 110 points. The following iterations give additional points that fill more densely the ellipse provided by the integral \(\Phi\).

Fig. 4
figure 4

The distances \(d\equiv\sqrt{\omega_{1}^{2}x^{2}+y^{2}}\) between the origin \((0,0)\) and the successive points of the intersections of the orbits by the stroboscopic surface of section, for various values of \(\varepsilon\) up to \(t=200\). We have \(\omega=2,\omega_{1}=0.9,x_{0}=0,y_{0}=1\).

Fig. 5
figure 5

Orbits in the case \(\omega=2,\omega_{1}=0.9\) together with their intersections by the stroboscopic surface of section. (a) For \(\varepsilon=0.1\) and 106 periods. This orbit fills a ring inside the original arc of the orbit starting at (\(x_{0}=0,y_{0}=1\)). (b) For \(\varepsilon=0.185\) and 100 periods. This orbit fills a ring leaving only a small hole around the center \((0,0)\).

These numbers are found also by calculating the distances \(d=\sqrt{\omega_{1}^{2}x^{2}+y^{2}}\) of the successive points on the stroboscopic surface of section as functions of time (Fig. 4). All the orbits start at \((x_{0}=0,y_{0}=1)\) with \(d=1\) and decrease down to a minimum distance. Then they increase up to the distance \(d=1\) and continue to decrease and increase. We see that for \(\varepsilon=0.01\) one comes back to the maximum distance after 11 points, for \(\varepsilon=0.1\) after 13 points, and so on. Figure 4 gives also the time required for the successive points to reach again the maximum distance. This time increases considerably as \(\varepsilon\) approaches the critical value \(\varepsilon_{crit}=0.1857\).

The motion with initial conditions (\(x_{0}=0,y_{0}=1\)) for \(\varepsilon<\varepsilon_{crit}\) starts by spiralling inwards until it reaches a minimum distance and then it spirals outwards and so on. Thus, the orbit fills a ring as in Fig. 5a for \(\varepsilon=0.1\) and its corresponding invariant curve is an ellipse. As \(\varepsilon\) increases the ring becomes broader and the empty hole near the center becomes smaller as in Fig. 5b for \(\varepsilon=0.185\). Then the invariant ellipse becomes very thin and in the limit \(\varepsilon\to\varepsilon_{crit}\) the ellipse tends to the straight line from \(y=1\) to \(y=-1\), while the empty region vanishes.

Fig. 6
figure 6

A periodic orbit of period \(17T\) where \(T=2\pi/\omega\), together with the 17 points of intersection with the stroboscopic surface of section.

For particular values of \(\varepsilon\) the orbit comes exactly to its initial point \(x_{0}=0,y_{0}=1\) after a number \(n\) of periods, i. e., we have a periodic orbit of period \(nT\). Such is the case of Fig. 6 for \(\varepsilon=0.1501\), where we have a periodic orbit of period \(17T\). In this case the energy \(E\) increases to a maximum, but then it returns to its initial value. Similar periodic orbits of other periods appear for other values of \(\varepsilon\).

If \(\varepsilon\) goes beyond a critical value about \(\varepsilon_{crit}=0.1857\), the orbits escape to infinity. In the present study we notice that the series \(\Phi\) representing the integral of motion does not converge beyond the critical value of \(\varepsilon\), e. g., for \(\varepsilon=0.19\) (Fig. 7) the orbit starts close to an initial ellipse, but then makes a spiral outwards that extends to about \(x=\pm 15,y=\pm 15\) after 50 periods. In Fig. 8 we see that the logarithms of the distances for particular values of \(\varepsilon\) beyond the critical value increase linearly in time. Therefore, the distances of the escaping orbits increase exponentially in time and the increase is larger for larger \(\varepsilon\). We know from the theory that this motion extends to infinity.

An interesting aspect of our problem is found if we work in the so-called extended phase space where our system becomes conservative. Namely, we extend the phase space to include the ordinary time as a canonical variable and its conjugate momentum \(E\), which is minus the energy. Then the new Hamiltonian

$$\displaystyle\bar{H}(x,y,E,t)=H(x,y,t)+E$$
(3.1)

is conservative with respect to a fictitious time variable \(\tau=t\) and the Hamilton equations read

$$\displaystyle\frac{dx}{dt}=\frac{\partial H}{\partial y},\quad\frac{dy}{dt}=-\frac{\partial H}{\partial x}$$
$$\displaystyle\frac{d\tau}{dt}=\frac{\partial\bar{H}}{\partial E}=1,\quad\frac{dE}{dt}=-\frac{\partial\bar{H}}{\partial t}=-\frac{\partial{H}}{\partial t}.$$
(3.2)
Fig. 7
figure 7

An escaping orbit for (\(\omega=2,\omega_{1}=0.9,\varepsilon=0.19\)) starting at the point (\(x_{0}=0,y_{0}=1\)) for the first 40 periods, together with its intersections with the stroboscopic surface of section.

Then we can calculate the value of the energy \(E\) as a function of time using the last of Eqs. (3.2) and we find that the value of \(\bar{H}\) is very close to zero (in fact, it is of order \(\mathcal{O}(10^{-8})\), which is the accuracy of our calculations). In the cases \(0<\varepsilon<\varepsilon_{crit}\) for \(x_{0}=0,y_{0}=1\) the value of \(E\) starts at \(E=-0.5\) for \(t=0\), reaches a maximum near \(E=0\) and then oscillates between this maximum and a minimum. The values of \(x\) and \(E\) of the stroboscopic section are given by blue dots (Fig. 9a). These dots mark the points of the invariant curve on the stroboscopic section. The first 40 points lie successively on the right and on the left part of the hyperbolic-like invariant curve which is directed upwards. Further points fill this curve densely. On the other hand, for \(\varepsilon>\varepsilon_{crit}\) the value of \(E\) decreases continuously on the average (Fig. 9b) and tends to \(-\infty\). The dots are again on a hyperbola-like curve, but this time the curve is directed downwards and has no limit. This difference allows us to find with great accuracy the transition value \(\varepsilon_{crit}\) for the escapes. At \(\varepsilon=\varepsilon_{crit}\simeq 0.1857848626\) the orbit is periodic, and is represented by the point \((x=x_{0}=0,y=y_{0}=1)\) on the stroboscopic surface of section. We have calculated the monodromy matrix of this periodic orbit and found that its eigenvalues are all equal to one. Therefore, the orbit is marginally unstable.

In the extended phase space we can calculate another integral

$$\displaystyle\Psi=\Psi_{0}+\varepsilon\Psi_{1}+\varepsilon^{2}\Psi_{2}+\dots$$
(3.3)

if we set \(\Psi_{0}=E\). Then we find

$$\displaystyle\Psi_{1}=\frac{\left[\left(2{\omega_{1}}^{2}{-\omega}^{2}\right){x}^{2}+2{y}^{2}\right]\cos\left(\omega t\right)+2\sin\left(\omega t\right)\omega xy-2(\omega_{1}^{2}x^{2}+{y}^{2})}{\omega^{2}-4\omega_{1}^{2}}.$$
(3.4)

But then we notice that

$$\displaystyle\Phi_{1}+\Psi_{1}=-x^{2}\cos(\omega t)=H_{1},$$
(3.5)

therefore,

$$\displaystyle\Psi_{1}=H_{1}-\Phi_{1}.$$
(3.6)

If we calculate now \(\Psi_{2}\), this is equal to \(-\Phi_{2}\) because \([H_{1},H_{1}]=0\). In the same way we find \(\Psi_{3}=-\Phi_{3}\) and so on. Thus,

$$\displaystyle\Phi+\Psi=\frac{1}{2}(\omega_{1}^{2}x^{2}+y^{2})+E-\varepsilon x^{2}\cos(\omega t)=\bar{H}=0.$$
(3.7)

Consequently, we have only two independent isolating integrals \(\bar{H}\) and \(\Phi\), thus the transformation of the system to an autonomous Hamiltonian system does not give any new results.

Fig. 8
figure 8

The logarithms of the distances \(r=\sqrt{x^{2}+y^{2}}\) of the successive intersections of escaping orbits by the stroboscopic surface of section for \(\omega=2,\omega_{1}=0.9,x_{0}=0,y_{0}=1\) and various values of \(\varepsilon\) up to \(t=30T\). In all these cases the logarithms of the distances increase linearly in time, thus the distances increase exponentially in time. The distances are longer for larger \(\varepsilon\).

Fig. 9
figure 9

Stroboscopic surfaces of section (blue points). The trajectory of \(E\) as a function of \(x\) for (a) \(\varepsilon=0.18\) up to 41 periods and (b) for \(\varepsilon=0.19\) up to 40 periods. We observe that in the case (a) the trajectory is confined and the blue points oscillate in a certain range of energies, while in the case (b) the trajectory escapes to \(-\infty\) and the blue points also tend to \(-\infty\). In the extended space, the total energy \(\bar{H}=H+E\) is conserved and equal to 0 for our parameters.

Fig. 10
figure 10

Invariant curves on a stroboscopic surface of section in the case \(\omega=2,\omega_{1}=0.9\) for \(x_{0}=0,y_{0}=1\) and various negative values of \(\varepsilon\). As \(\varepsilon\) decreases and approaches the critical value \(\varepsilon_{crit}\simeq-0.1857\), the size of the curve along \(x\) increases and tends to \(\infty\). In the case \(\varepsilon=-0.18\) we give also the successive points corresponding to successive periods.

Fig. 11
figure 11

Orbits in the case \(\omega=2,\omega_{1}=0.9\). (a) For \(\varepsilon=-0.1\) and 106 periods. The orbit fills a ring outside the original arc of the orbit starting at (\(x_{0}=0,y_{0}=1\)). (b) For \(\varepsilon=-0.185\) and 110 periods. We observe that the orbit extends to much larger distances than in the case (a).

4 CASES WITH \(\varepsilon<0\)

If \(\varepsilon<0\) we have again ellipses on the stroboscopic Poincaré surface of section. However, these ellipses are outside the ellipse for \(\varepsilon=0\) (Fig. 10). The critical value of \(\varepsilon\) is \(\varepsilon_{crit}=-0.1857\), symmetric to the critical value \(\varepsilon_{crit}=0.1857\) for positive \(\varepsilon\). The stroboscopic ellipses become longer along the \(x\)-axis as \(\varepsilon\) increases and they tend to infinity as \(\varepsilon\) tends to the critical value.

The orbits for \(\varepsilon<0\) are different from those of \(\varepsilon>0\). The orbits are outside the limiting ellipse \(\omega_{1}^{2}x^{2}+y^{2}=1\) for \(\varepsilon=0\). The number of points on the stroboscopic ellipse required to cover once the whole ellipse again increases as \(|\varepsilon|\) increases. For example, for \(\varepsilon=-0.1\) this number is 39 (Fig. 10) and for \(\varepsilon=-0.185\) it is \(n=110\) (Figs. 11a, 11b). The orbits for \(\varepsilon<0\) extend to large distances both in \(x\) and \(y\), but with much smaller ellipticity than the corresponding stroboscopic ellipse. Finally, for \(|\varepsilon|\) larger than the critical value \(|\varepsilon_{crit}|=0.1857\) the orbits escape again to infinity. The form of such an orbit is shown in Fig. 12 for \(\varepsilon=-0.19\).

If we change now the value of \(\omega_{1}\), we find again ellipses for various values of \(\varepsilon\) given by the integral of motion. However, the critical values of \(\varepsilon\) are now different. We consider here two examples.

Fig. 12
figure 12

An escaping orbit for \(\omega=2,\omega_{1}=0.9,x_{0}=0,y_{0}=1,\varepsilon=-0.19\) for the first 20 periods, together with its intersections with the stroboscopic surface of section.

  1. 1)

    In the case \(\omega_{1}=0.1\) we have the ellipses of Fig. 13. In this case the limiting ellipse \(\omega_{1}^{2}x^{2}+y^{2}=1\) is just outside the ellipse for \(\varepsilon=0.001\), i. e., it is much more elongated along the \(x\)-axis than in the case with \(\omega_{1}=0.9\). Furthermore, the successive points on the stroboscopic surface of section are much closer to each other. The total number of points to cover roughly the ellipse once for \(\varepsilon=0.1\) is \(N\simeq 16\). As \(\varepsilon\) increases this number increases. In this case the critical value of \(\varepsilon\) is \(\varepsilon_{crit}=0.89964\), i. e., much larger that in the case \(\omega_{1}=0.9\).

  2. 2)

    The second case is \(\omega_{1}=1.1\), larger than the resonant value \(\omega_{1}=1\). In this case the critical value of \(\varepsilon\) is about \(\varepsilon_{crit}=0.21598\). We have again ellipses on the stroboscopic surface of section for \(\varepsilon<\varepsilon_{crit}\), but these become larger as \(\varepsilon\) increases (Fig. 14a). The difference between the behaviour of the case \(\omega_{1}=1.1\) and the cases \(\omega_{1}=0.9\) and \(\omega_{1}=0.1\) can be explained theoretically. In fact, close to \(\varepsilon=0\) the value of the coefficient \(A\) of Eq. (2.17) is approximately

    $$\displaystyle A\simeq\frac{\omega_{1}^{2}}{2}\Big{(}1+\frac{8\varepsilon}{\omega^{2}-4\omega_{1}^{2}}\Big{)},$$
    (4.1)

    while \(\Phi=1/2\) for \((x_{0}=0,y_{0}=1)\), hence

    $$\displaystyle a\simeq\frac{1}{\omega_{1}}\Big{(}1-\frac{4\varepsilon}{\omega^{2}-4\omega_{1}^{2}}\Big{)}.$$
    (4.2)
    Fig. 13
    figure 13

    Invariant curves (ellipses) on the stroboscopic surface of section in the case \(\omega=2,\omega_{1}=0.1,x_{0}=0,y_{0}=1\), for various values of \(\varepsilon>0\). As \(\varepsilon\) increases the invariant curves shrink and for \(\varepsilon=0.89964\) the curve is very elongated close to a critical value (almost a straight line). In the case \(\varepsilon=0.1\) we give also the successive points.

    Therefore, for \(\varepsilon>0\) and \((\omega^{2}-4\omega_{1}^{2})>0\) we have \(\varepsilon/(\omega^{2}-4\omega_{1}^{2})>0\), hence \(a<\frac{1}{\omega_{1}}\), i. e., the ellipses are inside the ellipse for \(\varepsilon=0\), while for \(\varepsilon<0\) and \((\omega^{2}-4\omega_{1}^{2})>0\) we have \(a>\frac{1}{\omega_{1}}\), i. e., the ellipses are outside the ellipse for \(\varepsilon=0\). On the other hand, for \((\omega^{2}-4\omega_{1}^{2})<0\) the ellipses are larger for \(\varepsilon>0\) and smaller for \(\varepsilon<0\). Thus, the case \(\omega_{1}=1.1\) with \(\varepsilon>0\) is similar to the case \(\omega_{1}=0.9\) for negative \(\varepsilon\). On the other hand, for \(\varepsilon<0\) the ellipses become smaller (Fig. 14b) for increasing \(|\varepsilon|\) and for \(\varepsilon\) approaching the critical value \(\varepsilon=-0.21598\) they tend to the \(x\)-axis. In all cases the critical values of \(\varepsilon\) for the same \(\omega\) and \(\omega_{1}\) are the same for positive and negative \(\varepsilon\), but the limiting ellipse in one case (positive \(\varepsilon\) for \(\omega_{1}<1\), negative \(\varepsilon\) for \(\omega_{1}>1)\) tend to the \(x\)-axis, while in the opposite cases the ellipse tends to infinity along the \(x\)-axis.

Fig. 14
figure 14

Invariant curves on the stroboscopic surface of section in the case \(\omega=2,\omega_{1}=1.1,x_{0}=0,y_{0}=1\) for various values of \(\varepsilon\) (a) for \(\varepsilon>0\) the sizes of the curves increase as \(\varepsilon\) increases and tend to infinity as \(\varepsilon\) tends to the critical value \(\varepsilon_{crit}=0.21598\). (b) for \(\varepsilon<0\) the sizes of the curves decrease as \(\varepsilon\) decreases and tend to a straight line from \(y=-1\) to \(y=1\) as \(\varepsilon\) tends to the critical value \(\varepsilon_{crit}=-0.21598\).

5 THE INTEGRALS IN A RESONANT CASE

The theory of integrals in resonant cases, independent of time, has been developed in detail [28, 29]. However, the applicability of the direct method of Contopoulos to resonant cases periodic in time has not yet been fully explored [29].

In the present case we will construct a formal integral in a particular resonant case of the Mathieu equation, namely, in the case where the periodic term has a frequency \(\omega\) which is double the basic frequency \(\omega_{1}\) of the unperturbed problem.

When \(\omega_{1}=\omega/2=1\) the series expansion of the integral \(\Phi\) contains secular terms (namely, time-dependent terms which cannot be written in trigonometric form) and cannot be used. In this case it is appropriate to use as zeroth-order solutions of the form \(x=\frac{\sqrt{2\Phi_{0}}}{\omega_{1}}\sin(\omega_{1}(t-t_{0})),y=\sqrt{2\Phi_{0}}\cos(\omega_{1}(t-t_{0}))\) and find

$$\displaystyle\Phi_{1}=\frac{1}{8}\Bigg{[}(y^{2}-x^{2})\cos(2t)-2xy\sin(2t)-(y^{2}+x^{2})\cos(2t_{0})\Bigg{]}$$
$$\displaystyle+\frac{1}{2}(y^{2}+x^{2})\sin(2t_{0})t.$$
(5.1)

We observe that \(\Phi_{1}\) contains the secular term

$$\displaystyle\Phi_{1sec}=\frac{1}{2}(y^{2}+x^{2})\sin(2t_{0})t.$$
(5.2)

However, in this resonant case we can construct two more zeroth-order integrals:

$$\displaystyle C_{0}=2\Phi_{0}\cos(\omega t-2\omega_{1}(t-t_{0}))\stackrel{{\scriptstyle\omega=2\omega_{1}}}{{=\!=\!=\!=\!=}}2\Phi_{0}\cos(2\omega_{1}t_{0})$$
$$\displaystyle S_{0}=2\Phi_{0}\sin(\omega t-2\omega_{1}(t-t_{0}))\stackrel{{\scriptstyle\omega=2\omega_{1}}}{{=\!=\!=\!=\!=}}2\Phi_{0}\sin(2\omega_{1}t_{0}).$$
(5.3)

We start by writing \(C_{0}\) in the form

$$\displaystyle C_{0}=(y^{2}-\omega_{1}^{2}x^{2})\cos(\omega t)+2\omega_{1}xy\sin(\omega t),$$
(5.4)

which is periodic in time with period \(T=\frac{2\pi}{\omega}\). Then we calculate higher-order terms in \(C=C_{0}+\varepsilon C_{1}+\varepsilon^{2}C_{2}+\dots\) In particular, \(C_{1}\) is

$$\displaystyle C_{1}=\int_{0}^{t}\frac{\partial C_{0}}{\partial y}\frac{\partial H_{1}}{\partial x}dt,$$
(5.5)

and after some algebra we find

$$\displaystyle C_{1}=\frac{1}{2\omega(\omega-\omega_{1})}\Big{[}y^{2}(1-\cos(2\omega t))+x^{2}\Big{(}\cos(2\omega t)(2\omega\omega_{1}-\omega_{1}^{2})+\omega_{1}^{2}-2\omega^{2}+2\omega\omega_{1}\Big{)}$$
$$\displaystyle-2\omega xy\sin(\omega t)\Big{]},$$
(5.6)

which does not have secular terms. Setting \(\omega=2,\omega_{1}=1\), we have

$$\displaystyle C_{1}=\frac{1}{4}\Big{[}\left({y}^{2}-3{x}^{2}\right)\big{(}1-\cos\left(4t\right)\big{)}-4xy\sin\left(4t\right)\Big{]},$$
(5.7)

and for \(t=k\pi\) we get \(C_{1}=0\). If we calculate \(C_{2}\) we find

$$\displaystyle C_{2}=\int_{0}^{t}\frac{\partial C_{1}}{\partial y}\frac{\partial H_{1}}{\partial x}dt,$$
(5.8)

and for \(\omega=2,\omega_{1}=1\) we find

$$\displaystyle C_{2}=\frac{1}{64}\Bigg{[}y^{2}[-10\cos(2t)+\frac{5}{3}\cos(6t)-13\cos(2t_{0})+\frac{64}{3}]$$
$$\displaystyle+x^{2}[-22\cos(2t)-\frac{37}{3}\cos(6t)-13\cos(2t_{0})+\frac{64}{3}]$$
$$\displaystyle-2xy[6\sin(2t)-5\sin(6t)]\Bigg{]}-\frac{1}{8}(y^{2}+x^{2})\sin(2t_{0})t.$$
(5.9)

Therefore, \(C_{2}\) contains the same secular term as \(\Phi_{1}\) (up to a multiplicative constant) and we can combine the series of \(\Phi\) and \(C\) in order to avoid these terms. In particular, if we multiply \(\Phi\) by \(\varepsilon q_{1}\), we find an integral

$$\displaystyle\bar{C}=C_{0}+\varepsilon(q_{1}\Phi_{0}+C_{1})+\varepsilon^{2}(q_{1}\Phi_{1}+C_{2})+\dots$$
(5.10)

that has no secular term up to order \(\varepsilon^{2}\) if we take \(q_{1}=\frac{1}{4}\). In a similar way, we eliminate the secular terms of order \(\varepsilon^{3}\) by adding an appropriate term \(\varepsilon^{2}q_{2}(\Phi_{0}+\varepsilon\Phi_{1}+\dots)\) and so on.

The integral (5.10) describes a stroboscopic surface of section which for small \(\varepsilon\) represents a hyperbola. Namely, for \(t=0\) or \(t=k\pi\) we find

$$\displaystyle\bar{C}_{str}=(y^{2}-x^{2})+\frac{\varepsilon}{4}(x^{2}+y^{2})+\dots$$
(5.11)

In Fig. 15a we show the orbits corresponding to \(\varepsilon=0.05\) and \(\varepsilon=0.15\) and observe that, the larger the \(\varepsilon\), the faster the escape to infinity. In Fig. 15b we draw their corresponding stroboscopic sections for times up to \(t=15T\) and see that they form two hyperbolae. Then we superimpose the hyperbolae predicted by the integral (5.11). We observe the very good agreement between the numerical results and the approximate integral of motion. In a similar way, one may construct integrals of motion for every combination of \(\omega,\omega_{1}\) that leads to resonances.

Fig. 15
figure 15

(a) Two orbits in the resonant case \(\omega=2,\omega_{1}=1\) for \(\varepsilon=0.05\) (blue curve) and \(\varepsilon=0.15\) (red curve). We observe the faster escape to infinity in the case of \(\varepsilon=0.15\). (b) The successive points (blue dots for \(\varepsilon=0.05\) and red stars for \(\varepsilon=0.15\)) of two orbits on the stroboscopic surface of section lie, with a very good accuracy, on the correponding blue and red invariant curves given by Eq. (5.11).

6 CONCLUSIONS

We studied the orbits and the stroboscopic invariant curves in the Hamiltonian \(H=H_{0}+\varepsilon H_{1}\), where \(H_{0}=\frac{1}{2}(\omega_{1}^{2}x^{2}+y^{2})\) with \(y=dx/dt\) and \(H_{1}=-x^{2}\cos(\omega t)\). This Hamiltonian is equivalent to a Mathieu equation. We presented a method for constructing formal integrals of motion which are written as series expansions in \(\varepsilon\) and converge if \(|\varepsilon|\) is smaller than a critical value \(\varepsilon_{crit}\). We studied in detail the forms of the orbits and of the integrals for various values of \(\varepsilon,\omega\) and \(\omega_{1}\). Our main results are the following:

  1. 1)

    The integral is quadratic in \(x\) and \(y\) of the form

    $$\displaystyle\Phi=C_{x}\omega_{1}^{2}x^{2}+C_{y}y^{2}+C_{xy}xy,$$
    (6.1)

    where \(C_{x},C_{y},C_{xy}\) are series in \(\varepsilon\). In non-resonant cases the integral forms invariant curves that are similar concentric ellipses on a stroboscopic Poincaré surface of section. The points of orbits with \(t=kT(k=1,2,\dots,T=2\pi/\omega)\) lie on such ellipses when the series converge.

  2. 2)

    We found the forms of the orbits that fill, in general, elliptical rings, leaving an empty region near the center \(x=y=0\). We found also the distribution of the points on the stroboscopic surface of section.

  3. 3)

    For particular values of \(\varepsilon\) the orbits are periodic.

  4. 4)

    For values of \(\omega\) and \(\omega_{1}\) below the resonance \(\omega-2\omega_{1}=0\) the stroboscopic ellipses become thinner along \(x\) for \(\varepsilon>0\) as \(\varepsilon\) increases. As \(\varepsilon\to\varepsilon_{crit}\), the ellipse tends to a straight line along the \(y\)-axis. For \(\varepsilon>\varepsilon_{crit}\) the orbits spiral outwards and tend to infinity. On the other hand, for \(\varepsilon<0\) the ellipses become thinner along \(y\) as \(\varepsilon\) decreases, and as \(\varepsilon\to-\varepsilon_{crit}\), they tend to a straight line along the \(x\)-axis.

  5. 5)

    For any given set of physical parameters \(\omega,\omega_{1}\) and initial conditions \(x_{0},y_{0}\), there are two escape values of \(\varepsilon\), one positive and one negative, with the same absolute value \(|\varepsilon_{crit}|\). We checked that these values are the same as those given for the escape values of \(q\) by other authors [21]. On the other hand, the orbits and the invariant curves are quite different for symmetric values of \(\varepsilon\).

  6. 6)

    The present system can be considered as a 2-d Hamiltonian system with two variables \(x\) and \(t\) and corresponding momenta \(y\) and \(E\) where \(-E\) is the energy. If \(|\varepsilon|<\varepsilon_{crit}\), the values of \(E\) oscillate between a maximum and a minimum, while if \(|\varepsilon|>\varepsilon_{crit}\), the values of \(|E|\) extend to infinity.

  7. 7)

    If \(\omega-2\omega_{1}>0\), the orbits for \(\varepsilon>0\) are of the opposite type from the orbits for \(\omega-2\omega_{1}<0\). Namely, they are more elongated along \(x\) as \(\varepsilon\) increases for \(\varepsilon>0\) and more elongated along \(y\) as \(\varepsilon\) decreases for \(\varepsilon<0\).

  8. 8)

    In resonant cases the integrals are of different form and need to be constructed for every given resonance. We made an application in one resonant case where the invariant curves are hyperbolae and are very well approximated by a second approximate integral of motion.

Further work will refer to more general non-linear potentials where chaos becomes apparent.

7 ACKNOWLEDGEMENTS

This research was conducted in the framework of the program of the RCAAM of the Academy of Athens “Study of the dynamical evolution of the entanglement and coherence in quantum systems”. The authors want to thank Dr. Christos Efthymiopoulos for his useful comments.