SHM Displacement Calculator – x(t) = A cos(ωt + φ) Evaluator
Use this free SHM Displacement Calculator to evaluate the equation of motion x(t) = A cos(ωt + φ) at any instant — it gives the displacement, velocity and acceleration of an oscillator at the time t you choose.
Formula
Displacement x(t) = A cos(ωt + φ), velocity v(t) = −Aω sin(ωt + φ) and acceleration a(t) = −ω²x(t), with ω = 2π/T. The phase constant φ (entered in degrees, converted to radians) sets where the motion starts: φ = 0 means the object starts at +A at t = 0.
How to use
- Enter the amplitude A in metres and the period T in seconds.
- Enter the instant t you want to inspect, and the phase constant φ in degrees (0 if the motion starts at maximum displacement).
- Click "Evaluate x(t)" to get displacement, velocity and acceleration at that moment.
Worked example
An oscillator with A = 0.05 m, T = 2 s and φ = 0, evaluated at t = 0.25 s:
ω = 2π / 2 = π rad/s, so the phase is ωt = π × 0.25 = 45°
x = 0.05 × cos(45°) = 0.0354 m (3.54 cm)
v = −0.05 × π × sin(45°) = −0.11 m/s (moving back toward the centre)
a = −ω²x = −0.35 m/s²
FAQ
What does a negative velocity mean here?
It means the object is moving in the negative x direction — back toward (or past) the centre — at that instant.
Why is the acceleration always opposite to x?
Because a = −ω²x: the restoring force always pulls toward the centre, so acceleration points opposite to the displacement.
What phase constant starts the object at the centre?
φ = −90° (or 270°) gives x(0) = A cos(−90°) = 0, with the object moving at maximum speed.