SHM kinematics

Push a swing, pluck a guitar string, watch a mass bob on a spring — all three trace out the same mathematical curve. That curve is simple harmonic motion (SHM): motion in which the restoring force, and hence the acceleration, is always directed back towards a fixed mean position and grows in direct proportion to the displacement from it. This single rule, F=−kyF=-ky, forces the motion into a sine or cosine pattern in time, whether the oscillator is a pendulum bob, a spring, or (as we will meet later in this unit) a tiny slice of a travelling wave. This article works through the kinematics of that pattern: the defining differential equation, the circular-motion picture that generates it, and how displacement, velocity and acceleration each vary through one cycle — the tools you need before tackling springs, pendulums and waves.

The core insight

SHM is motion with acceleration a=−ω2ya=-\omega^2y always directed towards the mean position and proportional to displacement yy, so y=Asin⁡(ωt+ϕ0)y=A\sin(\omega t+\phi_0), v=Aωcos⁡(ωt+ϕ0)=ωA2−y2v=A\omega\cos(\omega t+\phi_0)=\omega\sqrt{A^2-y^2} and a=−Aω2sin⁡(ωt+ϕ0)a=-A\omega^2\sin(\omega t+\phi_0), with vv maximum and aa zero at the mean position, and vv zero and aa maximum at the extremes.

The core idea

Defining SHM. A particle executes SHM if the net force on it is always directed towards a fixed mean position and proportional in size to the displacement yy from that point — a restoring force. Writing F=−kyF=-ky (the negative sign shows the force opposes displacement) and using Newton's second law:

md2ydt2=−ky  ⟹  d2ydt2+ω2y=0,ω2=kmm\frac{d^2y}{dt^2}=-ky \implies \frac{d^2y}{dt^2}+\omega^2y=0,\qquad \omega^2=\frac{k}{m}

where: yy is displacement from the mean position, kk is the restoring-force constant, mm is mass, and ω\omega is the angular frequency of the resulting oscillation, in rad/s. This differential equation is the single template behind every SHM system in this unit.

The circular-motion picture. Imagine a point PP moving at steady angular speed ω\omega around a circle of radius AA. Its shadow — the foot of the perpendicular dropped onto a diameter — slides back and forth along that diameter, and that shadow's motion is exactly SHM about the circle's centre. This geometric view is why sine and cosine, not a straight line or a parabola, are the natural functions of oscillatory motion: they are literally projections of uniform circular motion.

Figure
A reference circle of radius A with a rotating point P and its shadow oscillating along a horizontal diameter between minus A and plus A
SHM as the shadow of uniform circular motion P omega t + phi0 shadow of P (this is y) +A -A shadow position y traced against time t

Reading off the constants. In y=Asin⁡(ωt+ϕ0)y=A\sin(\omega t+\phi_0), each symbol answers a distinct physical question. AA answers "how far does it swing" and is fixed by how the oscillation was started (how hard the spring was pulled, how far the pendulum was released). ω\omega answers "how fast does it swing" and is fixed by the system itself — the mass and the restoring-force constant kk — through ω2=k/m\omega^2=k/m, never by the starting conditions. ϕ0\phi_0 answers "where in the cycle was it at t=0t=0" and is the only constant that depends purely on the clock's zero point; changing when you start the stopwatch changes ϕ0\phi_0 but changes nothing physical about the motion.

Velocity and acceleration. Differentiating y=Asin⁡(ωt+ϕ0)y=A\sin(\omega t+\phi_0) once and twice gives

v=dydt=Aωcos⁡(ωt+ϕ0)=ωA2−y2,a=d2ydt2=−Aω2sin⁡(ωt+ϕ0)=−ω2yv=\frac{dy}{dt}=A\omega\cos(\omega t+\phi_0)=\omega\sqrt{A^2-y^2}, \qquad a=\frac{d^2y}{dt^2}=-A\omega^2\sin(\omega t+\phi_0)=-\omega^2y

where: AA is the amplitude (maximum displacement), (ωt+ϕ0)(\omega t+\phi_0) is the phase, and ϕ0\phi_0 is the epoch — the phase at t=0t=0, fixed entirely by how the motion is started. Speed vv is maximum (AωA\omega) at the mean position y=0y=0 and zero at the extremes y=±Ay=\pm A; acceleration aa is maximum (Aω2A\omega^2) at the extremes and zero at the mean position, and it always points back towards y=0y=0. Time period T=2π/ωT=2\pi/\omega and frequency f=1/T=ω/2πf=1/T=\omega/2\pi. Note also the phase relationships: vv leads yy by π/2\pi/2, and aa is exactly out of phase with yy (a phase difference of π\pi), which is just another way of reading a=−ω2ya=-\omega^2y.

