TExcelTAD
Home › Calculus Essentials › Curvilinear Motion

Curvilinear Motion

Curvilinear motion is motion along a curved path, described by giving each coordinate as a function of time. Differentiating each coordinate gives the velocity and acceleration vectors, which tell you not only how fast something moves but also in which direction and how sharply it turns. This is the mathematics behind every projectile, orbit and racing line in a game.

Position, velocity, acceleration as vectors

A moving point in the plane has position r(t)=(x(t),y(t))r(t) = (x(t), y(t)). Differentiate component by component:

velocityv(t)=r′(t)=(x′(t),y′(t))tangent to the pathspeed∣v(t)∣=x′2+y′2a number, always≥0accelerationa(t)=v′(t)=(x′′(t),y′′(t))\begin{aligned} &\text{velocity} && v(t) = r'(t) = (x'(t), y'(t)) && \text{tangent to the path} \\ &\text{speed} && \lvert v(t) \rvert = \sqrt{x'^2 + y'^2} && \text{a number, always} \ge 0 \\ &\text{acceleration} && a(t) = v'(t) = (x''(t), y''(t)) \end{aligned}

The velocity vector always points along the path, in the direction of motion. The acceleration vector points towards the inside of the curve whenever the path bends.

Projectile motion

A ball is launched from the origin at speed v0v_0 and angle θ\theta, with gravity gg pulling down and no air resistance:

x(t)=v0cos⁡θ⋅tv=(v0cos⁡θ, v0sin⁡θ−gt)y(t)=v0sin⁡θ⋅t−12gt2a=(0,−g)\begin{aligned} x(t) &= v_0 \cos\theta \cdot t & v &= (v_0 \cos\theta,\ v_0 \sin\theta - g t) \\ y(t) &= v_0 \sin\theta \cdot t - \tfrac{1}{2} g t^2 & a &= (0, -g) \end{aligned}

The horizontal velocity never changes; only the vertical one does. Setting y(t)=0y(t) = 0 gives the flight time T=2v0sin⁡θ/gT = 2v_0 \sin\theta / g and the range R=v02sin⁡2θ/gR = v_0^2 \sin 2\theta / g, largest at θ=45∘\theta = 45^\circ.

python · try it yourself
import sympy as sp

t, v0, th, g = sp.symbols('t v0 theta g', positive=True)
r = sp.Matrix([v0 * sp.cos(th) * t, v0 * sp.sin(th) * t - g * t**2 / 2])
v = r.diff(t)
a = v.diff(t)
print("velocity    :", list(v))
print("acceleration:", list(a))
T = sp.solve(r[1], t)[0]
print("flight time :", T)
print("range       :", sp.simplify(r[0].subs(t, T)))
velocity    : [v0*cos(theta), -g*t + v0*sin(theta)]
acceleration: [0, -g]
flight time : 2*v0*sin(theta)/g
range       : v0**2*sin(2*theta)/g

SymPy writes the range as v0**2*sin(2*theta)/g after simplifying 2sin⁡θcos⁡θ=sin⁡2θ2 \sin\theta \cos\theta = \sin 2\theta.

Circular motion

A point moving round a circle of radius RR with constant angular speed ω\omega:

r(t)=(Rcos⁡ωt, Rsin⁡ωt)v(t)=(−Rωsin⁡ωt, Rωcos⁡ωt)speed Rω, perpendicular to ra(t)=(−Rω2cos⁡ωt, −Rω2sin⁡ωt)=−ω2r(t)\begin{aligned} r(t) &= (R \cos \omega t,\ R \sin \omega t) \\ v(t) &= (-R\omega \sin \omega t,\ R\omega \cos \omega t) && \text{speed } R\omega, \text{ perpendicular to } r \\ a(t) &= (-R\omega^2 \cos \omega t,\ -R\omega^2 \sin \omega t) = -\omega^2 r(t) \end{aligned}

Even at constant speed there is an acceleration, of size Rω2=∣v∣2/RR\omega^2 = \lvert v \rvert^2/R, pointing at the centre: the centripetal acceleration. Changing direction is acceleration.

Numeric evidence: differentiating sampled positions

A game records an object's position every frame. Finite differences recover velocity and acceleration, here for circular motion with R=2R = 2, ω=3\omega = 3:

python · try it yourself
import numpy as np

