MAT1051 · Week 8 · Related Rates Problem, Extreme Values

Related rates and extreme values

The rate relationship between quantities that change with time (related rates), and finding the absolute maximum/minimum on a closed interval. Two classic word-problem types, worth many points.

related ratesrate of changeabsolute maximumabsolute minimumlocal maximumlocal minimumcritical numberFermat's theoremclosed interval methodExtreme Value Theorem

This week the derivative goes into the “real world” for the first time. There are two different question types, both word problems, and both come up very often. In a related rates question, connected quantities change with time; they give you the rate of one and ask for the rate of another. In an extrema question, you find the largest and smallest value of a function on an interval. Both have an algorithm; whoever knows the algorithm does not miss the question.

  1. In related rates, substitute the numbers last. First differentiate the general equation.
  2. The time variable is hidden. Every quantity is a function of tt, and when you differentiate the chain rule is automatically in play.
  3. The rate of a decreasing quantity is written as negative.
  4. Critical point: f′=0f'=0 or f′f' undefined.
  5. On a closed interval, test the endpoints too. The largest value often occurs at an endpoint.

If the radius of a balloon grows, its volume grows too. The relation V=43πr3V=\frac43\pi r^3 also gives a relation between the rates of change of the two quantities. To see this, differentiate both sides with respect to tt:

dVdt=4πr2drdt\frac{dV}{dt}=4\pi r^2\frac{dr}{dt}

Since rr is a function of tt, the derivative of r3r^3 is 3r2drdt3r^2\dfrac{dr}{dt} (chain rule). This formula is true at every moment. When you substitute the numbers at a specific moment, the unknown rate comes out.

The five-step method

1. Draw a figure. Give a letter to every changing quantity (x, y, r, h, θ).
2. Write the given and the asked as derivatives:  dx/dt = 0.5,  dy/dt = ?
3. Set up the equation linking the variables (Pythagoras, volume, similar triangles, tan).
4. Differentiate the equation with respect to t.
5. Substitute the values at that moment (computing them from the equation if needed), and solve.

Example 1 (area). The radius of a circular oil slick grows at 22 m/s. How fast does the area grow when the radius is 3030 m?

A=πr2⇒dAdt=2πrdrdt=2π(30)(2)=120π≈377A=\pi r^2 \Rightarrow \dfrac{dA}{dt}=2\pi r\dfrac{dr}{dt}=2\pi(30)(2)=120\pi\approx377 m²/s.

Example 2 (Pythagoras). A plane flies horizontally at an altitude of 33 km at 500500 km/h and has just passed directly over a radar station. How fast is the distance between the radar and the plane increasing when it is 55 km?

x: horizontal distance along the ground, D: radar-plane distance, altitude constant 3
D^2 = x^2 + 9                  (the constant 3 can be written before differentiating, it doesn't change)
2D D' = 2x x'   ->   D' = x x' / D
at that moment: D = 5  ->  x = sqrt(25 - 9) = 4
D' = 4 · 500 / 5 = 400 km/h

Example 3 (angle). A camera is 3030 m from a launch pad. A rocket rises vertically at 1010 m/s. How fast is the camera’s angle of elevation changing when the rocket is at a height of 4040 m?

tan⁡θ=h30\tan\theta=\dfrac{h}{30}. Derivative: sec⁡2θ⋅θ′=h′30\sec^2\theta\cdot\theta'=\dfrac{h'}{30}. At that moment tan⁡θ=43\tan\theta=\tfrac43, sec⁡2θ=1+169=259\sec^2\theta=1+\tfrac{16}{9}=\tfrac{25}{9}. θ′=1030⋅925=325=0.12\theta'=\dfrac{10}{30}\cdot\dfrac{9}{25}=\dfrac{3}{25}=0.12 rad/s.

PITFALL · substituting the number before differentiating. In the ladder problem, if you put x=5x=5 before differentiating, you get 25+y2=16925+y^2=169, the derivative is 2yy′=02yy'=0, and the result is nonsense. Substitute the instantaneous value of a changing quantity only after differentiating. Constants that do not change (the ladder length 1313, the cone’s r/hr/h ratio, the plane’s altitude) can be substituted beforehand.

Cones and similar triangles

In cone problems V=13πr2hV=\frac13\pi r^2h has two variables. The water depth and the surface radius are linked by similar triangles: rh=RH\dfrac rh=\dfrac{R}{H} (the tank’s dimensions). Write rr in terms of hh, reduce VV to a single variable, then differentiate. That way you don’t have to deal with a second unknown rate like drdt\dfrac{dr}{dt}.

