Independent study guide

Spring oscillations: build the motion from the initial state

Use initial position and signed velocity to build free spring motion, recover amplitude and phase, and select the first future equilibrium crossing. One worked example and two independent retries, with an optional differentiation explanation.

Nablio · 20 minPublished

Stuck on a step? Text us Email us Request a lesson

Before you start. Use signed position and velocity, sine and cosine in radians, equation rearrangement and Newton’s second law. The position and velocity formulas are supplied. The optional calculus check explains their derivative relationship; it is not required for the worked problem.

1. Read the model and the question

A block of mass m=0.50 kgm=0.50\,\mathrm{kg} is attached to an ideal horizontal spring of stiffness k=2.0 N/mk=2.0\,\mathrm{N/m}, with the other end fixed. The spring obeys Hooke’s law throughout the motion considered. Ignore friction, damping and driving. Measure displacement xx from equilibrium, positive to the right. Velocity vv is signed: positive means moving right. Acceleration is aa, and time tt is measured from the specified initial instant.

At t=0t=0,

x0=0.030 m,v0=+0.080 m/s. \begin{aligned}x_0&=0.030\,\mathrm m,\\ v_0&=+0.080\,\mathrm{m/s}.\end{aligned}

Find the motion equation and the first time after t=0t=0 that the block crosses equilibrium. State its velocity at that crossing.

The vertical forces balance. Horizontally, the restoring spring force is −kx-kx, so Newton’s second law gives

ma=−kx,a=−ω2x. ma=-kx,\qquad a=-\omega^2x.
ω=k/m=2.0 rad/s. \omega=\sqrt{k/m}=2.0\,\mathrm{rad/s}.

Here ω\omega is the angular frequency of the oscillation; T=2π/ωT=2\pi/\omega is the period, the time for one complete cycle. Initially a0=−0.120 m/s2a_0=-0.120\,\mathrm{m/s^2}. The block is moving right but slowing down. It must reach a right-hand turning point before returning to equilibrium. Constant-acceleration formulas do not apply: the acceleration changes with position.

2. Use both initial values

For this free simple harmonic motion, the position and velocity can be written

x(t)=Ccos⁡(ωt)+Dsin⁡(ωt), \begin{aligned}x(t)&=C\cos(\omega t)\\&\quad+D\sin(\omega t),\end{aligned}
v(t)=−ωCsin⁡(ωt)+ωDcos⁡(ωt). v(t)=-\omega C\sin(\omega t)+\omega D\cos(\omega t).

The constants C,DC,D have units of length. At t=0t=0, cosine is 1 and sine is 0. Therefore C=x0C=x_0 and D=v0/ωD=v_0/\omega, giving C=0.030 mC=0.030\,\mathrm m, D=0.040 mD=0.040\,\mathrm m.

With numerical time tt in seconds,

x(t)=0.030cos⁡(2t)+0.040sin⁡(2t)(m), \begin{aligned}x(t)&=0.030\cos(2t)\\&\quad+0.040\sin(2t)\quad(\mathrm m),\end{aligned}
v(t)=−0.060sin⁡(2t)+0.080cos⁡(2t)(m/s). \begin{aligned}v(t)&=-0.060\sin(2t)\\&\quad+0.080\cos(2t)\quad(\mathrm{m/s}).\end{aligned}

Substitute t=0t=0 to check both initial values. Using only x=x0cos⁡(ωt)x=x_0\cos(\omega t) would give zero initial velocity, contrary to this question.

Optional calculus check:

differentiating the supplied position equation gives the velocity equation. Differentiating again gives a=−ω2xa=-\omega^2x, so the expression satisfies Newton’s law for this model.

3. Recover amplitude and phase

We can also write x=Acos⁡(ωt+ϕ)x=A\cos(\omega t+\phi). The amplitude A≥0A\ge0 is the greatest displacement magnitude from equilibrium; ϕ\phi is the phase at the chosen initial instant. Use the cosine addition formula:

Acos⁡(ωt+ϕ)=Acos⁡ϕ cos⁡(ωt)−Asin⁡ϕ sin⁡(ωt). \begin{aligned} A\cos(\omega t+\phi)&=A\cos\phi\,\cos(\omega t)\\ &\quad-A\sin\phi\,\sin(\omega t). \end{aligned}

Compare the coefficients with x=Ccos⁡(ωt)+Dsin⁡(ωt)x=C\cos(\omega t)+D\sin(\omega t): C=Acos⁡ϕC=A\cos\phi and D=−Asin⁡ϕD=-A\sin\phi. The minus sign comes from the cosine addition formula. Since cos⁡2ϕ+sin⁡2ϕ=1\cos^2\phi+\sin^2\phi=1, we have C2+D2=A2C^2+D^2=A^2, so

A=C2+D2=0.050 m, \begin{aligned}A&=\sqrt{C^2+D^2}\\&=0.050\,\mathrm m,\end{aligned}
cos⁡ϕ=0.6,sin⁡ϕ=−0.8. \cos\phi=0.6,\qquad \sin\phi=-0.8.

Here cos⁡ϕ>0\cos\phi>0 and sin⁡ϕ<0\sin\phi<0, so choose a phase in the fourth quadrant. The reference angle is α=arctan⁡(0.8/0.6)=arctan⁡(4/3)≈0.9273 rad\alpha=\arctan(0.8/0.6)=\arctan(4/3)\approx0.9273\,\mathrm{rad}. Taking ϕ=−α\phi=-\alpha gives

x(t)=0.050cos⁡(2t−α)(m). x(t)=0.050\cos(2t-\alpha)\quad(\mathrm m).

The starting displacement is not the amplitude when the initial velocity is nonzero. Using arccos⁡(0.6)\arccos(0.6) alone would give a positive phase and the wrong initial velocity. Phases differing by 2π2\pi describe the same motion.

4. Select the first future crossing

Equilibrium means x=0x=0. For x=Acos⁡(ωt+ϕ)x=A\cos(\omega t+\phi) with A>0A>0, cosine is zero whenever ωt+ϕ=π/2+nπ\omega t+\phi=\pi/2+n\pi, where nn is any integer. Here ω=2.0 rad/s\omega=2.0\,\mathrm{rad/s} and ϕ=−α\phi=-\alpha, so, with tt in seconds,

2t−α=π2+nπ,n∈Z. \begin{aligned}2t-\alpha&=\frac{\pi}{2}+n\pi,\\&n\in\mathbb Z.\end{aligned}

Choose the smallest t>0t>0, not just any root. Here n=−1n=-1 gives a negative time; n=0n=0 gives the first future crossing:

tfirst=π/2+α2≈1.249 s. t_{\mathrm{first}}=\frac{\pi/2+\alpha}{2} \approx1.249\,\mathrm s.

At this crossing,

v=−Aωsin⁡(π/2)=−0.100 m/s.\begin{aligned}v&=-A\omega\sin(\pi/2)\\&=-0.100\,\mathrm{m/s}.\end{aligned}

The block is moving left. Its first right-hand turning point occurs earlier, at t=α/2≈0.464 st=\alpha/2\approx0.464\,\mathrm s; that matches the initial direction we predicted.

5. Check what energy can tell you

For this ideal system, mechanical energy stays constant:

E=12kx02+12mv02=0.00250 J, \begin{aligned}E&=\tfrac12kx_0^2+\tfrac12mv_0^2 \\&=0.00250\,\mathrm J,\end{aligned}
E=12kA2. E=\tfrac12kA^2.

At a turning point, the block is momentarily at rest, so all the energy is stored in the spring. Thus A=2E/k=0.050 mA=\sqrt{2E/k}=0.050\,\mathrm m. At equilibrium, spring potential energy is zero and E=12mv2E=\tfrac12mv^2, giving ∣v∣=2E/m=0.100 m/s|v|=\sqrt{2E/m}=0.100\,\mathrm{m/s}. Because energy contains v2v^2, it gives the speed but not the direction. The motion equation tells us that the first crossing is leftward and occurs at t≈1.249 st\approx1.249\,\mathrm s.

6. Try two independent changes

Question 1 — Reverse the initial velocity.

