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)x(t) = A\cos(\omega t)
Start of the swing, at full stretchThe block at the far right at the start of its back-and-forth motion.m

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.

ω=km=22=1 rad/s,vmax=Aω=31=3 m/s\omega = \sqrt{\frac{k}{m}} = \sqrt{\frac{2}{2}} = \hl{1}\ \text{rad}/\text{s}, \quad v_{\max} = A\,\omega = 3 \,\cdot\, 1 = 3\ \text{m}/\text{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πω=2π1=2π sT = \frac{2\pi}{\omega} = \frac{2\pi}{1} = \hlmath{2\pi}\ \text{s}
mechanics With 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.)