1 Introduction

A large number of studies over the last five decades, was devoted to locate the position of periodic orbits in a given dynamical system. The basic reason for doing this is that near the stable periodic orbits there are similar orbits. On the other hand, orbits starting near the unstable periodic orbits can produce large chaotic regions. On this basis, there is no doubt that periodic orbits represent the backbone of the whole set of orbits and play an important role in understanding the dynamical behavior of a given potential.

Of particular interest are systems made up of perturbed harmonic oscillators. Systems containing 2D harmonic oscillators were studied by a large number of investigators [17, 11, 18, 21, 23].

In a recent paper [8], we presented a semi-numerical method, which was used in order to find the position and the period of periodic orbits in the resonant cases ω 1:ω 2=n:m, in the 2D potential

$$ V(x,y) = \frac{1}{2} \bigl(\omega_1^2 x^2 + \omega_2^2 y^2 \bigr) - \frac{\mu}{ (x^2 + y^2 + \alpha^2 )^{1/2}}. $$
(1)

As the results of the above research were in good agreement with the outcomes given by the numerical integration, we decided to extend our semi-numerical method to the 3D potential

(2)

where in (2) ω 1, ω 2, and ω 3 are the unperturbed frequencies of the oscillations along the x, y, and z axis, respectively, while μ and α are parameters. This potential can be considered to describe local motion in the central parts of a galaxy.

The equations of motion for a test particle with a unit mass are

$$ \begin{aligned} \lefteqn{\ddot{x} = - \biggl[\omega_1^2 + \frac{\mu}{ (x^2 + y^2 + z^2 + \alpha^2 )^{3/2}} \biggr] x = - w_1^2 x, } \\ \lefteqn{\ddot{y} = - \biggl[\omega_2^2 + \frac{\mu}{ (x^2 + y^2 + z^2 + \alpha^2 )^{3/2}} \biggr] y = - w_2^2 y, } \\ \lefteqn{\ddot{z} = - \biggl[\omega_3^2 + \frac{\mu}{ (x^2 + y^2 + z^2 + \alpha^2 )^{3/2}} \biggr] z = - w_3^2 z,} \end{aligned} $$
(3)

where the dot indicates derivative with respect to the time.

The corresponding Hamiltonian is written

(4)

where p x , p y , and p z are the momenta per unit mass conjugate to x, y, and z, respectively, while h>0 is the numerical value of the Hamiltonian, which is conserved. The aim of this work is to find the position of the periodic orbits and the corresponding period in the resonant cases ω 1:ω 2:ω 3=n:m:l, where n, m, and l are positive integers, using a semi-numerical procedure and to compare the results with the corresponding outcomes given by the numerical integration of the equations of motion. In our numerical calculations, we shall use the values μ=0.001 and α=0.25, while the value of the energy h will be treated as a parameter. For the numerical integration of the equations of motion, a Bulirsch–Stöer method in double precision is used. The accuracy of the calculations is checked by the constancy of the energy integral (4), which is conserved up to the fifteenth significant decimal figure.

The paper is organized as follows: In Sect. 2, we use some theoretical arguments to find the position and period of the 1:1:1 resonant periodic orbits. In the same section, we present a table for the periods of the straight-line periodic orbits. Moreover, we make a comparison between the periods of the straight-line orbits derived using the semi-numerical method and the corresponding periods obtained using the numerical integration. In Sect. 3, we compare the semi-numerical results with the outcomes given by the numerical integration for a number of resonant cases. Finally, a discussion and the conclusions of this work are presented in Sect. 4.

2 The 1:1:1 resonance

In this section, we shall study the case when ω 1=ω 2=ω 3=ω. In this case, the system has a spherical symmetry and potential (2) takes the form

$$ V(r) = \frac{1}{2}\omega^2 r^2 - \frac{\mu}{ (r^2 + \alpha^2 )^{1/2}}, $$
(5)

