PHYS-244 · Lesson 4 of 12 · 22 min

Energy, potentials and stability in one dimension

Many problems in mechanics can be solved without ever finding the position as a function of time. If a force can be derived from a potential energy, conservation of energy turns the second-order equation of motion into a first-order one, and a sketch of the potential energy curve tells you at a glance where the particle can go, where it turns around, where it can rest, and whether a small push makes it return or run away. This lesson develops these energy methods for motion in one dimension and finishes with an exact formula for the period of any one-dimensional oscillation, which we use to find how a pendulum's period grows with amplitude.

Work, kinetic energy and conservative forces

Multiply Newton's second law \(m\ddot x = F\) by \(\dot x\). The left side is \(\frac{d}{dt}\big(\tfrac12m\dot x^2\big)\), so integrating between two times gives the work–energy theorem: the change in kinetic energy equals the work \(W = \int F\,dx\) done by the net force. This is true for any force. A force is called conservative if the work it does between two points depends only on the points and not on the path or on how fast the particle travels between them. In one dimension, any force that depends only on position is conservative, and we can define a potential energy

\[U(x) = -\int_{x_0}^{x}F(x')\,dx', \qquad F(x) = -\frac{dU}{dx}.\]

The reference point \(x_0\), where \(U = 0\), is arbitrary; only differences in \(U\) have physical meaning. With \(F = -U'\), the work–energy theorem becomes the conservation of mechanical energy,

\[E = \tfrac12m\dot x^2 + U(x) = \text{constant}.\]

Forces that depend on velocity (drag, friction) or explicitly on time (a driving force) are not conservative in this sense. Friction converts mechanical energy into heat; a time-dependent force can pump energy in or out. In three dimensions there is an extra condition, which lesson 6 develops: a position-dependent force is conservative only if its curl is zero.

Reading a potential energy curve

Because kinetic energy can never be negative, the particle can only be where \(U(x) \le E\). Draw a horizontal line at height \(E\) across the graph of \(U(x)\). The particle is confined to the regions where the curve lies below the line. Where the line meets the curve, \(\dot x = 0\): these are turning points, where the particle stops momentarily and reverses. Between two turning points the motion is a back-and-forth oscillation. If the region is bounded on only one side, the particle comes in, turns around and leaves for good.

A graph of a double-well potential energy U against x. The curve has two valleys, a deeper one on the left and a shallower one on the right, separated by a hump marked unstable. Each valley bottom is marked stable. A blue horizontal line at a low energy E1 spans only the left valley, with dashed lines down to the axis at its two ends labeled turning points. A purple line at a higher energy E2 spans both valleys and the hump.
A double-well potential. At energy \(E_1\) the particle is trapped in one well, oscillating between two turning points. At \(E_2\) it passes over the barrier and moves through both wells.

The speed at any point follows directly: \(|\dot x| = \sqrt{2(E - U(x))/m}\). The particle moves fastest where the potential is lowest. Points where \(U'(x) = 0\) are equilibria, since the force vanishes there. At a minimum of \(U\), a small displacement produces a force back toward the equilibrium, so the equilibrium is stable. At a maximum, a small displacement produces a force away from it, so the equilibrium is unstable. A double well like the one in the figure models a molecule that can sit in two configurations, a buckled beam that can snap between two shapes, or a ball on a dented surface.

Small oscillations about a minimum

Expand the potential about a stable equilibrium \(x_0\) in a Taylor series: \(U(x) = U(x_0) + \tfrac12U''(x_0)(x - x_0)^2 + \tfrac16U'''(x_0)(x - x_0)^3 + \cdots\). The linear term is absent because \(U'(x_0) = 0\). For small displacements the quadratic term dominates, and the force is \(F \approx -U''(x_0)(x - x_0)\), a spring with stiffness \(k = U''(x_0)\). The motion is simple harmonic with

\[\omega_0 = \sqrt{\frac{U''(x_0)}{m}}.\]

This is why simple harmonic motion is everywhere, as PHYS-230 lesson 1 emphasized: almost any system near a stable equilibrium oscillates harmonically for small enough amplitude. If \(U''(x_0) < 0\) the equilibrium is unstable, and a displacement grows as \(e^{\lambda t}\) with \(\lambda = \sqrt{-U''(x_0)/m}\). If \(U''(x_0) = 0\) the quadratic test is inconclusive, and higher derivatives decide; the quartic well \(U = cx^4\) is stable, but its oscillations are not harmonic at any amplitude.

Worked problem

Oscillations of a diatomic molecule

The Morse potential \(U(r) = D\big(1 - e^{-a(r - r_e)}\big)^2\) models the bond between two atoms. For hydrogen chloride, \(D = 7.4\times10^{-19}\ \mathrm{J}\), \(a = 1.8\times10^{10}\ \mathrm{m^{-1}}\) and the reduced mass is \(\mu = 1.63\times10^{-27}\ \mathrm{kg}\). Find the small-oscillation frequency.

Show solution
  1. The minimum is at \(r = r_e\), where \(U = 0\). Differentiating twice and setting \(r = r_e\): \(U''(r_e) = 2Da^2\).
  2. \(k = 2(7.4\times10^{-19})(1.8\times10^{10})^2 = 480\ \mathrm{N/m}\).
  3. \(\omega_0 = \sqrt{k/\mu} = \sqrt{480/1.63\times10^{-27}} = 5.4\times10^{14}\ \mathrm{rad/s}\), so \(f = 8.6\times10^{13}\ \mathrm{Hz}\).

Answer: About \(8.6\times10^{13}\ \mathrm{Hz}\), in the infrared at a wavelength near 3.5 μm, close to the measured absorption band of HCl. The classical small-oscillation frequency matches the quantum vibrational spacing because the harmonic oscillator is one of the few systems where the two theories give the same frequency.

The period as an integral

Energy conservation gives the speed at each point, and the time to travel a distance \(dx\) is \(dx/|\dot x|\). Adding up the time between the turning points \(x_1\) and \(x_2\) and doubling for the return trip,

\[T(E) = 2\int_{x_1}^{x_2}\frac{dx}{\sqrt{2(E - U(x))/m}} = \sqrt{2m}\int_{x_1}^{x_2}\frac{dx}{\sqrt{E - U(x)}}.\]

This formula holds for any one-dimensional potential well, harmonic or not. For \(U = \tfrac12kx^2\) the integral is \(\pi\sqrt{2/k}\), giving \(T = 2\pi\sqrt{m/k}\) independent of amplitude, the defining property of the harmonic oscillator. For any other well the period depends on the energy. The integrand blows up at the turning points, where the particle is momentarily at rest, but the singularity is integrable: near a turning point \(E - U \propto |x - x_i|\), and \(\int dx/\sqrt{x}\) is finite. Numerically, the substitution \(x = x_m\sin\phi\) for a symmetric well removes the singularity entirely.

The exact period of a pendulum

For a pendulum of length \(\ell\) the angle \(\theta\) plays the role of \(x\), the moment of inertia \(m\ell^2\) plays the role of \(m\), and \(U = mg\ell(1 - \cos\theta)\). Released from rest at \(\theta_0\), energy conservation gives \(\dot\theta^2 = (2g/\ell)(\cos\theta - \cos\theta_0)\). The period integral becomes

\[T = 4\sqrt{\frac{\ell}{2g}}\int_0^{\theta_0}\frac{d\theta}{\sqrt{\cos\theta - \cos\theta_0}} = 4\sqrt{\frac{\ell}{g}}\,K\!\big(\sin\tfrac{\theta_0}{2}\big),\]

where \(K(k) = \int_0^{\pi/2}d\phi/\sqrt{1 - k^2\sin^2\phi}\) is the complete elliptic integral of the first kind, reached by the substitution \(\sin(\theta/2) = \sin(\theta_0/2)\sin\phi\). Carl Friedrich Gauss discovered in 1799 that \(K\) can be computed with astonishing speed using the arithmetic–geometric mean: \(K(k) = \pi/\big(2\,\mathrm{AGM}(1, \sqrt{1 - k^2})\big)\). Each AGM iteration roughly doubles the number of correct digits. For the pendulum, \(\sqrt{1 - k^2} = \cos(\theta_0/2)\), so

\[T = \frac{2\pi}{\mathrm{AGM}\big(1, \cos\tfrac{\theta_0}{2}\big)}\sqrt{\frac{\ell}{g}}.\]

The program evaluates the period both by numerical integration of the general formula and by the AGM, for amplitudes from \(10^\circ\) to \(179^\circ\), and then applies the same integral to a quartic well.

The period integral for a pendulum and a quartic well, checked against the AGM formula
import math

# Period of oscillation in a potential U(x) at energy E: T = 2 * integral of dx / v between turning points.
# The substitution x = xm sin(phi) removes the square-root singularity at the turning points (for even U).
def period(U, m, xm, n=2000):
    E = U(xm)
    total = 0.0
    for i in range(n):                                   # midpoint rule in phi
        phi = (i + 0.5) * (math.pi / 2) / n
        x = xm * math.sin(phi)
        v = math.sqrt(2 * (E - U(x)) / m)
        total += xm * math.cos(phi) / v * (math.pi / 2) / n
    return 4 * total

def agm(a, b):
    while abs(a - b) > 1e-15 * a:
        a, b = (a + b) / 2, math.sqrt(a * b)
    return a

g, L = 9.81, 1.0
T0 = 2 * math.pi * math.sqrt(L / g)
U_pend = lambda th: (g / L) * (1 - math.cos(th))        # per unit m L^2
print(" amplitude   T/T0 (integral)   T/T0 (AGM)")
for deg in (10, 30, 60, 90, 120, 150, 170, 179):
    th0 = math.radians(deg)
    T_int = period(U_pend, 1.0, th0)
    T_agm = 2 * math.pi / agm(1.0, math.cos(th0 / 2)) * math.sqrt(L / g)
    print(f"   {deg:3d} deg      {T_int / T0:9.5f}       {T_agm / T0:9.5f}")

# A quartic well U = c x^4: the period depends on amplitude as 1/A
c = 1.0
for A in (0.5, 1.0, 2.0):
    print(f"quartic well, A = {A}: T = {period(lambda x: c * x ** 4, 1.0, A):.4f}")
Output
 amplitude   T/T0 (integral)   T/T0 (AGM)
    10 deg        1.00191         1.00191
    30 deg        1.01741         1.01741
    60 deg        1.07318         1.07318
    90 deg        1.18034         1.18034
   120 deg        1.37288         1.37288
   150 deg        1.76220         1.76220
   170 deg        2.43936         2.43936
   179 deg        3.90107         3.90107
quartic well, A = 0.5: T = 7.4163
quartic well, A = 1.0: T = 3.7081
quartic well, A = 2.0: T = 1.8541

The two methods agree to five decimal places at every amplitude. At \(10^\circ\) the period is only 0.19% longer than the small-angle value, which is why pendulum clocks with small swings keep good time. At \(90^\circ\) it is 18% longer, and as the amplitude approaches \(180^\circ\) the period grows without limit: at \(179^\circ\) it is almost four times the small-angle period. A pendulum released exactly upside down would balance forever at the unstable equilibrium. Near that point the time spent creeping away from the top grows logarithmically as the starting angle approaches \(180^\circ\), which is why the last few degrees add so much.

The quartic well shows the opposite trend: doubling the amplitude halves the period. Dimensional analysis predicts this. With \(U = cx^4\), the only time that can be formed from \(m\), \(c\) and the amplitude \(A\) is \(\sqrt{m/c}/A\), so \(T \propto 1/A\). In a well that stiffens faster than a spring, larger oscillations are quicker; in one that softens, like the pendulum, they are slower. Lesson 5 shows how these amplitude-dependent frequencies change the response of a driven oscillator.

Unbounded motion and escape

When the energy line lies above the potential on one side all the way to infinity, the particle escapes in that direction. For a particle launched straight up from a planet of mass \(M\) and radius \(R\), \(U(r) = -GMm/r\) rises toward zero at infinity. The particle escapes if \(E \ge 0\), that is if \(\tfrac12mv^2 \ge GMm/R\), giving the escape speed \(v_{\text{esc}} = \sqrt{2GM/R}\): 11.2 km/s from the Earth, 2.4 km/s from the Moon, 5.0 km/s from Mars. The time to travel any distance in unbounded motion follows from the same integral \(\int dx/|\dot x|\) without the factor of two.

Phase portraits from the potential

The energy equation also draws the phase portrait, the family of curves in the \((x, \dot x)\) plane traced by the motion, without solving anything: each curve is \(\dot x = \pm\sqrt{2(E - U)/m}\). Near a minimum the curves are small closed ellipses, as for the harmonic oscillator. Near a maximum they form a cross, with two branches leading in and two leading out. The curve that passes through an unstable equilibrium is the separatrix. It divides motions of different kinds, such as the back-and-forth swing of a pendulum and its continuous rotation over the top, as the phase portraits in PHYS-230 lesson 2 showed. In lesson 12 we will see that driving or coupling can shatter the separatrix into a tangle of chaotic motion.

Common mistakes

  • MistakeUsing energy conservation when friction or drag acts.

    InsteadMechanical energy is conserved only for conservative forces; otherwise include the work done by the non-conservative forces.

  • MistakeCalling every equilibrium stable.

    InsteadCheck the sign of \(U''(x_0)\): positive means stable, negative unstable.

  • MistakeExpecting every oscillation to have an amplitude-independent period.

    InsteadOnly the exactly quadratic potential has that property; use the period integral for any other well.

  • MistakeGiving up on the period integral because the integrand diverges at the turning points.

    InsteadThe singularity is integrable; substitute \(x = x_m\sin\phi\) or use the elliptic integral.

  • MistakeAssigning physical meaning to the value of \(U\) itself.

    InsteadOnly differences in potential energy matter; the zero is a choice.

Summary and key terms

  • For a position-dependent force in one dimension, \(U(x) = -\int F\,dx\) and \(E = \tfrac12m\dot x^2 + U\) is conserved.
  • The particle is confined to regions with \(U \le E\); turning points are where \(U = E\).
  • Minima of \(U\) are stable equilibria with small-oscillation frequency \(\sqrt{U''/m}\); maxima are unstable.
  • The period of any one-dimensional oscillation is \(T = \sqrt{2m}\int dx/\sqrt{E - U}\) between the turning points.
  • A pendulum's exact period is \(2\pi\sqrt{\ell/g}/\mathrm{AGM}(1, \cos\tfrac{\theta_0}{2})\), growing without limit as the amplitude approaches \(180^\circ\).
  • The escape speed from a body of mass \(M\) and radius \(R\) is \(\sqrt{2GM/R}\).
conservative force
A force whose work between two points depends only on the points, so that it can be written as minus the gradient of a potential.
turning point
A position where the potential energy equals the total energy, so the particle momentarily stops.
stable equilibrium
An equilibrium at a minimum of the potential, to which small displacements return.
separatrix
The phase-space curve through an unstable equilibrium that separates motions of different kinds.
elliptic integral
The integral K(k) that gives the exact period of a pendulum; computed quickly with the arithmetic-geometric mean.
escape speed
The minimum launch speed for which a body never returns, square root of 2GM over R.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. A particle of mass 0.50 kg moves in \(U(x) = 2x^2 - x^4\) (SI units). Find the equilibria, classify them and give the small-oscillation period about the stable one.

    Show answer

    \(U' = 4x - 4x^3 = 0\) at \(x = 0, \pm1\). \(U''(0) = 4 > 0\): stable, \(T = 2\pi\sqrt{0.50/4} = 2.22\ \mathrm{s}\). \(U''(\pm1) = -8 < 0\): unstable.

  2. In the same potential, what is the largest energy for which the particle stays trapped near \(x = 0\)?

    Show answer

    The barrier height \(U(\pm1) = 1\ \mathrm{J}\); for \(E < 1\ \mathrm{J}\) it oscillates about the origin.

  3. Estimate the period of a 2.0 m pendulum released at \(120^\circ\).

    Show answer

    \(T_0 = 2\pi\sqrt{2.0/9.81} = 2.84\ \mathrm{s}\), and the factor 1.373 from the program gives \(T = 3.90\ \mathrm{s}\).

  4. Show that for \(U = c|x|^n\) the period scales as \(A^{1 - n/2}\).

    Show answer

    Substituting \(x = Au\) in the period integral gives \(T = \sqrt{2m}A\int du/\sqrt{cA^n(1 - |u|^n)} \propto A^{1 - n/2}\). For \(n = 2\) it is constant; for \(n = 4\) it is \(1/A\).

  5. Find the escape speed from the surface of Jupiter (\(GM = 1.27\times10^{17}\ \mathrm{m^3/s^2}\), \(R = 7.15\times10^7\ \mathrm{m}\)).

    Show answer

    \(v = \sqrt{2(1.27\times10^{17})/7.15\times10^7} = 59.6\ \mathrm{km/s}\).

  6. A bead on a vertical hoop of radius \(R\) spinning at \(\Omega\) has effective potential \(U(\theta) = -mgR\cos\theta - \tfrac12mR^2\Omega^2\sin^2\theta\). When does the bottom become unstable?

    Show answer

    \(U''(0) = mgR - mR^2\Omega^2\), which turns negative when \(\Omega^2 > g/R\); the bead then moves to a new equilibrium with \(\cos\theta = g/(R\Omega^2)\).

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz