Tutorials › Calculus I › Distance Rates for Two Moving Objects at an Angle

Related Rates Problems · Tutorial 652 of 1495

Distance Rates for Two Moving Objects at an Angle

Use the Law of Cosines and implicit differentiation to calculate how the distance between two moving objects changes when their included angle is fixed or varies.

Intermediate 9 min read

What You'll Learn

  • Set up the Law of Cosines for two distances and their included angle.
  • Differentiate the distance relation with respect to time.
  • Distinguish the rate formula for a fixed angle from the formula for a changing angle.
  • Keep signs and units consistent when distances increase or decrease.
  • Check a calculated separation rate in the differentiated equation.

Introduction

When two objects move away from the same point, their separation depends not only on how far each has travelled but also on the angle between their directions. If the paths are not perpendicular, the right-triangle distance formula does not apply directly. The Law of Cosines gives the needed geometric relationship.

To find how quickly the separation changes, we let the distances and, when necessary, the angle vary with time. Differentiating the geometric relationship then connects their rates. The angle may stay fixed, or it may change and contribute its own term.

Set Up the Distance Relationship

Suppose two objects are observed from a common point. Let \(r(t)\) and \(s(t)\) be their distances from that point, let \(\theta(t)\) be the angle between the two rays from the common point to the objects, and let \(d(t)\) be the distance between the objects. We take \(r\), \(s\), and \(d\) to be nonnegative distances, and measure \(\theta\) in radians.

At each time, the three lengths form a triangle, so the Law of Cosines gives a relation between them. The angle in this relation is the angle between the two rays from the common point, not an angle measured from either object's direction of motion.

Definition: The included angle \(\theta\) is the angle between the segments of lengths \(r\) and \(s\) that meet at the common point. The separation \(d\) is the length of the third side of that triangle.
$$ d^2=r^2+s^2-2rs\cos\theta. $$

All these quantities may depend on time. A dot, as in \(\dot r\), will denote a rate with respect to time; equivalently, \(\dot r=dr/dt\). A positive distance rate means that distance is increasing at the instant considered, while a negative rate means it is decreasing.

Differentiate the Constraint

Differentiate the Law of Cosines with respect to time. The chain rule applies to each time-dependent quantity, including the angle if it changes. In particular, differentiating \(\cos\theta(t)\) gives \(-\sin\theta\,\dot\theta\).

$$ 2d\dot d = 2r\dot r+2s\dot s -2(\dot r s+r\dot s)\cos\theta +2rs\sin\theta\,\dot\theta. $$

When \(d>0\), divide by \(2d\) to solve for the separation rate:

$$ \dot d = \frac{ r\dot r+s\dot s-(\dot r s+r\dot s)\cos\theta +rs\sin\theta\,\dot\theta }{d}. $$

This formula requires that the quantities are differentiable at the instant in question and that \(d\ne0\). If the angle is fixed, then \(\dot\theta=0\), so the angular term vanishes. If the angle changes, its rate must be included. When using a numerical angle rate, it must be expressed in radians per unit time.

Key distinction: A fixed angle contributes no angle-rate term, but a changing angle contributes \(rs\sin\theta\,\dot\theta\) to the numerator for \(\dot d\). The distances can remain momentarily fixed while a changing angle still changes the separation.

Why the Differentiation Gives the Rate

The Law of Cosines is a constraint: at every instant, the three lengths and the included angle must satisfy the same geometric equation. Differentiating that equation describes how its two sides change together as time passes. The steps below show where each term comes from.

1
Differentiate the separation square.
Since \(d=d(t)\), the chain rule gives \(\frac{d}{dt}(d^2)=2d\dot d\).
2
Differentiate the two individual squares.
The terms \(r^2\) and \(s^2\) give \(2r\dot r\) and \(2s\dot s\).
3
Differentiate the product with the cosine.
The product \(rs\) contributes \(\dot r s+r\dot s\), and differentiating \(\cos\theta\) contributes \(-\sin\theta\,\dot\theta\). Including the original factor \(-2\) produces both terms in the differentiated relation.
4
Isolate the requested rate.
When \(d>0\), divide by \(2d\). The resulting equation relates the instantaneous separation rate to the distances, their rates, and the angle and its rate.

This reasoning also explains why knowing only the two distance rates is not always enough: if the angle varies, the last term depends on how quickly it varies.

Worked Examples

Worked Example: Fixed Angle of 60 Degrees

Two objects are \(3\) km and \(4\) km from a common point. Their included angle is fixed at \(60^\circ\). At the instant considered, the first distance is increasing at \(2\) km/h and the second is decreasing at \(1\) km/h. Find the rate of change of their separation.

First, \(60^\circ=\pi/3\) radians and \(\cos(\pi/3)=1/2\). The Law of Cosines gives

$$ d^2=3^2+4^2-2(3)(4)\left(\frac12\right) =9+16-12=13, \qquad d=\sqrt{13}\text{ km}. $$

The angle is fixed, so \(\dot\theta=0\). The given rates are \(\dot r=2\) km/h and \(\dot s=-1\) km/h. Substitute into the differentiated constraint:

$$ 2d\dot d =2(3)(2)+2(4)(-1)-2\bigl((2)(4)+(3)(-1)\bigr)\left(\frac12\right) =12-8-5=-1. $$