where r 2=x 2+y 2+z 2. All the three components L x , L y , and L z of the test particle’s angular momentum and the total angular momentum \(L^{2} = L_{x}^{2} + L_{y}^{2} + L_{z}^{2}\) are conserved. The system has a circular periodic orbit. Using elementary calculations, we find that the radius of this circular orbit r c and the test particle’s total angular momentum L c are connected through the following equation:

$$ L_c^2 = r_c^3 \biggl[ \frac{dV}{dr} \biggr]_{r_c}, $$
(6)

while the corresponding value of the energy is

$$ h_c = \frac{1}{2}\frac{L_c^2}{r_c^2} + V(r_c). $$
(7)

As all the three frequencies w 1, w 2, and w 3 in (3) are equal the period of the circular orbit is given by the formula

$$ T_c = \frac{2 \pi}{ [\omega^2 + \frac{\mu}{ (r_c^2 + \alpha^2 )^{3/2}} ]^{1/2}}. $$
(8)

Apart from the circular exact periodic orbit the system (5) has an additional type of exact periodic orbit. These orbits are straight lines going through the origin. We observe that for the motion along the lines

$$ y = k x,\quad z = \lambda x, $$
(9)

the equations of motion (3) become identical, while all three frequencies of the oscillations are always equal. Thus, the straight lines (9) are exact 1:1:1 periodic orbits going through the origin. Our numerical experiments show that the period of the straight line periodic orbits is given by

$$ T_s = \frac{2 \pi}{w_s}, $$
(10)

where the frequency w s is given by the formula

$$ w_s = \biggl[\omega^2 + \frac{0.84 \mu}{ (r_a^2 + \alpha^2 )^{3/2}} \biggr]^{1/2}, $$
(11)

where r a is the radius of the circle V(r)=h. Note that all the iso-energetic orbits (9) have the same period. A comparison between the period T s and the period T n found by the numerical integration of the equations of motion is made in Table 1. We see that the agreement is very good. In order to quantify the agreement between the results obtained from the semi-numerical methods and those derived from the numerical integration, we calculate the error T err=|(T n T s )/T s |. For the results of the 1:1:1 resonant orbits, presented in Table 1, we see that T err≤0.04 %.

Table 1 A comparison between the period T s and the period T n found by the numerical integration of the equations of motion for the 1:1:1 straight line periodic orbits when ω 1=ω 2=ω 3=0.4

The authors would like to clarify that since the nature and also the shape of the circular and straight-line periodic orbits is well known, it is therefore unnecessary to provide the corresponding Fig. 3D plots.

3 Comparing semi-numerical results to numerical outcomes

In this section, we shall give semi-numerical formulas for the position and the period of the periodic orbits in a number of resonant cases. Furthermore, we shall compare the results given by the semi-numerical method with the outcomes derived from the numerical integration of the equations of motion.

We shall start from the resonant case when ω 1:ω 2:ω 3=1:1:2. We look for periodic orbits intersecting the z axis at z=z 0, (x 0=y 0=p z0=0), with velocities p x0=p y0. Our numerical calculations indicate that the value of p x0 is well approximated, if we set

$$ p_{x0}^2 = \frac{z_0^2}{2 \omega_1^2}. $$
(12)

Setting the above initial conditions in the harmonic part of the Hamiltonian (4), that is when μ=0, and solving the resulting equation for z 0, we find

$$ z_0 = \biggl[ \frac{2 h \omega_1^2}{1 + \omega_1^2 \omega_3^2} \biggr]^{1/2}. $$
(13)

Note that (12) and (13) give a first approximation for the starting point of the 1:1:2 periodic orbit.

For a better approximation, we proceed as follows: Using numerical experiments, we find that a good approximation for the frequency w 3s of the 1:1:2 periodic orbits is given by the formula

$$ w_{3s} = \biggl[\omega_3^2 + \frac{0.48 \mu}{ (z_s^2 + \alpha^2 )^{3/2}} \biggr]^{1/2}. $$
(14)

Inserting the above value of the frequency w 3s in (12), we find

$$ p_{xs}^2 = \frac{z_s^2}{2 w_{1s}^2}, $$
(15)

