Simple Harmonic Motion: Mass on a Spring
Problem
A 2 kg mass attached to a spring with k = 50 N/m oscillates. Show position, velocity, and acceleration over time.
Explanation
A mass on a spring is the canonical example of simple harmonic motion (SHM). Hooke's law gives a restoring force proportional to displacement, and Newton's Second Law turns that into the harmonic equation:
The solutions are pure sinusoids with angular frequency:
This depends only on the mass and spring constant — not on the amplitude. That's the beautiful and surprising property of SHM: a small swing and a large swing complete in the same time.
The Position, Velocity, Acceleration
If you release the mass from rest at , the motion is:
The position and acceleration are 180° out of phase: when is at its maximum, is at its minimum (most negative). The velocity is 90° out of phase with both — maximum when is zero, zero when is at its extremes.
Step-by-Step Solution
Given: , , amplitude , released from rest at .
Find: , , , and the maximum velocity and acceleration.
Step 1 — Compute the angular frequency.
Step 2 — Compute the period and frequency.
So the mass completes about 0.796 cycles per second — or one cycle every 1.26 seconds.
Step 3 — Compute the maximum velocity.
The maximum speed occurs at the center (), where all the energy is kinetic:
Step 4 — Compute the maximum acceleration.
The maximum acceleration occurs at the extremes (), where the spring is most stretched/compressed:
Step 5 — Verify with energy conservation.
The total energy is .
At the center, all of that is kinetic: . ✓
Step 6 — A surprise: doesn't depend on amplitude.
If you doubled the amplitude (released from instead), the period would be the same . The mass moves twice as fast at the center but has twice as far to go — those exactly cancel.
This isochronism is what made pendulum clocks possible: a clock's accuracy doesn't depend on whether you wind it tightly or loosely.
Answer:
The mass oscillates back and forth, completing one full cycle every 1.257 seconds. Position, velocity, and acceleration are all sinusoidal but shifted in phase from each other.
Try It
- Adjust the mass, spring constant, and amplitude sliders.
- Watch the spring physically oscillate and the three sinusoidal traces (position cyan, velocity pink, acceleration yellow) drawn beside it.
- Notice that changing the amplitude does not change the period — that's the SHM signature.
- Doubling k with same m shrinks the period by .
- Doubling m with same k stretches the period by .
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.