The block's position follows a cosine in time, and the period depends only on the stiffness and mass, not on how far you pulled it.
Example
The block's position follows a cosine in time, and the period depends only on the stiffness and mass, not on how far you pulled it.
highlighted = computed this step
The back-and-forth has a cosine shape
Released from full stretch, the block swings back and forth forever (with no friction). The position over time follows a cosine, starting at the amplitude. Finding this shape from the force needs calculus, so we take it as the known answer and check it against the energy.
x(t)=Acos(ωt)
How fast it cycles depends on stiffness and mass
The angular frequency is the square root of the stiffness over the mass. A stiffer spring cycles faster; a heavier block cycles slower. Here it is the square root of 2 over 2, which is 1 per second. This lets us CHECK the stated cosine against energy: the cosine reaches a top speed of amplitude times angular frequency, 3 times 1, which is 3 metres per second at the middle — exactly the 3 metres per second we found from energy, so the stated motion is consistent.
ω=mk=22=1rad/s,vmax=Aω=3⋅1=3m/s
One full cycle takes a fixed time
The time for one full back-and-forth is two pi divided by the angular frequency. Notice it does not depend on how far you pulled it: the amplitude does not appear in the period at all. Pulling twice as far gives twice the restoring force, so the block moves proportionally faster and covers the bigger swing in the same time — which is what makes a swing keep steady time. Here the period is two pi seconds.
T=ω2π=12π=2πs
mechanicsWith k = 2 N/m and m = 2 kg the angular frequency is 1 per second and the period a clean 2 pi seconds. (Presented and checked, not derived.)