---
title: Springs and pendulums
heading: The mechanical twins of the LC circuit
eyebrow: B1 · Lesson 40 · Springs and pendulums
xp: 40
---

::: hook
A pendulum clock, a quartz crystal in a watch, the suspension of a car and an LC tank circuit all oscillate for the same reason: something pulls back toward a resting point with a force that grows the farther you go. A8 solved the equation; this lesson is about the physics. Where does the restoring force come from, what sets the frequency, and why does a pendulum's period not depend on how far it swings?

::: play
- The graph compares a pendulum of length $L$ released at angle $\theta_0$ (in degrees) with the small-angle formula's prediction.
- Change the length. How does the period scale? Try $L$ = 1 m and 4 m.
- Raise the release angle. Up to about what angle does the simple formula stay accurate?
:::
:::

```sim plot
view: graph
x: t = 0..6 s
y: theta = -100..100 °
slider: L = 0.25..4 step 0.25 = 1 m
slider: th0 = 5..90 step 5 = 20 °
plot: th0*cos(sqrt(9.8/L)*t/(1 + (th0*pi/180)^2/16 + 11*(th0*pi/180)^4/3072 + 173*(th0*pi/180)^6/737280 + 22931*(th0*pi/180)^8/1321205760)) | label: pendulum
plot: th0*cos(sqrt(9.8/L)*t) | dashed | color: ch2 | label: small-angle formula
readout: period 2π√(L/g) = 2*pi*sqrt(L/9.8) s
readout: true period = 2*pi*sqrt(L/9.8)*(1 + (th0*pi/180)^2/16 + 11*(th0*pi/180)^4/3072 + 173*(th0*pi/180)^6/737280 + 22931*(th0*pi/180)^8/1321205760) s
```

::: predict
## A pendulum 1 m long swings with a period of about 2 s. How long must it be to have a period of 4 s?

- [ ] 2 m
- [x] 4 m
- [ ] 16 m
- [ ] 0.5 m

::: reveal
4 m. The period goes as $\sqrt{L}$, so doubling the period needs four times the length. The mass doesn't matter at all: gravity pulls harder on a heavier bob, but it's equally harder to accelerate, the same cancellation as in free fall.
:::
:::

::: nameit
## Simple harmonic motion

**The spring.** A spring stretched by $x$ pulls back with $F = -kx$ (Hooke's law), with $k$ the stiffness in N/m. Newton's second law gives $m\ddot x = -kx$, the oscillator equation from A8, so the motion is a sinusoid with

$$\omega_0 = \sqrt{\frac{k}{m}} \qquad T = 2\pi\sqrt{\frac{m}{k}}$$

The frequency doesn't depend on the amplitude: a big swing goes faster and covers more ground in the same time. That's what makes oscillators good clocks.

**The pendulum.** Gravity's pull along the arc is $-mg\sin\theta$. For small angles, $\sin\theta \approx \theta$ (A6's linearization), and the pendulum becomes a harmonic oscillator:

$$\omega_0 = \sqrt{\frac{g}{L}} \qquad T = 2\pi\sqrt{\frac{L}{g}}$$

At larger swings $\sin\theta < \theta$, the restoring force is a little weaker, and the period grows: about 0.8% longer at 20°, 1.7% at 30°, 18% at 90°. Pendulum clocks keep their swings small.

**Energy sloshing.** A spring stores $\tfrac12kx^2$; the moving mass carries $\tfrac12mv^2$. The total stays constant, swapping back and forth twice per cycle, just as an LC circuit swaps $\tfrac12CV^2$ and $\tfrac12LI^2$ (A8.16).

**Electrical analogs.** Mass is like inductance (it resists changes in velocity, as an inductor resists changes in current), and stiffness is like $1/C$. A quartz crystal is a tiny mechanical oscillator, a vibrating slab of quartz, that a circuit sees as an extremely sharp LC resonance, which is why it keeps such good time.
:::

