Abstract
Hill's equation is a common model of a time-periodic system that can undergo parametric resonance for certain choices of system parameters. For most kinds of parametric forcing, stable regions in its two-dimensional parameter space need to be identified numerically, typically by applying a matrix trace criterion. By integrating ordinary differential equations derived from the stability criterion, we present an alternative, more accurate, and computationally efficient numerical method for determining the stability boundaries of Hill's equation in parameter space. This method works similarly to determine stability boundaries for the closely related problem of vibrational stabilization of the linearized Katpiza pendulum. Additionally, we derive a stability criterion for the damped Hill's equation in terms of a matrix trace criterion on an equivalent undamped system. In doing so, we generalize the method of this paper to compute stability boundaries for parametric resonance in the presence of damping.
1 Introduction
Second-order oscillators with time-periodically varying system parameters can experience the related phenomena of parametric resonance and vibrational stabilization. Parametric resonance involves exponential amplitude growth under certain combinations of the oscillator's ostensible “natural frequency” and parametric forcing amplitude. Parametric forcing refers to the effect of a time-periodic system parameter that (typically) multiplies the state, and differs from the more typical additive harmonic forcing in this way. Parametric resonance is observed in a variety of natural and engineered systems, such as in hydrodynamic instabilities [1,2], time-periodic axial loading of columns [3], and in MEMS devices subjected to alternating voltage [4].
A canonical model for linear second-order systems that can undergo parametric resonance is Hill's equation [5], a harmonic oscillator with a time-periodically varying spring constant. Certain combinations of the system's natural frequency and parametric forcing amplitude can cause instability, even at arbitrarily low forcing amplitudes under low or zero damping conditions. These unstable parameter ranges form the well-known Arnold tongue structures [6].
Vibrational stabilization, the flip side of parametric resonance, involves the stabilization via time-periodic parametric forcing of nominally unstable systems, typically a second-order oscillator with a negative spring constant. A common example of this is the Kapitza pendulum, an inverted pendulum stabilized via sinusoidal base motion that acts as sensorless feedback. Although previously considered a high-frequency phenomenon, recent work by Berg and Wickramasinghe [7] shows that vibrational stabilization can be achieved via parametric forcing at lower frequencies with precisely chosen amplitudes.
The stability boundaries in parameter space of both Hill's equation and the linearized Kapitza pendulum are determined by specific contours of an implicit function of the system parameters. This provides a two-dimensional stability map for both kinds of systems. By stability, we refer here to both neutral stability in the Lyapunov sense (boundedness for all time) and to asymptotic stability in the presence of damping. Such maps have been used in the design of quadrupole ion traps for mass spectrometry [8]. While canonical models of both phenomena are typically of second order, higher-order systems can be modeled as collections of Hill oscillators [9] or their unstable counterparts [10] under certain conditions, and stability criteria can be found as the composition or overlap of the individual two-dimensional stability maps of the component systems.
It is possible to derive analytical criteria for parametric resonance in the limit of small parametric forcing [6] using the classical Floquet theory [7] and for vibrational stabilization using higher-order averaging methods [11]. However, these results are valid in limited regimes—respectively, in the limit of low parametric forcing amplitudes and frequencies for parametric resonance and vibrational stabilization. More general estimates require numerical computation. Typically, these boundaries are computed and visualized via contour plots of the system, as computed using a marching squares algorithm [12]. In this work, we propose a more efficient method involving direct numerical calculation and integration of this implicit function. This method leans on the idea that we are only interested in specific contours and not the overall picture, reducing the numerical complexity of the problem.
To illustrate the method, we cover the general idea of integrating an implicit function of two variables in Sec. 2. For Hill's equation, this function does not have a closed form, so we cover some relevant properties in Sec. 3.1, additional solution steps required in Sec. 3.2, and provide some examples of the results of this method. Section 3.3 extends the numerical method to the case of Hill's equation with damping. Finally, we cover some considerations for numerical integration in Sec. 4.
2 The Implicit Function Method for Contour Plots
The general idea of the method is as follows: given a smooth function of variables a, , we wish to plot a specific contour in space passing through , where .
where at least one of the two equations is well-defined in a neighborhood of . We note that neither the ordinary differential equations (ODEs) nor the initial conditions in (2.1) involve c—these ODEs are satisfied by the contour of f that passes through irrespective of its value.
The latter can be avoided by rescaling a and appropriately locally around . In both cases, stitching together the piecewise numerical solutions for the contour can lead to a loss of accuracy, which we describe in further detail in Sec. 4.
3 Application to Hill's Equation
which represents a harmonic oscillator with a periodically varying spring constant. is the mean value of the spring constant, and is the parametric forcing amplitude. The parametric forcing has zero mean. Such systems can experience parametric resonance for specific choices of a and . Allowing a to be negative gives us the linearized model of the Kapitza pendulum, an inverted pendulum with sinusoidal vertical base motion. This nominally unstable system is vibrationally stabilized for specific choices of a and . Our treatment of stability boundaries covers both regimes of behavior.
3.1 Properties of Hill's Equation.
We review a few salient properties of Hill's equation for applying the implicit function method to compute its parametric stability.
Since , it is 1 for all time.
Since is real, we have . Since is , we have iff . Thus, system (3.1) is stable iff , with equality occurring when both eigenvalues of are at .
The condition is a function of two variables whose contours in space with values form the boundary between regions of stability and regions of parametric resonance. These boundaries in parameter space form the well-known Arnold tongue structures associated with parametric resonance (Fig. 1).

