Lessons · shm
A mass on a spring
Regime 2 — calculus does what algebra cannot. The acceleration isn't constant, so the algebra formulas don't apply; calculus is the only road in, and SymPy proves the closed form solves the equation of motion.
A 1 kg mass on a spring (k = 4 N/m) is pulled 0.3 m from equilibrium and released from rest. How does it move — and where does the period the algebra course made you memorize actually come from?
The spring force is proportional to displacement and points back toward equilibrium. This is the equation of motion — a differential equation, not an algebra formula.
back-substitute into ; check the initial conditions; check ; check periodicity
- ✓ The closed form solves the equation of motion . [structural]
- ✓ It matches the initial position . [structural]
- ✓ It matches the initial velocity . [structural]
- ✓ Total energy is conserved (its time-derivative is zero). [structural]
- ✓ The memorized period falls out: . [structural]
Dimensional homogeneity: checked by SymPy (holds).
At a turning point the speed is zero — that is where it reverses. It moves fastest through equilibrium (), where the v-t graph peaks a quarter-period out of phase with x-t. Acceleration, , is largest at the ends and zero in the middle.
Modeling assumptions — author-asserted, disclosed not discharged
- Ideal spring obeying Hooke's law: the restoring force is proportional to displacement.
- No friction or air resistance (undamped motion).
- The mass is a point and the spring is massless.
The stacked graph, fully annotated
A static rendering (Matplotlib) at the default parameters — the interactive version is in the Graph tab above.
Formulas used
Hover a formula to preview its reference entry; click to open it in the reference (or the concept graph):
- Position in simple harmonic motion
Valid when: ideal Hooke's-law spring; no damping
Open in reference →
- Period of a spring–mass oscillator
Valid when: ideal Hooke's-law spring; no damping
Open in reference →
- Angular frequency of a spring–mass oscillator
Valid when: ideal Hooke's-law spring; no damping
Open in reference →