In this explainer, we will learn how to calculate the relative velocity of a particle with respect to another and how to calculate a relative velocity vector.

If a body travels from a start point to an endpoint , it has a displacement from that can be represented by the vector

The velocity vector for a body that has this displacement in a time interval is given by

The displacement of the body is displacement from , and the velocity of the body is velocity relative to .

A coordinate system can be defined so that the origin of the coordinate system is at . This is, however, an arbitrarily chosen coordinate system. If a different position for the origin of the coordinate system is chosen for a different coordinate system , then the displacement of from can be defined in and in .

In the following figure, the blue -axis is the -axis for the coordinate system and the red -axis is the -axis for the coordinate system . Both coordinate systems have the same -axis.

A particle, , is shown.

In , the coordinates of are but in the coordinates of are

Suppose that a particle moves from a point to a point , where the straight-line distance between and is , as shown in the following figure.

We can see that and where is a unit vector in the -direction.

The magnitude of the displacement is the same in both and :

The time interval for the motion is the same in both and , and so

Suppose though that, in the time interval , the particle is displaced from to . The coordinate system is displaced from to , as shown in the following figure.

In , the velocity of the particle is given by

In the coordinate system , both and are at the origin of . The displacement of the particle from the origin of is zero, and so the velocity of the particle in is zero.

Suppose that a point, , is at the origin of , as shown by the green dot in the following figure.

Let us define a reference point that is always at the origin of , so it moves with .

In the time interval , the displacement of from the point increases by .

The displacement of from when has moved from to is given by

The displacement of from when has moved from to is given by

The velocity of relative to is, therefore, given by

The relative velocity of and has a magnitude of

In a coordinate system that is at the origin of , point is at rest and point moves away from it at speed . In a coordinate system that is at the origin of , point is at rest and point moves away from it at speed .

The signs of and are opposite. The velocity that is positive is determined by the initial choice made for the positive value of the -axis direction.

Suppose that two particles move along the -axis of a coordinate system, each at some speed.

The velocities of the particles can be represented as one-dimensional vectors in the coordinate system. The magnitudes of the velocities of the particles are equal to the speeds of the particles, and the velocities have the same sign if the particles move in the same direction and opposite signs if the particles move in opposite directions.

Taking the signs of the velocities into account, the difference between the velocities of two particles gives the relative velocity of the particles.

The relative velocity of two particles can be taken from the position of either particle, where the velocity is positive if taken from one of the particles and negative if taken from the other particle.

Consider two velocity vectors and that have the same magnitude but opposite directions, as shown in the following figure.

We denote with and the components of and along the motion axis.

The difference between these components can be expressed as

Subtraction of a component with a negative sign is equivalent to addition of a component with a positive sign; hence, the difference between components with opposite signs is the sum of the components.

The result of subtracting from is equivalent to the result of adding to , as is shown in the following figure.

The difference between these components can also be expressed as

The result of subtracting from is equivalent to the result of adding to , as is shown in the following figure.

Consider now two velocity vectors and that have the same magnitude and the same direction. We denote with and the components of and along the motion axis. The difference between these components can be expressed as or as

The two expressions of the difference between these components is shown in the following figure.

The relative velocity for two particles in one-dimensional motion can be defined as follows.

### Definition: Relative Velocity for Two Particles in One-Dimensional Motion

For two particles and with velocities and along one axis, and denoting with and their respective components along that axis, the component of the velocity of relative to is given by and the component of the velocity of relative to is given by

Let us look at an example that considers relative velocity purely in terms of the differences between velocity vectors.

### Example 1: Finding Relative Velocity Using Unit Vectors

If and , then .

### Answer

The difference between and is given by

Rearranging to find gives

Substituting known values gives

Now, let us look at another such example.

### Example 2: Finding Relative Velocity Using Unit Vectors

If and , then .

### Answer

is a unit vector in some fixed direction.

The difference between and is given by

Substituting known values gives

Let us consider an example where there is a context supplied, involving a body that measures the velocity of a second body relative to the first body.

### Example 3: Relative Speed of Bodies Moving in Opposite Directions

A car is moving on a straight road at 84 km/h, and in the opposite direction, a motorbike is moving at 45 km/h. Suppose that the direction of the car is positive. Find the velocity of the motorbike relative to the car.

### Answer

Let be the velocity of the car and be the velocity of the motorbike. The direction of the car is positive; hence, and

The velocity of the motorbike relative to the car is given by

If two bodies move one-dimensionally in opposite directions, their speeds are added to determine the speed of either body relative to the other. Let us look at another example where this occurs.

### Example 4: Finding the Time to Complete a Journey Using Relative Velocities

A ship was sailing with a uniform velocity directly toward a port that is 144 km away. A patrol aircraft passed over the ship traveling in the opposite direction at 366 km/h. When the aircraft measured the shipβs speed, it appeared to be traveling at 402 km/h. Determine the time required for the ship to reach the port.

### Answer

To determine the time required for the ship to reach the port, it is necessary to know the speed at which the ship approaches the port. The port is assumed to be stationary.

The speed of the ship measured by the aircraft is 402 km/h. As the ship and aircraft travel in opposite directions, 402 km/h is the sum of their speeds. The speed of the aircraft is stated to be 366 km/h, so the speed of the ship is given by

The time required to travel 144 km at a speed of 36 km/h is given by

Let us consider an application of relative velocity in a context involving two bodies moving in the same direction. For two bodies moving in the same direction at speeds and , respectively, the speed of either body relative to the other, , is given by

The trivially obvious case of this is the case corresponding to both bodies having the same speed, and hence the position of one body relative to the other is constant throughout the motion of the bodies.

### Example 5: Using Relative Velocity to Find the Length of a Train given the Time Taken by a Moving Object to Pass It

A helicopter flew in a straight line at 234 km/h above a train moving in the same direction. It took the helicopter 21 seconds to travel the length of the train. Following this, the pilot halved the helicopterβs speed. Given that it took the train 14 seconds to pass the helicopter traveling at this speed, find the length of the train in metres.

### Answer

The most important thing to appreciate in this question is that because the helicopter and the train move in the same direction throughout, relative to the ground, their velocities have the same sign. The difference in their velocities is thus equal to the difference in their speeds, and the speed of the train relative to the helicopter (and vice versa), , is simply the difference between their speeds.

In the first 21 seconds, the helicopter has a greater velocity relative to the ground than the train has, and in the 14 following seconds, the train has a greater velocity relative to the ground than the helicopter has. The change in the velocity of the helicopter between the first and the second time intervals is assumed to occur in negligible time.

In each time interval, it is the case that where is the distance that the helicopter moves relative to the train (and vice versa), which is also the length of the train. The difference between the time intervals allows us to determine the velocity of the train.

To simplify finding the length of the train in metres, the speed of the helicopter is converted to a speed in metres per second as follows:

For the first time interval,

For the second time interval,

The length of the train remains constant, so the two terms can be equated to give

This can be rearranged to determine the velocity of the train. Both sides of the equation can be divided by 14 to give

The bracket can be expanded to give

The rearrangement is then completed as follows:

This value for can now be substituted into the equation for in either time interval. If the first of the time intervals is used, this gives us

If the second of the time intervals is used, this gives us

The length of the train is 273 metres.

### Key Points

- For two bodies and with velocities and along one axis, and denoting with and their respective components along that axis, the component of the velocity of relative to is given by and the component of the velocity of relative to is given by
- For two bodies moving in one dimension in opposite directions, the speed of either body relative to the other is the sum of the speeds of the bodies.
- For two bodies moving in one dimension in the same direction, the speed of either body relative to the other is the difference between the speeds of the bodies.