Sub topic 3
The SHM equation x = A sin(ωt + φ)
Prerequisites
This chapter assumes you know the following:
- The restoring force condition F = −kx from the previous chapter.
- Period, frequency and angular frequency (T, f, ω = 2πf).
- Radians and the basic shape of sine and cosine graphs.
- Newton's second law.
From force to equation
If a body of mass m feels a restoring force F = −kx, Newton's second law gives
m·a = −kx, so d²x/dt² = −(k/m)·x.
Write ω² = k/m. The condition for SHM becomes
d²x/dt² = −ω²x
This is the differential equation of SHM. It says the acceleration is proportional to the displacement and points the opposite way. Any quantity that obeys this equation oscillates sinusoidally.
The solution
The functions sin(ωt) and cos(ωt) both satisfy the equation, because differentiating twice returns the original function multiplied by −ω². The general solution is
x = A sin(ωt + φ)
| Symbol | Name | Meaning |
|---|---|---|
| x | Displacement | Distance from the equilibrium position at time t |
| A | Amplitude | Maximum displacement. It is always positive. |
| ω | Angular frequency | Rate of change of phase, in rad/s |
| ωt + φ | Phase | The angle that fixes the state of motion at time t |
| φ | Phase constant | The phase at t = 0. It is set by the starting conditions. |
Check the solution by differentiating twice:
- dx/dt = Aω cos(ωt + φ)
- d²x/dt² = −Aω² sin(ωt + φ) = −ω²x
The equation is satisfied for any A and φ. These two constants are fixed by the initial position and velocity.
Relating T, f and ω
The sine function repeats when its phase increases by 2π. So after one period T, ωT = 2π. Therefore:
- ω = 2π/T = 2πf
- T = 2π/ω = 2π√(m/k) for a spring-mass system
- f = 1/T
The period does not depend on the amplitude. This property is called isochronism, and it is a direct result of the linear restoring force.
Sine or cosine?
x = A cos(ωt + φ′) describes exactly the same motion. The two forms differ only in the phase constant, with φ′ = φ − π/2. Choose the form that makes the starting condition easiest:
| Starting condition at t = 0 | Convenient form | Phase constant |
|---|---|---|
| At the mean position, moving in the +x direction | x = A sin(ωt) | φ = 0 |
| At the positive extreme | x = A cos(ωt) | φ′ = 0 |
| At the negative extreme | x = −A cos(ωt) | equivalent to x = A sin(ωt − π/2) or x = A sin(ωt + 3π/2) |
NEET questions often say "the particle starts from the mean position" or "starts from the extreme position". Read this phrase first and pick the matching form.
Worked example
A particle performs SHM with amplitude 4 cm and period 2 s. It starts from the mean position. Find its displacement at t = 0.5 s.
- ω = 2π/T = 2π/2 = π rad/s.
- The particle starts at the mean position, so x = A sin(ωt) = 4 sin(πt).
- At t = 0.5 s, x = 4 sin(π/2) = 4 cm.
The particle reaches the extreme position after T/4 = 0.5 s, which matches the result.
The Python code below checks the same calculation and the period of the spring-mass system from the plan:
import math
m = 0.5 # kg
k = 200.0 # N/m
A = 0.1 # m
omega = math.sqrt(k / m) # 20 rad/s
T = 2 * math.pi / omega # about 0.314 s
# x at t = T/4 for a particle starting at the mean position
t = T / 4
x = A * math.sin(omega * t)
print(round(omega, 1), round(T, 3), round(x, 3)) # 20.0 0.314 0.1Common errors
- Calculator mode. The argument ωt + φ is in radians. Switch the calculator to radian mode before evaluating the sine.
- Treating the phase as time. The phase ωt + φ is an angle, not a time.
- Using SHM for large angles. The equation holds only when the restoring force is linear. A pendulum satisfies this only for small angles, which a later chapter covers.
- Wrong phase constant. If the particle starts at an extreme, x = A sin(ωt) is wrong. Use the cosine form or φ = π/2.
Exercise
A particle in SHM has amplitude 10 cm and frequency 5 Hz. It starts from the positive extreme position. Write x(t) and find x at t = 0.05 s.
Show answer
ω = 2πf = 10π rad/s. Starting from the positive extreme, x = A cos(ωt) = 10 cos(10πt) cm. At t = 0.05 s, ωt = 0.5π, so x = 10 cos(π/2) = 0. The particle is at the mean position, which is T/4 after the start (T = 0.2 s).
Exercise
For x = 3 sin(4πt + π/6) in metres, find the amplitude, the period, and the displacement at t = 0.
Show answer
A = 3 m. ω = 4π rad/s, so T = 2π/ω = 0.5 s. At t = 0, x = 3 sin(π/6) = 3 × 0.5 = 1.5 m.