::: example
## A 0.5 kg mass hangs on a 200 N/m spring. Find its angular frequency, frequency and period.

::: solution
1. **Angular frequency.**
   $$\begin{aligned} \omega &= \sqrt{\frac{200}{0.5}} \\ &= 20\ \text{rad/s} \end{aligned}$$
2. **Frequency.**
   $$\begin{aligned} f &= \frac{20}{2\pi} \\ &= 3.18\ \text{Hz} \end{aligned}$$
3. **Period.**
   $$\begin{aligned} T &= \frac{1}{f} \\ &= 0.314\ \text{s} \end{aligned}$$

**Answer:** ω = 20 rad/s, f = 3.18 Hz and T = 0.314 s.
:::
:::

::: example
## What is the period of a 1 m pendulum? And the resonant frequency of its electrical analog with $L$ = 10 mH and $C$ = 1 µF?

::: solution
1. **Pendulum period.**
   $$\begin{aligned} T &= 2\pi\sqrt{\frac{1}{9.8}} \\ &= 2.01\ \text{s} \end{aligned}$$
   which is why a "seconds pendulum" is about a meter long.
2. **LC resonance.** It's the same formula with $L$ in place of mass and $1/C$ in place of stiffness:
   $$\begin{aligned} f &= \frac{1}{2\pi\sqrt{LC}} \\ &= 1590\ \text{Hz} \end{aligned}$$

**Answer:** the pendulum's period is 2.01 s, and the LC circuit resonates at 1590 Hz.
:::
:::

::: example
## Springs of 100 N/m and 300 N/m hold a 1 kg mass, once in series and once in parallel. Find both oscillation frequencies.

::: solution
1. **In parallel.** The stiffnesses add, to 400 N/m, so
   $$\begin{aligned} \omega &= \sqrt{400} \\ &= 20\ \text{rad/s} \end{aligned}$$
2. **In series.** The compliances add:
   $$\frac{1}{k} = \frac{1}{100} + \frac{1}{300}$$
   so $k = 75$ N/m and $\omega = 8.66$ rad/s.
3. **The electrical analog.** Springs combine like capacitors (parallel adds, series combines reciprocally), the opposite of resistors. In the electrical analog, spring compliance plays the role of capacitance.

**Answer:** 20 rad/s in parallel and 8.66 rad/s in series.
:::
:::

::: check
given: m = 0.1 | 0.2 | 0.5 | 1; k = 10..100 step 10
answer: 2*pi*sqrt(m/k)
unit: s
tolerance: 0.5%

## A {m} kg mass hangs on a spring of stiffness {k} N/m. What is its period?

::: right
Right. $T = 2\pi\sqrt{m/k}$ = {answer}.
:::

::: misses
- [sqrt(m/k)] That's $1/\omega_0$. Multiply by $2\pi$.
- [2*pi*sqrt(k/m)] Upside down: heavier means slower.
- [any] Not yet. $T = 2\pi\sqrt{m/k}$.
:::
:::

::: check
given: L = 0.25 | 0.5 | 2 | 3 | 5
answer: 2*pi*sqrt(L/9.8)
unit: s
tolerance: 0.5%

## What is the period of a {L} m pendulum making small swings?

::: right
Right. $T = 2\pi\sqrt{L/g}$ = {answer}.
:::

::: misses
- [2*pi*sqrt(9.8/L)] Upside down: longer pendulums swing slower.
- [sqrt(L/9.8)] Multiply by $2\pi$.
- [any] Not yet. $T = 2\pi\sqrt{L/g}$.
:::
:::

::: check
given: T = 1 | 2 | 3
answer: 9.8*(T/(2*pi))^2
unit: m
tolerance: 0.5%

## How long a pendulum gives a period of {T} s?

::: right
Right. Solving $T = 2\pi\sqrt{L/g}$: $L = g(T/2\pi)^2$ = {answer}.
:::