A representative stability diagram for Hill's equation illustrating the implicit function method (3.5) of finding stability boundaries. The time-periodic forcing in this example is sinusoidal with period . The system experiences parametric resonance with parameters in the shaded regions. All stability boundaries are the curves (ϵ, a(ϵ)) given by the implicit equation , (2π, 0; a(ϵ), ϵ), starting at ∈ ℕ and . These curves arefound by integrating Eq. (3.5) starting at these initial conditions.

A representative stability diagram for Hill's equation illustrating the implicit function method (3.5) of finding stability boundaries. The time-periodic forcing in this example is sinusoidal with period . The system experiences parametric resonance with parameters in the shaded regions. All stability boundaries are the curves (ϵ, a(ϵ)) given by the implicit equation , (2π, 0; a(ϵ), ϵ), starting at ∈ ℕ and . These curves arefound by integrating Eq. (3.5) starting at these initial conditions.
Further, it can be shown [6] that there are no other values of (with ) for which the system is unstable.
3.2 Stability Boundary Computation for Hill's Equation.
The stability boundaries are typically computed in the following way:
Create a grid in space that covers the parameter ranges of interest.
Find the monodromy map (and thus its trace) numerically at all points on this grid.
Plot the contours of the map that have values .
This method has three shortcomings. The first is the computational burden of calculating the value of at all grid points. Essentially, this involves scanning a two-dimensional space in search of a one-dimensional curve. The second is that the slope of the curve is not known a priori, so the spatial grid resolution cannot be adjusted to take advantage of this. As a result, several runs with progressively finer grids are required to obtain a suitably detailed picture. Finally, there are regions in the parameter space where changes rapidly with a, making it difficult to resolve fine details in these areas in a contour map created with a typical marching squares algorithm.
Applying the implicit function method outlined in Sec. 2 avoids all of these shortcomings, but it requires knowledge of at least one point on the contour of interest. Specifically, for each contour such that , we need to know the corresponding . From Eq. (3.4), this point is .
where we have suppressed the explicit dependence of and A on a and in the notation. The linear ODEs (3.7) and (3.8) can be integrated from to to give and , respectively. Since uniformly for any choice of a and , the initial conditions are uniformly zero in the above equations, and they are driven by the state-transition matrix at , which appears as an additive input. This recipe for finding stability boundaries is illustrated in Figs. 2 and 5.

