The gap between them, as a vector
Object A is at rA = (1 + 3t, 2 + 2t) and object B at rB = (10 − t, 6 − t), with distances in kilometers and t in hours. They never collide: the x-coordinates agree only at t = 2.25, and there the y-coordinates are 6.5 and 3.75. So how close do they come, and when?
Subtract one position vector from the other, coordinate by coordinate. The vector from A to B is AB = rB − rA = (10 − t − 1 − 3t, 6 − t − 2 − 2t) = (9 − 4t, 4 − 3t). At t = 0 it is (9, 4), and every hour it changes by (−4, −3), which is B's velocity minus A's: the velocity of B relative to A.
Square the length
The distance between the objects is the length of AB. Its square is easier to work with, because it has no square root: .
Expand each bracket: and . Add them: , a quadratic in t.
A distance is never negative, and a bigger distance always has a bigger square. So the time at which is smallest is the time at which |AB| is smallest.
Find the lowest point
The coefficient of is 25, which is positive, so the graph of the quadratic opens upward and turns once, at its lowest point. Differentiate with respect to t: . At the turning point the derivative is 0, so 50t = 96 and t = 1.92.
At t = 1.92, . Take the square root at the end: the closest approach is km, 1.92 hours after the start.
Check it against nearby times: is 26 at t = 1, 5 at t = 2 and 34 at t = 3, all bigger than 4.84. At t = 2 the distance is , about 2.236 km, only a little more than 2.2.
The gold curve is , which starts at 97, above the top of the window, and the plain curve below it is the distance |AB| itself. Both are lowest at t = 1.92, where and |AB| = 2.2.
The positions at the closest moment
At t = 1.92, A is at (1 + 5.76, 2 + 3.84) = (6.76, 5.84) and B is at (10 − 1.92, 6 − 1.92) = (8.08, 4.08). The gap is (1.32, −1.76), and .
A moves along the gold path from (1, 2) and B along the plain one from (10, 6). The arrow is the gap from A to B at t = 1.92, when it is shortest: 2.2 long, and at right angles to the direction in which B moves relative to A.
Two more routes to the same moment
Completing the square gives the same answer without calculus. . A square is never negative, so the least value is 4.84, when t = 1.92.
The gap is also shortest when it is perpendicular to the relative velocity (−4, −3). Before that moment B is still closing on A; after it, B is drawing away. Perpendicular means the dot product is 0: (−4)(9 − 4t) + (−3)(4 − 3t) = 25t − 48 = 0, so t = 1.92 again. Check: (1.32, −1.76) · (−4, −3) = −5.28 + 5.28 = 0.
When the turning point comes too early
If the quadratic turns at a negative time, the objects were nearest before the clock started. Suppose the gap were (9 + 4t, 4 + 3t). Then , which turns at t = −1.92. From t = 0 on, the objects only draw apart, so the closest they come from then on is at t = 0, , about 9.849 km.
The usual mistakes
Leaving off the square root. The quadratic is the squared distance; its least value 4.84 still needs a square root, giving 2.2.
Dropping the 2 when differentiating. The derivative of is 50t, so turns at , not at .
Minimizing each coordinate on its own. 9 − 4t is 0 at t = 2.25 and 4 − 3t is 0 at , and neither is the moment the distance is least. The coordinates must be combined into first.
Trying whole numbers of hours. t = 2 gives , close but not the least; the least value falls at t = 1.92.
Ships and aircraft
In the first application below, two ships on steady courses do not collide, and the perpendicular condition finds their closest approach. In the second, two aircraft on a radar screen must stay 25 km apart, and completing the square finds the least separation.
Worked example: Two Ships on Straight Courses: Whether They Collide, and How Close They Come
Question At noon a coaster A is at the origin and a tanker B is at 4020, in kilometers east and north of a harbor. A sails with velocity 2128 km/h and B with velocity 912 km/h, both steady. Let m be the number of hours after noon. (a) Show that the two ships do not collide. (b) Find their closest approach and the time at which it happens.
1.The positions m hours after noon are rA = m2128 and rB = 4020 + m912.
At m hours after noon, rA = m2128 and rB = 4020 + m912, in kilometers east and north. 2.Subtract to get the vector from A to B: AB = rB − rA = 40 − 12m20 − 16m. The relative velocity is −12−16 km/h, so B closes on A at 20 km/h.
Subtract: AB = 40 − 12m20 − 16m. The relative velocity is −12−16 km/h, so B closes on A at 20 km/h. 3.(a) A collision needs both components to be zero at the same time. The east component gives 40 − 12m = 0, that is m = 103, and the north component gives 20 − 16m = 0, that is m = 1.25. The two times are different, so the ships never occupy the same point and they do not collide.
(a) A collision needs both components to vanish together. The east gives m = 103 and the north gives m = 1.25, so the ships do not collide. 4.The ships are closest when the gap is perpendicular to the relative velocity, so the dot product is zero: (40 − 12m)(−12) + (20 − 16m)(−16) = 0, which is −800 + 400m = 0 and m = 2.
They are closest when the gap is perpendicular to the relative velocity: (40 − 12m)(−12) + (20 − 16m)(−16) = 0 gives m = 2. 5.(b) At m = 2 the gap is 40 − 2420 − 32 = 16−12, of length √162 + 122 = 20 km, at 2 pm. Check: at m = 1 the gap is 284 and at m = 3 it is 4−28, both of length √800 ≈ 28.3 km, which is more.
(b) At m = 2 the gap is 16−12, of length √162 + 122 = 20 km, at 2 pm. The gaps drawn at 1 pm and 3 pm are both √800 ≈ 28.3 km.
Answer: (a) they do not collide, because the east components agree only at m = 103 hours and the north components only at m = 1.25 hours; (b) 20 km apart, 2 hours after noon
Common mistakes
- Solving one component only, finding a time, and announcing a collision. One component agreeing means the ships share a line of longitude or of latitude at that instant, not a point. Both components must give the same time.
- Minimizing the gap by trying whole numbers of hours and picking the smallest. That can only land on the answer by luck: the least gap need not fall on a whole hour, so the perpendicular condition, or the minimum of the quadratic, is what settles it.
More motion in two dimensions problems, worked step by step →
Worked example: Two Aircraft on One Radar Screen, and the Separation They Must Keep
Question A radar screen gives the positions of two aircraft, in kilometers east and north of the station, m minutes from now, as rP = m120 and rQ = 500 + m68. (a) Find the least distance between the two aircraft and the time at which it happens. (b) The controller must keep them at least 25 km apart. Is the rule broken, and by what margin is it kept or broken?
1.The separation vector is rQ − rP = 50 − 6m8m kilometers, so at this moment, with m = 0, the aircraft are 50 km apart.
The separation vector is rQ − rP = 50 − 6m8m kilometers, and at m = 0 the aircraft are 50 km apart. 2.Square its length: d2 = (50 − 6m)2 + (8m)2 = 2500 − 600m + 36m2 + 64m2 = 100m2 − 600m + 2500.
Square its length: d2 = (50 − 6m)2 + (8m)2 = 100m2 − 600m + 2500. 3.Complete the square: d2 = 100(m2 − 6m + 25) = 100[(m − 3)2 + 16] = 100(m − 3)2 + 1600. A square is never negative, so the least value of d2 is 1600, and it is reached when m = 3.
Complete the square: d2 = 100(m − 3)2 + 1600. A square is never negative, so d2 is least when m = 3. 4.(a) The least distance is √1600 = 40 km, 3 minutes from now. Differentiating is the second route to the same time: ddm(d2) = 200m − 600, which is zero at m = 3, and the second derivative 200 is positive, so that stationary value is a minimum.
(a) The least distance is √1600 = 40 km, 3 minutes from now. Differentiating agrees: 200m − 600 = 0 at m = 3, and the second derivative 200 is positive. 5.(b) The least separation, 40 km, is more than 25 km, so the rule is not broken: it is kept with 40 − 25 = 15 km to spare. Check: at m = 2 the separation is 3816, of length √1700 ≈ 41.2 km, which is more than 40 km.
(b) The least separation of 40 km is more than the 25 km the controller must keep, so the rule is not broken: it is kept with 15 km to spare.
Answer: (a) 40 km, 3 minutes from now; (b) the rule is not broken, and it is kept with 15 km to spare on the 25 km
Common mistakes
- Minimizing 50 − 6m and 8m one at a time. Each component is smallest at its own time, and neither is the time when the distance itself is least; the two components must be combined into one expression before anything is minimized.
- Taking the square root first and differentiating √100m2 − 600m + 2500. That is correct but needs the chain rule for no gain, because a square root increases with what is under it, so the time that makes d2 least is the time that makes d least.
More motion in two dimensions problems, worked step by step →