Extreme values

  • If f(c)≥f(x)f(c)\ge f(x) for every xx in the domain, f(c)f(c) is the absolute maximum.
  • If f(c)≥f(x)f(c)\ge f(x) for every xx near cc, it is a local maximum. For a minimum the inequality is reversed.

Extreme Value Theorem: if ff is continuous on the closed interval [a,b][a,b], an absolute maximum and minimum definitely exist. On an open interval or for a discontinuous function there is no guarantee: 1x\tfrac1x attains neither a max nor a min on (0,1)(0,1).

Fermat’s theorem and critical points

If ff has a local extremum at an interior point cc and f′(c)f'(c) exists, then f′(c)=0f'(c)=0. At a peak or a valley the tangent is horizontal.

So the candidates for extrema are the critical numbers: the values cc where ff is defined and f′(c)=0f'(c)=0 or f′(c)f'(c) is undefined.

The converse is not true: for f(x)=x3f(x)=x^3, f′(0)=0f'(0)=0 but there is no extremum at 00, the graph passes straight through and keeps increasing. A critical point is a candidate, not a guarantee.

Example 4 (a critical point at a corner). f(x)=x1/3(4−x)=4x1/3−x4/3f(x)=x^{1/3}(4-x)=4x^{1/3}-x^{4/3}.

f′(x)=43x−2/3−43x1/3=43x−2/3(1−x)=4(1−x)3x23f'(x)=\frac43x^{-2/3}-\frac43x^{1/3}=\frac43x^{-2/3}(1-x)=\frac{4(1-x)}{3\sqrt[3]{x^2}}

f′=0f'=0: x=1x=1. f′f' undefined: x=0x=0, and f(0)=0f(0)=0 is defined. The critical points are 00 and 11. A root left in the denominator with fractional powers always produces a critical point; this is the candidate most often forgotten on exams.

The closed interval method

To find the absolute extrema of ff continuous on [a,b][a,b]:

1. Compute f'(x), find the critical points inside (a,b).
2. Evaluate f at the critical points and at the endpoints a, b.
3. The largest value is the absolute max, the smallest value is the absolute min.

No need for the second derivative test or a sign table. Just a table of values.

Example 5. f(x)=2x3−3x2−12x+1f(x)=2x^3-3x^2-12x+1, [−2,3][-2,3].

f′(x)=6x2−6x−12=6(x−2)(x+1)f'(x)=6x^2-6x-12=6(x-2)(x+1). The critical points are −1-1 and 22, both in the interval.

xx−2-2 (endpoint)−1-12233 (endpoint)
f(x)f(x)−3-388−19-19−8-8

The absolute maximum is 88 (at x=−1x=-1), the absolute minimum is −19-19 (at x=2x=2). In the answer write both the value and the location; if the question says “values” give the value, if it says “where” give the location.

PITFALL · a critical point outside the interval. When working on the interval [0,1][0,1], if the critical point x=2x=2 comes out, do not put it in the table. A value outside the interval does not determine the max/min on the interval.

PITFALL · forgetting an endpoint. If Example 5 had been on [−2,4][-2,4], f(4)=128−48−48+1=33f(4)=128-48-48+1=33 would be the largest value. The max is not at a critical point just because the tangent is horizontal there.

Common mistakes

Wrong thinkingCorrect
Substituting numbers before differentiatingFirst differentiate the general equation, then substitute the values at that moment
Writing the rate of a decreasing quantity as positiveAn approaching car, a draining tank: the rate is negative
Differentiating with rr and hh together in a cone problemEliminate rr first with similar triangles
Not computing the unknown side at that momentFind the value at that moment with Pythagoras or the equation
Not writing unitsm/s, cm³/s, rad/s
f′(c)=0f'(c)=0 means an extremumA candidate; at x3x^3, 00 is not an extremum
A critical point is only f′=0f'=0Points where f′f' is undefined count too (00 in x2/3x^{2/3})
Skipping the endpoints for absolute extremaThe endpoints always go in the table
Writing the xx that gives the max as the answerIf “maximum value” is asked, it is f(c)f(c)

Test yourself

Exam-style questions. Solve them on paper first, then reveal the answer.

Question 1easy

The edge of a cube is increasing at 0.20.2 cm/s. How fast is the volume increasing when the edge is 55 cm?

Show answer
15 cm³/s

V=x3V=x^3. Derivative with respect to time: dVdt=3x2dxdt\dfrac{dV}{dt}=3x^2\dfrac{dx}{dt}. With x=5x=5, dxdt=0.2\dfrac{dx}{dt}=0.2: 3⋅25⋅0.2=153\cdot25\cdot0.2=15 cm³/s.

