Skip to main content
Logo image

Chapter 14 Related rates

Section 14.1 Quantities varying in tandem

Sometimes we have several quantities varying in tandem.

Example 14.1.1. Filling a balloon.

We are putting our portable air pump to work again, but this time we keep it on the high setting (0.75 m3min) as we fill a balloon. For simplicity, assume the balloon maintains a spherical shape at all times.
Let \(V(t)\) represent the volume of air accumulated in the balloon at time \(t\text{,}\) and take the initial volume to be \(V(0) = 0\text{.}\) The air flow specification on our pump tells us
\begin{equation*} \ddt{V} = 0.75 \text{.} \end{equation*}
But as the volume of the balloon varies, so do other aspects of its geometry. For example, at what rate is the diameter of the balloon varying? With the volume varying at a constant rate, does the diameter vary at a constant rate as well?
Let \(D(t)\) represent the diameter of the balloon at time \(t\text{.}\) We can determine a formula for \(D(t)\) by obtaining a formula for \(V(t)\) and then relating volume to diameter. First, in the current scenario, \(V\) varies at a constant rate, so \(V(t)\) must be linear, with slope equal to its constant rate of variation:
\begin{equation*} V(t) = V_0 + 0.75 t \text{.} \end{equation*}
However, we have taken \(V_0 = V(0) = 0\text{,}\) so we have
\begin{equation*} V(t) = \frac{3 t}{4} \text{.} \end{equation*}
On the other hand, using \(R\) to represent the radius of the balloon, we can relate \(V\) to \(D\) using the formula for the volume of a sphere:
\begin{equation*} V = \frac{4 \pi R^3}{3} = \frac{\pi D^3}{6} \text{.} \end{equation*}
Isolating \(D\) gives
\begin{align*} D \amp = \sqrt[3]{\frac{6}{\pi}} \, V^{1/3} \\ \amp = \sqrt[3]{\frac{6}{\pi}} \, {\left(\frac{3 t}{4}\right)}^{1/3} \\ \amp = \sqrt[3]{\frac{9}{2 \pi}} \, t^{1/3} \end{align*}
This already answers one of our questions: since \(D(t)\) is not a linear function, the diameter of the balloon does not vary at a constant rate when the volume does.
To obtain the rate function that measures how the diameter varies over time, we can use Pattern 12.4.3 to directly compute a formula for \(dD/dt\) from our formula for \(D(t)\) above.
\begin{align*} \ddt{D} \amp = \opddt \left( \sqrt[3]{\frac{9}{2 \pi}} \, t^{1/3} \right) \\ \amp = \sqrt[3]{\frac{9}{2 \pi}} \, \opddt \left( t^{1/3} \right) \\ \amp = \sqrt[3]{\frac{9}{2 \pi}} \cdot \frac{1}{3} \cdot t^{-2/3} \\ \amp = \frac{1}{\sqrt[3]{6 \pi t^2}} \end{align*}
In Example 14.1.1, we were able to compute \(dD/dt\) by relating \(D\) to \(V\) and then using a formula for \(V(t)\) to obtain a formula for \(D(t)\) that we could differentiate. But there is a way to directly compute \(dD/dt\) without need for either a formula for \(V(t)\) or \(D(t)\text{.}\) By definition, to compute a derivative value at \(t = t^\ast\) we would first approximate by average rate calculations over short time intervals containing \(t^\ast\text{:}\)
\begin{align*} \funceval{\ddt{V}}{t = t^\ast} \amp \approx \slope{V}{t} \amp \funceval{\ddt{D}}{t = t^\ast} \amp \approx \slope{D}{t}\text{.} \end{align*}
Notice what happens if we multiply \(\inlineslope{V}{t}\) by \(\inlineslope{D}{D}\) (which is always equal to \(1\)):
\begin{align*} \slope{V}{t} \amp = \slope{V}{t} \cdot \slope{D}{D} \\ \amp = \slope{V}{D} \cdot \slope{D}{t} \text{.} \end{align*}
How should we interpret \(\inlineslope{V}{D}\text{?}\) It still represents an averate rate of variation, but not with respect to time — it represents how the volume varies (on average) as the diameter varies, and would be in units of metres-cubed per metre. We can interpret the formula
\begin{equation*} V = \frac{\pi D^3}{6} \end{equation*}
as expressing \(V\) as a function of the independent variable \(D\text{:}\)
\begin{equation*} V(D) = \frac{\pi D^3}{6} \text{.} \end{equation*}

Example 14.1.2. Average rate of change of volume with respect to diameter.

