TExcelTAD
Home › Calculus in Depth › Motion in Space: Velocity and Acceleration

Motion in Space: Velocity and Acceleration

When r(t)\mathbf{r}(t) is the position of a moving object, its derivatives are velocity and acceleration, and integrating them back recovers the motion from forces. This lesson connects the vector calculus of the previous lessons to Newton's second law: projectiles, splitting acceleration into a part along the path and a part toward the bend, and the derivation of Kepler's law of equal areas. It ends with what happens when a computer integrates the motion step by step.

For a gentle first pass, see Motion in Space and Curvilinear Motion.

Velocity, speed and acceleration

For a particle with position r(t)\mathbf{r}(t):

Quantity Definition Meaning
velocity v(t)=r′(t)\mathbf{v}(t) = \mathbf{r}'(t) points along the path (tangent)
speed ∥v(t)∥=ds/dt\lVert \mathbf{v}(t) \rVert = ds/dt rate of change of distance travelled
acceleration a(t)=v′(t)=r′′(t)\mathbf{a}(t) = \mathbf{v}'(t) = \mathbf{r}''(t) rate of change of velocity, in direction and size

The reverse direction uses the integrals of the previous lesson:

v(t)=v(t0)+∫t0ta(u) dur(t)=r(t0)+∫t0tv(u) du\mathbf{v}(t) = \mathbf{v}(t_0) + \int_{t_0}^{t} \mathbf{a}(u)\,du \qquad \mathbf{r}(t) = \mathbf{r}(t_0) + \int_{t_0}^{t} \mathbf{v}(u)\,du

Newton's second law says F(t)=m a(t)\mathbf{F}(t) = m\,\mathbf{a}(t). Given the force, two integrations and two initial vectors (position and velocity) determine the motion. Example: uniform circular motion r(t)=⟨Rcos⁡ωt,Rsin⁡ωt⟩\mathbf{r}(t) = \langle R\cos \omega t, R\sin \omega t \rangle has v=Rω⟨−sin⁡ωt,cos⁡ωt⟩\mathbf{v} = R\omega\langle -\sin \omega t, \cos \omega t \rangle and a=−ω2r\mathbf{a} = -\omega^2 \mathbf{r}: the acceleration has size Rω2=v2/RR\omega^2 = v^2/R and points to the centre, so keeping a mass mm on the circle needs the centripetal force mv2/Rmv^2/R.

python · try it yourself
import sympy as sp

t = sp.symbols("t")
a = sp.Matrix([6 * t, 2, sp.exp(-t)])          # acceleration
v0 = sp.Matrix([1, 0, -1])                       # v(0)
r0 = sp.Matrix([0, 1, 2])                        # r(0)

v = v0 + a.applyfunc(lambda c: sp.integrate(c, (t, 0, t)))
r = r0 + v.applyfunc(lambda c: sp.integrate(c, (t, 0, t)))
print("v(t) =", list(v))
print("r(t) =", list(r))
print("r(1) =", [round(float(c), 4) for c in r.subs(t, 1)],
      " speed at t=1:", round(float(v.subs(t, 1).norm()), 4))
v(t) = [3*t**2 + 1, 2*t, -exp(-t)]
r(t) = [t**3 + t, t**2 + 1, 1 + exp(-t)]
r(1) = [2.0, 2.0, 1.3679]  speed at t=1: 4.4872

The height z(t)=1+e−tz(t) = 1 + e^{-t} tends to 1 as t→∞t \to \infty: the velocity's third component, −e−t-e^{-t}, dies out, so the particle sinks by a total of only 1 unit in zz, however long it moves.

Projectiles

Near the Earth's surface, ignoring air resistance, the only force is gravity: a=⟨0,−g⟩\mathbf{a} = \langle 0, -g \rangle in a vertical plane. Launching from height hh with speed v0v_0 at angle α\alpha above the horizontal:

