Begin with Hooke's law
An ideal horizontal mass–spring system obeys Hooke's law,
The minus sign means the force points toward equilibrium. Combining this force with Newton's second law gives simple harmonic motion with angular frequency
Frequency depends on and , not on amplitude, as long as the spring remains linear and damping is negligible.
Track energy through one cycle
The total mechanical energy is
At either turning point, and , so all energy is elastic potential energy. At equilibrium, , so all energy is kinetic and speed is greatest. This gives
Acceleration is largest at the turning points even though speed is zero there. Speed is largest at equilibrium even though acceleration is zero there. Keeping those locations separate prevents a common conceptual error.
Work a different example
Take , , and amplitude . Then
and
The maximum speed is , and the maximum acceleration is .
The ideal model stops being exact when damping removes energy, the spring's force is not proportional to displacement, the spring has significant mass, or motion leaves one dimension.
Related question
Apply this knowledge
Use the concept guide to understand the reasoning, then return to the complete question and worked answer.
A 20 kg Box on a Horizontal Frictionless Surface Attached to a SpringSources
These references support the core concepts and interpretation boundaries explained above.