Sub topic 5
The Sinusoidal Solution
Assume you know Newton’s second law, basic trigonometry, radians, and derivatives of sine and cosine. Simple harmonic motion (SHM) is motion governed by
\[ a=-\omega^2x \]
Here, \(x\) is displacement from equilibrium, \(a\) is acceleration, and \(\omega\) is angular frequency in radians per second. The negative sign means that acceleration always points toward equilibrium.
Why sine and cosine appear
Try a cosine function:
\[ x(t)=A\cos(\omega t+\phi) \]
The constant \(A\) is the amplitude, or greatest distance from equilibrium. The constant \(\phi\) is the phase constant. It determines where in the cycle the motion starts. The quantity \(\omega t+\phi\) is the phase at time \(t\).
Differentiate twice:
\[ v(t)=\frac{dx}{dt}=-A\omega\sin(\omega t+\phi) \]
\[ a(t)=\frac{d^2x}{dt^2}=-A\omega^2\cos(\omega t+\phi) \]
Since \(x=A\cos(\omega t+\phi)\),
\[ a(t)=-\omega^2x(t) \]
Therefore, the cosine function satisfies the SHM equation. A sine function also works because it is a phase-shifted cosine.
Reading the solution
The period \(T\) is the time for one complete cycle. Since the phase increases by \(2\pi\) during one cycle,
\[ T=\frac{2\pi}{\omega} \]
The frequency \(f\), measured in hertz, is cycles per second:
\[ f=\frac{1}{T}=\frac{\omega}{2\pi} \]
At the turning points, \(x=\pm A\), the velocity is zero and the acceleration has its greatest magnitude. At equilibrium, \(x=0\), the acceleration is zero and the speed is greatest.
| Quantity | Expression | Maximum magnitude |
|---|---|---|
| Position | \(x=A\cos(\omega t+\phi)\) | \(A\) |
| Velocity | \(v=-A\omega\sin(\omega t+\phi)\) | \(A\omega\) |
| Acceleration | \(a=-\omega^2x\) | \(A\omega^2\) |
Finding the phase from initial conditions
At \(t=0\),
\[ x0=A\cos\phi,\qquad v0=-A\omega\sin\phi \]
If the object starts at maximum positive displacement and is released from rest, then \(\phi=0\), so \(x(t)=A\cos(\omega t)\).
For other starting conditions, use both \(x0\) and \(v0\). The amplitude can be found from
\[ A=\sqrt{x0^2+\left(\frac{v0}{\omega}\right)^2} \]
The phase must then satisfy the two initial-condition equations. In software, an atan2 function is useful because it chooses the correct quadrant.
import math
A = 0.08
omega = 4.0
phi = math.pi / 6
t = 0.20
x = A * math.cos(omega * t + phi)
v = -A * omega * math.sin(omega * t + phi)
a = -A * omega**2 * math.cos(omega * t + phi)
print(f"x = {x:.4f} m")
print(f"v = {v:.4f} m/s")
print(f"a = {a:.4f} m/s^2")Exercise
An oscillator has A = 0.10 m, ω = 5 rad/s, and φ = 0. At what time after release does it first pass through equilibrium?
Show answer
Set x = 0: cos(5t) = 0. The first solution is 5t = π/2, so t = π/10 ≈ 0.314 s.