The Mass–Spring System and the Simple Pendulum
AP Physics C: Mechanics · Unit 7 — Oscillations
Mass on a spring, horizontal or vertical
Horizontally, $\sum F=-kx$ gives $\omega=\sqrt{k/m}$ and $T=2\pi\sqrt{m/k}$ directly. Hung vertically, the spring first stretches by $x_{eq}=mg/k$. Measuring $y$ from that new equilibrium,
$$\sum F=k(x_{eq}-y)-mg=-ky$$The constant $mg$ cancels exactly. Gravity shifts the equilibrium point but does not change $\omega$. A useful consequence: measuring the static stretch $x_{eq}$ is enough to get the period, since $T=2\pi\sqrt{x_{eq}/g}$.
The simple pendulum
Taking torques about the pivot for a bob of mass $m$ on a massless string of length $L$:
$$I\frac{d^2\theta}{dt^2}=-mgL\sin\theta,\qquad I=mL^{2}$$$$\frac{d^2\theta}{dt^2}=-\frac{g}{L}\sin\theta$$This is not the SHM equation: $\sin\theta$ is not proportional to $\theta$. Only under the small-angle approximation $\sin\theta\approx\theta$ (the first term of the Taylor series $\sin\theta=\theta-\theta^{3}/6+\dots$) does it become $\ddot\theta=-(g/L)\theta$, giving
$$\omega=\sqrt{\frac{g}{L}},\qquad T=2\pi\sqrt{\frac{L}{g}}$$Independent of both the mass and — within the approximation — the amplitude.
Worked example: period from the static stretch
An object is hung from a vertical spring; the spring stretches an extra $8.0$ cm and the object comes to rest. Pull the object down a little further and release it. Take $g=9.8$ m/s². Find the period of oscillation without using $m$ or $k$.
Solution
At the equilibrium position, the elastic force balances gravity:
$$kx_{eq}=mg\ \Longrightarrow\ \frac{m}{k}=\frac{x_{eq}}{g}$$Substitute directly into the period formula:
$$T=2\pi\sqrt{\frac{m}{k}}=2\pi\sqrt{\frac{x_{eq}}{g}}=2\pi\sqrt{\frac{0.080}{9.8}}$$$$T=2\pi\sqrt{8.16\times10^{-3}}=2\pi(0.0904)=0.568\ \text{s}$$The ratio $m/k$ is all the period needs, and the static stretch has already measured that ratio for us. This is also a laboratory trick: a single ruler is enough to deduce the period.