Why it works: periodicity and the sine solution

Any genuinely periodic motion must satisfy y(t+T)=y(t)y(t+T)=y(t) — it repeats its values after every interval TT. Because sin⁡(θ+2π)=sin⁡θ\sin(\theta+2\pi)=\sin\theta, choosing ω=2π/T\omega=2\pi/T makes y=Asin⁡(ωt+ϕ0)y=A\sin(\omega t+\phi_0) repeat automatically every TT seconds. That repetition is exactly what the SHM differential equation demands, which is why sine and cosine — and no other elementary function — describe oscillatory motion. A straight line or a parabola grows without bound and never returns to a previous value, so neither can satisfy y(t+T)=y(t)y(t+T)=y(t); only a function built from sine and cosine keeps retracing the same values forever. This is also why the geometric picture and the algebra never conflict: the reference point PP genuinely does return to the same spot on the circle after every revolution, and its shadow along the diameter must therefore return to the same displacement too.

Derivation AChecking that y = A sin(omega t + phi0) solves the SHM equation

The goal is to confirm, by direct substitution and two differentiations, that the standard displacement expression y=Asin⁡(ωt+ϕ0)y=A\sin(\omega t+\phi_0) actually satisfies the defining SHM differential equation d2y/dt2+ω2y=0d^2y/dt^2+\omega^2y=0 derived from the restoring force F=−kyF=-ky with ω2=k/m\omega^2=k/m, so that every later formula for velocity, acceleration, period and frequency can be trusted as a consequence of this one solution rather than assumed separately.

Step 1. Start from the trial solution y=Asin⁡(ωt+ϕ0)y=A\sin(\omega t+\phi_0), where AA and ϕ0\phi_0 are constants fixed by how the motion begins (its amplitude and starting point in the cycle), and ω\omega is fixed by the physical system through ω2=k/m\omega^2=k/m.

Step 2. Differentiate once with respect to time to get the velocity: dydt=Aωcos⁡(ωt+ϕ0)\dfrac{dy}{dt}=A\omega\cos(\omega t+\phi_0). This uses the standard rule that differentiating sin⁡(ωt+ϕ0)\sin(\omega t+\phi_0) brings down a factor of ω\omega and turns sine into cosine.

Step 3. Differentiate a second time to get the acceleration: d2ydt2=−Aω2sin⁡(ωt+ϕ0)\dfrac{d^2y}{dt^2}=-A\omega^2\sin(\omega t+\phi_0). Differentiating cosine brings down another factor of ω\omega and turns it into −sin⁡-\sin.

Step 4. Compare this result with the original displacement. Since y=Asin⁡(ωt+ϕ0)y=A\sin(\omega t+\phi_0), the acceleration is simply d2ydt2=−ω2y\dfrac{d^2y}{dt^2}=-\omega^2y. Substituting into the left side of the SHM equation gives d2ydt2+ω2y=−ω2y+ω2y=0\dfrac{d^2y}{dt^2}+\omega^2y=-\omega^2y+\omega^2y=0, which matches the equation exactly, confirming the trial solution is correct for any values of AA and ϕ0\phi_0. Verified: the substitution reduces to 0=00=0 identically, independent of the constants AA and ϕ0\phi_0, confirming y=Asin⁡(ωt+ϕ0)y=A\sin(\omega t+\phi_0) is the general solution whenever ω2=k/m\omega^2=k/m.

Worked example

A particle performs SHM with amplitude A=0.05 mA=0.05\ \text{m} and time period T=2 sT=2\ \text{s}. Find (a) the angular frequency ω\omega, (b) the maximum speed, (c) the maximum acceleration, and (d) the speed when the displacement is y=0.03 my=0.03\ \text{m}.

Step 1. Angular frequency from the period: ω=2πT=2π2=π rad/s≈3.14 rad/s\omega=\dfrac{2\pi}{T}=\dfrac{2\pi}{2}=\pi\ \text{rad/s}\approx3.14\ \text{rad/s}.

Step 2. Maximum speed occurs at the mean position, y=0y=0: vmax=Aω=0.05×3.14=0.157 m/sv_{max}=A\omega=0.05\times3.14=0.157\ \text{m/s}.

Step 3. Maximum acceleration occurs at the extremes, y=±Ay=\pm A: amax=Aω2=0.05×(3.14)2=0.05×9.87=0.493 m/s2a_{max}=A\omega^2=0.05\times(3.14)^2=0.05\times9.87=0.493\ \text{m/s}^2.

