Relative Motion of Two Cars: Constant Speed vs Uniform Acceleration

March 26, 2026

Problem

A car A is moving at 20 m/s. Another car B starts from rest at the same point and accelerates at 4 m/s².

Explanation

We have two cars starting from the same point at the same initial time:

  • Car A moves with constant speed vA=20m/sv_A = 20\,\text{m/s}.
  • Car B starts from rest (uB=0u_B = 0) and moves with constant acceleration aB=4m/s2a_B = 4\,\text{m/s}^2.

We can describe their positions as functions of time tt:

1. Position functions

Take the starting point as x=0x = 0 at time t=0t = 0.

Car A (constant velocity)

For constant speed vAv_A, the position is

xA(t)=vAt.x_A(t) = v_A t.

With vA=20m/sv_A = 20\,\text{m/s}:

xA(t)=20t.x_A(t) = 20 t.

Car B (uniform acceleration)

For motion with constant acceleration aBa_B, starting from rest (uB=0u_B = 0), the position is

xB(t)=uBt+12aBt2=0t+12aBt2=12aBt2.x_B(t) = u_B t + \tfrac12 a_B t^2 = 0 \cdot t + \tfrac12 a_B t^2 = \tfrac12 a_B t^2.

With aB=4m/s2a_B = 4\,\text{m/s}^2:

xB(t)=12(4)t2=2t2.x_B(t) = \tfrac12 (4) t^2 = 2 t^2.

So:

  • Car A: xA(t)=20tx_A(t) = 20 t
  • Car B: xB(t)=2t2x_B(t) = 2 t^2

2. When does Car B catch up with Car A?

Car B catches up when they have the same position at the same time:

xA(t)=xB(t).x_A(t) = x_B(t).

Substitute the formulas:

20t=2t2.20 t = 2 t^2.

Bring all terms to one side:

2t220t=0.2 t^2 - 20 t = 0.

Factor:

2t(t10)=0.2 t (t - 10) = 0.

So the solutions are:

t=0ort=10s.t = 0 \quad \text{or} \quad t = 10\,\text{s}.
  • t=0t = 0 is the initial moment when both are at the start point.
  • The non-trivial solution is:
t=10s.t = 10\,\text{s}.

3. Position at the catch-up time

Use either xA(t)x_A(t) or xB(t)x_B(t) at t=10st = 10\,\text{s}.

Using Car A:

xA(10)=2010=200m.x_A(10) = 20 \cdot 10 = 200\,\text{m}.

Using Car B:

xB(10)=2(10)2=2100=200m.x_B(10) = 2 (10)^2 = 2 \cdot 100 = 200\,\text{m}.

They agree, so at t=10st = 10\,\text{s} both cars are 200 m from the starting point.

4. Velocities at the catch-up time

Car A has constant speed vA=20m/sv_A = 20\,\text{m/s} at all times.

Car B has acceleration aB=4m/s2a_B = 4\,\text{m/s}^2 starting from rest, so its velocity at time tt is

vB(t)=uB+aBt=0+4t=4t.v_B(t) = u_B + a_B t = 0 + 4 t = 4 t.

At t=10st = 10\,\text{s}:

vB(10)=410=40m/s.v_B(10) = 4 \cdot 10 = 40\,\text{m/s}.

So when Car B catches Car A:

  • Position: x=200mx = 200\,\text{m}
  • Time: t=10st = 10\,\text{s}
  • Speeds: vA=20m/sv_A = 20\,\text{m/s}, vB=40m/sv_B = 40\,\text{m/s}

5. What the visualization shows

This interactive visualization displays:

  • The space–time graph of both cars (position vs. time) in a Cartesian-like plane.
    • Car A: a straight line (constant speed).
    • Car B: an upward-curving parabola (increasing speed under constant acceleration).
  • A time cursor moves along the time axis, controlled either by animation or by a time slider.
  • At the current time:
    • You see moving dots representing the current positions of Car A and Car B.
    • A vertical guide line shows the current time tt.
    • The distance between the cars is visualized along the position axis.
  • You can adjust:
    • Car A’s speed vAv_A
    • Car B’s acceleration aBa_B
    • The time window displayed, and immediately see how the catch-up time and meeting point change.

Mathematically, the meeting time for general parameters vAv_A and aBa_B (with Car B starting from rest at the same point) satisfies

vAt=12aBt2t=0ort=2vAaB.v_A t = \tfrac12 a_B t^2 \quad \Rightarrow \quad t = 0 \quad \text{or} \quad t = \frac{2 v_A}{a_B}.

The visualization highlights this interaction dynamically.

Interactive Visualization

Parameters

20.00
4.00
20.00
5.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Relative Motion of Two Cars: Constant Speed vs Uniform Acceleration | MathSpin