Question 2medium

A 1313 m ladder leans against a vertical wall. The bottom slides away from the wall at 0.50.5 m/s. How fast is the top sliding down when the bottom is 55 m from the wall?

Show answer
5/24 m/s (dy/dt = -5/24)

xx: distance from the wall, yy: height of the top. x2+y2=169x^2+y^2=169. At that moment x=5x=5, y=169−25=12y=\sqrt{169-25}=12. Derivative: 2xx′+2yy′=0⇒y′=−xx′y=−5⋅0.512=−5242xx'+2yy'=0 \Rightarrow y'=-\dfrac{xx'}{y}=-\dfrac{5\cdot0.5}{12}=-\dfrac{5}{24} m/s. The minus sign shows it is moving down; the speed is 524≈0.208\tfrac{5}{24}\approx0.208 m/s.

Question 3medium

Water flows at 22 m³/min into a conical tank (vertex down) of height 66 m and top radius 33 m. How fast is the water level rising when the water is 44 m deep?

Show answer
1/(2π) m/min ≈ 0.159 m/min

Similar triangles: rh=36⇒r=h2\dfrac rh=\dfrac36 \Rightarrow r=\dfrac h2. V=13πr2h=πh312V=\dfrac13\pi r^2h=\dfrac{\pi h^3}{12}. Derivative: dVdt=πh24dhdt\dfrac{dV}{dt}=\dfrac{\pi h^2}{4}\dfrac{dh}{dt}. At h=4h=4: 2=4πdhdt⇒dhdt=12π2=4\pi\dfrac{dh}{dt} \Rightarrow \dfrac{dh}{dt}=\dfrac{1}{2\pi} m/min. Eliminating rr before differentiating reduces the problem to one variable.

Question 4easy

Air is pumped into a spherical balloon at 100100 cm³/s. How fast is the radius increasing when the radius is 55 cm?

Show answer
1/π cm/s ≈ 0.318 cm/s

V=43πr3⇒dVdt=4πr2drdtV=\dfrac43\pi r^3 \Rightarrow \dfrac{dV}{dt}=4\pi r^2\dfrac{dr}{dt}. 100=4π⋅25⋅drdt⇒drdt=100100π=1π100=4\pi\cdot25\cdot\dfrac{dr}{dt} \Rightarrow \dfrac{dr}{dt}=\dfrac{100}{100\pi}=\dfrac1\pi cm/s.

Question 5medium

Car A is 0.60.6 km east of an intersection, driving west toward it at 6060 km/h. Car B is 0.80.8 km north of the intersection, driving north at 7575 km/h. At what rate is the distance between the cars changing?

Show answer
increasing at 24 km/h

xx: A's distance, yy: B's distance, D2=x2+y2D^2=x^2+y^2. At that moment D=0.36+0.64=1D=\sqrt{0.36+0.64}=1. x′=−60x'=-60 (approaching), y′=+75y'=+75. DD′=xx′+yy′⇒D′=0.6(−60)+0.8(75)1=−36+60=24DD'=xx'+yy' \Rightarrow D'=\dfrac{0.6(-60)+0.8(75)}{1}=-36+60=24 km/h. Positive: the distance is increasing.

Question 6medium

Find the absolute maximum and minimum values of f(x)=x3−6x2+9x+1f(x)=x^3-6x^2+9x+1 on [0,4][0,4].

Show answer
max 5 (at x = 1 and x = 4), min 1 (at x = 0 and x = 3)

f′(x)=3x2−12x+9=3(x−1)(x−3)f'(x)=3x^2-12x+9=3(x-1)(x-3). The critical points are 11 and 33, both in the interval. Table: f(0)=1f(0)=1, f(1)=1−6+9+1=5f(1)=1-6+9+1=5, f(3)=27−54+27+1=1f(3)=27-54+27+1=1, f(4)=64−96+36+1=5f(4)=64-96+36+1=5. The largest is 55 and the smallest is 11; each is attained at two points.

Question 7medium

Find the critical numbers of f(x)=x2/3(x−5)f(x)=x^{2/3}(x-5).

Show answer
x = 0 and x = 2

Expand: f=x5/3−5x2/3f=x^{5/3}-5x^{2/3}. f′=53x2/3−103x−1/3=53x−1/3(x−2)=5(x−2)3x3f'=\tfrac53x^{2/3}-\tfrac{10}{3}x^{-1/3}=\tfrac53x^{-1/3}(x-2)=\dfrac{5(x-2)}{3\sqrt[3]{x}}. f′=0f'=0: x=2x=2. f′f' undefined: x=0x=0 (and f(0)=0f(0)=0 is defined). Both are critical points.