Since \(d=\sqrt{13}\), divide by \(2\sqrt{13}\):

$$ \dot d=-\frac{1}{2\sqrt{13}}\text{ km/h}. $$

Check by substitution into the differentiated equation: \(2d\dot d=2\sqrt{13}\left(-1/(2\sqrt{13})\right)=-1\) km²/h, matching the right-hand side. The negative rate means the separation is decreasing at this instant.

Worked Example: A Changing Included Angle

Two objects are \(2\) m and \(3\) m from a common point, and their included angle is \(\pi/3\) radians. At this instant, their distances are increasing at \(1\) m/s and \(2\) m/s, respectively. The angle is increasing at \(\pi/6\) rad/s. Find their separation rate.

Find the current separation first:

$$ d^2=2^2+3^2-2(2)(3)\cos\left(\frac{\pi}{3}\right) =4+9-12\left(\frac12\right)=7, \qquad d=\sqrt7\text{ m}. $$

Now use the differentiated relation with \(\dot r=1\), \(\dot s=2\), \(\dot\theta=\pi/6\), and \(\sin(\pi/3)=\sqrt3/2\):

$$ \begin{aligned} 2d\dot d &=2(2)(1)+2(3)(2) -2\bigl((1)(3)+(2)(2)\bigr)\left(\frac12\right) +2(2)(3)\left(\frac{\sqrt3}{2}\right)\left(\frac{\pi}{6}\right)\\ &=4+12-7+\pi\sqrt3\\ &=9+\pi\sqrt3. \end{aligned} $$

Therefore,

$$ \dot d=\frac{9+\pi\sqrt3}{2\sqrt7}\text{ m/s}. $$

Check: substituting this value into the left-hand side gives \(2\sqrt7\,(9+\pi\sqrt3)/(2\sqrt7)=9+\pi\sqrt3\), exactly the value calculated on the right-hand side. The positive result means the separation is increasing.

Worked Example: One Distance Decreases at a Fixed Obtuse Angle

Two objects are \(10\) km and \(6\) km from a common point, with a fixed included angle of \(120^\circ\). The first distance is decreasing at \(1\) km/h, while the second is increasing at \(0.5\) km/h. Find the rate of change of their separation.

Since \(\cos(120^\circ)=-1/2\), the current separation is

$$ d^2=10^2+6^2-2(10)(6)\left(-\frac12\right) =100+36+60=196, \qquad d=14\text{ km}. $$

The angle is fixed, and the distance rates are \(\dot r=-1\) km/h and \(\dot s=0.5\) km/h. Substituting gives

$$ \begin{aligned} 2d\dot d &=2(10)(-1)+2(6)(0.5) -2\bigl((-1)(6)+(10)(0.5)\bigr)\left(-\frac12\right)\\ &=-20+6-1=-15. \end{aligned} $$

Thus

$$ \dot d=\frac{-15}{2(14)}=-\frac{15}{28}\text{ km/h}. $$

Check: \(2d\dot d=2(14)(-15/28)=-15\) km²/h, equal to the differentiated right-hand side. The separation is decreasing, even though one of the objects is moving farther from the common point.

Common Pitfall: Omitting the Angle Rate

A frequent error is to differentiate the Law of Cosines as though the angle were fixed when it is actually changing. In the second worked example, omitting the angle term would give

$$ 2d\dot d=4+12-7=9, \qquad \dot d=\frac{9}{2\sqrt7}\text{ m/s}. $$

But the actual angle-rate contribution to \(2d\dot d\) is \(2rs\sin\theta\,\dot\theta=\pi\sqrt3\), which is not zero. The correct rate is \((9+\pi\sqrt3)/(2\sqrt7)\) m/s. The omitted calculation would only be valid if the angle were fixed at that instant, meaning \(\dot\theta=0\).

Another useful check is to keep the signs of the distance rates. “Decreasing at \(1\) km/h” means \(\dot r=-1\) km/h, not \(+1\) km/h. A negative separation rate is not an error: it says the distance between the objects is shrinking.

A Reliable Problem-Solving Sequence

For a distance-rate problem involving two paths meeting at an angle, organize the calculation before substituting the instantaneous values:

  1. Draw or identify the triangle, label the two distances \(r\) and \(s\), the included angle \(\theta\), and the separation \(d\).
  2. Write \(d^2=r^2+s^2-2rs\cos\theta\) as a relation that holds over time.
  3. Differentiate with respect to time, retaining the \(\dot\theta\) term unless the angle is specified to be fixed.
  4. Substitute the values and signed rates for the instant, including the current value of \(d\).
  5. Solve for \(\dot d\), attach the appropriate units, and check the result in the differentiated equation.

Keeping the relation symbolic until after differentiation matters because the quantities are linked throughout the motion. Substituting a single instant too early can hide which quantities vary and which derivative terms are needed.

Check Your Understanding

Use the Law of Cosines and its time derivative to answer these questions. For rate calculations, include units and interpret the sign.

  1. In the distance relation, what does the included angle measure?
  2. If the angle is fixed, which term in the differentiated equation vanishes, and why?
  3. Two distances are momentarily constant, but the angle between them is changing. Can the separation still change? Explain using the angle-rate term.
  4. Why must an angular rate used in the differentiated formula be expressed in radians per unit time?
  5. In the third worked example, what does the negative value of \(\dot d\) say about the objects' separation?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon