Sub topic 11
Velocity and acceleration over a cycle
This chapter assumes you know Newton's second law, basic trigonometry in radians, and the derivatives of sine and cosine. It also assumes you have seen the sinusoidal solution x(t) = A cos(ωt + φ) for simple harmonic motion (SHM). Here you will differentiate that solution to get velocity and acceleration. Then you will follow all three quantities through one cycle and learn to read their relationships from graphs.
Differentiating the solution
Velocity is the derivative of position, and acceleration is the derivative of velocity. Start from
x(t) = A cos(ωt + φ)
Apply the chain rule. The derivative of cos(u) is −sin(u), and du/dt = ω, so
- v(t) = dx/dt = −Aω sin(ωt + φ)
- a(t) = dv/dt = −Aω² cos(ωt + φ)
Compare the last line with the first. The factor A cos(ωt + φ) is x itself, so
a(t) = −ω² x(t)
This recovers the SHM equation. The derivation runs both ways: any motion of the form A cos(ωt + φ) satisfies a = −ω²x, and the equation holds at every instant, not only at the turning points.
Maximum values
Sine and cosine swing between −1 and +1. The peak values are therefore:
| Quantity | Expression | Maximum magnitude | Units |
|---|---|---|---|
| Displacement | x = A cos(ωt + φ) | A | m |
| Velocity | v = −Aω sin(ωt + φ) | v_max = Aω | m/s |
| Acceleration | a = −Aω² cos(ωt + φ) | a_max = Aω² | m/s² |
Each derivative multiplies the amplitude by another factor of ω. A faster oscillation (larger ω) at the same amplitude therefore has a larger peak speed, and an even larger peak acceleration.
Phase relationships
Rewrite the derivatives so that they are all cosines. Use −sin(u) = cos(u + π/2) and −cos(u) = cos(u + π):
- x = A cos(ωt + φ)
- v = Aω cos(ωt + φ + π/2)
- a = Aω² cos(ωt + φ + π)
Velocity leads displacement by a quarter cycle (π/2 rad, or 90°). Acceleration is a half cycle (π rad, or 180°) out of phase with displacement, which is the statement that a points opposite to x.
The practical consequences:
- When x is at its maximum (|x| = A), the velocity is zero and the acceleration is at its maximum magnitude, directed toward the center.
- When x = 0 (passing through equilibrium), the acceleration is zero and the speed is at its maximum.
- Velocity and acceleration are never at their maxima at the same moment.
The diagram assumes φ = 0, so the mass starts at the positive extreme. For a different φ, the same pattern holds but is shifted in time.
Walking through a cycle
Take φ = 0 and follow a mass that is released from rest at x = +A.
- t = 0. The mass is at the right extreme and momentarily at rest. The spring force (or other restoring force) is largest, so a = −Aω² points left.
- 0 < t < T/4. The mass moves left, speeding up because a and v point the same way. The acceleration shrinks as x shrinks.
- t = T/4. The mass crosses equilibrium. The net force is zero, so a = 0, but the speed is at its maximum, Aω. The mass keeps going because of its inertia.
- T/4 < t < T/2. The mass is now on the negative side, so a points right (positive) while v still points left. The mass slows down.
- t = T/2. The mass stops at x = −A and a = +Aω² is at its maximum. The second half of the cycle repeats this with directions reversed.
The key rule: the mass speeds up when v and a have the same sign, which happens while it moves toward equilibrium. It slows down when they have opposite signs, which happens while it moves away from equilibrium.
Velocity as a function of position
You often know the position and want the speed, without knowing the time. Eliminate t using sin²u + cos²u = 1. With φ = 0:
- x² = A² cos²(ωt)
- v² = A²ω² sin²(ωt) = ω²(A² − A² cos²(ωt)) = ω²(A² − x²)
So
v = ±ω √(A² − x²)
This gives the speed at any displacement. Check the limits: at x = 0, |v| = ωA, and at x = ±A, v = 0. The ± sign records that the mass passes each position moving in both directions. The same result follows from energy conservation, which the next chapters use.
Worked example
A 0.5 kg mass on a 20 N/m spring has ω = √(k/m) = √40 ≈ 6.325 rad/s. It is pulled 0.10 m from equilibrium and released from rest, so A = 0.10 m and φ = 0.
- Peak speed: v_max = Aω = 0.10 × 6.325 ≈ 0.632 m/s.
- Peak acceleration: a_max = Aω² = 0.10 × 40 = 4.0 m/s².
- Check with Newton's second law: the peak force is kA = 20 × 0.10 = 2.0 N, and 2.0 N / 0.5 kg = 4.0 m/s². This agrees.
- Speed at x = 0.06 m: v = ω√(A² − x²) = 6.325 × √(0.01 − 0.0036) = 6.325 × 0.08 ≈ 0.506 m/s.
The code below computes these values and the full x, v, a table at quarter periods.
import math
k = 20.0 # spring constant, N/m
m = 0.5 # mass, kg
A = 0.10 # amplitude, m
phi = 0.0 # released from rest at x = +A
omega = math.sqrt(k / m)
T = 2 * math.pi / omega
def x(t):
return A * math.cos(omega * t + phi)
def v(t):
return -A * omega * math.sin(omega * t + phi)
def a(t):
return -A * omega**2 * math.cos(omega * t + phi)
print(f"omega = {omega:.3f} rad/s, T = {T:.3f} s")
print(f"v_max = {A * omega:.3f} m/s, a_max = {A * omega**2:.3f} m/s^2")
print()
print(f"{'t/T':>5} {'x (m)':>9} {'v (m/s)':>9} {'a (m/s^2)':>10}")
for n in range(5):
t = n * T / 4
print(f"{n / 4:>5.2f} {x(t):>9.4f} {v(t):>9.4f} {a(t):>10.4f}")
# Speed at x = 0.06 m from v = omega * sqrt(A^2 - x^2)
x_probe = 0.06
print()
print(f"speed at x = {x_probe} m: {omega * math.sqrt(A**2 - x_probe**2):.3f} m/s")
# Consistency check: a = -omega^2 x at an arbitrary time
t_test = 0.37
print(f"a(t) = {a(t_test):.4f}, -omega^2 x(t) = {-omega**2 * x(t_test):.4f}")At t/T = 0.25 the table shows x ≈ 0, v ≈ −0.632 m/s, and a ≈ 0, matching the diagram. Very small values such as 1e-17 may appear in place of exact zeros. They come from floating-point rounding of cos(π/2) and similar terms.
Common errors
- Using degrees in the calculator. The derivative rule d(sin u)/du = cos u holds only for radians. Set your calculator to radian mode.
- Dropping the factors of ω. The derivative of cos(ωt) is −ω sin(ωt), not −sin(ωt). Each differentiation brings down one ω.
- Assuming constant acceleration. The kinematic equations such as v = v₀ + at do not apply, because a changes continuously with x.
- Mixing up the sign of a. The minus sign in a = −ω²x says that the acceleration points toward equilibrium. It does not mean a is always negative.
- Reading the phase as time. φ shifts the whole pattern, but it does not change A, ω, vmax, or amax.
Exercise
A mass oscillates with amplitude 0.20 m and period 1.5 s. Find (a) ω, (b) the maximum speed, (c) the maximum acceleration, and (d) the speed when x = 0.12 m.
Show answer
(a) ω = 2π/T = 2π/1.5 ≈ 4.189 rad/s. (b) vmax = Aω = 0.20 × 4.189 ≈ 0.838 m/s. (c) amax = Aω² = 0.20 × 17.55 ≈ 3.51 m/s². (d) v = ω√(A² − x²) = 4.189 × √(0.04 − 0.0144) = 4.189 × 0.16 ≈ 0.670 m/s.
Exercise
For x(t) = A cos(ωt) with the mass released at x = +A, at what times in the first period is the mass speeding up while moving in the negative direction, and why?
Show answer
The mass speeds up when v and a have the same sign. From t = 0 to T/4 the mass moves in the negative direction (v < 0) and x > 0, so a = −ω²x < 0. Both are negative, so the speed increases. After T/4 the mass is at x < 0, so a > 0 while v is still negative, and it slows down. The answer is 0 < t < T/4.