Question 8medium

Find the absolute extreme values of f(x)=xe−xf(x)=xe^{-x} on [0,3][0,3].

Show answer
max 1/e at x = 1, min 0 at x = 0

f′(x)=e−x−xe−x=e−x(1−x)f'(x)=e^{-x}-xe^{-x}=e^{-x}(1-x). e−x>0e^{-x}>0, so the only critical point is x=1x=1. f(0)=0f(0)=0, f(1)=e−1≈0.368f(1)=e^{-1}\approx0.368, f(3)=3e−3≈0.149f(3)=3e^{-3}\approx0.149. Max 1e\tfrac1e, min 00.

Question 9easy

Find the absolute maximum and minimum of f(x)=sin⁡x+cos⁡xf(x)=\sin x+\cos x on [0,π][0,\pi].

Show answer
max √2 at x = π/4, min -1 at x = π

f′=cos⁡x−sin⁡x=0⇒tan⁡x=1⇒x=π4f'=\cos x-\sin x=0 \Rightarrow \tan x=1 \Rightarrow x=\tfrac{\pi}{4} (the only solution in the interval). f(0)=1f(0)=1, f(π4)=22+22=2f(\tfrac\pi4)=\tfrac{\sqrt2}{2}+\tfrac{\sqrt2}{2}=\sqrt2, f(π)=0−1=−1f(\pi)=0-1=-1.

Question 10medium

Find the absolute extreme values of f(x)=x−2ln⁡xf(x)=x-2\ln x on [1,e2][1,e^2].

Show answer
min 2 - 2 ln 2 at x = 2; max e² - 4 at x = e²

f′(x)=1−2x=x−2xf'(x)=1-\dfrac2x=\dfrac{x-2}{x}. The critical point is x=2x=2 (1<2<e2≈7.391<2<e^2\approx7.39). f(1)=1f(1)=1, f(2)=2−2ln⁡2≈0.614f(2)=2-2\ln2\approx0.614, f(e2)=e2−4≈3.389f(e^2)=e^2-4\approx3.389. Min 2−2ln⁡22-2\ln2, max e2−4e^2-4.

Question 11hard

A person 1.81.8 m tall walks away from a 66 m street lamp at 1.41.4 m/s. How fast is the length of the shadow increasing, and how fast is the tip of the shadow moving?

Show answer
shadow: 0.6 m/s; tip: 2 m/s

xx: distance from the lamp, ss: length of the shadow. Similar triangles: s1.8=x+s6⇒6s=1.8x+1.8s⇒s=3x7\dfrac{s}{1.8}=\dfrac{x+s}{6} \Rightarrow 6s=1.8x+1.8s \Rightarrow s=\dfrac{3x}{7}. s′=37x′=37(1.4)=0.6s'=\dfrac37x'=\dfrac37(1.4)=0.6 m/s. The distance of the tip from the lamp is x+sx+s, with speed 1.4+0.6=21.4+0.6=2 m/s. The answer does not depend on the value of xx.

Question 12hard

Find aa and bb so that f(x)=x3+ax2+bxf(x)=x^3+ax^2+bx has critical numbers at x=−1x=-1 and x=3x=3.

Show answer
a = -3, b = -9

f′(x)=3x2+2ax+bf'(x)=3x^2+2ax+b. The quadratic with roots −1-1 and 33 and leading coefficient 33 is 3(x+1)(x−3)=3x2−6x−93(x+1)(x-3)=3x^2-6x-9. Equate the coefficients: 2a=−6⇒a=−32a=-6 \Rightarrow a=-3, b=−9b=-9.

Verification: All answers were checked with node (verify/MAT1051/08.mjs): in the related rates questions the quantities were modeled as explicit functions of time and a numerical derivative was taken at the given moment; absolute extrema by scanning the interval at 200000 points, critical points verified with a numerical derivative.

Review card

RELATED RATES: 1) draw a figure, name the variables 2) write the given/asked rate (d?/dt) 3) an equation linking the variables 4) differentiate with respect to t (chain rule!) 5) substitute numbers LAST Substitute constants (ladder length, cone ratio) before differentiating; NEVER the changing quantities The rate of a decreasing quantity is NEGATIVE Cone: eliminate r with the ratio r/h Pythagoras: x x' + y y' = D D' EXTREMA: critical number = f' = 0 or f' undefined (and f defined) Closed interval method: critical points + endpoints -> table of f values -> largest/smallest Fermat: local extremum at an interior point and f' exists -> f' = 0 (converse false: x^3, x = 0) Max-min theorem: continuous + closed interval -> absolute max and min definitely exist