v(t)=⟨v0cos⁡α, v0sin⁡α−gt⟩r(t)=⟨v0cos⁡α⋅t, h+v0sin⁡α⋅t−12gt2⟩\begin{aligned} \mathbf{v}(t) &= \langle v_0 \cos\alpha,\ v_0 \sin\alpha - gt \rangle \\ \mathbf{r}(t) &= \langle v_0 \cos\alpha \cdot t,\ h + v_0 \sin\alpha \cdot t - \tfrac{1}{2} g t^2 \rangle \end{aligned}
Quantity Formula (h=0h = 0, level ground)
time of flight 2v0sin⁡α/g2v_0 \sin\alpha / g
maximum height (v0sin⁡α)2/(2g)(v_0 \sin\alpha)^2 / (2g)
range v02sin⁡2α/gv_0^2 \sin 2\alpha / g, largest at α=45∘\alpha = 45^\circ

From a height h>0h > 0, set y(t)=0y(t) = 0 and take the positive root of the quadratic; the best angle is then a little less than 45°.

Tangential and normal components

Write v=∥v∥v = \lVert \mathbf{v} \rVert for speed. Since r′=vT\mathbf{r}' = v\mathbf{T}, differentiating with the product rule and using dT/dt=(ds/dt)(dT/ds)=vκNd\mathbf{T}/dt = (ds/dt)(d\mathbf{T}/ds) = v\kappa\mathbf{N} gives

a=v′T+κv2NaT=v′=r′⋅r′′∥r′∥aN=κv2=∥r′×r′′∥∥r′∥\begin{aligned} \mathbf{a} &= v'\mathbf{T} + \kappa v^2 \mathbf{N} \\ a_T &= v' = \frac{\mathbf{r}' \cdot \mathbf{r}''}{\lVert \mathbf{r}' \rVert} \\ a_N &= \kappa v^2 = \frac{\lVert \mathbf{r}' \times \mathbf{r}'' \rVert}{\lVert \mathbf{r}' \rVert} \end{aligned}

So acceleration always lies in the osculating plane: it has no binormal component. The tangential part aTa_T changes the speed (pressing the accelerator or the brake); the normal part aNa_N bends the path (turning the wheel), and it grows with the square of the speed. The formula for aTa_T comes from r′⋅r′′=vT⋅(v′T+κv2N)=vv′\mathbf{r}' \cdot \mathbf{r}'' = v\mathbf{T} \cdot (v'\mathbf{T} + \kappa v^2 \mathbf{N}) = vv'; the formula for aNa_N from κ=∥r′×r′′∥/v3\kappa = \lVert \mathbf{r}' \times \mathbf{r}'' \rVert / v^3. Since T⊥N\mathbf{T} \perp \mathbf{N}, aT2+aN2=∥a∥2a_T^2 + a_N^2 = \lVert \mathbf{a} \rVert^2.

python · try it yourself
import numpy as np

def components(r1, r2):
    """a_T and a_N from velocity r1 and acceleration r2."""
    speed = np.linalg.norm(r1)
    aT = float(np.dot(r1, r2) / speed)
    aN = float(np.linalg.norm(np.cross(r1, r2)) / speed)
    return aT, aN

# a car entering a bend: r(t) = <20t, 0.5t^3, 0>, so
for t in [0.0, 1.0, 2.0]:
    r1 = np.array([20.0, 1.5 * t**2, 0.0])
    r2 = np.array([0.0, 3.0 * t, 0.0])
    aT, aN = components(r1, r2)
    print(f"t={t}: speed {np.linalg.norm(r1):7.4f}  a_T {aT:.4f}  a_N {aN:.4f}"
          f"  check {aT**2 + aN**2:.4f} = {np.dot(r2, r2):.4f}")
t=0.0: speed 20.0000  a_T 0.0000  a_N 0.0000  check 0.0000 = 0.0000
t=1.0: speed 20.0562  a_T 0.2244  a_N 2.9916  check 9.0000 = 9.0000
t=2.0: speed 20.8806  a_T 1.7241  a_N 5.7470  check 36.0000 = 36.0000

Almost all of the acceleration is sideways (normal), the part passengers feel as being pushed toward the outside of the bend.

Kepler's second law

