Differential Calculus
Related Rates
A related-rates problem hands you the rate at which one quantity is changing and asks for the rate at which a geometrically or physically linked quantity is changing at the same instant. The only calculus involved is the chain rule: if two time-varying quantities satisfy an equation, differentiating that equation with respect to produces an equation relating their rates. This is where the chain rule and implicit differentiation stop being formal exercises and start answering questions about the world, and it rehearses the modelling habits — draw, name, relate — that optimisation will need next.
The underlying principle
Every quantity in the problem is silently a function of time. Write , , and never suppress the .
Theorem (chain rule, time form). If is differentiable at and is differentiable at , then is differentiable at and
Implicit (constraint) form. Suppose and are differentiable on an open interval of times, the expression is differentiable at each point — in practice is built from sums, products, quotients (with non-vanishing denominator), powers and trigonometric functions, so it is — and the constraint holds. Then the two sides are the same function of , so their derivatives agree on . Differentiating the left side with the product, quotient, power and chain rules — treating each letter as a function of — gives one linear equation in and . Solve it for the rate you want, which is legitimate only if the coefficient you divide by is non-zero at that instant: in the step requires . At the equation collapses to and says nothing whatever about ; and in the sliding-ladder model, where the foot is pulled at a constant and , one has as , so no finite exists at the flat position.
Note the three hypotheses that are doing real work: differentiability of each variable, the constraint holding on an interval of times rather than at one instant, and a non-vanishing coefficient at the moment you divide.
The procedure
- Draw a picture of a general instant, not the special one.
- Label. Put a number on every length that never changes; put a letter on every quantity that changes. This single habit prevents most errors.
- Name the variables as functions of , with units: "let be the water depth in metres, in minutes."
- Record the data as derivatives: what is given (), what is wanted ( when ), and at which instant.
- Relate. Find an equation, valid for all nearby , linking the quantities: Pythagoras, similar triangles, area/volume formulas, trigonometry, the law of cosines, or a physical law.
- Reduce. If the relation contains a variable whose rate is neither known nor wanted, eliminate it (similar triangles usually do this) so that the equation involves only the quantities you care about.
- Differentiate both sides with respect to .
- Only now substitute the instant's numbers, solve, and state the answer with units and a sign interpretation.
Why you must substitute after differentiating
Step 5 asks for an identity in on an open interval. Only an identity can be differentiated, because compares values at nearby times. A number obtained by evaluating a moving quantity at the single instant is not an identity — it is one data point — and substituting it deletes precisely the information the derivative needs.
Concretely, for a ft ladder with foot and top :
Wrong. At the instant : . Differentiate: , so — the ladder's top is claimed to be motionless while the foot slides away. Absurd.
Right. Differentiate the identity , which holds for all while the ladder touches both wall and floor: Now put in .
Test for legality. A symbol may be replaced by a number before differentiating if and only if it is constant for all — the ladder's length , the lamppost's height, the fixed ratio of a cone. Anything that moves stays a letter until after the .
Standard setups
| Situation | Constraint (holds for all ) | Differentiated in |
|---|---|---|
| Ladder of fixed length | ||
| Expanding circle | ||
| Circumference | ||
| Sphere, volume | ||
| Sphere, surface | ||
| Cone, apex down, shape ratio | ||
| Cylinder, fixed radius | ||
| Separation at right angles | ||
| Separation at fixed angle | ||
| Shadow: lamp height , walker height , walker at , shadow length | ||
| Angle of elevation, height , horizontal | ||
| Boyle's law (fixed temperature) |
In the shadow row, the tip of the shadow sits at distance from the lamp's base, so the tip moves at — a different number from the rate the shadow lengthens.
Units and sign conventions
- A rate always carries units : lengths give m/s, areas m/s, volumes m/min, angles rad/s. Convert everything to one system before substituting; mixing cm with m is the commonest arithmetic disaster.
- Fix a positive direction first. Then means is increasing in that direction.
- English to symbols: "increasing at " ; "decreasing at ", "draining at ", "falling at ", "being pulled in at " . Getting this wrong flips the whole answer.
- Speed is the absolute value of a rate. Report either " ft/s" or "the top slides down at ft/s" — never "down at ft/s".
- Angles must be in radians, because and are false in degrees. Convert first: rad, rad.
- A distance is by definition, so the sign of is the whole story: negative means approaching, positive means separating.
Worked example 1 — sliding ladder
A ft ladder leans against a vertical wall. The foot is pulled away from the wall at a constant ft/s. How fast is the top sliding down when the foot is ft from the wall?
Name. Let be the distance from the wall to the foot and the height of the top, both in feet, in seconds. Given (moving away). Want when .
Relate. The wall is vertical and the floor horizontal, so for every with ,
Differentiate (chain rule on each square, the constant has derivative ):
Substitute. At the instant in question , so (positive, since is a height). Hence
Answer. The top slides down at ft/s.
Sanity checks. The sign is negative, as it must be when the foot moves out. Units: . And the formula predicts as : the top accelerates without bound as the ladder flattens, which is why the idealised model stops describing a real ladder near the end.
Worked example 2 — draining cone (eliminate a variable first)
A tank is an inverted right circular cone, m deep with a top radius of m. Water drains out at m/min. How fast is the water level falling when the water is m deep?
Name. Let be the depth of water, the radius of the circular surface, the volume, in metres and minutes. Draining gives . Want when .
Relate. The water forms a cone similar to the tank, so , i.e. for every . (The ratio is a genuine constant — it may be substituted before differentiating.) Then
Reduce, then differentiate. Reducing to the single variable before differentiating avoids an unknown :
Substitute and :
Answer. The level falls at m/min.
Sanity check. At the same formula gives m/min: near the apex the cross-section is tiny, so the level must plunge for the same outflow. That qualitative behaviour is a good test of any cone answer.
Common mistakes
| Wrong | Right | Why |
|---|---|---|
| Putting into and then differentiating | Differentiate, then substitute | Constants have derivative ; the constraint must hold on an interval of times |
| depends on — the chain-rule factor is compulsory | ||
| Product rule in | ||
| "Draining at " written as | Draining means the volume decreases | |
| Using with both and varying and only one equation | Eliminate first | One equation cannot pin down two unknown rates |
| Feeding in degrees per second into | Convert to rad/s first | Trig derivative formulas are false in degrees |
| for a separating pair | Distance is not the sum of the legs | |
| Reporting "the top moves down at m/s" | " m/s", i.e. down at m/s | The minus sign and the word "down" say the same thing once |
| Confusing the rate the shadow lengthens with the speed of its tip | versus | Two different questions about the same picture |
| Differentiating as it stands | Cross-multiply to first | Clearing fractions turns a quotient rule into one product rule |
| Answering a question about a ft ladder "when " | Check the instant is geometrically possible | always; an impossible instant signals a misread |
| Leaving the answer as a bare number | Attach units and say increasing/decreasing | A related-rates answer is a rate, not a number |
Fast self-checks
- Dimensional check. Every term of the differentiated equation must carry the same units. In each term is (length)/time.
- Sign check. Does the sign agree with the picture? A quantity that must be shrinking cannot come out positive.
- Degenerate-instant check. Feed the formula an instant where the rate obviously vanishes or blows up (a cone's apex, a ladder flat on the ground, a maximal area) and see whether it behaves.
- Numerical check. Parametrise the motion, e.g. , , and compute ; compare with your .
Key terms
- Related rates
- Chain rule in the time variable
- Implicit differentiation with respect to $t$
- Constraint equation
- Differentiate first, substitute second
- Similar triangles reduction
- Sliding ladder
- Expanding sphere
- Expanding circle
- Draining cone
- Shadow length and shadow tip
- Rate of separation
- Angle of elevation
- Radian requirement for trig derivatives
- Sign convention
- Units of a rate
Practice Problems
Oil spilled from a tanker spreads in a circle on the surface of the sea. The radius of the circle is increasing at a constant m/s.
(a) How fast is the area of the spill increasing when the radius is m?
(b) How fast is the circumference increasing at that instant?
Show hint
Write the area and circumference as functions of the radius, remember that the radius is a function of time, and differentiate with respect to .
Show answer
Step 1 — name the variables. Let be the radius in metres, the area in m, the circumference in metres, with in seconds. We are given and we want and at the instant when .
Step 2 — relate. For a circle, at every instant,
Step 3 — differentiate with respect to . Here is a function of , so by the chain rule:
Step 4 — substitute (only now).
Check. Units: for the area rate — correct. Numerically, with the area is , and , matching .
Answer. (a) m/s. (b) m/s.
Remark. The area rate depends on (it grows without bound as the slick spreads), but the circumference rate does not — it is the constant at every instant.
Air is pumped into a spherical balloon at a constant rate of cm/s.
(a) How fast is the radius increasing at the moment when the diameter is cm?
(b) How fast is the surface area increasing at that same moment?
(Volume of a sphere ; surface area .)
Show hint
The diameter is given, but every formula is in terms of the radius — convert first. Then differentiate the volume formula with respect to and solve for .
Show answer
Step 1 — name the variables. Let be the radius in cm, the volume in cm, the surface area in cm, in seconds. Given cm/s. The instant of interest has diameter cm, so
Step 2 — relate and differentiate. For all , . Differentiating with respect to (chain rule on ):
Step 3 — substitute and solve for .
\quad\Longrightarrow\quad \frac{dr}{dt}=\frac{100}{2500\pi}=\frac{1}{25\pi}\approx 0.0127\ \text{cm/s}.$$ **Step 4 — part (b).** Differentiate $S=4\pi r^2$: $$\frac{dS}{dt}=8\pi r\frac{dr}{dt}=8\pi(25)\cdot\frac{1}{25\pi}=8\ \text{cm}^2/\text{s}.$$ **Check (independent route for (b)).** Eliminate $r$ between the two formulas: from $V=\frac43\pi r^3$ we get $r=\left(\frac{3V}{4\pi}\right)^{1/3}$, so $$S=4\pi\left(\frac{3V}{4\pi}\right)^{2/3}=(36\pi)^{1/3}V^{2/3} \quad\Longrightarrow\quad \frac{dS}{dt}=\frac23(36\pi)^{1/3}V^{-1/3}\frac{dV}{dt}.$$ At $r=25$, $V=\frac43\pi(25)^3=\frac{4\pi}{3}\cdot 25^3=\frac{62500\pi}{3}$, so $$\left(\frac{36\pi}{V}\right)^{1/3}=\frac{1}{25}\left(\frac{36\pi}{4\pi/3}\right)^{1/3}=\frac{27^{1/3}}{25}=\frac{3}{25},$$ and therefore $$\frac{dS}{dt}=\frac23\cdot\frac{3}{25}\cdot 100=\frac23\cdot 12=8 .$$ Same value. Numerically, tracking $r(t)=\left(\frac{3(V_0+100t)}{4\pi}\right)^{1/3}$ gives $\frac{dr}{dt}\approx 0.0127324$ and $\frac{dS}{dt}\approx 8.000$. **Answer.** (a) $\dfrac{dr}{dt}=\dfrac{1}{25\pi}\approx 0.0127$ cm/s. (b) $\dfrac{dS}{dt}=8$ cm$^2$/s. **Warning.** Do **not** put $r=25$ into $V=\frac43\pi r^3$ first — that would make $V$ the constant $\frac{62500\pi}{3}$, whose derivative is $0$, contradicting $\frac{dV}{dt}=100$.A ladder m long rests against a vertical wall, with its foot on horizontal ground. The foot of the ladder is pulled away from the wall at m/s.
(a) How fast is the top of the ladder sliding down the wall when the foot is m from the wall?
(b) What does your formula predict as the foot approaches m from the wall, and is that physically sensible?
Show hint
Pythagoras relates the two distances at every instant. Differentiate that relation with respect to before putting in any numbers.
Show answer
Step 1 — draw and name. Let be the distance from the wall to the foot of the ladder and the height of the top above the ground, both in metres, in seconds. Given m/s (the foot moves away). Want when .
Step 2 — relate. The wall is vertical and the ground horizontal, so the ladder is the hypotenuse of a right triangle. Its length never changes, so for every with ,
Step 3 — differentiate with respect to . The right side is a constant, so its derivative is :
\quad\Longrightarrow\quad \frac{dy}{dt}=-\frac{x}{y}\cdot\frac{dx}{dt}.$$ **Step 4 — substitute.** At the instant $x=6$, $$y=\sqrt{100-36}=\sqrt{64}=8\ \text{m}$$ (the positive root, since $y$ is a height). Therefore $$\frac{dy}{dt}=-\frac{6}{8}\cdot 1=-\frac34=-0.75\ \text{m/s}.$$ **Answer (a).** The top slides **down** at $0.75$ m/s; as a signed rate, $\dfrac{dy}{dt}=-0.75$ m/s. **(b)** From $\frac{dy}{dt}=-\frac{x}{y}\frac{dx}{dt}$ with $y=\sqrt{100-x^2}$, $$\frac{dy}{dt}=-\frac{x}{\sqrt{100-x^2}}\longrightarrow-\infty\qquad\text{as }x\to 10^-,$$ because the numerator tends to $10$ while the denominator tends to $0^+$. The model therefore predicts an unbounded downward speed. That is not physically sensible: a real ladder loses contact with the wall before this happens, and in any case the assumption "the top stays on the wall for all $t$" — the identity we differentiated — fails there. The mathematics is correct; the *modelling hypothesis* breaks down. **Check.** Units: $\frac{\text{m}}{\text{m}}\cdot\frac{\text{m}}{\text{s}}=\frac{\text{m}}{\text{s}}$. Numerically, with $x(t)=6+t$ and $y(t)=\sqrt{100-x(t)^2}$, $\frac{y(0.001)-y(-0.001)}{0.002}\approx-0.7500$, matching $-\frac34$.Sand falls from a conveyor belt at ft/min and piles up in a right circular cone whose height is always equal to the diameter of its base. How fast is the height of the pile increasing when the pile is ft high?
(Volume of a cone: .)
Show hint
The volume formula has two varying letters but you only have one equation, so use the stated shape condition to express the radius in terms of the height first.
Show answer
Step 1 — name the variables. Let be the height of the pile and the base radius, in feet, with the volume in ft and in minutes. Given ft/min. Want when .
Step 2 — use the shape condition to eliminate . "Height equals base diameter" means at every instant, so The number here is a genuine constant of the shape, so it may be substituted before differentiating.
Step 3 — reduce to one variable, then relate.
Step 4 — differentiate with respect to .
Step 5 — substitute and solve.
\quad\Longrightarrow\quad \frac{dh}{dt}=\frac{12}{9\pi}=\frac{4}{3\pi}\approx 0.424\ \text{ft/min}.$$ **Check.** Independent numerical route: since $V=\frac{\pi h^3}{12}$, we have $h(t)=\left(\frac{12\big(V_0+12t\big)}{\pi}\right)^{1/3}$ with $V_0=\frac{\pi(6)^3}{12}=18\pi$. The central difference quotient at $t=0$ gives $0.42441$ ft/min, agreeing with $\frac{4}{3\pi}=0.424413$. Units: $\frac{\text{ft}^3/\text{min}}{\text{ft}^2}=\frac{\text{ft}}{\text{min}}$. **Answer.** $\dfrac{dh}{dt}=\dfrac{4}{3\pi}\approx 0.42$ ft/min. **Remark.** The rate is inversely proportional to $h^2$: the taller the pile, the slower it rises, because the same volume of sand must spread over a larger base.A ft ladder leans against a vertical wall. Its foot is pulled away from the wall at ft/s. A student is asked how fast the top is sliding down when the foot is ft from the wall, and writes:
Let and be the two distances, so . At the given moment , so , giving and . Differentiating with respect to gives , so the top is not moving.
(a) The conclusion is clearly false. Explain precisely which step is invalid and why.
(b) Give the correct solution.
Show hint
Ask yourself for which values of the equation the student differentiated is actually true. A derivative compares values at nearby times, not at one instant.
Show answer
(a) Where the argument breaks.
The step ", and at the given moment , so " is fine — it correctly computes the value of at the one instant in question.
The invalid step is differentiating that value. Writing "" and differentiating treats as the constant function for all . But is true only at the single instant ; it is not an identity on any interval of times. A derivative is defined by so it depends on the values of at times near , not just at . Substituting discarded exactly that information.
The rule to remember: you may replace a symbol by a number before differentiating if and only if that symbol is constant for all . The constant — the square of the ladder's fixed ft length — qualifies; and do not. Substituting the instantaneous values must be the last step, after the .
(b) The correct solution.
Let be the distance from the wall to the foot and the height of the top, in feet, in seconds. Given ft/s. The constraint holds for every with , so both sides are the same function of and may be differentiated:
\quad\Longrightarrow\quad \frac{dy}{dt}=-\frac{x}{y}\cdot\frac{dx}{dt}.$$ Now, and only now, substitute the instant's data: $x=15$ and $y=\sqrt{625-225}=\sqrt{400}=20$. Hence $$\frac{dy}{dt}=-\frac{15}{20}\cdot 3=-\frac{45}{20}=-\frac94=-2.25\ \text{ft/s}.$$ **Check.** With $x(t)=15+3t$ and $y(t)=\sqrt{625-x(t)^2}$, the central difference $\frac{y(0.001)-y(-0.001)}{0.002}\approx-2.2500$, confirming the answer and refuting $0$. **Answer.** The top slides **down** at $2.25$ ft/s; that is, $\dfrac{dy}{dt}=-\dfrac94=-2.25$ ft/s.A street lamp is mounted at the top of a m pole. A person m tall walks away from the pole along level ground at m/s.
(a) How fast is the length of the person's shadow increasing?
(b) How fast is the tip of the shadow moving away from the pole?
(c) The problem never says how far the person is from the pole. Why is no such distance needed?
Show hint
Set up similar triangles for the person and for the pole, and clear the fractions before you differentiate. Keep the shadow's length and the position of its tip as two different quantities.
Show answer
Step 1 — draw and name. Put the base of the pole at the origin. Let be the distance from the pole to the person and the length of the person's shadow (measured from the person's feet, away from the pole), both in metres, in seconds. Given m/s. The tip of the shadow is at distance from the pole.
Step 2 — relate by similar triangles. The large right triangle has vertical leg (the pole) and horizontal leg (pole base to shadow tip). The small right triangle has vertical leg (the person) and horizontal leg (feet to tip). The light ray through the top of the person's head is the common hypotenuse direction, so the triangles are similar:
Step 3 — clear fractions before differentiating. Cross-multiplying, This is an identity in , valid for all while the person walks. (Clearing the fractions first turns what would be a messy quotient rule into a one-line differentiation.)
Step 4 — differentiate with respect to .
Step 5 — the tip. The tip's distance from the pole is so
Check. The tip's speed must equal the walker's speed plus the rate the shadow lengthens: . ✓ Also note : the tip outruns the person, as it must, since the shadow is growing ahead of them.
(c) Why no distance is needed. Both rates came out as constant multiples of , with the multipliers and depending only on the two fixed heights. The relation is linear, so differentiating removes entirely. In general, for a lamp of height and a walker of height , neither of which involves . (This is special to the straight-line, level-ground geometry — in the ladder and cone problems the position genuinely matters.)
Answer. (a) The shadow lengthens at m/s. (b) The tip moves at m/s. (c) Because the shadow length is proportional to the distance walked, so the position cancels on differentiating.
A hot-air balloon rises vertically at a constant m/s from a launch pad. An observer stands on level ground m from the pad and watches the balloon, keeping the horizontal distance fixed. Let be the observer's angle of elevation to the balloon.
(a) How fast is increasing when the balloon is m high?
(b) At what height is largest, and what happens to as the balloon rises very high?
Show hint
Relate to the height with a tangent, and make sure the angle is measured in radians before you differentiate.
Show answer
Step 1 — name the variables. Let be the balloon's height in metres and the angle of elevation in radians (the derivative formulas for trigonometric functions require radians), in seconds. The horizontal distance is the constant m. Given m/s.
Step 2 — relate. In the right triangle with horizontal leg and vertical leg ,
Step 3 — differentiate with respect to . Using and the chain rule on the left,
Step 4 — substitute. When the triangle has equal legs, so and , giving Therefore
Answer (a). rad/s (about per second), and it is positive, as it must be while the balloon climbs.
(b) General formula. Since , The denominator is smallest at , so is largest at launch: and it decreases monotonically in , with as . Physically: high overhead, a further two metres of climb barely changes the observer's line of sight.
Check. Using , the central difference at gives rad/s and at gives rad/s, matching both results. Also, at is . ✓
Trap. If you had recorded in degrees, the relation would be wrong by a factor of . Always convert to radians before differentiating, and convert back only in the final sentence if you want degrees.
Boyle's law states that when a gas is compressed at constant temperature, its pressure and volume satisfy for a constant .
(a) At a certain instant the volume is cm, the pressure is kPa, and the pressure is increasing at kPa/min. At what rate is the volume changing?
(b) If instead the compression is adiabatic, so that (with ), what is the rate of change of the volume at the same instant with the same data?
Show hint
Both sides of are functions of ; the left-hand side needs the product rule, and in (b) the chain rule as well.
Show answer
Step 1 — name the variables. Let be the pressure in kPa and the volume in cm, in minutes. At the instant : , , kPa/min. Want .
(a) Boyle's law. The relation holds for all during the compression, so differentiate both sides with respect to . The right side is constant; the left side needs the product rule:
\quad\Longrightarrow\quad \frac{dV}{dt}=-\frac{V}{P}\cdot\frac{dP}{dt}.$$ Substituting the instant's values: $$\frac{dV}{dt}=-\frac{600}{150}\cdot 20=-4\cdot 20=-80\ \text{cm}^3/\text{min}.$$ The volume is **decreasing** at $80$ cm$^3$/min. **Check for (a).** Since $C=PV=150\cdot 600=90\,000$ and $P(t)=150+20t$, we have $V(t)=\frac{90\,000}{150+20t}$; then $$\frac{dV}{dt}=-\frac{90\,000\cdot 20}{(150+20t)^2},\qquad \frac{dV}{dt}\Big|_{t=0}=-\frac{1\,800\,000}{22\,500}=-80 .$$ Same answer by an independent route. ✓ **(b) Adiabatic law.** Now $P(t)\,V(t)^{1.4}=C$ with $V>0$, so the power rule with a real exponent applies to $V^{1.4}$. Product rule on the left, chain rule inside: $$\frac{dP}{dt}\,V^{1.4}+P\cdot 1.4\,V^{0.4}\,\frac{dV}{dt}=0 .$$ Solve, dividing through by $V^{0.4}>0$: $$\frac{dV}{dt}=-\frac{V^{1.4}}{1.4\,P\,V^{0.4}}\cdot\frac{dP}{dt}=-\frac{V}{1.4\,P}\cdot\frac{dP}{dt}.$$ Substituting: $$\frac{dV}{dt}=-\frac{600}{1.4\cdot 150}\cdot 20=-\frac{12\,000}{210}=-\frac{400}{7}\approx-57.14\ \text{cm}^3/\text{min}.$$ **Check for (b).** $V(t)=\left(\frac{C}{150+20t}\right)^{1/1.4}$ with $C=150\cdot 600^{1.4}$; the central difference quotient at $t=0$ gives $-57.1429$ cm$^3$/min. ✓ **Answer.** (a) $\dfrac{dV}{dt}=-80$ cm$^3$/min (decreasing at $80$ cm$^3$/min). (b) $\dfrac{dV}{dt}=-\dfrac{400}{7}\approx-57.1$ cm$^3$/min. **Remark.** Note the structure: the adiabatic answer is exactly the Boyle answer divided by $1.4$. The exponent measures how stiffly the gas resists compression, and related rates read that off immediately. Note also that no geometry appeared — "related rates" is about *any* constraint between time-varying quantities.Two straight roads cross at right angles. Car is travelling west toward the intersection at km/h and car is travelling north toward the same intersection at km/h. At a certain moment is km from the intersection and is km from it.
(a) At what rate is the distance between the cars changing at that moment? Are they approaching or separating?
(b) Suppose instead that at that moment car has already passed through the intersection and is km beyond it, still travelling west at km/h, while is still km short and approaching at km/h. Redo the calculation.
Show hint
Let and be the cars' distances from the intersection and write Pythagoras. The whole problem turns on the signs you assign to and .
Show answer
Step 1 — set a convention. Let be car 's distance from the intersection, car 's distance from the intersection, and the distance between the cars, all in km, in hours. Because the roads are perpendicular, for all near the instant,
Step 2 — differentiate with respect to .
\quad\Longrightarrow\quad z\frac{dz}{dt}=x\frac{dx}{dt}+y\frac{dy}{dt}.$$ **Step 3 — translate the English into signs (part (a)).** Both cars are getting *closer* to the intersection, so both distances are decreasing: $$\frac{dx}{dt}=-50,\qquad \frac{dy}{dt}=-60\ \ \text{(km/h)}.$$ **Step 4 — compute $z$ and substitute.** With $x=0.3$ and $y=0.4$, $$z=\sqrt{0.3^2+0.4^2}=\sqrt{0.09+0.16}=\sqrt{0.25}=0.5\ \text{km},$$ $$0.5\,\frac{dz}{dt}=(0.3)(-50)+(0.4)(-60)=-15-24=-39,$$ $$\frac{dz}{dt}=\frac{-39}{0.5}=-78\ \text{km/h}.$$ **Answer (a).** $\dfrac{dz}{dt}=-78$ km/h: the cars are **approaching** each other at $78$ km/h. **Sanity check.** Since $z>0$ always, a negative $\frac{dz}{dt}$ correctly means "closing". For a size check, apply the Cauchy–Schwarz inequality to $z\frac{dz}{dt}=x\frac{dx}{dt}+y\frac{dy}{dt}$: $$\left|\frac{dz}{dt}\right|=\frac{\left|x\frac{dx}{dt}+y\frac{dy}{dt}\right|}{\sqrt{x^2+y^2}}\le\sqrt{\left(\frac{dx}{dt}\right)^2+\left(\frac{dy}{dt}\right)^2}=\sqrt{50^2+60^2}=\sqrt{6100}\approx 78.10\ \text{km/h}.$$ So $78$ km/h is admissible, and it sits just under that ceiling because at this instant $(x,y)=(0.3,0.4)$ is very nearly *anti*-parallel to $\big(\frac{dx}{dt},\frac{dy}{dt}\big)=(-50,-60)$, so the inequality is almost an equality. Do **not** believe the folklore rule "the closing speed lies between the larger individual speed and the sum of the speeds": the upper bound $50+60=110$ is true but far weaker than $\sqrt{6100}$, and the lower half is false — if $B$ happened to be *at* the intersection ($y=0$) the same formula would give $\frac{dz}{dt}=\frac{x(-50)}{x}=-50$ km/h, a closing speed below $B$'s own $60$ km/h. Numerically, with $x(t)=0.3-50t$, $y(t)=0.4-60t$, $z(t)=\sqrt{x^2+y^2}$, the central difference at $t=0$ gives $-78.000$ km/h. ✓ **Step 5 — part (b): only the sign changes.** Now $A$ is moving *away* from the intersection, so its distance from the intersection is increasing: $\dfrac{dx}{dt}=+50$, while $\dfrac{dy}{dt}=-60$ as before. The relation $z^2=x^2+y^2$ still holds (squaring makes the side of the intersection irrelevant), and $x=0.3$, $y=0.4$, $z=0.5$ as before. Hence $$0.5\,\frac{dz}{dt}=(0.3)(+50)+(0.4)(-60)=15-24=-9 \quad\Longrightarrow\quad \frac{dz}{dt}=\frac{-9}{0.5}=-18\ \text{km/h}.$$ **Answer (b).** $\dfrac{dz}{dt}=-18$ km/h: they are still approaching, but only at $18$ km/h. (Numerical check with $x(t)=0.3+50t$: $-18.000$ km/h. ✓) **Moral.** The geometry and the differentiation were identical in both parts; the entire difference — a factor of more than four — came from one sign. Decide what your variables measure and which direction is positive *before* you write down any rate.A ladder m long leans against a vertical wall. Its foot is pulled away from the wall along level ground at m/s. Let be the angle between the ladder and the ground, and let be the area of the right triangle enclosed by the ladder, the wall and the ground. At the instant when the foot is m from the wall, find
(a) the rate at which the top of the ladder is sliding down,
(b) ,
(c) ,
and (d) determine the foot's distance from the wall at the instant when .
Show hint
Get first — parts (b) and (c) both use it. For the angle, pick whichever trigonometric relation has the simplest derivative; for the area, remember the product rule.
Show answer
Setup. Let be the distance from the wall to the foot and the height of the top, in metres, in seconds. Given m/s and the constraint, valid for all with , At the instant of interest , so m.
(a) Rate the top slides. Differentiating the constraint,
\quad\Longrightarrow\quad \frac{dy}{dt}=-\frac{x}{y}\cdot\frac{dx}{dt}=-\frac{3}{4}(0.6)=-0.45\ \text{m/s}.$$ The top slides **down** at $0.45$ m/s. **(b) Rate of change of the angle.** Measure $\theta$ in radians. The simplest relation uses the adjacent side and the (constant) hypotenuse: $$\cos\theta(t)=\frac{x(t)}{5}.$$ Differentiate with respect to $t$: $$-\sin\theta\,\frac{d\theta}{dt}=\frac{1}{5}\frac{dx}{dt}=\frac{0.6}{5}=0.12 .$$ At the instant, $\sin\theta=\dfrac{y}{5}=\dfrac45=0.8$, so $$\frac{d\theta}{dt}=-\frac{0.12}{0.8}=-0.15\ \text{rad/s}.$$ The angle is **decreasing** at $0.15$ rad/s, as it must be while the ladder flattens. *Independent confirmation using a different relation.* From $\tan\theta=\dfrac{y}{x}$, $$\sec^2\theta\,\frac{d\theta}{dt}=\frac{\frac{dy}{dt}\,x-y\,\frac{dx}{dt}}{x^2} =\frac{(-0.45)(3)-(4)(0.6)}{9}=\frac{-1.35-2.4}{9}=-\frac{3.75}{9}=-\frac{5}{12},$$ and $\sec^2\theta=1+\tan^2\theta=1+\left(\dfrac43\right)^2=\dfrac{25}{9}$, so $$\frac{d\theta}{dt}=-\frac{5}{12}\cdot\frac{9}{25}=-\frac{45}{300}=-0.15\ \text{rad/s}.$$ This agrees with the value found from the cosine relation. ✓ **(c) Rate of change of the area.** The triangle has legs $x$ and $y$, so $$A(t)=\frac12\,x(t)\,y(t).$$ Differentiate with the **product rule** (both legs vary): $$\frac{dA}{dt}=\frac12\left(\frac{dx}{dt}\,y+x\,\frac{dy}{dt}\right) =\frac12\Big((0.6)(4)+(3)(-0.45)\Big)=\frac12(2.4-1.35)=\frac12(1.05)=0.525\ \text{m}^2/\text{s}.$$ The area is **increasing** at $0.525$ m$^2$/s. **(d) When is $\dfrac{dA}{dt}=0$?** Substitute $y=\sqrt{25-x^2}$ and $\dfrac{dy}{dt}=-\dfrac{x}{y}\dfrac{dx}{dt}$ into the product rule: $$\frac{dA}{dt}=\frac12\left(y-\frac{x^2}{y}\right)\frac{dx}{dt}=\frac{y^2-x^2}{2y}\cdot\frac{dx}{dt}.$$ Since $\dfrac{dx}{dt}=0.6\ne 0$ and $y>0$, this vanishes exactly when $y^2=x^2$, i.e. (both being positive) $y=x$. Combined with $x^2+y^2=25$ this gives $2x^2=25$, so $$x=\frac{5}{\sqrt2}=\frac{5\sqrt2}{2}\approx 3.54\ \text{m}.$$ This is the isosceles position, and it is where the area is largest: $A=\frac12x y=\frac12\cdot\frac{25}{2}=6.25$ m$^2$. Consistently, our answer in (c) at $x=3<3.54$ was positive (area still growing), and the same formula at, say, $x=4$ gives $\frac{9-16}{2\cdot 3}(0.6)=-0.7$ m$^2$/s, negative as expected past the maximum. **Numerical check.** With $x(t)=3+0.6t$, $y(t)=\sqrt{25-x(t)^2}$: central differences at $t=0$ give $\frac{dy}{dt}\approx-0.45000$, $\frac{d}{dt}\arctan\!\big(y/x\big)\approx-0.15000$ and $\frac{d}{dt}\big(\frac12 xy\big)\approx0.52500$. All three match. ✓ **Answers.** (a) $-0.45$ m/s (down at $0.45$ m/s). (b) $-0.15$ rad/s. (c) $+0.525$ m$^2$/s. (d) $x=\dfrac{5\sqrt2}{2}\approx3.54$ m.Two straight roads leave a junction at an angle of . One car is driving away from the junction along the first road at a constant km/h, and another car is driving away from the junction along the second road at a constant km/h. (They passed through the junction at different times, so their two distances from it are independent data.) How fast is the distance between the two cars changing at the instant when the first car is km from the junction and the second is km from the junction?
(Law of cosines: .)
Show hint
The roads are not perpendicular, so Pythagoras does not apply — use the law of cosines with the fixed angle. Both and vary, so the cross term needs the product rule.
Show answer
Step 1 — name the variables. Let be the first car's distance from the junction, the second car's distance, and the distance between the cars, in km, in hours. Both cars are moving away from the junction, so
Step 2 — relate. The angle at the junction never changes, and , so the law of cosines gives, for all , (The number is a genuine constant, so it may be substituted now; , , may not.)
Step 3 — differentiate with respect to . The term requires the product rule:
Step 4 — find at the instant. With and , (Note : the cars are closer than they would be on perpendicular roads, exactly as the angle demands.)
Step 5 — substitute and solve.
2x\frac{dx}{dt}&=2(3)(80)=480,\\ 2y\frac{dy}{dt}&=2(4)(100)=800,\\ \frac{dx}{dt}\,y+x\,\frac{dy}{dt}&=(80)(4)+(3)(100)=320+300=620, \end{aligned}$$ so $$2\sqrt{13}\,\frac{dz}{dt}=480+800-620=660,$$ $$\frac{dz}{dt}=\frac{660}{2\sqrt{13}}=\frac{330}{\sqrt{13}}=\frac{330\sqrt{13}}{13}\approx 91.53\ \text{km/h}.$$ **Answer.** The cars are **separating** at $\dfrac{330\sqrt{13}}{13}\approx 91.5$ km/h. **Checks.** - *Sign.* Positive, as it must be: both cars are moving away from the junction along diverging roads, so the distance can only grow. - *Plausibility.* The separation rate is the component of the relative velocity along the line joining the cars, so it can never exceed the relative speed, which here is $\sqrt{80^2+100^2-2(80)(100)\cos 60^\circ}=\sqrt{8400}\approx 91.65$ km/h (the velocity vectors meet at the same $60^\circ$); our $91.53$ km/h is just under that ceiling. It also lies between the extreme cases $100-80=20$ km/h (roads at $\alpha=0^\circ$) and $80+100=180$ km/h (roads at $\alpha=180^\circ$). For comparison, at $\alpha=90^\circ$ with the same distances the rate would be $\frac{3(80)+4(100)}{5}=\frac{640}{5}=128$ km/h — larger, as a wider angle should give. - *Numerical.* With $x(t)=3+80t$, $y(t)=4+100t$ and $z(t)=\sqrt{x^2+y^2-xy}$, the central difference quotient at $t=0$ gives $91.5255$ km/h, matching $\frac{330}{\sqrt{13}}=91.52553$. **Why the wording of the instant matters.** If the two cars had left the junction *simultaneously*, then $x=80t$ and $y=100t$ would force $y=\frac54x$ for all $t$, so $x=3$ would mean $y=3.75$ km, not $4$ km: the stated instant could never occur, and the question would be about a state the system can never be in. Related-rates data must be consistent — the same check that rejects "a $13$ ft ladder whose foot is $15$ ft from the wall". Here the two distances are independent, so $(x,y)=(3,4)$ is a genuine instantaneous state and only $x$, $y$, $\frac{dx}{dt}$, $\frac{dy}{dt}$ at that instant enter the computation. **Common error.** Writing $z^2=x^2+y^2$ out of habit would give $z=5$ and $\frac{dz}{dt}=128$ km/h — a $40\%$ error. Always check whether the angle in the picture is actually a right angle.A lighthouse stands on a small island km from the nearest point on a long, straight shoreline. Its lamp rotates at a constant revolutions per minute, sweeping a beam across the shore. Let be the distance along the shore from to the spot where the beam strikes.
(a) How fast is the spot of light moving along the shore when it is km from ?
(b) How fast is it moving as it passes through itself?
(c) What happens to the speed of the spot as the beam turns toward being parallel to the shore, and why does the model fail there?
Show hint
Let be the angle between the beam and the perpendicular from the lighthouse to the shore, and relate to . Before differentiating, convert the rotation rate into the units the trigonometric derivative formulas require.
Show answer
Step 1 — name the variables and fix the units. Let be the angle (in radians) between the beam and the perpendicular segment from the lighthouse to , and the distance from to the illuminated spot, in km, with in minutes.
The rotation rate is given in revolutions per minute and must be converted, because is valid only for radians. Since revolution radians,
Step 2 — relate. The lighthouse, and the spot form a right triangle with legs (fixed) and , the angle being at the lighthouse. Hence for all with ,
Step 3 — differentiate with respect to .
Step 4 — part (a): substitute . Then , so and therefore
Answer (a). km/min, i.e. about km/h.
Step 5 — part (b): at . There , so and : Since with equality only at , this is the slowest the spot ever moves: the beam sweeps the shore most slowly right at the nearest point.
Step 6 — part (c). In general which increases without bound as (equivalently ). The idealised model therefore predicts arbitrarily large speeds. Nothing physical is violated: no object is moving — the spot is a geometric intersection point, not a body carrying energy — so its apparent speed may exceed any bound. What does fail is the geometry: at exactly the beam is parallel to the shore, the relation is undefined (as is ), and the beam never meets the shoreline at all. A real shoreline is also finite, and the beam grazes it long before this.
Checks.
- Units. , since radians are dimensionless. If you had used instead of for you would have got km/min — too small by the factor . That conversion is the whole point of the problem.
- Numerical. With and , the central difference quotient at gives km/min, matching . At it gives , matching .
- Consistency of (a) and (b). , and indeed at . ✓