::: misses
- [9.8*T/(2*pi)] Square the ratio: $L = g\,(T/2\pi)^2$.
- [any] Not yet. Solve $T = 2\pi\sqrt{L/g}$ for L.
:::
:::

::: check
given: k = 50..500 step 50; x = 2 | 5 | 10
answer: k*(x/100)^2/2
unit: J
tolerance: 0.5%

## A spring of stiffness {k} N/m is stretched {x} cm. How much energy does it store?

::: right
Right. $\tfrac12kx^2$ = {answer}.
:::

::: misses
- [k*(x/100)^2] Include the ½.
- [k*x^2/2] Convert centimeters to meters.
- [k*(x/100)] That's the force, not the energy.
- [any] Not yet. $E = \tfrac12kx^2$.
:::
:::

::: check
kind: choice

## You double the amplitude of a mass bouncing on a spring. What happens to its period?

- [ ] It doubles
- [x] It stays the same
- [ ] It halves
- [ ] It goes up by $\sqrt2$

::: right
Right. A harmonic oscillator's period doesn't depend on amplitude: the bigger swing comes with proportionally bigger forces and speeds.
:::

::: misses
- [1] Bigger swings move faster, covering the extra distance in the same time.
- [3] The period depends only on m and k.
- [4] Only m and k set the period.
:::
:::

::: check
kind: parts
given: k1 = 100 | 200; k2 = 300 | 600; m = 1 | 2

## Springs of {k1} and {k2} N/m hold a {m} kg mass.

::: part
answer: sqrt((k1 + k2)/m)
unit: rad/s
tolerance: 0.5%

### What is ω with the springs in parallel?

::: misses
- [any] Parallel stiffnesses add.
:::
:::

::: part
answer: sqrt(k1*k2/(k1 + k2)/m)
unit: rad/s
tolerance: 0.5%

### And in series?

::: misses
- [sqrt((k1 + k2)/m)] In series, compliances add.
- [any] $k = \frac{k_1k_2}{k_1 + k_2}$.
:::
:::
:::

::: check
kind: derivation
vars: k = 10..1000, A = 0.01..0.2, m = 0.1..5

## A mass m on a spring k oscillates with amplitude A.

::: step
answer: k*A^2/2

### What is its total energy?
:::

::: step
answer: A*sqrt(k/m)

### What is its top speed?
:::

::: right
Right. All the energy is kinetic at the center: $\frac12mv^2 = \frac12kA^2$.
:::
:::

::: explain
## Why doesn't a pendulum's period depend on the mass of its bob?

::: model
The restoring force comes from gravity, which pulls on the bob in proportion to its mass. But the bob's resistance to being accelerated is also proportional to its mass. In Newton's second law the mass appears on both sides and cancels, so the acceleration at each angle, and therefore the whole motion, depends only on g and the length. It's the same cancellation that makes all objects fall at the same rate.
:::
:::

::: practice

::: check
given: k = 10..200 step 10; m = 0.5 | 1 | 2
answer: sqrt(k/m)/(2*pi)
unit: Hz
tolerance: 0.5%

## What is the frequency, in hertz, of a {m} kg mass on a {k} N/m spring?

::: misses
- [sqrt(k/m)] That's ω in rad/s. Divide by $2\pi$.
- [any] $f = \frac{1}{2\pi}\sqrt{k/m}$.
:::
:::

::: check
given: f = 2 | 3 | 4
answer: f^2
tolerance: 0.5%

## By what factor must you lengthen a pendulum to make its period {f} times longer?

::: misses
- [f] Period goes as $\sqrt L$: square the factor.
- [any] $L \propto T^2$.
:::
:::

::: check
given: k = 100..900 step 100; x = 1 | 2 | 3
answer: k*x/100
unit: N
tolerance: 0.5%

## What force does a {k} N/m spring exert when stretched {x} cm?

::: misses
- [k*x] Convert centimeters to meters.
- [any] $F = kx$.
:::
:::
:::
