Sub topic 3
The SHM equation x = A sin(ωt + φ)
Prerequisites and what this chapter covers
This chapter assumes you know the following:
- The restoring force condition F = −kx from the previous chapter.
- Period T, frequency f and angular frequency ω, with ω = 2πf = 2π/T.
- Basic trigonometry in radians.
- Newton's second law, F = ma.
By the end you will be able to do three things. You will be able to get the SHM equation from F = −kx. You will be able to read amplitude, angular frequency and phase constant from any given equation. You will be able to find A and φ from initial conditions.
From force to differential equation
A particle of mass m moves along a line. The only force along that line is a linear restoring force F = −kx, where x is the displacement from the equilibrium position. Newton's second law gives:
ma = −kx
Write a = d²x/dt². Divide by m and define ω² = k/m:
d²x/dt² = −ω²x
This is the differential equation of SHM. It says that the acceleration is proportional to the displacement and points the opposite way. Any system that obeys this equation is a simple harmonic oscillator, whatever the physical source of the restoring force.
You are not expected to solve differential equations in NEET. You only need to check that the standard solution works.
The solution and why it works
Try x = A sin(ωt + φ). Differentiate twice:
- dx/dt = Aω cos(ωt + φ)
- d²x/dt² = −Aω² sin(ωt + φ) = −ω²x
The result matches the differential equation. The same check works for x = A cos(ωt + φ). Sine and cosine differ only by a shift of π/2 in the phase constant, so they describe the same family of motions. The general solution is also a sum of the form a sin ωt + b cos ωt. Any such sum can be written as a single sine with a new amplitude and phase constant.
Meaning of each symbol
| Symbol | Name | Meaning | Unit |
|---|---|---|---|
| x | Displacement | Position measured from equilibrium at time t | m |
| A | Amplitude | Maximum displacement. It is always positive | m |
| ω | Angular frequency | Set by the system, ω = √(k/m) for a spring | rad/s |
| ωt + φ | Phase | The argument of the sine, in radians | rad |
| φ | Phase constant (initial phase) | Phase at t = 0 | rad |
Three points deserve attention.
- ω comes from the system, not from the starting conditions. For a spring-mass system, ω depends on k and m only. Pulling the block further changes A, and does not change ω or T.
- A and φ come from the starting conditions. They are the two constants that a second-order equation needs. You fix them using the position and velocity at t = 0.
- The motion repeats when the phase increases by 2π. So ωT = 2π, which gives T = 2π/ω.
Reading an equation
Suppose x = 0.05 sin(8πt + π/6) in metres, with t in seconds.
- Amplitude A = 0.05 m.
- Angular frequency ω = 8π rad/s.
- Frequency f = ω/2π = 4 Hz.
- Period T = 1/f = 0.25 s.
- Phase constant φ = π/6.
- At t = 0, x = 0.05 sin(π/6) = 0.025 m.
Be careful with the coefficient of t. In x = A sin(2πt/T), the quantity 2π/T is ω. If an equation is written as x = A sin(πt), then ω = π rad/s and T = 2 s. A common error is to read π as the frequency or the period.
Equations that are not in standard form
NEET often gives a form that needs rewriting. Two examples follow.
- x = A sin ωt + B cos ωt. The amplitude is √(A² + B²). Write A = R cos α and B = R sin α, so x = R sin(ωt + α) with R = √(A² + B²).
- x = A sin²(ωt). Use sin²θ = (1 − cos 2θ)/2. Then x = A/2 − (A/2) cos 2ωt. This is SHM about the point x = A/2, with amplitude A/2 and angular frequency 2ω.
Not every periodic function is SHM. A function such as sin ωt + sin 2ωt is periodic but is not SHM. The acceleration of an SHM must be proportional to −x, and this sum fails that test.
Phase constant and initial conditions
At t = 0 the equation gives:
- x₀ = A sin φ
- v₀ = Aω cos φ
The following table gives the phase constant for common starting points, using x = A sin(ωt + φ).
| Particle at t = 0 | x₀ | v₀ | φ |
|---|---|---|---|
| At the mean position, moving in the +x direction | 0 | +Aω | 0 |
| At the positive extreme | +A | 0 | π/2 |
| At the mean position, moving in the −x direction | 0 | −Aω | π |
| At the negative extreme | −A | 0 | 3π/2 |
If you use x = A cos(ωt + φ) instead, the values of φ change. For example, starting at the positive extreme gives φ = 0 in the cosine form. Always check which form the question uses before you copy a phase constant.
Finding A and φ from x₀ and v₀
Divide the two initial-condition equations:
- x₀ = A sin φ
- v₀/ω = A cos φ
Then A = √(x₀² + (v₀/ω)²) and tan φ = ωx₀/v₀. The tangent has two solutions in 0 to 2π. Choose the one whose signs match both x₀ and v₀. This is the usual place for mistakes. For instance, x₀ > 0 and v₀ < 0 puts φ in the second quadrant, and the calculator's arctan will give a first-quadrant answer.
A shift in time is a shift in phase
Changing φ moves the whole curve along the time axis without changing its shape. Writing the equation as x = A sin(ω(t + φ/ω)) shows that a positive φ means the motion is ahead in time by φ/ω. The curve with φ = π/2 reaches its maximum at t = 0, where the φ = 0 curve is at the mean position.
Worked example in code
The block below builds the SHM equation from initial conditions and checks it. A block of mass 0.5 kg is on a spring with k = 200 N/m. At t = 0 it is at x₀ = 0.06 m and is moving at v₀ = −1.6 m/s. The code finds ω, A and φ, then confirms the displacement and velocity at t = 0.
import math
m = 0.5 # kg
k = 200.0 # N/m
x0 = 0.06 # m
v0 = -1.6 # m/s
omega = math.sqrt(k / m) # 20 rad/s
A = math.sqrt(x0**2 + (v0 / omega)**2) # amplitude
# atan2 keeps the quadrant: sin(phi) ~ x0, cos(phi) ~ v0/omega
phi = math.atan2(x0, v0 / omega)
T = 2 * math.pi / omega
def x(t):
return A * math.sin(omega * t + phi)
def v(t):
return A * omega * math.cos(omega * t + phi)
print("omega =", omega)
print("A =", round(A, 4))
print("phi =", round(phi, 4), "rad")
print("T =", round(T, 4), "s")
print("x(0) =", round(x(0), 4))
print("v(0) =", round(v(0), 4))The output is:
omega = 20.0
A = 0.1
phi = 2.2143 rad
T = 0.3142 s
x(0) = 0.06
v(0) = -1.6Here v₀/ω = −0.08 m, so A = √(0.06² + 0.08²) = 0.1 m. The phase constant 2.2143 rad is in the second quadrant, as expected for positive x₀ and negative v₀. A plain math.atan(x0 / (v0 / omega)) would return a negative first-quadrant angle, and that angle would give v(0) with the wrong sign.
Periodicity and the time to reach a point
Because the motion repeats, the position at time t equals the position at t + T. A few timing facts follow from the equation with φ = 0, where the particle starts at the mean position:
- Mean position to the positive extreme takes T/4.
- Mean position to x = A/2 takes T/12. This follows from sin(ωt) = 1/2, so ωt = π/6 and t = T/12.
- x = A/2 to the extreme takes T/6, which is T/4 − T/12.
- Mean position to x = A/√2 takes T/8.
These times are not proportional to distance. The particle moves fastest near the mean position, so it covers the first half of the amplitude in a shorter time than the second half. Questions that ask "how long to travel half the amplitude" are testing this point.
Common mistakes
- Using degrees in a calculator set to radians, or the reverse. The argument ωt + φ must be in radians when ω is in rad/s.
- Treating ω as a speed. It is the rate of change of phase and is not the speed of the particle. The maximum speed is Aω.
- Confusing f and ω. If a question gives f = 5 Hz, ω = 10π rad/s and not 5.
- Assuming amplitude can be negative. A is a magnitude. A negative sign belongs in the phase constant.
- Expecting a larger amplitude to change the period. In SHM the period is independent of amplitude. This property is called isochronism. It holds exactly when the restoring force is exactly linear, and only approximately for a pendulum.
- Picking the wrong quadrant for φ. Check the signs of both x₀ and v₀.
Summary of the working model
- SHM follows from ma = −kx, which gives d²x/dt² = −ω²x.
- The solution is x = A sin(ωt + φ), or equivalently x = A cos(ωt + φ′).
- The system fixes ω. The starting conditions fix A and φ.
- The period T = 2π/ω is independent of amplitude.
- Rewrite unusual forms, such as sums of sine and cosine or squared sines, before you read off A and ω.
Exercise
A particle moves as x = 3 sin(5πt) + 4 cos(5πt), where x is in centimetres and t is in seconds. Find the amplitude, the period, and the displacement at t = 0.
Show answer
Combine the terms: R = √(3² + 4²) = 5, so the amplitude is 5 cm. The angular frequency is ω = 5π rad/s, so T = 2π/ω = 2π/(5π) = 0.4 s. At t = 0, x = 3 sin 0 + 4 cos 0 = 4 cm. The motion is SHM because it is a single sinusoid of angular frequency 5π, namely x = 5 sin(5πt + α) with tan α = 4/3.
Exercise
A particle in SHM has amplitude 10 cm and period 2 s. It starts at the mean position moving in the +x direction. How long does it take to first reach x = 5 cm, and what is its displacement at t = 0.5 s?
Show answer
Take x = A sin(ωt) with ω = 2π/T = π rad/s. For x = 5 cm, sin(πt) = 1/2, so πt = π/6 and t = 1/6 s, which equals T/12. At t = 0.5 s, x = 10 sin(π × 0.5) = 10 cm, the positive extreme, because 0.5 s is T/4.
Exercise
At t = 0 a block on a spring (ω = 10 rad/s) is at x₀ = +4 cm and is moving with v₀ = −30 cm/s. Find the amplitude A and the quadrant of the phase constant φ in x = A sin(ωt + φ).
Show answer
A = √(x₀² + (v₀/ω)²) = √(4² + 3²) = 5 cm. Since sin φ = x₀/A = 0.8 is positive and cos φ = v₀/(Aω) = −0.6 is negative, φ is in the second quadrant. Its value is φ = π − arctan(4/3), which is about 2.214 rad.