Suppose our balloon increases in diameter from 0.5 m to 1 m. Then the volume increases from
\begin{align*} V(0.5) \amp = \frac{\pi (0.5)^3}{6} \amp \amp \text{to} \amp V(1) \amp = \frac{\pi \cdot 1^3}{6}\\ \amp = \frac{\pi}{48} \amp\amp\amp \amp = \frac{\pi}{6} \text{.} \end{align*}
So we can say that over this increase in diameter, the volume increases at an average rate of
\begin{align*} \slope{V}{D} \amp = \frac{V(1) - V(0.5)}{1 - 0.5} \\ \amp = \frac{\pi / 6 - \pi / 48}{1/2} \\ \amp = \frac{7 \pi}{24} \\ \amp \approx 0.92 \text{,} \end{align*}
which says that during a period when the diameter increases 0.5 m to 1 m, the volume is increase at the approximate average rate of 0.92 m3 per metre increase in the diameter.
Now,
\begin{equation*} \slope{V}{t} = \slope{V}{D} \cdot \slope{D}{t} \end{equation*}
is true for all average rate calculations. So if \(V\) is differentiable as a function of \(D\text{,}\) and \(D\) is differentiable as a function of \(t\text{,}\) then for small enough \(\change{t}\) and small enough \(\change{D}\text{,}\) we have
\begin{align} \funceval{\dd{V}{D}}{D = D^\ast} \amp \approx \slope{V}{D} \amp \funceval{\ddt{D}}{t = t^\ast} \amp \approx \slope{D}{t}\tag{✶} \end{align}
(where \(D^\ast\) represents the diameter at time \(t = t^\ast\)), giving us
\begin{gather} \slope{V}{t} \approx \left( \funceval{\dd{V}{D}}{D = D^\ast} \right) \left( \funceval{\ddt{D}}{t = t^\ast} \right)\tag{✶✶} \end{gather}
The derivative value
\begin{equation*} \funceval{\ddt{V}}{t = t^\ast} \end{equation*}
is defined to be a value that \(\inlineslope{V}{t}\) values can be made arbitrarily close to by taking \(\change{t}\) small enough. As the approximations in (✶) become better the smaller we take \(\change{t}\) (because this also makes \(\change{D}\) smaller), we can say that the approximation in (✶✶) becomes better the smaller we take \(\change{t}\text{,}\) and we conclude that
\begin{equation*} \funceval{\ddt{V}}{t = t^\ast} = \left( \funceval{\dd{V}{D}}{D = D^\ast} \right) \left( \funceval{\ddt{D}}{t = t^\ast} \right)\text{.} \end{equation*}
And since this is true at all points \(t = t^\ast\) (and corresponding \(D = D^\ast\)), we can say
\begin{equation*} \ddt{V} = \dd{V}{D} \cdot \ddt{D} \text{.} \end{equation*}

Example 14.1.3. Filling a balloon.

Let’s revisit Example 14.1.1 using our new pattern. We have
\begin{align*} V \amp = \frac{\pi}{6} \, D^3 \\ \dd{V}{D} \amp = \frac{\pi}{6} \cdot 3 D^2 \\ \amp = \frac{\pi D^2}{2} \text{,} \end{align*}
which gives us
\begin{align*} \ddt{V} \amp = \dd{V}{D} \cdot \ddt{D} \\ \amp = \left( \frac{\pi D^2}{2} \right) \ddt{D} \text{.} \end{align*}
Using our assumption that \(dV/dt\) is constant at \(0.75\text{,}\) we can solve for \(dD/dt\text{:}\)
\begin{align*} \ddt{D} \amp = \left( \frac{2}{\pi D^2} \right) \ddt{V} \\ \amp = \frac{2}{\pi D^2} \cdot \frac{3}{4} \\ \amp = \frac{3}{2 \pi D^2} \text{.} \end{align*}
This gives us a way to calculate \(dD/dt\) from known diameter values. For example, at the instant that the diameter of the balloon is \(D = 3\text{,}\) the diameter is increasing at a rate of \(1 / 6 \pi \) metres per minute.

Section 14.2 The Chain Rule

The argument we used in Section 14.1 to relate \(dV/dt\text{,}\) \(dV/dD\text{,}\) and \(dD/dt\) works in general.

Example 14.2.2.

Suppose \(u = t + t^{-1}\) and \(v = u^2\text{.}\) Then,
\begin{align*} \ddu{v} \amp = 2 u \amp \dudt \amp = 1 - t^{-2}\text{,} \end{align*}
and so the Chain Rule leads to
\begin{align*} \ddt{v} \amp = \ddu{v} \cdot \dudt \\ \amp = 2 u (1 - t^{-2}) \text{.} \end{align*}
If we would rather have a formula for \(dv/dt\) that is solely in terms of the ultimate independent variable \(t\text{,}\) then we can substitute for \(u\text{:}\)
\begin{equation*} \ddt{v} = 2 (t + t^{-1}) (1 - t^{-2}) \text{.} \end{equation*}
Let’s compare this result with what we get by substituting for \(u\) before calculating any derivative functions.
\begin{align*} v \amp = u^2 \amp \amp\implies \amp \ddt{v} \amp = 2 t + 0 - 2 t^{-3}\\ \amp = {(t + t^{-1})}^2 \amp \amp \amp \amp = 2 (t - t^{-3})\\ \amp = t^2 + 2 + t^{-2} \end{align*}
And our first calculation from the chain rule gave us
\begin{align*} \ddt{v} \amp = 2 (t + t^{-1}) (1 - t^{-2}) \\ \amp = 2 (t - t^{-1} + t^{-1} - t^{-3}) \\ \amp = 2 (t - t^{-3}) \text{,} \end{align*}
same as above.