R, w, dt = 2.0, 3.0, 1 / 60
t = np.arange(0, 2, dt)
pos = np.stack([R * np.cos(w * t), R * np.sin(w * t)], axis=1)

vel = (pos[2:] - pos[:-2]) / (2 * dt)                     # central differences
acc = (pos[2:] - 2 * pos[1:-1] + pos[:-2]) / dt**2
speed = np.linalg.norm(vel, axis=1)
acc_mag = np.linalg.norm(acc, axis=1)
print(f"speed:        {speed.min():.4f} .. {speed.max():.4f}   exact R*w   = {R * w}")
print(f"|accel|:      {acc_mag.min():.4f} .. {acc_mag.max():.4f}  exact R*w^2 = {R * w * w}")
dots = np.sum(vel * pos[1:-1], axis=1)
print(f"max |v · r|:  {np.abs(dots).max():.2e}   (velocity is perpendicular to radius)")
speed:        5.9975 .. 5.9975   exact R*w   = 6.0
|accel|:      17.9963 .. 17.9963  exact R*w^2 = 18.0
max |v · r|:  2.04e-14   (velocity is perpendicular to radius)

The measured speed and acceleration are about 0.04% low, which is the h2h^2-sized error of the central differences with h=1/60 sh = 1/60\ \text{s}. The dot product v⋅rv \cdot r is zero up to rounding: the velocity is tangent to the circle.

Tangential and normal acceleration

Acceleration splits into a part along the velocity, which changes the speed, and a part across it, which changes the direction:

aT=v⋅a∣v∣tangential: speeding up or slowing downaN=∣a∣2−aT2=∣v∣2⋅κnormal: turning, κ=curvature of the path\begin{aligned} a_T &= \frac{v \cdot a}{\lvert v \rvert} && \text{tangential: speeding up or slowing down} \\ a_N &= \sqrt{\lvert a \rvert^2 - a_T^2} = \lvert v \rvert^2 \cdot \kappa && \text{normal: turning, } \kappa = \text{curvature of the path} \end{aligned}

For a car on a race track, aTa_T is the throttle and brakes, and aNa_N is the cornering grip. Tight corners (large curvature κ\kappa) at high speed need a lot of grip, since aNa_N grows with the square of the speed.

python · try it yourself
import numpy as np

# projectile with v0 = 20 m/s at 60 degrees, g = 9.8
v0, th, g = 20.0, np.radians(60), 9.8
for t in [0.0, 1.0, v0 * np.sin(th) / g, 3.0]:
    v = np.array([v0 * np.cos(th), v0 * np.sin(th) - g * t])
    a = np.array([0.0, -g])
    aT = v @ a / np.linalg.norm(v)
    aN = np.sqrt(a @ a - aT**2)
    print(f"t = {t:.3f}  speed {np.linalg.norm(v):6.3f}  a_T {aT:+7.3f}  a_N {aN:6.3f}")
t = 0.000  speed 20.000  a_T  -8.487  a_N  4.900
t = 1.000  speed 12.512  a_T  -5.890  a_N  7.832
t = 1.767  speed 10.000  a_T  +0.000  a_N  9.800
t = 3.000  speed 15.682  a_T  +7.549  a_N  6.249

At the top of the arc (t≈1.767 st \approx 1.767\ \text{s}) the velocity is horizontal, so all of gravity acts as normal acceleration and aT=0a_T = 0: the speed is at its minimum there.

In software

  • Game projectiles and aiming: grenades, arrows and basketball shots use exactly x=v0cos⁡θ⋅tx = v_0 \cos\theta \cdot t, y=v0sin⁡θ⋅t−12gt2y = v_0 \sin\theta \cdot t - \tfrac{1}{2}gt^2. Solving y(T)=target heighty(T) = \text{target height} for θ\theta gives the aim angle an AI needs; drawing r(t)r(t) for many tt gives the trajectory preview line. Physics engines integrate the same equations step by step (integrators, Physics Integration in Game Loops).
  • Facing the direction of motion: to point a missile or car along its path, rotate it to the velocity direction atan2(vy, vx) (atan2).
  • Cameras and rails: cameras along splines and roller coasters use r′(t)r'(t) for orientation and ∣r′′∣\lvert r'' \rvert to limit accelerations that feel unpleasant. The full 3D version, with arc length and curvature, is in Motion in Space and Parametric and Bézier Curves.

