When gravity ghosts you
You’re familiar with experience. Just when you think you’re getting along so well with a “vertically” oriented translational mechanical system, gravity stops answering your texts. In this lecture, I’ll try to explain this common experience: it seems that sometimes the force of gravity “matters,” and other times it does not. Is gravity really Hamletic, an ambivalent vixen, or is there some way to understand this phenomenon?
Consider the following example contrived to shed some light.
Often when considering a spring k, we focus on the velocity vk across it, i.e. the time-derivative of the displacement xk. We effectively differentiate-away the constant unstretched length L from xk; we can think of $$\begin{aligned} x_k - L \end{aligned}$$ as the “stretch” of the spring. In this exercise, we will attend closely to the details of this stretching.
Consider the mechanical harmonic oscillator shown in . Derive a single input-output ODE for the system in terms of xk, the total displacement across the spring. Let the constant L̃ be the stretched length of the spring when the system is in static equilibrium. Solve for L̃ in terms of the system parameters. Show that when we change ODE dependent variable from xk to $$\begin{aligned} \label{eq:ghost_01} \widetilde{x}_k = x_k - \widetilde{L}, \end{aligned}$$ the displacement from equilibrium, gravity ghosts us!
For this example, there is a much shorter way to deriving the system ODE than our usual approach, and we will use it here: the traditional free-body diagram application of Newton’s laws, shown in figure 5.7. Applying Newton’s second law, $$\begin{align*} F_g + f_k = m\, \ddot{x}_m = m\, \ddot{x}_k \end{align*}$$ where the forces are $$\begin{align*} F_g &= m\, g\quad\text{and} \\ f_k &= -k (x_k - L). \tag{when $x_k > 0$, $f_k < 0$} \end{align*}$$
Substituting in the forces, $$\begin{align*} m\, g -k (x_k - L) &= m\, \ddot{x}_k \quad\Rightarrow \\ m\, \ddot{x}_k + k\, x_k &= m\, g + k\, L. \end{align*}$$
Equilibrium implies $\ddot{x}_k = 0$ and xk = L̃, therefore $$\begin{align*} k\, \widetilde{L} &= m\, g + k\, L \quad\Rightarrow \\ \widetilde{L} &= \frac{m\, g} {k} + L. \end{align*}$$
Changing variables à la in the ODE yields $$\begin{align*} m\, \frac{\diff^2} {\diff t^2}(\widetilde{x}_k + \widetilde{L}) + k (\widetilde{x}_k + \widetilde{L} - L) &= m\, g \quad\Rightarrow \\ m\, \ddot{\widetilde{x}}_k + k \left(\widetilde{x}_k + \left(\frac{m\, g} {k} + L\right) - L\right) &= m\, g \quad\Rightarrow \\ m\, \ddot{\widetilde{x}}_k + k \widetilde{x}_k + m\, g &= m\, g \quad\Rightarrow\\ m\, \ddot{\widetilde{x}}_k + k \widetilde{x}_k &= 0. \end{align*}$$ Alas, poor ghost!
We have seen now that the gravitational ghosting occurs when we change variables such that the displacement is relative to an equilibrium in the gravitational field. It is simply a change of datum or reference position of the displacement that cancels out the gravitational term—ay, there’s the rub! We call this the equilibrium requirement.
For this reason, those performing such analyses, with a flourish of the hand, declare vertical displacements relative to equilibrium and poof—gravity disappears without explicit justification, for the details make cowards of us all.

But there are situations in which this would be a fatal error: those for which there is no equilibrium! For instance, consider if the mass in our previous example was suspended from a damper instead of a spring: in this case, no equilibrium exists! Without going through the details or at least recalling the equilibrium requirement, it can be easy to fool oneself into wrongly dismissing gravity.
Remember me,
Ghost-would-be,
For I am thy father’s spirit,
If gravity’d,
With thee flee,
Th’equilibrium requirement.
Online Resources for Section 5.4
No online resources.