where now z s is the new value of the starting point of the 1:1:2 periodic orbit. Inserting the values of z s , p xs =p ys , x=y=p z =0, and w 1s =w 3s /2 in the Hamiltonian (4) we find the following equation:

$$ \frac{1}{2} \biggl(w_{1s}^2 + \frac{1}{w_{3s}^2} \biggr) z_s^2 - \frac{\mu}{ (z_s^2 + \alpha^2 )^{1/2}} = h. $$
(16)

Solving (16), we obtain the value of z s . Remember, that the value of p xs is given by (15), while the value of p ys can be found from the energy integral. The period of the 1:1:2 periodic orbits is given by

$$ T_s = \frac{4 \pi}{w_{3s}}. $$
(17)

Table 2 gives the starting positions and periods of the 1:1:2 periodic orbits for several values of the energy h. Subscript n indicate values found by the numerical integration, while subscript s indicate values found using (15), (16), and (17). The values of the parameters are: ω 1=ω 2=0.4 and ω 3=0.8. One can see that the agreement is very good. We calculate the errors z err=|(z n z s )/z s |, \(p_{x_{\mathrm{err}}} = \vert (p_{xn} - p_{xs})/p_{xs}\vert \) and T err=|(T n T s )/T s |. For the results of the 1:1:2 resonant orbits, presented in Table 2, we find that z err≤0.30 %, \(p_{x_{\mathrm{err}}} \leq0.18~\%\), while T err≤0.03 %. Figure 1 shows the 1:1:2 periodic orbit, for the above values of the parameters when h=0.034. The initial conditions are: z 0=z n =0.1059, x 0=y 0=p z0=0, p x0=p xn =0.1840, while the value of p y0 is found from the energy integral in all cases. The integration time for the 1:1:2 periodic orbit shown in Fig. 1 is t=T n =15.4218.

Fig. 1
figure 1

A 1:1:2 resonant periodic orbit starting from the z axis. The values of parameters are: ω 1=ω 2=0.4, ω 3=0.8, and h=0.034. The initial conditions are: z 0=z n =0.1059, x 0=y 0=p z0=0, p x0=p xn =0.1840, while the value of p y0 is always found from the energy integral. The integration time for this orbits is t=T n =15.4218

Table 2 Starting positions and periods for the 1:1:2 periodic orbits. Subscript n indicates values found by the numerical integration, while subscript s indicates values found using the semi-numerical method. The values of the parameters are: ω 1=ω 2=0.4 and ω 3=0.8

Now we proceed to study the resonant case when ω 1:ω 2:ω 3=2:3:3. We shall study periodic orbits intersecting the x axis at a point x s , (y s =z s =p xs =0) with velocities p zs =p ys . In this case, the numerical calculations suggest that a very good approximation for the x s is given by the formula

$$ x_s = \frac{1}{\omega_1}\sqrt{\frac{\omega_2}{\omega_1} (h + 0.01 \mu )}. $$
(18)

If we insert the above value of x s with y s =z s =p xs =0 and p zs =p ys in the Hamiltonian (4) we find

$$ p_{zs} = \sqrt{h - V_s}, $$
(19)

where

$$ V_s = \frac{1}{2} \omega_1^2 x_s^2 - \frac{\mu}{ (x_s^2 + \alpha^2 )^{1/2}}. $$
(20)

The value of the corresponding period is given by

$$ T_s = \frac{4 \pi}{w_{1s}}, $$
(21)

where

$$ w_{1s} = \biggl[\omega_1^2 + \frac{1.5 \mu}{ (x_s^2 + \alpha^2 )^{3/2}} \biggr]^{1/2}. $$
(22)