Example 14.2.3. Filling a balloon.

Let’s return again to Example 14.1.1, but this time let’s assume it is the diameter that is increasing at a constant rate, say 0.5 mmin. (Assume it is a large balloon.) In Example 14.1.3 we calculated
\begin{equation*} \dd{V}{D} = \frac{\pi D^2}{2} \text{,} \end{equation*}
and so combining this with our assumption
\begin{equation*} \ddt{D} = 0.5 \end{equation*}
we have
\begin{align*} \ddt{V} \amp = \dd{V}{D} \cdot \ddt{D} \\ \amp = \frac{\pi D^2}{2} \cdot \frac{1}{2} \\ \amp = \frac{\pi D^2}{4} \text{.} \end{align*}
We can convert this into a formula in \(t\) by first obtaining a formula for \(D\text{.}\) As we have assumed that \(D\) varies at a constant rate, it must be a linear function of \(t\) with slope equal to the constant rate:
\begin{equation*} D(t) = D_0 + \frac{t}{2} \text{,} \end{equation*}
where \(D_0\) represents the initial diameter \(D_0 = D(0)\text{.}\) So now we have
\begin{equation*} \ddt{V} = \frac{\pi {(D_0 + t/2)}^2}{4} \text{.} \end{equation*}
We can often apply the Chain Rule in situations where it isn’t immediately apparent that it applies at all, by making a substitution.

Example 14.2.4. Derivative of a power of the sine function.

Consider
\begin{equation*} q(t) = \sin^3(t) = {\bbrac{\sin(t)}}^3 \text{.} \end{equation*}
None of the formulas or rules from Chapter 12 directly apply to this situation, and going all the way back to using an algebraic approach starting with a forward/backward difference approximation doesn’t sound like fun. Instead, we can recognize this as a situation for the chain rule by introducing an intermediate variable:
\begin{align*} q \amp = u^3 \amp \amp\text{for} \amp u \amp = \sin(t) \text{.} \end{align*}
Now we can differentiate separately:
\begin{align*} \dqdu \amp = 3 u^2 \amp \dudt \amp = \cos(t) \text{.} \end{align*}
Combining these in the Chain Rule and then substituting back in for \(u\) gives us
\begin{align*} \dqdt \amp = \dqdu \cdot \dudt \\ \amp = 3 u^2 \cos(t) \\ \amp = 3 \sin^2(t) \cos(t) \text{.} \end{align*}

Example 14.2.5. Derivative of a radical function.

Consider \(q(t) = \sqrt{t^2 + 1}\text{.}\) Taking the same sort of approach as the previous example, we introduce an intermediate variable to represent the expression inside the root:
\begin{align*} q \amp = \sqrt{u} = u^{1/2} \amp \amp\text{for} \amp u \amp = t^2 + 1 \text{.} \end{align*}
Now we differentiate separately:
\begin{align*} \dqdu \amp = \frac{1}{2} \cdot u^{-1/2} \amp \dudt \amp = 2 t\\ \amp = \frac{1}{2 \sqrt{u}} \text{.} \end{align*}
Combining these in the Chain Rule and then substituting back in for \(u\) gives us
\begin{align*} \dqdt \amp = \dqdu \cdot \dudt \\ \amp = \frac{1}{2 \sqrt{u}} \cdot 2 t \\ \amp = \frac{2 t}{2 \sqrt{t^2 + 1}} \\ \amp = \frac{t}{\sqrt{t^2 + 1}} \text{.} \end{align*}
The chain rule now also gives us a way to handle reciprocal functions.

Example 14.2.6. Derivative of the reciprocal of a polynomial.

For
\begin{equation*} q(t) = \frac{1}{t^2 + 3 t - 5} \text{,} \end{equation*}
we have
\begin{align*} q \amp = \frac{1}{u} = u^{-1} \amp \amp\text{for} \amp u \amp = t^2 + 3 t - 5 \text{.} \end{align*}
Now we differentiate separately:
\begin{align*} \dqdu \amp = - u^{-2} \amp \dudt \amp = 2 t + 3 - 0\\ \amp = - \frac{1}{u^2} \text{.} \end{align*}
Combining these in the Chain Rule and then substituting back in for \(u\) gives us
\begin{align*} \dqdt \amp = \dqdu \cdot \dudt \\ \amp = - \frac{1}{u^2} \cdot (2 t + 3) \\ \amp = - \frac{2 t + 3}{{(t^2 + 3 t - 5)}^2} \text{.} \end{align*}

Justification.

