Processing math: 100%

Monday, November 17, 2014

A Vector Sum Trap in a Related-Rates Problem

A student of mine recently showed me a math problem that's easy to get wrong, as I did, through hasty vector addition. Here's the problem (adapted from this PDF):
Two radar stations, A and B, are tracking a ship generally north of both stations. Station B is located 6 km east of station A. At a certain instant, the ship is 5 km from A and also 5 km from B. At the same instant, station A reads that the distance between station A and the ship is increasing at the rate of 28 km/h. Station B reads that the distance between station B and the ship is increasing at 4 km/h. How fast and in what direction is the ship moving?

Solution 1: Related Rates 

If you've studied related rates before (who hasn't!), you'll look for an equation involving distances, differentiate that equation with respect to time, and solve for the unknown rate.

Let's use Newton's notation for time derivatives: ˙a=dadt. This problem gives you two rates: ˙a=va=28 km/h and ˙b=vb=4 km/h. You need to find the ship's speed and direction, i.e., its velocity vector v, which you can express as the vector sum of horizontal and vertical components: vx+vy. This is useful here because vx and vy are easily related to x and h, as follows.

The large triangle's top corner stays anchored to the ship as it moves; the ship will "drag" the top corner while h remains vertical. So if the ship has horizontal speed vx, the right triangle base x must change at exactly vx to move the top corner along with the ship, which means vx=˙x. Similarly, vy=˙h. So we just need to find ˙x and ˙h to solve this problem.

The right triangle with base x gives us h2+x2=a2, or h2=a2x2. The other right triangle with base (6x) gives h2+(6x)2=b2. Combining these equations gives
b2=(6x)2+a2x2in which x is the only unknown. Good! The rate of change of x will give us the ship's horizontal speed. Differentiate both sides of (1) with respect to time, using the chain rule on a(t),b(t), and x(t):
2b˙b=2(6x)(˙x)+2a˙a2x˙xb˙b=(x6)˙x+a˙ax˙x(6 km)˙x=a˙ab˙b=(5 km)(28 km/h)(5 km)(4 km/h)˙x=20 km/hAnd from h2=a2x2,
h˙h=(4 km)˙h=a˙ax˙x=(5 km)(28 km/h)(3 km)(20 km/h)˙h=20 km/h The ship's velocity is (vx,vy)=(20,20) km/h, or 20228.8 km/h northeast.

Solution 2: Vector Addition

To check that answer and withdraw from the bleakness of the real world for a little while longer, let's find the sum of the given velocities va and vb by resolving them into their horizontal and vertical components and adding those:

Note that we don't actually need the value of θ, since it only ever appears as cosθ=3/5 or sinθ=4/5 (these values are readable straight from the first diagram). Adding up components gives:
vx=vacosθvbcosθ=35(284)=14.4 km/hvy=vasinθ+vbsinθ=45(28+4)=25.6 km/h...Wait, what the hell!? (vx,vy)=(14.4,25.6) km/h translates to a speed of 29.4 km/h in a direction 60.6° north of east, shown in red below. This sum clearly disagrees with the related-rates answer of 28.8 km northeast, shown in blue.

How could this happen? Adding two vectors is dead simple; no way did you screw that up. Did you flip a sign somewhere in the related-rates analysis? Maybe ˙x doesn't actually equal vx or something? What is going on!?

What Is Going On

It's true that the unknown velocity vector v has components va=28 km/h and vb=4 km/h. The problem is that these components are taken along non-orthogonal (not right-angled) lines a and b, so they can't simply add back up to v! Some of va points in the direction of vb, and some of vb points along va. Here's a surefire way to convince yourself that these measured velocities shouldn't add up to the ship's velocity: picture multiple radar stations, say 10 of them, distributed along the line AB. It wouldn't make sense to add all of their velocity measurements.

Here's a geometric way to realize why the vector sum va+vbv. The a-component of the unknown velocity v is va. This defines a whole family of vectors whose component along the line defined by a is va=28 km/h. Here's that family of vectors in green:

Similarly, there is a family of vectors whose component along the line defined by b is vb=4km/h:

Only one vector belongs to both families. That vector is the correct velocity of the ship, which we easily found using related rates to be 20228.8 km/h 45 degrees north of east:

You could of course solve this problem using vector geometry: the unknown vector v forms some angle α with the positive x-axis, so the angle between v and va is θα, etc. However, it's quicker to use related rates... As long as you don't add up vector components that point along non-orthogonal directions.