Skip to content

Motion simulation

Relative Velocity Simulation

Try this: Press Play with the starting set-up, train A at +10 m/s and train B at +30 m/s, and read the B relative to A card. Press Reset, set Watch from to Train A and play again. How fast does B go past now, and what is the ground doing?

Loading simulation…

Two trains on parallel tracks and a boat crossing a river, each watched from more than one observer. Change the velocities, switch the observer while the motion runs, and find the velocity of one object relative to another, the time to pass and where the boat lands.

In short

How do you calculate relative velocity?

The velocity of B relative to A is B's velocity minus A's velocity, with one direction taken as positive. Two trains moving the same way have a relative speed equal to the difference of their speeds; trains heading towards each other have one equal to the sum. For a boat crossing a river, its own velocity and the current add as vectors. Here you switch the observer between trains and steer a boat across a flowing river.

Show symbols for

Predict first

Question 1 of 4

  1. Predict
  2. Run
  3. Check

Train A travels at 25 m/s and train B at 35 m/s, both heading the same way on parallel tracks. To a passenger sitting in train A, how fast does train B go past?

Try this

  1. Press Play with the starting set-up, train A at +10 m/s and train B at +30 m/s, and read the B relative to A card. Press Reset, set Watch from to Train A and play again. How fast does B go past now, and what is the ground doing?
  2. Note the Time to pass card. Then set Velocity of train B to −30 m/s so the trains head towards each other, and press Play. How many times quicker is the passing?
  3. Set both velocities to +20 m/s and play. What does a passenger on either train see the other train doing?
  4. Choose River crossing from the Scene menu, press Play and note the Crossing time. Raise River current to 2.0 m/s and play again. Does the time change? Where does the boat land?
  5. Put River current back to 1.0 m/s and set Heading to −30°, turning the boat upstream. Where does it land now, and is the crossing quicker or slower?

What this simulation shows

Every velocity is measured by someone. A cup on the table of a moving train is still for the person drinking from it, yet it races past anyone standing by the line. This simulation lets you pick the observer and watch the same motion through different eyes.

There are two scenes. In the first, two trains run along parallel tracks at steady velocities that you choose, with plus meaning to the right. In the second, a boat crosses a river while the water flows downstream. Use Watch from to switch the observer at any moment, even while the motion is running. The trains and the boat carry on exactly as before; only the view changes.

Changing the observer

Choose an observer and the drawing follows them, so they stay in the middle of the stage while the rest of the scene slides by. The arrows then show the velocities that observer would measure. A passenger always finds their own train at rest, and the trackside poles drift backwards at the train's speed.

The rule behind every arrow is a subtraction. To get the velocity of B as measured from A, take A's velocity away from B's:

vBA=vB−vAv_{BA} = v_B - v_A

Trains on parallel tracks

When both trains head the same way, the minus sign leaves only the difference of their speeds, so overtaking is a slow affair. When they head opposite ways, one velocity is negative and subtracting it adds the speeds. Two trains meeting at a combined speed of 40 m/s are past each other in a few seconds.

The Time to pass card measures how long the trains spend side by side. From either train, the other must slide along both train lengths at the relative speed, so the time is the total length divided by the size of the relative velocity. Set equal velocities and nothing passes at all: each passenger sees the other train hang beside the window.

Crossing a river

The boat has a speed through the water and a heading. The water also moves, carrying the boat downstream. Its velocity relative to the bank is the vector sum of the two. With the boat pointing straight across, these velocities are at right angles, and Pythagoras gives the speed over the bank.

Something surprising follows. The current pushes only along the river, so it cannot speed up or slow down the trip across. The crossing time depends on the width and on the part of the boat's own velocity pointing across. A strong current makes the boat land further downstream, but it arrives at the same moment.

To land straight opposite, turn the boat upstream until the upstream part of its velocity cancels the current. Less of its speed then points across, so the trip is slower. Watch from Water to see why: relative to the water, the boat simply goes the way it points, and the banks drift upstream past it.

Simplifications and course notes

The tracks are straight and level, and the velocities never change. The current is the same everywhere across the river, although a real river usually flows faster in mid-channel than near its banks.

Punjab Class 9 teaches that rest and motion are relative. Cambridge IGCSE Supplement adds two velocities at right angles, as in the straight-across crossing. AQA GCSE treats velocity as a vector but leaves relative velocity out. Calculating relative velocities along a line and at an angle is taken further in AP Physics 1 and in senior-secondary physics, and vector addition of velocities appears again at A Level.

Quiz

Check your understanding

8 questions

  1. 1.Two cars on a motorway head the same way, one at 30 m/s and the other at 26 m/s. What is the speed of the faster car relative to the slower one?
  2. 2.An auto-rickshaw travels along a straight road at 8 m/s. A cyclist rides towards it at 5 m/s. How fast does the cyclist approach, as measured by the rickshaw driver?
  3. 3.A train moves at 20 m/s. A passenger walks towards the front of the train at 1.5 m/s relative to the floor. What is the passenger's velocity relative to the platform?
  4. 4.A swimmer swims at 0.8 m/s through the water, aiming straight across a river. The current flows at 0.6 m/s. What is the swimmer's speed relative to the bank?
  5. 5.A boat moves at 1.5 m/s through the water and points straight across a river 30 m wide. The current is 1.2 m/s. How long does the crossing take?
  6. 6.A passenger in a moving train says the person opposite is not moving. Someone on the platform says that person is moving fast. Who is correct?
  7. 7.A boat that moves at 2.5 m/s through the water is turned upstream so that it lands straight opposite its start. The current is 1.5 m/s. What is its speed straight across the river?
  8. 8.Train A, 100 m long, travels at 30 m/s. Train B, also 100 m long, travels the same way at 22 m/s on the next track. How long does A take to pass B completely, from front meeting back to back clearing front?

For teachers

Embed it in your site or open it full-screen for the projector.

Next step

Distance and displacement

The next simulation in motion.