Table 3 is similar to Table 2 but for the 2:3:3 periodic orbits when ω 1=0.4 and ω 2=ω 3=0.6. As one can see, the agreement between the results given by the numerical integration and the outcomes from the semi-numerical formulas (18), (19), and (17) is very good. For the results of the 2:3:3 resonant orbits, given in Table 3, we find that x err≤0.02 %, \(p_{z_{\mathrm{err}}} \leq0.07~\%\), while T err≤0.15 %. Figure 2 shows the 2:3:3 periodic orbit for the above values of parameters when h=0.07. The initial conditions are: x 0=x n =0.8100 with y 0=z 0=p x0=0 and p z0=p zn =0.1365. The integration time for the 2:3:3 periodic orbit shown in Fig. 2 is t=T n =31.1376. Here, we must emphasize that formulae (18), (19), and (20) give very good results also for the resonant cases ω 1:ω 2:ω 3=3:2:2 and ω 1:ω 2:ω 3=4:3:3. The value of the corresponding period T s for the resonant case 3:2:2 is given by the relation

$$ T_s = \frac{6 \pi}{w_{1s}}, $$
(23)

where

$$ w_{1s} = \biggl[\omega_1^2 + \frac{0.52 \mu}{ (x_s^2 + \alpha^2 )^{3/2}} \biggr]^{1/2}. $$
(24)
Fig. 2
figure 2

A 2:3:3 resonant periodic orbit, starting from the x axis when ω 1=0.4, ω 2=ω 3=0.6, and h=0.07. The initial conditions are: x 0=x n =0.8100 with y 0=z 0=p x0=0 and p z0=p zn =0.1365, while the integration time is t=T n =31.1376

Table 3 Similar to Table 2 but for the 2:3:3 resonant periodic orbits. The values of the parameters are: ω 1=ω 2=0.4 and ω 3=0.6

In the resonant case 4:3:3, the period is given by equation

$$ T_s = \frac{8 \pi}{w_{1s}}, $$
(25)

where

$$ w_{1s} = \biggl[\omega_1^2 + \frac{0.63 \mu}{ (x_s^2 + \alpha^2 )^{3/2}} \biggr]^{1/2}. $$
(26)

A comparison between the semi-numerical results and results found by the numerical integration is given in Table 4 for the resonance case 3:2:2 and in Table 5 for the resonance case 4:3:3. The values of the parameters are: ω 1=0.3, ω 2=ω 3=0.2 for the Table 4 and ω 1=0.8, ω 2=ω 3=0.6 in Table 5. In both cases, the agreement is very good. For the results of the 3:2:2 resonant orbits given in Table 4, we find that x err≤0.03 %, \(p_{z_{\mathrm{err}}} \leq0.02~\%\), while T err≤0.01 %, while for the results of the 4:3:3 resonant orbits, presented in Table 5, we see that x err≤0.01 %, \(p_{z_{\mathrm{err}}} \leq0.02~\%\), while T err≤0.003 %. Figure 3 shows the 3:2:2 periodic orbit for the above values of parameters when h=0.30. The initial conditions are: x 0=x n =1.4908 with y 0=z 0=p x0=0 and p z0=p zn =0.4478. The integration time for the orbit shown in Fig. 3 is t=T n =62.7798. The 4:3:3 periodic orbit is given in Fig. 4. The values of parameters are as in Table 5 and the value of the energy is h=0.50. The initial conditions are: x 0=x n =0.7654 with y 0=z 0=p x0=0 and p z0=p zn =0.5600, while the integration time is t=T n =31.3865.

Fig. 3
figure 3

A 3:2:2 resonant periodic orbit, when ω 1=0.3, ω 2=ω 3=0.2, and h=0.30. The initial conditions are: x 0=x n =1.4908 with y 0=z 0=p x0=0 and p z0=p zn =0.4478, while the integration time is t=T n =62.7798

Fig. 4
figure 4

A 4:3:3 resonant periodic orbit, starting from the x axis, when ω 1=0.8, ω 2=ω 3=0.6, and h=0.50. The initial conditions are: x 0=x n =0.7654 with y 0=z 0=p x0=0 and p z0=p zn =0.5600, while the integration time is t=T n =31.3865

Table 4 Similar to Table 2 but for the 3:2:2 resonant periodic orbits. The values of the parameters are: ω 1=0.3 and ω 2=ω 3=0.2
Table 5 Similar to Table 2 but for the 4:3:3 resonant periodic orbits. The values of the parameters are: ω 1=0.8 and ω 2=ω 3=0.6