We have
\begin{equation*} \sec(t) = {\bbrac{\cos(t)}}^{-1} \text{.} \end{equation*}
Set \(q = u^{-1}\) for \(u = \cos(t)\) and differentiate:
\begin{align*} \dqdu \amp = - u^{-2} \amp \dudt \amp = - \sin(t) \text{.} \end{align*}
Combining these in the Chain Rule and then substituting back in for \(u\) gives us
\begin{align*} \opddt \bbrac{\sec(t)} \amp = \dqdu \cdot \dudt \\ \amp = - \frac{1}{u^2} \bbrac{- \sin(t)} \\ \amp = \frac{\sin(t)}{\cos^2(t)} \\ \amp = \frac{1}{\cos(t)} \cdot \frac{\sin(t)}{\cos(t)} \\ \amp = \sec(t) \cdot \tan(t) \text{.} \end{align*}
The verification for \(\csc(t)\) is similar.
Finally, we can also use the chain rule to verify our pattern for the derivative of a horizontal transformation. (See Pattern 12.3.12 and Pattern 12.3.14.) We will verify both patterns at once: suppose
\begin{equation*} q(t) = p(k t - c) \text{,} \end{equation*}
so that \(q\) is both a horizontally scaling and a horizontal shift of function \(p\text{.}\) We may write
\begin{align*} q \amp = p(u) \amp\amp\text{for}\amp u = k t - c \text{.} \end{align*}
Since \(u\) is linear in \(t\) its derivative is just its slope, so that
\begin{align*} \dqdt \amp = \ddu{p} \cdot \ddt{u} \\ \amp = p'(u) \cdot k \\ \amp = k p'(k t - c) \text{.} \end{align*}
We can now compare to our previous results.
  • In the case of a horizontal shift with no scale (so that \(k = 1\)), we have the same result as in Pattern 12.3.12.
  • In the case of a horizontal scale with no shift (so that \(c = 0\)), we have the same result as in Pattern 12.3.14.

Section 14.3 Implicit differentiation

Because of Pythagoras, the points in the \(xy\)-plane that make up the unit circle centred at the origin can be described by the algebraic equation \(x^2 + y^2 = 1\text{.}\)
Diagram illustrating that the coordinates of points on the unit circle satisfy a Pythagorean condition.
Figure 14.3.1. The coordinates of points on the unit circle satisfy a Pythagorean condition.
This curve is not the graph of a function, because it fails the Vertical Line Test. In fact, when we form this circle we are most likely not thinking about functions at all, but rather about geometry. With this perspective, we do not consider \(y\) to be a dependent variable — instead, \(x\) and \(y\) are two independent position variables, one that indicates a horizontal position and one that indicates a vertical position.
However, suppose we want to answer a question like What is the slope of the line tangent to this circle at the point \((1/\sqrt{10}, 3/\sqrt{10})\text{?}\) This question is easy enough to answer using simple geometry, but we’d like to demonstrate a calculus solution because it suggests a general method called implicit differentiation.
The idea is that the lower half of the circle has nothing to contribute to solving this problem, and it is the fact that this circle has both a lower and an upper half that is causing the Vertical Line Test to fail. If we ignore the lower semicircle and implicitly assume that \(y\) is a function of \(x\text{,}\) then we may algebraically express it as such:
\begin{equation*} y = \sqrt{1 - x^2} \text{.} \end{equation*}
Diagram of a tangent line to the upper unit semicircle.
Figure 14.3.2. A tangent line to the upper unit semicircle.
We could now apply the Chain Rule using \(u = 1 - x^2\) to compute \(dy/dx\text{,}\) and substituting \(x = 1/\sqrt{10}\) into the result would give the desired slope. However, there is a way we can proceed with explicitly expressing \(y\) as a formula in \(x\text{.}\)

Example 14.3.3. Computing a slope on a circle implicitly.

Beginning with circle equation
\begin{equation*} x^2 + y^2 = 1 \text{,} \end{equation*}
implicitly assume that \(y\) is a function of \(x\text{.}\) Compute
\begin{align*} \ddx{x^2} \amp = 2 x \amp \ddx{y^2} \amp = \ddy{y^2} \cdot \dydx \amp \ddx{1} \amp = 0\\ \amp \amp \amp = 2 y \dydx \text{,} \end{align*}
where in the middle we have applied the Chain Rule. With our assumption that \(y\) is a function of \(x\text{,}\) the equality
\begin{equation*} x^2 + y^2 = 1 \end{equation*}
is no longer about geometry, but instead is an equality of functions. Two equal functions must have the same rate of variation, so the derivative of the left-hand side must equal the derivative of the right-hand side:
\begin{gather*} \opddx (x^2 + y^2) = \ddx{1} \\ \ddx{x^2} + \ddx{y^2} = 0 \\ 2 x + 2 y \dydx = 0 \text{,} \end{gather*}
using our previous calculations. If we would like to know the slope at a point like \((1/\sqrt{10}, 3/\sqrt{10})\text{,}\) just substitute \(x = 1/\sqrt{10}\) and \(y = 3/\sqrt{10}\text{:}\)
\begin{gather*} \frac{2}{\sqrt{10}} + \frac{6}{\sqrt{10}} \cdot \dydx = 0 \\ \frac{6}{\sqrt{10}} \cdot \dydx = - \frac{2}{\sqrt{10}} \\ \dydx = - \frac{\cancel{\sqrt{10}}}{6} \cdot \frac{2}{\cancel{\sqrt{10}}} \\ \dydx = - \frac{1}{3} \text{.} \end{gather*}
Note that we can confirm this result with geometry: the radius from the origin to our point on the circle has slope
\begin{equation*} \frac{\text{rise}}{\text{run}} = \frac{3/\cancel{\sqrt{10}}}{1/\cancel{\sqrt{10}}} = 3\text{,} \end{equation*}
and the tangent at that point, being perpendicular to the radius, should have the negative-reciprocal slope \(-1/3\text{.}\)

