The Illusion of Two Moving Bodies
Imagine standing on the deck of a ship, looking out at the vast, open ocean
You see another ship in the distance, and both of you are moving. Trying to figure out exactly when you will be closest to each other by tracking both paths simultaneously is a geometric nightmare.
But what if you could freeze your ship in place? This is the magic of relative motion. By shifting our perspective to Ship A's frame of reference, we transform a complex two-body problem into a simple one-body problem. Ship A becomes the stationary origin, and Ship B does all the moving.
Setting the Stage
Let's define our initial conditions
Ship A is at the origin, so its position vector is rA=0i^+0j^. It is sailing North-East with a velocity vA=30i^+50j^ km/h.
Ship B is located 80 km East and 150 km North, giving it an initial position vector rB=80i^+150j^ km. It is sailing West, so its velocity is vB=−10i^ km/h.
The Magic of Relative Motion
Now, let's calculate the relative parameters
The initial position of B with respect to A is simply:
The relative velocity of B with respect to A is where the real trick happens. We subtract A's velocity from B's:
vBA=vB−vA=−10i^−(30i^+50j^)=−40i^−50j^
In A's frame of reference, Ship B is moving along a straight line defined by this relative velocity vector.
The Mathematics of Closest Approach
The shortest distance from a point (Ship A at the origin) to a line (Ship B's relative path) is the perpendicular dropped from the point to the line
The time it takes for Ship B to reach this point of closest approach can be found using a beautiful vector projection formula:
Why does this work? The dot product rBA⋅vBA gives us the projection of the initial position onto the velocity vector. The negative sign accounts for the fact that the ships are moving towards their closest point, not away from it.
Executing the Dot Product
Let's crunch the numbers
First, the numerator (the dot product):
rBA⋅vBA=(80)(−40)+(150)(−50)
rBA⋅vBA=−3200−7500=−10700
Next, the denominator (the square of the magnitude of relative velocity):
∣vBA∣2=(−40)2+(−50)2=1600+2500=4100
The Final Countdown
Finally, we substitute these values back into our time formula
Notice how the negative signs perfectly cancel out, ensuring we get a positive time:
t=−4100−10700=41107≈2.6 hours
And there we have it! In approximately 2.6 hours, the two ships will be at their absolute minimum distance from each other.
Bonus Challenge: If you want to find the actual minimum distance, you can use the cross product method: dmin=∣vBA∣∣rBA×vBA∣. Try calculating it yourself to truly master the geometry of relative motion!