Illustration of the solution method for stability boundary calculation for Hill's equation. The goal is to find the set of points {()} that satisfies the topmost block, (3.5), which is a curve passing through known (). For Hill's equation, this stability boundary is representable as a(). At each time-step, the current curve coordinates () determine the state-transition matrix Θ() that appears as an input elsewhere. We compute the state-transition matrix over one forcing period and use it to integrate systems (3.7) and (3.8). The final value of and gives us the value of for this time-step. Advancing the main integrator in time in turn gives us the new coordinates () required to continue the solution. (The dependence ofΘ(; a, ϵ)and (t) on time has been suppressed in the notation.)

Illustration of the solution method for stability boundary calculation for Hill's equation. The goal is to find the set of points {()} that satisfies the topmost block, (3.5), which is a curve passing through known (). For Hill's equation, this stability boundary is representable as a(). At each time-step, the current curve coordinates () determine the state-transition matrix Θ() that appears as an input elsewhere. We compute the state-transition matrix over one forcing period and use it to integrate systems (3.7) and (3.8). The final value of and gives us the value of for this time-step. Advancing the main integrator in time in turn gives us the new coordinates () required to continue the solution. (The dependence ofΘ(; a, ϵ)and (t) on time has been suppressed in the notation.)
Figure 3 compares the stability maps for Hill's equation as computed using the contour method and the implicit function method introduced in this paper. The implicit function method provides better resolution with significantly less computational effort.

Comparison of the stability map in () parameter space of Hill's equation with sinusoidal parametric forcing, as computed by (left) the contour method and (right) the implicit function method detailed in Sec. 3.2 and Fig. 1. The contour method involves plotting the contour of the function f(a, ϵ) = Tr Θ(2π, 0;a, ϵ) with absolute value 2. This function is computed at a grid resolution of (ϵ, Δa) = (0.02, 0.02), and the contour levels plotted are 1.99 < ∣Tr Θ(2π, 0; a, ϵ)∣ < 2.01. None of the contours depict theArnold tongues of the system faithfully. The implicit function method involves integrating one implicit function for each Arnold tongue boundary (3.5) with a step of . This method ismore efficient and provides much better resolution of the Arnold tongues as well, especially for small . In our tests, it is also faster by a factor of 10 to 50, depending on the desired grid resolution.

Comparison of the stability map in () parameter space of Hill's equation with sinusoidal parametric forcing, as computed by (left) the contour method and (right) the implicit function method detailed in Sec. 3.2 and Fig. 1. The contour method involves plotting the contour of the function f(a, ϵ) = Tr Θ(2π, 0;a, ϵ) with absolute value 2. This function is computed at a grid resolution of (ϵ, Δa) = (0.02, 0.02), and the contour levels plotted are 1.99 < ∣Tr Θ(2π, 0; a, ϵ)∣ < 2.01. None of the contours depict theArnold tongues of the system faithfully. The implicit function method involves integrating one implicit function for each Arnold tongue boundary (3.5) with a step of . This method ismore efficient and provides much better resolution of the Arnold tongues as well, especially for small . In our tests, it is also faster by a factor of 10 to 50, depending on the desired grid resolution.
Figure 4 shows the stability boundaries computed using this method for Hill's equation with a few different parametric forcing functions.

Stability diagrams in the () parameter space for Hill's equation, for four different kinds of zero-mean parametric forcing (inset). Clockwise from the top, they are sinusoidal, square waves with even and uneven duty cycles and a periodic ramp. The stability boundaries are computed using the implicit function method (Fig. 2) for the different forcing functions. For , the plots show the first three Arnold tongues, whose locations as ϵ → 0+ are independent of the type of forcing. For , the plots show the (ϵ, a) parameter “window” that causes vibrational stabilization of the nominally exponentially unstable system. The case of the square wave parametric forcing (top right) displays a disadvantage of this integration method: when tongue boundaries intersect to form a stability pocket, the integration of Eq. (3.5) fails and needs to be addressed separately (see Sec. 4).