Keep the original position, mass and spring stiffness, but set v0=−0.080 m/sv_0=-0.080\,\mathrm{m/s}. Predict whether amplitude and first-crossing time change, then calculate the first crossing time and its signed velocity.

Hint: change the sine coefficient.

Only D=v0/ωD=v_0/\omega changes sign. Check both the sine and cosine of the new phase.

Solution: the same amplitude, a different starting direction.

The new motion is

x=0.030cos⁡(2t)−0.040sin⁡(2t)=0.050cos⁡(2t+α). \begin{aligned}x&=0.030\cos(2t)\\&\quad-0.040\sin(2t) \\&=0.050\cos(2t+\alpha).\end{aligned}

Amplitude remains 0.050 m0.050\,\mathrm m, period remains π s\pi\,\mathrm s, and energy remains 0.00250 J0.00250\,\mathrm J. The block now moves directly toward equilibrium:

tfirst=π/2−α2≈0.3218 s. t_{\mathrm{first}}=\frac{\pi/2-\alpha}{2} \approx0.3218\,\mathrm s.

It crosses with v=−0.100 m/sv=-0.100\,\mathrm{m/s}. Equal energy and amplitude do not imply equal crossing times.

Position x in metres against time t in seconds for two runs starting at x = +0.030 m. Solid curve A starts with velocity +0.080 m/s, rises to +0.050 m at 0.464 s, then first crosses x = 0 at 1.249 s. Dashed curve B starts with velocity −0.080 m/s and first crosses x = 0 at 0.3218 s. Both crossing velocities are −0.100 m/s, to the left. Circles mark A and squares mark B; arrows show each curve’s initial direction in time.
The two runs start at the same position and have the same amplitude, period and energy. In the solid-curve run, the block initially moves right, so xx increases. In the dashed-curve run, it initially moves left, so xx decreases. Their first equilibrium crossings occur at different times. Arrows on the curves show increasing time; they are not force arrows.

Question 2 — Start on the other side.

In a separate run with the same mass and spring, use x0=−0.040 mx_0=-0.040\,\mathrm m and v0=+0.060 m/sv_0=+0.060\,\mathrm{m/s}. Find amplitude, a valid phase, and the first future equilibrium crossing with its velocity. Explain why automatically choosing n=0n=0 in the crossing equation would fail.

Hint: choose the quadrant before the time.

Find C,DC,D, then the signs of cos⁡ϕ\cos\phi and sin⁡ϕ\sin\phi. The block starts left of equilibrium and moves right toward it.

Solution: the earliest root can use a negative integer.

Here C=−0.040 mC=-0.040\,\mathrm m, D=0.030 mD=0.030\,\mathrm m, and A=0.050 mA=0.050\,\mathrm m. Let β=arctan⁡(3/4)≈0.6435 rad\beta=\arctan(3/4)\approx0.6435\,\mathrm{rad}. One valid phase is ϕ=−π+β≈−2.4981 rad\phi=-\pi+\beta\approx-2.4981\,\mathrm{rad}, with cosine −0.8-0.8 and sine −0.6-0.6. The first future zero occurs at phase −π/2-\pi/2, corresponding to n=−1n=-1:

tfirst=π/2−β2≈0.4636 s. t_{\mathrm{first}}=\frac{\pi/2-\beta}{2} \approx0.4636\,\mathrm s.

The velocity is +0.100 m/s+0.100\,\mathrm{m/s}. Choosing n=0n=0 would find a later crossing; it would miss the word “first.”

Work through the starting point with a tutor

Start with an oscillation question you’re stuck on, or ask to review what position, velocity and phase mean. Your tutor can help you choose the equilibrium reference, interpret the initial direction, build the two initial-value equations and check the first event against a sketch. Then try a changed initial state with guidance where needed. Your current course outline can help choose the appropriate algebra or calculus approach. Sessions are currently offered in English. Topic support and availability are confirmed before booking.

Useful for

Optional practice when spring oscillations or simple harmonic motion are in your current outline. This lesson uses algebra and trigonometry; differentiation is optional. Follow your current section’s outline for required topics and assessments.

Work on the step you’re missing.

Tell us the subject and your preferred time. Nablio confirms the details by text or email.

Request a lesson