Set up related rates
Two or more quantities often change with time while one equation links them at every instant. Differentiating that equation with respect to time links their rates, which are called related rates, so one rate can be found from the others. This topic sets up such a problem: it names the changing quantities, writes the equation, differentiates it and substitutes the values of one instant.
An equation at every instant
A ladder 5 meters long leans against a vertical wall, with its foot on the floor. An orange segment along the floor runs from the wall to the foot, the distance x, and an orange segment up the wall runs from the floor to the top of the ladder, the height y. The length 5 is written faint beside the ladder. A green arrow on the floor points away from the wall from the foot, and a red arrow beside the wall points down from the height of the top. As time passes, the foot moves away from the wall, the top moves down, and the red arrow grows while the green arrow keeps its length. At t = 6 seconds the foot is 3 meters from the wall and the top is 4 meters up. A button hides the arrows and draws a red dashed line across the wall at the height 4, which stays there while the ladder moves.
In Figure 1, a ladder 5 meters long leans against a vertical wall, and its foot slides away at 0.4 meters per second. After \(t\) seconds, the foot is \(\cy{x}\) meters from the wall, and the top is \(\cy{y}\) meters above the floor. Move the time slider. The two orange lengths change, so each is a function of \(t\). The length of the ladder does not change, so it is the fixed number 5, shown faint.
The wall, the floor and the ladder form a right triangle at every instant, with the ladder as its longest side. By the Pythagorean theorem, at every time \(t\) while the ladder slides,
Both sides are therefore the same function of \(t\). A derivative at an instant is a limit of difference quotients, which use the values at nearby times. This means that two functions that are equal on an interval have equal derivatives there. By the sum rule, differentiate the left side term by term. The term \(x^2\) is the square of the inner function \(x(t)\), so if \(x\) is differentiable, the chain rule (topic 3.1) gives its derivative \(2x\,\cg{\frac{dx}{dt}}\). The same holds for \(y^2\), and the constant 25 has the derivative 0:
This is implicit differentiation (topic 3.2) with \(t\) as the variable. Each changing quantity gives a term with its own rate, and the fixed length gives no term. Where \(y\neq 0\), solve for the rate of the top:
The lengths \(x\) and \(y\) are positive, so the minus sign means that the top moves down while the foot moves away. The arrows in Figure 1 show both rates on one scale, green where \(x\) increases and red where \(y\) decreases. Move the time slider forward. The green arrow keeps its length, but the red arrow grows, because \(x/y\) grows as the top nears the floor.
A question about rates names one instant. At \(t=6\), the readouts under Figure 1 show \(x=3\) and \(y=4\). Substitute these values and \(\frac{dx}{dt}=0.4\):
At that instant, the top slides down at 0.3 meters per second. The method uses only the values and the rate at one instant, so it needs no formula for \(x\) or \(y\) in terms of \(t\).
Substitute the values of the instant only after you differentiate. Use the button under Figure 1 to substitute \(x=3\) first. The equation becomes \(9+y^2=25\), which makes the height 4 at every time, as the red dashed line shows. Its derivative, \(2y\,\frac{dy}{dt}=0\), gives the top the rate 0, but the readout of \(\frac{dy}{dt}\) still shows \(-0.3\). Move the time slider. The top leaves the red line, because \(9+y^2=25\) holds only at \(t=6\), and a derivative needs the values at nearby times.
A fixed number may be substituted at any stage, because it has the same value at every time. The equation used the length 5 from the start.
Other quantities and equations
In every related-rates problem, each quantity that changes with time is a function of \(t\), named by a letter. Each fixed length or other fixed quantity is a constant, so its rate is 0. A value given for one instant, such as \(x=3\), belongs to a changing quantity, so it is substituted only after the differentiation. Each given rate and the requested rate is a derivative with respect to \(t\), negative if its quantity decreases.
The equation comes from the geometry of the situation or from a formula. A right triangle gives the Pythagorean theorem, similar triangles give equal ratios of their sides, and an angle gives a trigonometric ratio. The formula for an area or a volume gives one too. If the equation contains a changing quantity whose rate is neither given nor requested, that rate appears after the differentiation and stays unknown. Before you differentiate, use a second equation to write that quantity in terms of the others.
The argument for the ladder works for any such equation. A term \(g(q)\) in a changing quantity \(q\) is a composition with \(q\) as the inner function, so the chain rule gives \(g'(q)\,\frac{dq}{dt}\). By the product rule (topic 2.8), a product \(pq\) of two changing quantities has the derivative \(p\,\frac{dq}{dt}+q\,\frac{dp}{dt}\), one term for each rate. A quotient needs the quotient rule (topic 2.9). A constant has the derivative 0, and by the constant multiple rule (topic 2.6), a constant factor stays as it is.
Example 1
Identify the changing quantities
Water drains at 0.5 cubic meters per minute from a conical tank with its vertex down. The tank is 6 meters tall, and its top has a radius of 2 meters. To find how fast the depth of the water changes when the water is 4 meters deep, identify the quantities that change and those that are fixed. Then write the given rate and the requested rate as derivatives.
Solution
The tank keeps its shape, so its height, 6 meters, and the radius of its top, 2 meters, are fixed. As the water drains, its depth \(h\), the radius \(r\) of its surface and its volume \(V\) change. Each is a function of the time \(t\). The depth of 4 meters is the value of \(h\) at one instant, not a fixed length. The volume decreases, so its rate is negative:
No rate of \(r\) is given or requested, so the equation for this problem should link \(V\) and \(h\) alone.
Example 2
Write the relationship between them
A woman 1.8 meters tall walks away from a lamppost at 1.2 meters per second. The light is at the top of the post, 4.5 meters above the ground. How fast is her shadow lengthening when she is 6 meters from the post?
A post 4.5 meters tall at the left with a light at its top, and a woman 1.8 meters tall standing x meters to its right. A faint dashed line runs from the light past the top of her head to the ground at the tip of her shadow. Orange segments on the ground mark her distance x from the post and the length s of her shadow. Small faint squares mark the right angles at the foot of the post and at her feet, and a faint arc marks the angle at the tip of the shadow. At x = 6 the shadow is 4 meters long, and the shadow stays two thirds of x as she moves.
Solution
Let \(\cy{x}\) be her distance from the post and \(\cy{s}\) the length of her shadow, in meters. The equation must link \(x\) and \(s\), whose rates are given and requested. In Figure 2, the post and the woman each form a right triangle with the ground and the dashed line. The two triangles share the angle at the tip of the shadow, so they are similar. Height divided by base is the same in both:
Multiply both sides by \(s(x+s)\), which is positive. Then collect the terms in \(s\):
This equation holds at every instant of the walk. Differentiate it with respect to \(t\), with \(\frac{dx}{dt}=1.2\):
Her shadow lengthens at 0.8 meters per second at every distance from the post, so the distance of 6 meters is not needed.
Example 3
Differentiate with respect to time
A potter rolls clay into a cylinder that becomes longer and thinner while its volume stays the same. Its radius is \(r\) and its length is \(\ell\), in centimeters, at time \(t\) seconds. Find \(\dfrac{d\ell}{dt}\) in terms of \(r\), \(\ell\) and \(\dfrac{dr}{dt}\).
Solution
The volume \(V\) is a constant, and \(r\) and \(\ell\) change. At every time,
Differentiate both sides with respect to \(t\). The right side has the derivative 0. The left side is \(\pi\) times the product of \(r^2\) and \(\ell\), so the product rule gives a term for the rate of each factor. By the chain rule, \(r^2\) has the derivative \(2r\,\frac{dr}{dt}\):
Divide by \(\pi r^2\), which is positive. Then solve for \(\frac{d\ell}{dt}\):
As the cylinder becomes thinner, \(\frac{dr}{dt}<0\), so \(\frac{d\ell}{dt}>0\), and the length increases.
Example 4
Substitute information at the correct stage
At noon, ship A is 30 kilometers east of a port and sails east at 25 kilometers per hour. Ship B is 40 kilometers north of the port and sails north at 15 kilometers per hour. How fast is the distance between the ships changing at noon?
Solution
Let \(x\) and \(y\) be the distances of A and B from the port, in kilometers, \(t\) hours after noon. Let \(z\) be the distance between the ships. East and north are perpendicular, so at every time
All three distances change, so differentiate before you substitute the values at noon:
At noon, \(x=30\), \(y=40\) and \(z=\sqrt{30^2+40^2}=50\), while \(\frac{dx}{dt}=25\) and \(\frac{dy}{dt}=15\). Substitute these values:
At noon, the distance between the ships increases at 27 kilometers per hour.
Each example is one of the four skills of topic 4.4 in Which & Why: AP Calculus.