Newton showed that Kepler's laws of planetary motion follow from F=ma\mathbf{F} = m\mathbf{a} with gravity F=−(GMm/∥r∥3) r\mathbf{F} = -(GMm/\lVert \mathbf{r} \rVert^3)\,\mathbf{r}, a central force (it points along r\mathbf{r}). The key step is short. Let h=r×v\mathbf{h} = \mathbf{r} \times \mathbf{v} (angular momentum per unit mass):

dhdt=r′×v+r×v′=v×v+r×a=0+0=0\frac{d\mathbf{h}}{dt} = \mathbf{r}' \times \mathbf{v} + \mathbf{r} \times \mathbf{v}' = \mathbf{v} \times \mathbf{v} + \mathbf{r} \times \mathbf{a} = \mathbf{0} + \mathbf{0} = \mathbf{0}

because v×v=0\mathbf{v} \times \mathbf{v} = \mathbf{0} and a\mathbf{a} is parallel to r\mathbf{r}. So h\mathbf{h} is a constant vector, which gives two facts:

  1. r\mathbf{r} is always perpendicular to h\mathbf{h}, so the orbit lies in a fixed plane.
  2. In time dtdt the radius vector sweeps a thin triangle of area 12∥r×v dt∥\frac{1}{2}\lVert \mathbf{r} \times \mathbf{v}\,dt \rVert, so dA/dt=12∥h∥dA/dt = \frac{1}{2}\lVert \mathbf{h} \rVert is constant: equal areas in equal times (Kepler's second law). The planet moves fastest at its closest point.

Further work with h\mathbf{h} and a\mathbf{a} gives the first law (the orbit is a conic, see Conic Sections in Polar Coordinates) and the third law (T2T^2 proportional to a3a^3).

Integrating the motion numerically

A game or simulation cannot integrate gravity in closed form for many bodies; it steps r\mathbf{r} and v\mathbf{v} forward by a time step Δt\Delta t. How the step is written matters. Explicit Euler updates position with the old velocity; semi-implicit (symplectic) Euler updates velocity first and moves with the new one.

python · try it yourself
import numpy as np

def accel(p):                                   # GM = 1
    return -p / np.linalg.norm(p) ** 3

def run(method, dt=0.01, steps=3000):
    p, v = np.array([1.0, 0.0]), np.array([0.0, 1.2])
    for _ in range(steps):
        if method == "explicit":
            p, v = p + dt * v, v + dt * accel(p)
        else:                                   # semi-implicit
            v = v + dt * accel(p)
            p = p + dt * v
    h = p[0] * v[1] - p[1] * v[0]               # angular momentum (z-component)
    E = 0.5 * v @ v - 1 / np.linalg.norm(p)     # energy
    return float(h), float(E)

print("start          h = 1.2000  E = -0.2800")
for m in ["explicit", "semi-implicit"]:
    h, E = run(m)
    print(f"{m:<14} h = {h:.4f}  E = {E:.4f}")
start          h = 1.2000  E = -0.2800
explicit       h = 1.2650  E = -0.2424
semi-implicit  h = 1.2000  E = -0.2800

Explicit Euler's orbit gains energy and angular momentum: each step adds Δt2(v×a)\Delta t^2 (\mathbf{v} \times \mathbf{a}), so the planet slowly spirals outward. Semi-implicit Euler keeps h\mathbf{h} exactly (the position update uses the new velocity, and r×a=0\mathbf{r} \times \mathbf{a} = \mathbf{0}), and its energy only oscillates slightly without drifting. This is why game engines use semi-implicit Euler or Verlet; see Integrators.

In software

  • Ballistics in games. Aiming a turret or AI throw solves the projectile equations for α\alpha given a target; the quadratic in tan⁡α\tan\alpha has two solutions (high lob and flat shot) or none (out of range).
  • Ride and vehicle comfort. Roller-coaster and racing-line tools monitor aN=κv2a_N = \kappa v^2 along the track; designers cap it (a few g) and keep its rate of change (jerk) small, which is why curvature should vary smoothly.
  • Camera motion. Camera rigs decompose acceleration the same way: aTa_T is the "zoom forward" feeling, aNa_N the swing. Smoothing aNa_N avoids nausea in VR.
  • Orbital mechanics. Space games and satellite software rely on conserved quantities (h\mathbf{h}, energy) both for physics and as checks that the integrator is not drifting.

Exercises

Exercise 1: From acceleration to position

A particle has a(t)=⟨6t,2,0⟩\mathbf{a}(t) = \langle 6t, 2, 0 \rangle, v(0)=⟨1,0,1⟩\mathbf{v}(0) = \langle 1, 0, 1 \rangle and r(0)=⟨0,1,0⟩\mathbf{r}(0) = \langle 0, 1, 0 \rangle. Find r(t)\mathbf{r}(t), r(1)\mathbf{r}(1) and the speed at t=1t = 1.

Answer

r(t)=⟨t3+t,t2+1,t⟩\mathbf{r}(t) = \langle t^3 + t, t^2 + 1, t \rangle; r(1)=⟨2,2,1⟩\mathbf{r}(1) = \langle 2, 2, 1 \rangle; speed 21≈4.583\sqrt{21} \approx 4.583.

Solution
v(t)=⟨1,0,1⟩+⟨3t2,2t,0⟩=⟨3t2+1,2t,1⟩r(t)=⟨0,1,0⟩+⟨t3+t,t2,t⟩=⟨t3+t,t2+1,t⟩v(1)=⟨4,2,1⟩,∥v(1)∥=16+4+1=21\begin{aligned} \mathbf{v}(t) &= \langle 1, 0, 1 \rangle + \langle 3t^2, 2t, 0 \rangle = \langle 3t^2 + 1, 2t, 1 \rangle \\ \mathbf{r}(t) &= \langle 0, 1, 0 \rangle + \langle t^3 + t, t^2, t \rangle = \langle t^3 + t, t^2 + 1, t \rangle \\ \mathbf{v}(1) &= \langle 4, 2, 1 \rangle, \quad \lVert \mathbf{v}(1) \rVert = \sqrt{16 + 4 + 1} = \sqrt{21} \end{aligned}

Exercise 2: A throw from a height (code)

A ball is thrown from 2 m above level ground at 20 m/s, 30° above horizontal, with g=9.8 m/s2g = 9.8\ \text{m/s}^2. Find the time of flight, the range and the maximum height.

Answer

Time ≈2.2243 s\approx 2.2243\ \text{s}, range ≈38.53 m\approx 38.53\ \text{m}, maximum height ≈7.102 m\approx 7.102\ \text{m}.

Solution
v0sin⁡α=10,v0cos⁡α=103≈17.3205y(t)=2+10t−4.9t2=0→t=10+100+39.29.8≈2.2243range=17.3205⋅2.2243≈38.53max height=2+1022⋅9.8≈7.102\begin{aligned} &v_0 \sin\alpha = 10, \quad v_0 \cos\alpha = 10\sqrt{3} \approx 17.3205 \\ &y(t) = 2 + 10t - 4.9t^2 = 0 \quad \to \quad t = \frac{10 + \sqrt{100 + 39.2}}{9.8} \approx 2.2243 \\ &\text{range} = 17.3205 \cdot 2.2243 \approx 38.53 \\ &\text{max height} = 2 + \frac{10^2}{2 \cdot 9.8} \approx 7.102 \end{aligned}
python · try it yourself
import math
vx, vy, h, g = 20 * math.cos(math.radians(30)), 20 * math.sin(math.radians(30)), 2.0, 9.8
T = (vy + math.sqrt(vy**2 + 2 * g * h)) / g
print(round(T, 4), round(vx * T, 2), round(h + vy**2 / (2 * g), 3))
2.2243 38.53 7.102

Exercise 3: Tangential and normal components

For r(t)=⟨t,t2,t⟩\mathbf{r}(t) = \langle t, t^2, t \rangle, find aTa_T and aNa_N at t=1t = 1.

Answer

aT=4/6≈1.633a_T = 4/\sqrt{6} \approx 1.633, aN=8/6=2/3≈1.155a_N = \sqrt{8}/\sqrt{6} = 2/\sqrt{3} \approx 1.155.

Solution
r′=⟨1,2t,1⟩=⟨1,2,1⟩,r′′=⟨0,2,0⟩,∥r′∥=6aT=r′⋅r′′/∥r′∥=4/6≈1.633r′×r′′=⟨2⋅0−1⋅2, 1⋅0−1⋅0, 1⋅2−2⋅0⟩=⟨−2,0,2⟩,∥⋅∥=8aN=8/6≈1.155check: aT2+aN2=16/6+8/6=4=∥r′′∥2\begin{aligned} &\mathbf{r}' = \langle 1, 2t, 1 \rangle = \langle 1, 2, 1 \rangle, \quad \mathbf{r}'' = \langle 0, 2, 0 \rangle, \quad \lVert \mathbf{r}' \rVert = \sqrt{6} \\ &a_T = \mathbf{r}' \cdot \mathbf{r}'' / \lVert \mathbf{r}' \rVert = 4/\sqrt{6} \approx 1.633 \\ &\mathbf{r}' \times \mathbf{r}'' = \langle 2 \cdot 0 - 1 \cdot 2,\ 1 \cdot 0 - 1 \cdot 0,\ 1 \cdot 2 - 2 \cdot 0 \rangle = \langle -2, 0, 2 \rangle, \quad \lVert \cdot \rVert = \sqrt{8} \\ &a_N = \sqrt{8}/\sqrt{6} \approx 1.155 \\ &\text{check: } a_T^2 + a_N^2 = 16/6 + 8/6 = 4 = \lVert \mathbf{r}'' \rVert^2 \end{aligned}

Exercise 4: Braking in a bend

A car on a circular bend of radius 50 m travels at 20 m/s and brakes at 3 m/s23\ \text{m/s}^2. What is the size of its acceleration, and what minimum friction coefficient μ\mu (with g=9.81 m/s2g = 9.81\ \text{m/s}^2, friction must supply ∥a∥≤μg\lVert \mathbf{a} \rVert \le \mu g) keeps it from sliding?

Answer

∥a∥=73≈8.544 m/s2\lVert \mathbf{a} \rVert = \sqrt{73} \approx 8.544\ \text{m/s}^2; μ≥0.871\mu \ge 0.871.

Solution
aN=v2/R=400/50=8,aT=−3∥a∥=64+9=73≈8.544μ≥8.544/9.81≈0.871\begin{aligned} a_N &= v^2/R = 400/50 = 8, \qquad a_T = -3 \\ \lVert \mathbf{a} \rVert &= \sqrt{64 + 9} = \sqrt{73} \approx 8.544 \\ \mu &\ge 8.544 / 9.81 \approx 0.871 \end{aligned}

Braking adds to the demand on the tyres; that is why drivers are taught to brake before the bend, not in it.

Test yourself

In a=aTT+aNN\mathbf{a} = a_T \mathbf{T} + a_N \mathbf{N}, what does the normal component aNa_N equal?

  1. v′v', the rate of change of speed
  2. κv2\kappa v^2, curvature times speed squared
  3. ∥r′′∥\lVert \mathbf{r}'' \rVert always
  4. 0 for every curve

Why is the angular momentum h=r×v\mathbf{h} = \mathbf{r} \times \mathbf{v} constant under a central force?

  1. Because the speed is constant
  2. Because the orbit is a circle
  3. Because dh/dt=v×v+r×ad\mathbf{h}/dt = \mathbf{v} \times \mathbf{v} + \mathbf{r} \times \mathbf{a}, and both terms vanish when a\mathbf{a} is parallel to r\mathbf{r}
  4. Because energy is conserved

Which simple integrator keeps the angular momentum of an orbit exactly constant (up to rounding)?

  1. Explicit Euler
  2. Semi-implicit Euler (update v\mathbf{v}, then move with the new v\mathbf{v})
  3. Neither can
  4. Only RK4