Checkpoint 14.3.4. Another confirmation.

Use the Chain Rule to differentiate \(y = \sqrt{1 - x^2}\text{,}\) an confirm again that the slope of the tangent to the unit circle at point \((1/\sqrt{10}, 3/\sqrt{10})\) is \(-1/3\text{.}\)

Note 14.3.6.

The order of the second and third steps in Procedure 14.3.5 can be interchanged if desired.

Example 14.3.7.

Consider the curve defined by \(y^2 = x^3 (2-x) \text{.}\) The point \((1,1)\) lies on this curve, since at \(x = 1\) and \(y = 1\) we have
\begin{align*} \text{LHS} \amp = 1^2 \amp \text{RHS} \amp = 1^3 \cdot (2 - 1) \\ \amp = 1 \amp \amp = 1\text{.} \end{align*}
What is the equation of the tangent to the curve at this point?
A tangent to a curve in the plane.
Figure 14.3.8. A tangent to the curve \(y^2 = x^3 (2-x) \text{.}\)
We can re-arrange this equation to
\begin{equation*} y^2 - 2 x^3 + x^4 = 0 \text{.} \end{equation*}
Matching with the pattern of Procedure 14.3.5, we have
\begin{equation*} F(x,y) = y^2 - 2 x^3 + x^4\text{.} \end{equation*}
Differentiate implicitly:
\begin{align*} \ddx{F} \amp = \ddx{y^2} - 2 \ddx{x^3} + \ddx{x^4} \\ \amp = \ddy{y^2} \cdot \dydx - 2 \cdot 3 x^2 + 4 \cdot x^3 \\ \amp = 2 y \dydx - 6 x^2 + 4 \cdot x^3 \text{.} \end{align*}
At the point \((1,1)\) we have
\begin{align*} \funceval{\ddx{F}}{\substack{x = 1 \\ y = 1}} \amp = 2 \cdot 1 \cdot \dydx - 6 \cdot 1^2 + 4 \cdot 1^3\\ \amp = 2 \dydx - 2 \text{.} \end{align*}
Setting this equal to \(0\) and solving leads to \(dy/dx = 1\text{.}\) The line with slope \(1\) that passes through the point \((1,1)\) is simply the line \(y = x\text{.}\)
Why would we bother with this method when we can just isolate \(y\) and differentiate that explicit formula for \(y\) as a function of \(x\text{?}\) Because in more complicated examples it is often not practical (or even possible) to isolate \(y\text{.}\)

Example 14.3.9.

The curve
\begin{equation*} y^7 - 6 y^5 + 5 y^2 + 2 x^2 = 8 \end{equation*}
pass through the point \((2,1)\text{,}\) as you can verify. It wouldn’t be practical to attempt to isolate \(y\) in this equation. But assuming that a small portion of the curve around that point satisfies the Vertical Line Test, we differentiate:
\begin{align*} \ddx{F} \amp = \ddx{y^7} - 6 \ddx{y^5} + 5 \ddx{y^2} + 2 \ddx{x^2} \\ \amp = \ddy{y^7} \cdot \dydx - 6 \ddy{y^5} \cdot \dydx + 5 \ddy{y^2} \cdot \dydx + 2 \cdot 2 x \\ \amp = 7 y^6 \dydx - 6 \cdot 5 y^4 \dydx + 5 \cdot 2 y \dydx + 4 x \\ \amp = (7 y^6 - 30 y^4 + 10 y) \dydx + 4 x \text{.} \end{align*}
Substituting \(x = 2\) and \(y = 1\) and setting this equal to \(d/dx(8) = 0\text{,}\) we have
\begin{gather*} (7 \cdot 1^6 - 30 \cdot 1^4 + 10 \cdot 1) \dydx + 4 \cdot 2 = 0 \\ - 13 \dydx = - 8 \\ \dydx = \frac{8}{13} \text{.} \end{gather*}
So the slope of the tangent to the curve at the point \((2,1)\) is \(8/13\text{.}\)

Section 14.4 Related rate problems

We began this chapter with an example of two quantities varying over time, but constrained to each other physically (or, really, geometrically) so that they were forced to vary in tandem. Unsurprisingly, the rates of variation of these two quantities were related. Here are some more examples of such related rates.

Example 14.4.1. Walking around a corner.