Exercises

Exercise 1: Velocity and speed

For r(t)=(t2,4t)r(t) = (t^2, 4t), find the velocity, speed and acceleration at t=3t = 3.

Answer

v=(6,4)v = (6, 4), speed 52≈7.21\sqrt{52} \approx 7.21, a=(2,0)a = (2, 0).

Solution
v(t)=(2t,4)→v(3)=(6,4)∣v(3)∣=36+16=52=213≈7.211a(t)=(2,0)\begin{aligned} v(t) &= (2t, 4) \to v(3) = (6, 4) \\ \lvert v(3) \rvert &= \sqrt{36 + 16} = \sqrt{52} = 2\sqrt{13} \approx 7.211 \\ a(t) &= (2, 0) \end{aligned}

Exercise 2: Highest point

A ball is thrown from the ground at v0=25 m/sv_0 = 25\ \text{m/s}, θ=30∘\theta = 30^\circ, g=9.8 m/s2g = 9.8\ \text{m/s}^2. When does it reach its highest point, and how high is it?

Answer

At t≈1.276 st \approx 1.276\ \text{s}, height ≈7.97 m\approx 7.97\ \text{m}.

Solution
vertical velocity v0sin⁡θ−gt=12.5−9.8t=0  ⟹  t=12.5/9.8≈1.2755 sy=12.5⋅t−4.9⋅t2=12.52/(2⋅9.8)=156.25/19.6≈7.972 m\begin{aligned} &\text{vertical velocity } v_0 \sin\theta - g t = 12.5 - 9.8 t = 0 \implies t = 12.5 / 9.8 \approx 1.2755\ \text{s} \\ &y = 12.5 \cdot t - 4.9 \cdot t^2 = 12.5^2 / (2 \cdot 9.8) = 156.25 / 19.6 \approx 7.972\ \text{m} \end{aligned}

Exercise 3: Centripetal acceleration

A car takes a curve of radius 50 m at 72 km/h. What is its centripetal acceleration, and how many g is that?

Answer

8 m/s28\ \text{m/s}^2, about 0.82 g0.82\,g.

Solution
72 km/h=20 m/sa=v2/R=400/50=8 m/s28/9.8≈0.82 g\begin{aligned} &72\ \text{km/h} = 20\ \text{m/s} \\ &a = v^2 / R = 400 / 50 = 8\ \text{m/s}^2 \\ &8 / 9.8 \approx 0.82\,g \end{aligned}

Exercise 4: Aim a shot

A turret fires at v0=30 m/sv_0 = 30\ \text{m/s}. Find both launch angles that hit a target on flat ground 60 m away (g=9.8g = 9.8), using R=v02sin⁡2θ/gR = v_0^2 \sin 2\theta / g.

Answer

About 20.4∘20.4^\circ and 69.6∘69.6^\circ.

Solution
sin⁡2θ=Rg/v02=60⋅9.8/900≈0.65332θ=arcsin⁡(0.6533)≈40.8∘or180∘−40.8∘=139.2∘θ≈20.4∘or69.6∘\begin{aligned} &\sin 2\theta = R g / v_0^2 = 60 \cdot 9.8 / 900 \approx 0.6533 \\ &2\theta = \arcsin(0.6533) \approx 40.8^\circ \quad \text{or} \quad 180^\circ - 40.8^\circ = 139.2^\circ \\ &\theta \approx 20.4^\circ \quad \text{or} \quad 69.6^\circ \end{aligned}
python · try it yourself
import math

s = 60 * 9.8 / 30**2
low = math.degrees(math.asin(s)) / 2
print(round(low, 1), round(90 - low, 1))
20.4 69.6

The low shot arrives sooner; the high "lob" can clear obstacles. Games often let AI pick between them.

Test yourself

An object moves in a circle at constant speed. Its acceleration is …

  1. zero
  2. tangent to the circle
  3. pointed towards the centre
  4. pointed away from the centre

In ideal projectile motion, which velocity component stays constant?

  1. The vertical one
  2. Both
  3. The horizontal one
  4. Neither

r(t)=(3cos⁡t,3sin⁡t)r(t) = (3 \cos t, 3 \sin t). What is the speed?

  1. 1
  2. 3
  3. 9
  4. It depends on tt