Finally, we shall consider three additional resonant cases, the cases when ω 1:ω 2:ω 3=5:2:2, ω 1:ω 2:ω 3=5:3:3 and ω 1:ω 2:ω 3=5:4:4. We consider periodic orbits intersecting the x axis at a point x s , (y s =z s =p xs =0) with velocities p zs =p ys . In all the above three cases, the numerical calculations suggest that a very good approximation for x s is given by the relation

$$ x_s = \frac{1}{\omega_1}\sqrt{\frac{\omega_2}{\omega_1} h}. $$
(27)

Using the above value of x s with y s =z s =p xs =0, p zs =p ys in the Hamiltonian (4), we find

$$ p_{zs} = \sqrt{h - V_s}, $$
(28)

with

$$ V_s = \frac{1}{2} \omega_1^2 x_s^2 - \frac{\mu}{ (x_s^2 + \alpha^2 )^{1/2}}. $$
(29)

The value of the corresponding period is given by

$$ T_s = \frac{10 \pi}{w_{1s}}, $$
(30)

where

$$ w_{1s} = \biggl[\omega_1^2 + \frac{0.18 \mu}{ (x_s^2 + \alpha^2 )^{3/2}} \biggr]^{1/2}, $$
(31)

for the 5:2:2 resonance, while

$$ w_{1s} = \biggl[\omega_1^2 + \frac{0.40 \mu}{ (x_s^2 + \alpha^2 )^{3/2}} \biggr]^{1/2}, $$
(32)

for the 5:3:3 resonance. In the case of the 5:4:4 resonance, the value of the frequency w 1s is given by the formula

$$ w_{1s} = \biggl[\omega_1^2 + \frac{0.70 \mu}{ (x_s^2 + \alpha^2 )^{3/2}} \biggr]^{1/2}, $$
(33)

Tables 6, 7, and 8 are similar to Table 5 but for the resonant cases 5:2:2, 5:3:3, and 5:4:4, respectively. The values of the parameters are: ω 1=0.5, ω 2=ω 3=0.2 for Table 6, ω 1=0.5, ω 2=ω3=0.3 for Table 7 and ω 1=0.5, ω 2=ω 3=0.4 for Table 8. We see that in all cases, the agreement is very good.

Table 6 Similar to Table 2 but for the 5:2:2 resonant periodic orbits. The values of the parameters are: ω 1=0.5 and ω 2=ω 3=0.2
Table 7 Similar to Table 2 but for the 5:3:3 resonant periodic orbits. The values of the parameters are: ω 1=0.5 and ω 2=ω 3=0.3
Table 8 Similar to Table 2 but for the 5:4:4 resonant periodic orbits. The values of the parameters are: ω 1=0.5 and ω 2=ω 3=0.4

For the results of the resonant orbits, given in Tables 6, 7, and 8, we find that in all cases x err≤0.01 %, \(p_{z_{\mathrm{err}}} \leq0.02~\%\), while T err≤0.001 %. Figure 5 shows the 5:2:2 periodic orbit, for the above values of the parameters, when h=0.40. The initial conditions are: x 0=x n =0.8001 with y 0=z 0=p x0=0 and p z0=p zn =0.5668. The integration time for the 5:2:2 periodic orbit shown in Fig. 5 is t=T n =62.7944. Figure 6 shows the 5:3:3 periodic orbit when h=0.40, while the values of the parameters are as in Table 7. The initial conditions are: x 0=x n =0.9799 with y 0=z 0=p x0=0 and p z0=p zn =0.5300, while the integration time is t=T n =62.7837. Finally, a 5:4:4 periodic orbit is shown in Fig. 7. The values of the parameters are as in Table 8, while the value of the energy is h=0.40. The initial conditions are: x 0=x n =1.1313 with y 0=z 0=p x0=0 and p z0=p zn =0.4907. The integration time for the 5:4:4 periodic orbit shown in Fig. 7 is t=T n =62.7750.