Two workers are carrying a three-metre ladder along a narrow catwalk high above the ground when they come to a right angle in the walkway. The lead worker rounds the corner, but her progress is limited by the trailing worker, who, terrified, is inching along at a rate of 1 mmin. At what rate is the lead worker able to walk at the instant that the trailing worker is still 1.5 m from the turn?
Solution.
Let \(x\) represent the trailing worker’s distance from the turning point, and let \(y\) represent the lead worker’s distance from that point.
A diagram depicting two workers on a walkway carrying a ladder around a corner.
Figure 14.4.2. Two workers on a walkway carrying a ladder around a corner.
The trailing worker’s rate of travel tells us that
\begin{equation*} \dxdt = - 1 \text{,} \end{equation*}
where the rate is taken to be negative because that worker’s distance to the turn is decreasing. The two distances \(x\) and \(y\) are constrained by the right angle of the turn and the straight line of the ladder, so that the two distances must satisfy Pythagoras at each point in time that the two workers are on different legs of the cat walk:
\begin{equation*} x^2 + y^2 = 3^2 \text{.} \end{equation*}
As both \(x\) and \(y\) vary with time, they are somehow functions of \(t\text{.}\) In this scenario we can differentiate with respect to \(t\text{:}\)
\begin{gather*} \opddt (x^2 + y^2) = \ddt{1} \\ \ddt{x^2} + \ddt{y^2} = 0 \\ \ddx{x^2} \cdot \dxdt + \ddy{y^2} \cdot \dydt = 0 \\ 2 x \dxdt + 2 y \dydt = 0 \text{.} \end{gather*}
At the instant that \(x = 1.5\text{,}\) we have
\begin{gather*} {(1.5)}^2 + y^2 = 3^2 \\ y^2 = 9 - 2.25 \\ y = \frac{3 \sqrt{3}}{2} \text{.} \end{gather*}
Substituting this along with \(x = 1.5\) and \(dx/dt = -1\) into our differentiation result above, we obtain
\begin{gather*} \cancel{2} \cdot \frac{3}{\cancel{2}} \cdot (-1) + \cancel{2} \cdot \frac{3 \sqrt{3}}{\cancel{2}} \cdot \dydt = 0\\ 3 \sqrt{3} \dydt = 3 \\ \dydt = \frac{\sqrt{3}}{3} \text{.} \end{gather*}
So at that instant the lead worker is able to travel at approximately 0.58 mmin.

Example 14.4.3. A rotating light.

A person walks along a straight path at a rate of travel of 1.2 ms. A searchlight is located on the ground 6 m from the path. At the point on the path closest to the searchlight is located a motion detector, and when the person passes this point the light turns on and is kept focused on the person. At what rate is the distance between the person and the searchlight varying at the instant when the person is 4.5 m past the motion detector? At what rate is the searchlight rotating at this instant?
Solution.
Let \(x\) represent the distance along the path from the motion detector to the person. Let \(z\) represent the straight-line distance from the the searchlight to the person. Let \(\theta\) represent the amount the searchlight has rotated past the line between the motion detector and the searchlight.
A diagram depicting a light shining on a person walking on a path.
Figure 14.4.4. A light shining on a person walking on a path.
We are told that
\begin{equation*} \dxdt = 1.2 \text{,} \end{equation*}
and we are asked to determine \(dz/dt\) and \(d\theta/dt\) at the instant that \(x = 4.5\text{.}\)
The first part of the problem is essentially the same as Example 14.4.1. Distances \(x\) and \(z\) are constrained at every instant by Pythagoras:
\begin{equation*} x^2 + 6^2 = z^2 \text{.} \end{equation*}
Differentiate implicitly:
\begin{gather*} \opddt (x^2 + 6^2) = \ddt{z^2} \\ \ddt{x^2} + \ddt{6^2} = \ddt{z^2} \\ \ddx{x^2} \cdot \ddt{x} + 0 = \dd{z^2}{z} \cdot \ddt{z} \\ \cancel{2} x \ddt{x} = \cancel{2} z \ddt{z} \\ x \ddt{x} = z \ddt{z} \text{.} \end{gather*}
At the instant that \(x = 4.5\text{,}\) we have
\begin{gather*} (4.5)^2 + 6^2 = z^2 \\ z = \frac{15}{2} \text{.} \end{gather*}
So substituting all known values into our differentiation result, we have
\begin{gather*} \end{gather*}
So the distance from searchlight to person is increasing at a rate of 0.72 ms.
Now, for the rate of rotation of the light. We will use a cosine relationship, since we have not yet encountered the derivative of the tangent function.
\begin{equation*} \cos(\theta) = \frac{20}{z} = 20 z^{-1} \text{.} \end{equation*}
Differentiating, we have
\begin{gather*} \opddt \bbrac{\cos(\theta)} = 20 \ddt{z^{-1}} \\ \left[ \dd{}{\theta} \bbrac{\cos(\theta)} \right] \cdot \ddt{\theta} = 20 \dd{z^{-1}}{z} \cdot \ddt{z} \\ - \sin(\theta) \ddt{\theta} = - 20 z^{-2} \ddt{z} \\ \sin(\theta) \ddt{\theta} = \frac{20}{z^2} \cdot \ddt{z} \text{.} \end{gather*}
Note that it is not necessary to know the value of \(\theta\) at the instant that \(x = 4.5\) in order to use this formula, since we may substitute
\begin{equation*} \sin(\theta) = \frac{x}{z} \end{equation*}
to obtain
\begin{gather*} \frac{x}{z} \cdot \ddt{\theta} = \frac{20}{z^2} \cdot \ddt{z} \\ \ddt{\theta} = \frac{20}{x z} \cdot \ddt{z} \text{.} \end{gather*}
We already know that \(z = 7.5\) at the instant that \(x = 4.5\text{,}\) so now we calculate
\begin{align*} \ddt{\theta} \amp = \frac{20}{(9/2) (15/2)} \cdot \frac{18}{25} \\ \amp = \frac{32}{75} \text{.} \end{align*}
So at that instant the searchlight is rotating at approximately 0.427 rads.

