Watch on Instagram

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.

Posted · About a 1 minute watch, 3 minute read · Take the quiz

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

  • k is the spring constant, in newtons per metre (N/m): the bigger k, 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

  1. The equation: 1 · x″ = −9x, so x″ = −9x.
  2. Try x = cos 3t.
  3. First derivative: the chain rule pulls out a 3: x′ = −3 sin 3t.
  4. Second derivative: it pulls out another 3: x″ = −9 cos 3t.
  5. 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

  1. A 4 kg mass hangs on a spring with k = 36 N/m. What is ω?
  2. Show that x = cos 2t solves x″ = −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 ωt also solve the equation; the starting position and speed pick which one.
  • Gravity on a hanging spring drops out because x is 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.

1Why is m x″ = −kx called a second-order equation?
2In F = −kx, what does the minus sign mean?
3With m = 1 kg and k = 9 N/m, which function solves x″ = −9x?
4For the same mass, what happens to ω if the spring is stiffer (bigger k)?

Sources

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

All Differential equations lessons