Step 4. Speed at y=0.03 my=0.03\ \text{m}, using v=ωA2−y2v=\omega\sqrt{A^2-y^2}: v=3.14(0.05)2−(0.03)2=3.140.0016=3.14×0.04=0.1256 m/sv=3.14\sqrt{(0.05)^2-(0.03)^2}=3.14\sqrt{0.0016}=3.14\times0.04=0.1256\ \text{m/s}.

Answers: ω≈3.14 rad/s\omega\approx3.14\ \text{rad/s}, vmax=0.157 m/sv_{max}=0.157\ \text{m/s}, amax=0.493 m/s2a_{max}=0.493\ \text{m/s}^2, and v=0.1256 m/sv=0.1256\ \text{m/s} at y=0.03 my=0.03\ \text{m}.

Competitive stretch

The same particle also satisfies y=0.2sin⁡(5t+π/6)y=0.2\sin(5t+\pi/6) metres in a second scenario. Reading off directly: amplitude A=0.2 mA=0.2\ \text{m}, ω=5 rad/s\omega=5\ \text{rad/s}, epoch ϕ0=π/6\phi_0=\pi/6. At t=0t=0, y=0.2sin⁡(π/6)=0.1 my=0.2\sin(\pi/6)=0.1\ \text{m}, v=Aωcos⁡(π/6)=1×0.866=0.866 m/sv=A\omega\cos(\pi/6)=1\times0.866=0.866\ \text{m/s}, and a=−ω2y=−25×0.1=−2.5 m/s2a=-\omega^2y=-25\times0.1=-2.5\ \text{m/s}^2, the negative sign confirming the acceleration points back towards the mean position. The frequency is f=ω/2π=5/2π≈0.796 Hzf=\omega/2\pi=5/2\pi\approx0.796\ \text{Hz}.

Common traps

  • Writing a=−ω2ta=-\omega^2t instead of a=−ω2ya=-\omega^2y — acceleration in SHM depends on displacement, not directly on time; time enters only indirectly through y(t)y(t).
  • Mixing up amplitude AA with instantaneous displacement yy: vmax=Aωv_{max}=A\omega and amax=Aω2a_{max}=A\omega^2 use the amplitude, but v=ωA2−y2v=\omega\sqrt{A^2-y^2} uses the instantaneous yy.
  • Assuming velocity is maximum at the extreme positions — it is actually zero there; speed peaks only at the mean position, where acceleration is zero.
  • Forgetting that the epoch ϕ0\phi_0 depends purely on the choice of when t=0t=0 starts, so two SHMs with identical AA and ω\omega can look completely different if their epochs differ.

Ask the tutor: Want a walkthrough of why vv and aa peak at opposite ends of the cycle, or a few extra numericals converting between AA, ω\omega, TT and ff?

Why is acceleration in SHM written in terms of y and not t directly?

Because the defining physics is a restoring force, F=−kyF=-ky, and force determines acceleration through a=F/ma=F/m at every instant based on where the particle currently is, not how long it has been moving. Since a=−ω2ya=-\omega^2y, the acceleration is largest when yy is largest (at the extremes) and zero when y=0y=0 (the mean position). Time still matters, but only indirectly, through the way yy itself changes with tt via y=Asin⁡(ωt+ϕ0)y=A\sin(\omega t+\phi_0).

How can velocity be maximum exactly where acceleration is zero?

Because velocity and acceleration answer different questions. At the mean position the restoring force is zero, so there is nothing slowing the particle down at that instant — it is moving at its fastest speed there, vmax=Aωv_{max}=A\omega. As it moves away from the mean position the restoring force grows and decelerates it, until at the extreme y=±Ay=\pm A the particle is momentarily at rest (v=0v=0) while the restoring force, and hence acceleration, is at its largest, amax=Aω2a_{max}=A\omega^2, ready to pull it back.

Do I need to memorise separate formulas for a pendulum and a spring?

No — both are just specific cases of the same SHM template covered here. Once you show a system obeys F=−kyF=-ky (or an equivalent linear restoring relation), it automatically satisfies d2y/dt2+ω2y=0d^2y/dt^2+\omega^2y=0 with ω2=k/m\omega^2=k/m, and every kinematic result in this article — y=Asin⁡(ωt+ϕ0)y=A\sin(\omega t+\phi_0), v=ωA2−y2v=\omega\sqrt{A^2-y^2}, a=−ω2ya=-\omega^2y, T=2π/ωT=2\pi/\omega — follows directly. The only work left for a pendulum or spring is identifying its particular ω\omega.

Before this

Where this leads