Section 14.5 Logarithmic differentiation

Sometimes it is helpful to turn an explicit function formula into an implicit relationship between dependent and independent variables.

Example 14.5.1. A varying exponent.

Consider the exponential function \(q(t) = 2^t\text{.}\) One strategy for differentiating this function is to convert it into a horizontal transformation of the exponential function, and use Pattern 12.3.14. We have
\begin{equation*} q(t) = 2^t = e^{t \ln 2} \text{,} \end{equation*}
so since \(d(e^t)/dt = e^t\text{,}\) we have
\begin{equation*} q(t) = (\ln 2) \cdot e^{t \ln 2} = (\ln 2) 2^t \text{.} \end{equation*}
Another method is to purposefully turn the expression into a implicit one. In this case, introducing the natural logarithm allows us to simplify things before differentiating, because of the many convenient properties of the natural logarithm. In particular, if we set \(y = 2^t\text{,}\) then
\begin{equation*} \ln y = \ln(2^t) = t \ln 2 \text{.} \end{equation*}
Differentiate both sides:
\begin{gather*} \opddt(\ln y) = \opddt(t \ln 2) \\ \opddy(\ln y) \cdot \dydt = (\ln 2) \ddt{t} \\ \frac{1}{y} \cdot \dydt = (\ln 2) \cdot 1 \\ \dydt = y \ln 2 \text{.} \end{gather*}
Substituting \(y = 2^t\) back in, we have
\begin{equation*} \dydt = 2^t \ln 2 \text{,} \end{equation*}
which agrees with the result of our first method.
Before we consider the pattern of our second method from Example 14.5.1, let’s record the pattern of the result of that example.

Justification.

Set \(y = a^t\text{,}\) so that
\begin{equation*} \ln y = t \ln a \text{.} \end{equation*}
Then differentiating both sides leads to
\begin{equation*} \dydt = y \ln a = a^t \ln a \text{,} \end{equation*}
just as in Example 14.5.1.

Remark 14.5.3.

Pattern 14.5.2 now justifies Pattern 12.5.7, since if we take \(a = e\) then we get
\begin{equation*} q'(t) = e^t \ln e = e^t \cdot 1 = e^t \text{,} \end{equation*}
as expected.

Justification.

Assuming the derivative of \(p(t) = \ln\abs{\bbrac{q(t)}}\) can be easily computed, differentiate both sides of \(\ln\abs{y} = p(t) \text{:}\)
\begin{gather*} \opddt\bbrac{\ln\abs{y}} = \opddt\bbrac{p(t)} \\ \opddy\bbrac{\ln\abs{y}} \cdot \dydt = p'(t) \\ \frac{1}{y} \cdot \dydt = p'(t) \\ \dydt = y p'(t) \text{.} \end{gather*}
Since \(y = q(t)\text{,}\) we then have
\begin{equation*} q'(t) = q(t) p'(t) \text{,} \end{equation*}
as desired.

Remark 14.5.5.

Recall that the domain of the logarithm is \(t \gt 0\text{.}\) In Example 14.5.1, we were able to introduce the logarithm because \(2^t > 0\) for all \(t\text{,}\) which means that \(\ln(2^t)\) is defined for all \(t\text{.}\) In Procedure 14.5.4 we suggest introducing the extended logarithm function instead, so that \(y = q(t)\) becomes \(\ln\abs{y} = \ln\abs{q(t)}\) before differentiating, to be able to handle cases where \(q(t)\) is sometimes negative. The extra absolute value brackets generally won’t complicate things since we know how to differentiate the extended logarithm function (Pattern 12.5.4). Also, the absolute value brackets won’t interfere with the applying the properties of the logarithm to simplify \(\ln\bbrac{q(t)}\text{,}\) since
\begin{align*} \abs{a b} \amp = \abs{a} \cdot \abs{b} \amp \abs{\frac{a}{b}} \amp = \frac{\abs{a}}{\abs{b}} \end{align*}
are always true.

Example 14.5.6. Using the logarithm to simplify products and quotients.

