Sub topic 2
A mass on a spring: ω = √(k/m)
This chapter assumes you know Newton's second law (F = ma), sine and cosine, and radians. It derives the angular frequency of a spring-mass system, then applies the same method to a pendulum.
Spring-mass motion
Hooke's law gives the spring force F = -kx. Here k is the spring constant in N/m, and x is displacement from equilibrium. The minus sign means the force always points back toward equilibrium.
Setting F = ma gives ma = -kx, so a = -(k/m)x. Acceleration is proportional to displacement and points opposite to it. This is the defining property of simple harmonic motion (SHM).
Comparing this with the standard form a = -ω²x gives:
| Quantity | Formula | Unit |
|---|---|---|
| Angular frequency | ω = √(k/m) | rad/s |
| Period | T = 2π/ω | s |
| Frequency | f = 1/T | Hz |
Forces on a pendulum bob
A bob of mass m hangs on a string of length L and swings through angle θ. Two forces act on it: tension along the string, and gravity mg downward. Tension has no tangential component, so only the tangential part of gravity, -mg sin θ, restores the bob toward the lowest point.
The small-angle approximation
For small θ in radians, sin θ ≈ θ. The arc position is s = Lθ, so the tangential equation is mLθ'' = -mgθ. This gives θ'' = -(g/L)θ, which has the SHM form with ω = √(g/L).
The approximation is good at small angles. At 10°, sin θ and θ differ by about 0.5%.
Period of a simple pendulum
The period is T = 2π√(L/g). The mass m does not appear.
import math
k, m = 20.0, 0.5 # spring constant (N/m), mass (kg)
omega = math.sqrt(k / m)
print(f"spring: omega = {omega:.3f} rad/s, T = {2 * math.pi / omega:.3f} s")
L, g = 1.0, 9.81 # pendulum length (m), gravity (m/s^2)
print(f"pendulum: T = {2 * math.pi * math.sqrt(L / g):.3f} s")Exercise
A 2 kg mass hangs on a spring with k = 8 N/m. What are ω and T?
Show answer
ω = √(8/2) = 2 rad/s, so T = 2π/2 = π ≈ 3.14 s.