Math Bytes · Differential equations · Episode 3 · Second-order linear equations
Springs and oscillation
A mass on a spring obeys m x″ = −kx, because the spring force F = −kx equals mass times acceleration, the second derivative of position. Cosine solves it: with m = 1 kg and k = 9 N/m, x = cos 3t gives x″ = −9 cos 3t = −9x. The 3 is the angular frequency ω = √(k/m), so stiffer springs bounce faster.
The spring force
Hang a block on a spring and let it settle. Measure x from that resting position. If you pull the block a distance x, the spring pulls back with force
F = −kx
kis the spring constant, in newtons per metre (N/m): the biggerk, the stiffer the spring.- The minus sign means the force always points back toward the resting position.
- Pull twice as far and the spring pulls back twice as hard. (This is Hooke's law, and it holds for small stretches.)
Building the equation
Newton's second law says force is mass times acceleration, F = ma. Acceleration is the second derivative of position, a = x″. Set the two forces equal:
m x″ = −kx
This is a second-order differential equation, because the highest derivative in it is the second one. (The last two lessons were first-order: they only had dy/dx or dT/dt.)
Which function works?
We need a function whose second derivative is a negative copy of itself. Cosine does it:
(cos t)′ = −sin t, then (cos t)″ = −cos t
Squeeze the cosine and the chain rule pulls out a number each time you differentiate. That's what lets us match any k and m.
Worked example: m = 1 kg, k = 9 N/m
- The equation:
1 · x″ = −9x, sox″ = −9x. - Try
x = cos 3t. - First derivative: the chain rule pulls out a 3:
x′ = −3 sin 3t. - Second derivative: it pulls out another 3:
x″ = −9 cos 3t. - Check:
−9 cos 3t = −9x✓. It works.
That 3 is called omega:
ω = √(k/m) = √(9/1) = √9 = 3
ω is the angular frequency in radians per second, and the time for one full bounce (the period) is 2π/ω. For the same mass, a bigger k gives a bigger ω: stiffer springs bounce faster.
Try it yourself
- A
4 kgmass hangs on a spring withk = 36 N/m. What isω? - Show that
x = cos 2tsolvesx″ = −4x.
(Answers: 1. ω = √(36 ÷ 4) = √9 = 3 rad/s. 2. x′ = −2 sin 2t, x″ = −4 cos 2t = −4x ✓.)
Good to know
- Cosine fits a block that is pulled down and released from rest. Sine and combinations
A cos ωt + B sin ωtalso solve the equation; the starting position and speed pick which one. - Gravity on a hanging spring drops out because
xis measured from the resting position, where gravity and the spring already balance. - There is no friction here, so the block would bounce forever. The next lesson adds damping.
Answer to the comment question
A mass of 2 kg on a spring with k = 50 N/m. What's ω? 5 rad/s. ω = √(k/m) = √(50 ÷ 2) = √25 = 5.
Test your knowledge
Quick quiz: Springs and oscillation
4 multiple-choice questions. Pick one answer for each, then check how you did.
Sources
- OpenStax, "Calculus Volume 3, 7.3 Applications": spring-mass systems and simple harmonic motion
- OpenStax, "University Physics Volume 1, 15.1 Simple Harmonic Motion": Hooke's law and the angular frequency of a mass on a spring
- MIT OpenCourseWare, "18.03 Differential Equations (Spring 2010)": lecture notes
Video transcript
Why is a bouncing spring a differential equation?
Stretch a spring and it pulls back harder the farther you pull: force equals negative k x.
Force is also mass times acceleration, the second derivative of position. So m x double prime equals negative k x.
That's a second-order equation. We need a function whose second derivative is a negative copy of itself: cosine.
With one kilogram and k equals nine, x double prime equals negative nine x. Cosine of three t works: its second derivative is negative nine times itself.
That three is omega, the square root of k over m. Stiffer springs bounce faster.
Your turn. Mass two kilograms, k equals fifty. What's omega? Comment your answer below!
That's your byte.
More from Differential equations
- Differential equations EP1Separable equations
- Differential equations EP5What the Laplace transform does