Consider
\begin{equation*} y = \frac{\sin(t) \sin(2 t) \sin(3 t)}{\cos(4 t) \cos(5 t) \cos(6 t)} \text{.} \end{equation*}
Since the sine and cosine functions have both positive and negative outputs in their ranges, let’s introduce the extended logarithm function:
\begin{align*} \ln\abs{y} \amp = \ln\abs{\frac{\sin(t) \sin(2 t) \sin(3 t)}{\cos(4 t) \cos(5 t) \cos(6 t)}} \\ \amp = \ln\frac{ \abs{\sin(t)} \cdot \abs{\sin(2 t)} \cdot \abs{\sin(3 t)} }{ \abs{\cos(4 t)} \cdot \abs{\cos(5 t)} \cdot \abs{\cos(6 t)} }\\ \amp = \ln\bbrac{\abs{\sin(t)} \cdot \abs{\sin(2 t)} \cdot \abs{\sin(3 t)}} \\ \amp \phantom{=} - \ln\bbrac{\abs{\cos(4 t)} \cdot \abs{\cos(5 t)} \cdot \abs{\cos(6 t)}} \\ \amp = \ln\abs{\sin(t)} + \ln\abs{\sin(2 t)} + \ln\abs{\sin(3 t)} \\ \amp \phantom{=} - \ln\abs{\cos(4 t)} - \ln\abs{\cos(5 t)} - \ln\abs{\cos(6 t)} \text{.} \end{align*}
Consider the derivative of one of the terms in this expression, say \(\ln\abs{\cos(5 t)}\text{.}\) Setting \(q = \ln\abs{u}\) for \(u = \cos(5 t)\text{,}\) we have
\begin{align*} \dqdu \amp = \frac{1}{u} \amp \dudt \amp = - 5 \sin(5 t) \text{,} \end{align*}
so that
\begin{align*} \dqdt \amp = \dqdu \cdot \dudt \\ \amp = \frac{1}{u} \cdot \bbrac{-5 \sin(5 t)} \\ \amp = -5 \, \frac{\sin(5 t)}{\cos(5t)} \\ \amp = -5 \tan(5 t) \text{.} \end{align*}
Similar calculations for the other terms gives us
\begin{align*} \frac{1}{y} \cdot \dydt \amp = \cot(t) + 2 \cot(2 t) + 3 \cot(3 t) \\ \amp \phantom{=} + 4 \tan(4 t) + 5 \tan(5 t) + 6 \tan(6 t) \text{.} \end{align*}
Finally, substituting back in for \(y\) we have
\begin{align*} q'(t) = \dydt \amp = \frac{\sin(t) \sin(2 t) \sin(3 t)}{\cos(4 t) \cos(5 t) \cos(6 t)} \bigl( \cot(t) + 2 \cot(2 t) + 3 \cot(3 t)\\ \amp \phantom{ = \frac{\sin(t) \sin(2 t) \sin(3 t)}{\cos(4 t) \cos(5 t) \cos(6 t)} \bigl( } + 4 \tan(4 t) + 5 \tan(5 t) + 6 \tan(6 t) \bigr)\text{.} \end{align*}
We can use the same process to compute the derivative of the tangent and cotangent functions.

Justification.

We will verify the first formula, and leave the second for the reader to verify.
Set \(y = \tan(t)\) and consider
\begin{align*} \ln\abs{y} \amp = \ln\abs{\tan(t)} \\ \amp = \ln\abs{\frac{\sin(t)}{\cos(t)}} \\ \amp = \ln\abs{\sin(t)} - \ln\abs{\cos(t)} \text{.} \end{align*}
Differentiate both sides:
\begin{gather*} \opddt \bbrac{\ln\abs{y}} = \opddt \bbrac{\ln\abs{\sin(t)}} - \bbrac{\ln\abs{\cos(t)}} \\ \frac{1}{y} \cdot \dydt = \frac{1}{\sin(t)} \cdot \opddt \bbrac{\sin(t)} - \frac{1}{\cos(t)} \cdot \opddt \bbrac{\cos(t)}\text{.} \end{gather*}
Isolating for \(dy/dt\) and continuing with the differentiation process, we have
\begin{align*} \dydt \amp = y \left( \frac{\cos(t)}{\sin(t)} + \frac{\sin(t)}{\cos(t)} \right) \\ \amp = \tan(t) \left( \frac{\cos^2(t) + \sin^2(t)}{\sin(t) \cos(t)} \right) \\ \amp = \frac{\cancel{\sin(t)}}{\cos(t)} \cdot \frac{1}{\cancel{\sin(t)} \cos(t)} \\ \amp = \frac{1}{\cos^2(t)} \\ \amp = \sec^2(t) \text{,} \end{align*}
as claimed.
Finally, the justification we provided for Pattern 12.4.3 only dealt with the case of positive exponents. But now that we have the Chain Rule we can use the method of Logarithmic differentiation to verify that Pattern 12.4.3 does indeed hold for arbitrary exponents.

Justification.

For \(y = t^m\) we have
\begin{align*} \ln\abs{y} \amp = \ln\abs{t^m} \\ \amp = \ln{\abs{t}}^m \\ \amp = m \ln\abs{t} \text{.} \end{align*}
Applying the formula for the derivative of the logarithm to both sides (in conjunction with the Chain Rule on the left), we have
\begin{equation*} \frac{1}{y} \cdot \dydt = \frac{m}{t} \text{.} \end{equation*}
Isolating \(dy/dt\) and substituting \(y = t^m\) gives us
\begin{align*} \dydt \amp = \frac{m y}{t} \\ \amp = \frac{m t^m}{t} \\ \amp = m t^{m - 1} \text{,} \end{align*}
as claimed.