Stability diagrams in the () parameter space for Hill's equation, for four different kinds of zero-mean parametric forcing (inset). Clockwise from the top, they are sinusoidal, square waves with even and uneven duty cycles and a periodic ramp. The stability boundaries are computed using the implicit function method (Fig. 2) for the different forcing functions. For , the plots show the first three Arnold tongues, whose locations as ϵ → 0+ are independent of the type of forcing. For , the plots show the (ϵ, a) parameter “window” that causes vibrational stabilization of the nominally exponentially unstable system. The case of the square wave parametric forcing (top right) displays a disadvantage of this integration method: when tongue boundaries intersect to form a stability pocket, the integration of Eq. (3.5) fails and needs to be addressed separately (see Sec. 4).
3.3 Stability Boundaries for Hill's Equation With Damping.
The variable substitution may be used to represent Eq. (3.9) as an equivalent undamped Hill's equation [7]. Using this transformation, it is possible to derive a stability criterion for Hill's equation with viscous damping.
Proof. See the Appendix.▪
Since , the Arnold tongues for Hill's equation with damping do not meet on the a axis, and there is no equivalent to criterion (3.4). Integrating Eq. (3.5) along the contour thus requires finding one point along each “branch” of the stability boundary.
We find these initial conditions numerically, using the criteria and . The rest of the treatment is identical to the undamped case covered in Sec. 3.3. Figure 5 illustrates the method.
![Illustration of the method for stability boundary calculations for Hill's equation with and without damping (Eqs. (3.1) and (3.9), respectively). Left: Hill's equation without damping. Each Arnold tongue boundary corresponds to a contour ∣Tr[Θ(2π, 0)]∣=2 and meets the a axis at n2/4, n ∈ ℕ. Thus, ODE (3.5) can be integrated starting at (ϵ0, a0) = (0, n2/4). See Fig. 2 for details of the integration process. Right: Hill's equation with damping coefficient κ. The method is similar to the undamped case, but the initial conditions (ϵ0,a0) for each Arnold tongue haveto be found numerically. The ODE (3.5) is integrated from theleft-most point of each tongue, corresponding to Tr[Φ(2π,0)]∣(ϵ0, a0) = 2 cosh(2πκ) and (∂/∂ a)Tr[Φ(2π,0)]∣(ϵ0, a0) = 0. See Sec. 3.3 for details. In both cases, finding a as a function of ϵ requires picking one of the two “branches” of the stability boundary passing through (ϵ0,a0). The upper and lower branches of the stability boundary are resolved by perturbing (ϵ0,a0) appropriately.](https://asmedc.silverchair-cdn.com/asmedc/content_public/journal/computationalnonlinear/20/6/10.1115_1.4068374/1/m_cnd_020_06_061007_f005.png?Expires=1751007608&Signature=H0a4P7u0LHiRnhvuV-G5p6JosJYBneIKN3sFafFT1vAGYaLELu5rvvW4vL1JzBubUzPgURSdCcxNUqBW~InkPSdRVKU3illPJK6MTOV5MGOGtdxFWw7JWtt20MBRVxIl-TwXQbX7gX0w5Ox6lvJxxYNYuW7Xo3Ji0cwfX0kxRSJUURT-76OzJSEoeY~hqH~n2Vtqai1hMpA7VuUzxqVp6bBk1YWvq2Yt8S7tINMNWIb2kxbqv0igil3OdYhd-Imy0bYvUlMsK2KrdXYb1Y16Fw-lXHOvhAf0BuKj8cXM5ZufDqniaL2IV82Ed4JU7NA-UH445NK7t1kkYG1tU-EWSA__&Key-Pair-Id=APKAIE5G5CRDK6RD3PGA)
Illustration of the method for stability boundary calculations for Hill's equation with and without damping (Eqs. (3.1) and (3.9), respectively). Left: Hill's equation without damping. Each Arnold tongue boundary corresponds to a contour ∣Tr[Θ(2π, 0)]∣=2 and meets the a axis at , ∈ ℕ. Thus, ODE (3.5) can be integrated starting at (ϵ0, a0) = (0, n2/4). See Fig. 2 for details of the integration process. Right: Hill's equation with damping coefficient . The method is similar to the undamped case, but the initial conditions () for each Arnold tongue haveto be found numerically. The ODE (3.5) is integrated from theleft-most point of each tongue, corresponding to Tr[Φ(2π,0)]∣(ϵ0, a0) = 2 cosh(2πκ) and (∂/∂ a)Tr[Φ(2π,0)]∣(ϵ0, a0) = 0. See Sec. 3.3 for details. In both cases, finding a as a function of requires picking one of the two “branches” of the stability boundary passing through (). The upper and lower branches of the stability boundary are resolved by perturbing () appropriately.
![Illustration of the method for stability boundary calculations for Hill's equation with and without damping (Eqs. (3.1) and (3.9), respectively). Left: Hill's equation without damping. Each Arnold tongue boundary corresponds to a contour ∣Tr[Θ(2π, 0)]∣=2 and meets the a axis at n2/4, n ∈ ℕ. Thus, ODE (3.5) can be integrated starting at (ϵ0, a0) = (0, n2/4). See Fig. 2 for details of the integration process. Right: Hill's equation with damping coefficient κ. The method is similar to the undamped case, but the initial conditions (ϵ0,a0) for each Arnold tongue haveto be found numerically. The ODE (3.5) is integrated from theleft-most point of each tongue, corresponding to Tr[Φ(2π,0)]∣(ϵ0, a0) = 2 cosh(2πκ) and (∂/∂ a)Tr[Φ(2π,0)]∣(ϵ0, a0) = 0. See Sec. 3.3 for details. In both cases, finding a as a function of ϵ requires picking one of the two “branches” of the stability boundary passing through (ϵ0,a0). The upper and lower branches of the stability boundary are resolved by perturbing (ϵ0,a0) appropriately.](https://asmedc.silverchair-cdn.com/asmedc/content_public/journal/computationalnonlinear/20/6/10.1115_1.4068374/1/m_cnd_020_06_061007_f005.png?Expires=1751007608&Signature=H0a4P7u0LHiRnhvuV-G5p6JosJYBneIKN3sFafFT1vAGYaLELu5rvvW4vL1JzBubUzPgURSdCcxNUqBW~InkPSdRVKU3illPJK6MTOV5MGOGtdxFWw7JWtt20MBRVxIl-TwXQbX7gX0w5Ox6lvJxxYNYuW7Xo3Ji0cwfX0kxRSJUURT-76OzJSEoeY~hqH~n2Vtqai1hMpA7VuUzxqVp6bBk1YWvq2Yt8S7tINMNWIb2kxbqv0igil3OdYhd-Imy0bYvUlMsK2KrdXYb1Y16Fw-lXHOvhAf0BuKj8cXM5ZufDqniaL2IV82Ed4JU7NA-UH445NK7t1kkYG1tU-EWSA__&Key-Pair-Id=APKAIE5G5CRDK6RD3PGA)
Illustration of the method for stability boundary calculations for Hill's equation with and without damping (Eqs. (3.1) and (3.9), respectively). Left: Hill's equation without damping. Each Arnold tongue boundary corresponds to a contour ∣Tr[Θ(2π, 0)]∣=2 and meets the a axis at , ∈ ℕ. Thus, ODE (3.5) can be integrated starting at (ϵ0, a0) = (0, n2/4). See Fig. 2 for details of the integration process. Right: Hill's equation with damping coefficient . The method is similar to the undamped case, but the initial conditions () for each Arnold tongue haveto be found numerically. The ODE (3.5) is integrated from theleft-most point of each tongue, corresponding to Tr[Φ(2π,0)]∣(ϵ0, a0) = 2 cosh(2πκ) and (∂/∂ a)Tr[Φ(2π,0)]∣(ϵ0, a0) = 0. See Sec. 3.3 for details. In both cases, finding a as a function of requires picking one of the two “branches” of the stability boundary passing through (). The upper and lower branches of the stability boundary are resolved by perturbing () appropriately.
4 Considerations for Numerical Integration
In this section, we briefly mention some details of and considerations for the numerical integration of Eq. (3.5).
Since Hill's equation is a Hamiltonian dynamical system, Eq. (3.6) needs to be solved using a symplectic integrator. Depending on the required accuracy, a symplectic Euler method or an “almost symplectic” trapezoidal method can suffice. This work uses the latter, which is symmetric and second order, with adaptive time-stepping and no numerical damping [15].
The dynamics of , , and (Eqs. (3.5), (3.7), and (3.8), respectively) have no special structure and are solved for using an explicit Runge–Kutta (Owren–Zennaro optimized interpolation [16]) method.
The solution method fails at Arnold tongue “crossover points,” where tongue boundaries intersect at nonzero values of , creating stability “pockets.” This is the case, for instance, for square wave forcing in Fig. 4. At these intersection points, and the integration for Eq. (3.5) can stall. When using an adaptive time-step method as we do here, this stall can be diagnosed by a progressive decrease in the time-step down to machine precision, before which the integration needs to be suspended. This can be addressed in a few different ways:
- Switch conditionally to the solving the reciprocal problem:
Find new initial conditions for integrating Eq. (3.5) by extrapolating the two tongue boundaries past the pocket, while ensuring that .
Both methods cause a loss of accuracy in the solutions past the “crossover” point, which is a limitation of this method.
Finally, computing the stability map for the damped Hill's equation requires finding points where and . These may be found by integrating Eqs. (3.6) and ((3.7) using an explicit Runge–Kutta method (Owren–Zennaro optimized interpolation 5/4) followed by a binary search above the locations of the tongues of the undamped system, i.e., in the vicinity of for .
5 Extensions and Limitations of the Implicit Function Method
The implicit function method detailed in Sec. 2 can be applied to compute specific contours of any smooth scalar-valued function more efficiently than evaluating the function on a grid.
While the method provides better resolution of the tongues compared to plotting contours of the trace of the monodromy map, it also rests on certain assumptions about the geometry of the Arnold tongues, for instance, that the stability boundaries are smooth and can be represented in the form . It is thus not a true parametric description of the stability boundaries of the form for some parameter and requires careful handling of crossover points of the Arnold tongues, where two tongues meet. In particular, it is not yet clear how to retain the accuracy of the numerical solution past the crossover points.
It is also reliant on the existence of a scalar criterion for stability, of the form . The stability criterion for parametric resonance in higher-order linear systems involves the eigenvalues of the monodromy map that is not reducible to a criterion involving its trace. When the system cannot be diagonalized into a collection of decoupled second-order time-periodic oscillators, neither the contour method nor the implicit function method discussed in this paper can be directly applied to obtain stability maps. Extending the method to generate the stability maps of higher-order systems, possibly using the symplectic properties of the monodromy map, is a promising avenue of future work.
Data Availability Statement
The datasets generated and supporting the findings of this article are obtainable from the corresponding author upon reasonable request.
Appendix: Hill's Equation With Damping
In this section, we review properties of the monodromy map of the damped Hill's equation that we use in Sec. 3.3.
The nominal spring constant in the transformed coordinates is lower than the original by . We denote the state-transition matrix for system (A3) as , suppressing the dependence on the parameters a, , and .
System (3.9) is unstable when has an eigenvalue outside the unit circle. Our goal is to obtain an equivalent stability criterion for the damped system (3.9) in terms of the monodromy map of the transformed system. The implicit function method of Sec. 3 can then be applied to the transformed, undamped system to plot the stability map of the original damped system. To do this, we use the following property of the solution of the damped Hill's equation:
Lemma A.1. The monodromy mapof the damped Hill's equation (3.9)is a scalar multiple of a symplectic matrix. Specifically,is symplectic.
is a product of three symplectic matrices and is also symplectic.
This result is summarized in Table 1. We note that , with the lower bound achieved in the undamped case of .
Hill's equation | Damped | Transformed (undamped) |
---|---|---|
System | ||
State | ||
Monodromy map | ||
Stability criterion |
Hill's equation | Damped | Transformed (undamped) |
---|---|---|
System | ||
State | ||
Monodromy map | ||
Stability criterion |
Both criteria involve the traces of the monodromy maps of the systems, and the stability boundary corresponds to different contours. The two forms are equivalent.