Fig. 5
figure 5

A 5:2:2 resonant periodic orbit, starting from the x axis, when ω 1=0.5, ω 2=ω 3=0.2 and h=0.40. The initial conditions are: x 0=x n =0.8001 with y 0=z 0=p x0=0 and p z0=p zn =0.5668, while the integration time is t=T n =62.7944

Fig. 6
figure 6

Similar to Fig. 5 but for the 5:3:3 resonant case. The values of the parameters are: ω 1=0.5, ω 2=ω 3=0.3, and h=0.40. The initial conditions are: x 0=x n =0.9799 with y 0=z 0=p x0=0 and p z0=p zn =0.5300, while the integration time is t=T n =62.7837

Fig. 7
figure 7

Similar to Fig. 5 but for the 5:4:4 resonant case. The values of the parameters are: ω 1=0.5, ω 2=ω 3=0.4, and h=0.40. The initial conditions are: x 0=x n =1.1313 with y 0=z 0=p x0=0 and p z0=p zn =0.4907, while the integration time is t=T n =62.7750

4 Discussion and conclusions

As it was mentioned in Sect. 1, the periodic orbits play an important role in the dynamical behavior of a Hamiltonian system. In order to locate periodic orbits in 2D and 3D potentials, researchers have used a number of numerical or analytical methods [9, 10, 1217, 20, 22].

In addition to the above methods, there are the semi-numerical methods. We have presented semi-numerical results in a number of previous papers [25] for polynomial potentials. Semi-numerical methods were also successfully used in celestial mechanics [19]. All the above strongly suggest that these methods are a very useful tool for the study of the dynamical systems.

In this paper, we have studied the periodic motion in a dynamical system composed of a 3D harmonic oscillator and a Plummer potential in several resonant cases n:m:l, where n≤5, m≤4 and l≤4. We made this choice for two basic reasons: First, because it is not possible to study all resonant cases in a given potential and second, because the important resonances are those with values of n, m, and l. We considered resonant cases n:m:l in which the periodic orbits are in fact two-dimensional, lying on a particular sub-plane of the three-dimensional space. This issue is very important and essential for our investigation, since it makes easier the construction of the semi-numerical relations regarding the position and the period of the periodic orbit. However, it is in our future plans, to study and provide results about real three-dimensional periodic orbits. Here we must note that potential (2) was also used by the first author to study local motion in the central region of a galaxy [24, 25].

The agreement between the results obtained from the semi-numerical methods and those derived from the numerical integration of the equations of motion depends on the value of the energy h. Our numerical experiments indicate that there is a wide range for the value of the energy in every resonant case, in which the agreement is sufficient enough. However, in every resonant case we studied in the previous sections, we chose six representative values of the energy inside this range, in order to present tables with our data. At this point, it would be useful to refer to how the numerical results indicate or suggest the formulas giving the position and the period of the periodic orbits; in other words, to explain how the formulas are obtained. This was done on a complete empirical basis, using our previous experience, simple expressions, which of course, contain the main parameters entering the Hamiltonian (4) and give outcomes that are close to those given by the numerical integration. If the agreement is not satisfactory, we look for a new formula and so on, until we have achieved a good result.

In particular, the aim of this work was to locate the position and find the period of the periodic orbits in the Hamiltonian (4) in the above mentioned resonant cases using a semi-numerical procedure and compare the results with the outcomes derived from numerical integration. We believe that using semi-numerical methods for finding periodic orbits is very important in 3D Hamiltonian systems, because in these systems it is not easy to find integrals of motion, or to apply analytical methods. The difficulty increases in the cases when we have non polynomial perturbing terms. Furthermore, the comparison of the results given by the semi-numerical method with the results given by numerical integration shows that our method is fast and reliable. On this basis, our semi-numerical method can be considered as an effective and sharp tool in order to find the position and the period of periodic orbits in 3D systems. It is in our plans to try to find more complicated periodic orbits in 3D dynamical systems in the near future.