MATH 140 Calculus 1 • McGill University, Montreal

Corrected exercises: maximum and minimum values (MATH 140)

This is the corrected exercise set for maximum and minimum values in MATH 140, Calculus 1, at McGill University, section 4.1 of Stewart. It opens the applications of the derivative: before a graph can be sketched or a quantity optimized, the candidates for an extremum must be found and compared. Every number is exact and chosen to be done by hand, as on the course's exams, and every solution names the theorem it uses and checks its hypotheses first.

The thread running through the whole set: Fermat NOMINATES, the table DECIDES. A critical number, where f′(c)=0f'(c) = 0 or f′(c)f'(c) does not exist, is only a candidate, since x3x^3 has a horizontal tangent and no extremum. On a closed interval where ff is continuous, the Extreme Value Theorem guarantees that the absolute extrema exist, and the closed interval method finds them with a list, the critical numbers inside the interval plus the two endpoints, and a comparison of exact values.

The traps named in the solutions: calling an endpoint a local extremum, missing a corner or a cusp because only f′(x)=0f'(x) = 0 was solved, counting a point outside the domain as critical, keeping a critical number outside the interval, forgetting the endpoints, applying the method across a discontinuity, treating f′(c)=0f'(c) = 0 as a verdict, answering a maximum that is approached but never reached, and comparing exact values with a decimal from memory instead of an inequality.

10 corrected exercises • 100 points • 150 minutes

Revision sheet for this chapter → Every MATH 140 chapter →

Self-checking set Type your answers under each question: the page tells you right or wrong before you open the solution. With an account, every answer right on the first try earns points.

Course recap

  • • f(c)f(c) is an absolute maximum on DD if f(c)≥f(x)f(c) \ge f(x) for all x∈Dx \in D; a local maximum if f(c)≥f(x)f(c) \ge f(x) for all xx in some open interval around cc. Never local at an endpoint.
  • • Extreme Value Theorem: ff continuous on a closed interval [a,b][a, b] implies ff attains an absolute maximum and an absolute minimum on [a,b][a, b].
  • • Fermat's theorem: local extremum at cc and f′(c)f'(c) exists imply f′(c)=0f'(c) = 0. The converse is false: x3x^3 at 00.
  • • Critical number: cc in the domain of ff with f′(c)=0f'(c) = 0 or f′(c)f'(c) undefined (∣x∣|x|, x2/3x^{2/3} at 00).
  • • Closed interval method: check continuity on [a,b][a, b]; evaluate ff at the critical numbers in (a,b)(a, b) and at aa and bb; the largest value is the absolute maximum, the smallest the absolute minimum.
  • • An absolute extremum reached at an interior point of an interval is also a local extremum.

Part A: the basics (/50)

Exercise 1: Reading extrema on a graph: absolute, local, and the endpoints

Definitions of Stewart, the ones MATH 140 uses. f(c)f(c) is the absolute maximum value of ff on a set DD if f(c)≥f(x)f(c) \ge f(x) for ALL xx in DD. f(c)f(c) is a local maximum value if f(c)≥f(x)f(c) \ge f(x) for all xx NEAR cc, that is, on some open interval containing cc. Minimum values are defined the same way with ≤\le. Because an open interval around cc is required, a local extremum never occurs at an endpoint of the domain.

A critical number of ff is a number cc in the domain of ff such that f′(c)=0f'(c) = 0 or f′(c)f'(c) does not exist. The figure shows the graph of a function ff that is continuous on [0,10][0, 10]. It has a corner at x=4x = 4, a horizontal tangent at x=2x = 2, x=6x = 6 and x=8x = 8, and is differentiable everywhere else in (0,10)(0, 10). The endpoints are (0,7)(0, 7) and (10,4)(10, 4).

1234567891012345678y = f(x)x
  • a) Find the absolute maximum and minimum values of ff on [0,10][0, 10], and where they occur.
  • b) Find the local maximum and local minimum values of ff. Is f(0)=7f(0) = 7 a local maximum value?
  • c) List the critical numbers of ff in (0,10)(0, 10). For each one, say whether f′=0f' = 0 or f′f' does not exist there, and whether ff has a local extremum there.
  • d) Now consider ff on the open interval (0,10)(0, 10) only. Does it have an absolute maximum? An absolute minimum? Does this contradict the Extreme Value Theorem?
  • e) Now consider ff on [2,10][2, 10]. Find its absolute maximum and minimum values, and explain why the local maximum of b) has become absolute.

Type your answers, the page tells you right or wrong 0/15

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) Absolute max 77 at x=0x = 0; absolute min 11 at x=8x = 8
  • b) Local max 55 at x=4x = 4; local min 22 at x=2x = 2 and 11 at x=8x = 8. f(0)f(0) is not a local max (endpoint).
  • c) 22, 66, 88 (f′=0f' = 0) and 44 (f′f' undefined); no extremum at x=6x = 6
  • d) No absolute max (values approach 77, never reach it); absolute min 11 at x=8x = 8. No contradiction: the interval is not closed.
  • e) Absolute max 55 at x=4x = 4, absolute min 11 at x=8x = 8

a) The absolute maximum is the highest point of the WHOLE graph: f(0)=7f(0) = 7, at the left endpoint. The absolute minimum is the lowest point: f(8)=1f(8) = 1. Two different questions are hidden in each answer, the VALUE (77, 11) and the PLACE (x=0x = 0, x=8x = 8); a marker who asks for the value and reads x=8x = 8 gives no mark. Every other point of the graph lies strictly between 11 and 77: the smooth bump at x=2x = 2 bottoms out at 22, the corner at x=4x = 4 peaks at 55, and the right endpoint is at 44.

b) Local maximum value: f(4)=5f(4) = 5, at the corner: on a small open interval around 44, no value exceeds 55. Local minimum values: f(2)=2f(2) = 2 and f(8)=1f(8) = 1; the second one is also the absolute minimum, and an absolute extremum reached at an INTERIOR point is always a local one. f(0)=7f(0) = 7 is NOT a local maximum value with Stewart's definition: there is no open interval around 00 inside the domain [0,10][0, 10], so the condition cannot even be tested. It is the absolute maximum, which is a statement about the whole domain. The same holds for f(10)=4f(10) = 4. Note also that the local minimum value 22 is smaller than the local maximum value 55 here, but nothing forces that order: local means compared with the neighbours only.

c) Horizontal tangents give f′(c)=0f'(c) = 0: c=2c = 2, c=6c = 6 and c=8c = 8. The corner at x=4x = 4 has two different one-sided slopes, so f′(4)f'(4) does not exist: 44 is a critical number too, and it is the one a student who only solves f′(x)=0f'(x) = 0 misses. So the critical numbers in (0,10)(0, 10) are 22, 44, 66, 88. Local extrema at 22 (min), 44 (max), 88 (min); none at 66, where the graph comes down, flattens, and keeps coming down: f(x)>3f(x) > 3 just to the left of 66 and f(x)<3f(x) < 3 just to the right. This is the whole chapter in one picture: every local extremum inside the interval sits at a critical number, but a critical number is only a CANDIDATE.

d) On (0,10)(0, 10), the value 77 is no longer available: as x→0+x \to 0^+ the values f(x)f(x) climb toward 77, but every f(x)f(x) with 0<x≤100 < x \le 10 is strictly less than 77 (the graph decreases from 77 on [0,2][0, 2] and stays at or below 55 beyond). There is no largest value, since any value below 77 is beaten by a point closer to 00: NO absolute maximum. The absolute minimum f(8)=1f(8) = 1 is still there, because 88 is an interior point. No contradiction with the Extreme Value Theorem: its hypothesis is a CLOSED interval, and that hypothesis fails here. The theorem says nothing about open intervals; it neither promises nor forbids extrema there.

e) On [2,10][2, 10] the candidates are the endpoints 22 and 1010 and the critical numbers inside, 44, 66, 88. Values: f(2)=2f(2) = 2, f(4)=5f(4) = 5, f(6)=3f(6) = 3, f(8)=1f(8) = 1, f(10)=4f(10) = 4. Absolute maximum 55 at x=4x = 4, absolute minimum 11 at x=8x = 8. The local maximum at 44 became absolute because the only point higher than 55, the left part of the graph near x=0x = 0, is no longer in the domain. Absolute is always relative to a DOMAIN: change the interval, and the answer can change even though the graph did not.

Tick the exercises you have done or want to review: a free account, no password, keeps your ticks from one visit to the next and tells you which chapter to tackle next. Create your space, an email is enough.

Exercise 2: Finding critical numbers: zeros of f', points where f' does not exist, and the domain

A critical number of ff is a number cc in the DOMAIN of ff such that either f′(c)=0f'(c) = 0 or f′(c)f'(c) does not exist. The definition has three parts, and each costs marks when it is skipped: solve f′(x)=0f'(x) = 0; find where the formula of f′f' breaks down while ff itself is defined; and discard every number that is not in the domain of ff.

Write f′f' as a single fraction, factored, before reading anything off it: the numerator gives the zeros, the denominator gives the points where f′f' does not exist.

  • a) f(x)=2x3−3x2−12x+1f(x) = 2x^3 - 3x^2 - 12x + 1.
  • b) g(x)=x1/3(8−x)g(x) = x^{1/3}(8 - x).
  • c) q(x)=x2x−1q(x) = \frac{x^2}{x - 1}.
  • d) s(θ)=2cos⁡θ+sin⁡2θs(\theta) = 2\cos\theta + \sin 2\theta. Give all critical numbers, then those in [0,2π)[0, 2\pi).
  • e) k(x)=∣x2−4∣k(x) = |x^2 - 4|.

Type your answers, the page tells you right or wrong 0/10

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) x=−1x = -1 and x=2x = 2
  • b) x=2x = 2 (g′=0g' = 0) and x=0x = 0 (g′g' undefined)
  • c) x=0x = 0 and x=2x = 2; x=1x = 1 is not in the domain, so it is not critical
  • d) θ=π6+2kπ\theta = \frac{\pi}{6} + 2k\pi, 5π6+2kπ\frac{5\pi}{6} + 2k\pi, 3π2+2kπ\frac{3\pi}{2} + 2k\pi; in [0,2π)[0, 2\pi): π6\frac{\pi}{6}, 5π6\frac{5\pi}{6}, 3π2\frac{3\pi}{2}
  • e) x=−2x = -2, 00, 22 (k′=0k' = 0 at 00, undefined at ±2\pm 2)

a) By the power rule, f′(x)=6x2−6x−12=6(x2−x−2)=6(x−2)(x+1)f'(x) = 6x^2 - 6x - 12 = 6(x^2 - x - 2) = 6(x - 2)(x + 1). A polynomial is differentiable everywhere, so there is no point where f′f' fails to exist, and the critical numbers are the zeros: x=−1x = -1 and x=2x = 2. Check by substitution: f′(2)=24−12−12=0f'(2) = 24 - 12 - 12 = 0 and f′(−1)=6+6−12=0f'(-1) = 6 + 6 - 12 = 0. Nothing is said yet about maxima or minima: the question asks for the candidates only.

b) Expand first, to differentiate term by term: g(x)=8x1/3−x4/3g(x) = 8x^{1/3} - x^{4/3}, so g′(x)=83x−2/3−43x1/3g'(x) = \frac{8}{3}x^{-2/3} - \frac{4}{3}x^{1/3}. Factor out 43x−2/3\frac{4}{3}x^{-2/3}: g′(x)=43x−2/3(2−x)=4(2−x)3x2/3g'(x) = \frac{4}{3}x^{-2/3}(2 - x) = \frac{4(2 - x)}{3x^{2/3}}. The numerator vanishes at x=2x = 2. The denominator vanishes at x=0x = 0, where g′g' does not exist, while g(0)=0g(0) = 0 is perfectly defined (the cube root of 00 is 00): 00 IS a critical number. Critical numbers: 00 and 22. The graph has a vertical tangent at the origin, and a student who only solves g′(x)=0g'(x) = 0 loses it.

c) By the quotient rule, q′(x)=2x(x−1)−x2⋅1(x−1)2=x2−2x(x−1)2=x(x−2)(x−1)2q'(x) = \frac{2x(x - 1) - x^2 \cdot 1}{(x - 1)^2} = \frac{x^2 - 2x}{(x - 1)^2} = \frac{x(x - 2)}{(x - 1)^2}. Zeros of the numerator: x=0x = 0 and x=2x = 2, both in the domain. The denominator vanishes at x=1x = 1, but 11 is NOT in the domain of qq (q(1)q(1) would divide by 00), so 11 is NOT a critical number. It matters later: a vertical asymptote is not a place where qq can have a maximum or a minimum, since qq has no value there. Critical numbers: 00 and 22.

d) By the chain rule with inner function 2θ2\theta, (sin⁡2θ)′=2cos⁡2θ(\sin 2\theta)' = 2\cos 2\theta, so s′(θ)=−2sin⁡θ+2cos⁡2θs'(\theta) = -2\sin\theta + 2\cos 2\theta. Use cos⁡2θ=1−2sin⁡2θ\cos 2\theta = 1 - 2\sin^2\theta to get a single trigonometric function: s′(θ)=−2sin⁡θ+2−4sin⁡2θ=−2(2sin⁡2θ+sin⁡θ−1)=−2(2sin⁡θ−1)(sin⁡θ+1)s'(\theta) = -2\sin\theta + 2 - 4\sin^2\theta = -2(2\sin^2\theta + \sin\theta - 1) = -2(2\sin\theta - 1)(\sin\theta + 1). So sin⁡θ=12\sin\theta = \frac{1}{2} or sin⁡θ=−1\sin\theta = -1. The first gives θ=π6+2kπ\theta = \frac{\pi}{6} + 2k\pi and θ=5π6+2kπ\theta = \frac{5\pi}{6} + 2k\pi; the second gives θ=3π2+2kπ\theta = \frac{3\pi}{2} + 2k\pi, for every integer kk. In [0,2π)[0, 2\pi): π6\frac{\pi}{6}, 5π6\frac{5\pi}{6}, 3π2\frac{3\pi}{2}. The classic loss is to keep only π6\frac{\pi}{6} from sin⁡θ=12\sin\theta = \frac{1}{2}: the sine takes each value in (−1,1)(-1, 1) twice per period.

e) Remove the absolute value by cases. For ∣x∣>2|x| > 2, x2−4>0x^2 - 4 > 0 and k(x)=x2−4k(x) = x^2 - 4, so k′(x)=2xk'(x) = 2x, never 00 there. For ∣x∣<2|x| < 2, k(x)=4−x2k(x) = 4 - x^2 and k′(x)=−2xk'(x) = -2x, which vanishes at x=0x = 0. At x=2x = 2 the two formulas give one-sided slopes −4-4 (from the left) and 44 (from the right): k′(2)k'(2) does not exist, and by symmetry neither does k′(−2)k'(-2). Critical numbers: −2-2, 00, 22. The corners of an absolute value sit exactly where the inside changes sign, and they are critical numbers even though no equation k′(x)=0k'(x) = 0 will ever produce them.

Exercise 3: The Extreme Value Theorem: which hypothesis fails, and what survives

Extreme Value Theorem. If ff is continuous on a closed interval [a,b][a, b], then ff attains an absolute maximum value f(c)f(c) and an absolute minimum value f(d)f(d) at some numbers cc and dd in [a,b][a, b].

Two hypotheses, CONTINUOUS and CLOSED interval, and one conclusion, the two extrema EXIST. For each function below, say whether the hypotheses hold, then find the absolute extrema that exist. The figure shows the function of part d), with a hollow dot at (1,2)(1, 2) and a full dot at (1,0)(1, 0).

0.511.520.511.522.5y = f(x)x
  • a) f(x)=1xf(x) = \frac{1}{x} on [1,3][1, 3].
  • b) f(x)=1xf(x) = \frac{1}{x} on (0,2](0, 2].
  • c) f(x)=x2f(x) = x^2 on (−1,2)(-1, 2).
  • d) f(x)=x+1f(x) = x + 1 for 0≤x<10 \le x < 1 and f(x)=x−1f(x) = x - 1 for 1≤x≤21 \le x \le 2.
  • e) f(x)=cos⁡xf(x) = \cos x on (−π,3π)(-\pi, 3\pi). What does this example say about the converse of the theorem?

Type your answers, the page tells you right or wrong 0/15

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) Hypotheses hold; max 11 at x=1x = 1, min 13\frac{1}{3} at x=3x = 3
  • b) Not closed; no absolute max, absolute min 12\frac{1}{2} at x=2x = 2
  • c) Not closed; no absolute max, absolute min 00 at x=0x = 0
  • d) Not continuous at 11; no absolute max, absolute min 00 at x=1x = 1
  • e) Not closed, yet max 11 at x=0,2πx = 0, 2\pi and min −1-1 at x=πx = \pi: the hypotheses are sufficient, not necessary.

a) 1x\frac{1}{x} is a rational function, continuous wherever it is defined, and 0∉[1,3]0 \notin [1, 3]: it is continuous on the closed interval [1,3][1, 3], and the EVT guarantees both extrema. To find them: f′(x)=−1x2f'(x) = -\frac{1}{x^2} is never 00 and exists on all of [1,3][1, 3], so there is no critical number and the extrema are at the endpoints: f(1)=1f(1) = 1 is the absolute maximum, f(3)=13f(3) = \frac{1}{3} the absolute minimum. Writing both hypotheses, with the reason for continuity (00 is outside the interval), is what earns the theorem's mark.

b) 1x\frac{1}{x} is continuous on (0,2](0, 2], but the interval is not closed: the EVT does not apply. As x→0+x \to 0^+, 1x→∞\frac{1}{x} \to \infty, so the values are unbounded above and there is NO absolute maximum. The absolute minimum exists: for 0<x≤20 < x \le 2, 1x≥12\frac{1}{x} \ge \frac{1}{2}, with equality at x=2x = 2. So the minimum 12\frac{1}{2} is attained at x=2x = 2. The missing endpoint 00 is exactly where the maximum escapes.

c) x2x^2 is continuous, but (−1,2)(-1, 2) is open. For −1<x<2-1 < x < 2 we have 0≤x2<40 \le x^2 < 4: the values come as close to 44 as we like when x→2−x \to 2^-, but 44 itself would need x=2x = 2 (or x=−2x = -2), which is not in the interval. So there is NO absolute maximum. The absolute minimum 00 is attained at x=0x = 0, an interior point. Answering max 44 at x=2x = 2 is the most common error on this type of question: a value that is approached but never taken is not a maximum.

d) The interval [0,2][0, 2] is closed, but ff is not continuous at x=1x = 1: the left-hand limit is lim⁡x→1−(x+1)=2\lim_{x\to 1^-}(x + 1) = 2 while f(1)=0f(1) = 0. The EVT does not apply. On [0,1)[0, 1) the values fill [1,2)[1, 2), and on [1,2][1, 2] they fill [0,1][0, 1]. The value 22 is approached from the left of 11 but never taken (hollow dot): NO absolute maximum. The absolute minimum is 00, at x=1x = 1 (full dot). On the figure, the top of the left segment ends in a hole, and that hole is the missing maximum.

e) The interval is open, so the EVT does not apply, yet both extrema exist: cos⁡x≤1\cos x \le 1 with equality at x=0x = 0 and x=2πx = 2\pi, both in (−π,3π)(-\pi, 3\pi), and cos⁡x≥−1\cos x \ge -1 with equality at x=πx = \pi (the other solutions −π-\pi and 3π3\pi are excluded, but π\pi is enough). The theorem is an IMPLICATION: continuous on a closed interval implies extrema exist. When a hypothesis fails, the theorem is silent, and the extrema may or may not exist, as b), c), d) and e) show. Its converse, if the extrema exist then ff is continuous on a closed interval, is false.

Exercise 4: Fermat's theorem: what it says, and the converse that fails

Fermat's theorem. If ff has a local maximum or minimum at cc, and if f′(c)f'(c) exists, then f′(c)=0f'(c) = 0.

Read it as a filter: it tells you where local extrema CAN be (at critical numbers), never where they ARE. The figure shows u(x)=x4−4x3u(x) = x^4 - 4x^3, used in part e). In this chapter, a local extremum is proved from its DEFINITION, by comparing f(x)f(x) with f(c)f(c) near cc, or by an algebraic inequality.

-2-112345-30-25-20-15-10-5510152025y = u(x)
  • a) Show that f(x)=x3f(x) = x^3 satisfies f′(0)=0f'(0) = 0 but has no local extremum at 00. Which statement does this refute?
  • b) Show that g(x)=∣x∣g(x) = |x| has a minimum at 00 although g′(0)g'(0) does not exist. Does this contradict Fermat's theorem?
  • c) h(x)=xh(x) = x on [0,1][0, 1] has its absolute maximum at x=1x = 1, and h′(1)=1≠0h'(1) = 1 \ne 0. Does this contradict Fermat's theorem?
  • d) Prove that p(x)=x5+x3+2x−7p(x) = x^5 + x^3 + 2x - 7 has no local maximum and no local minimum.
  • e) For u(x)=x4−4x3u(x) = x^4 - 4x^3: find the critical numbers; show that uu has no local extremum at 00 by looking at the sign of uu near 00; then prove that u(3)u(3) is the absolute minimum value of uu by factoring u(x)+27u(x) + 27.

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) f(x)<0=f(0)<f(x′)f(x) < 0 = f(0) < f(x') for x<0<x′x < 0 < x': no extremum. Refutes the converse: f′(c)=0f'(c) = 0 does not imply an extremum.
  • b) ∣x∣≥0=g(0)|x| \ge 0 = g(0); one-sided slopes −1-1 and 11. No contradiction: the hypothesis g′(0)g'(0) exists fails.
  • c) No contradiction: 11 is an endpoint, so h(1)h(1) is not a LOCAL maximum.
  • d) p′(x)=5x4+3x2+2≥2>0p'(x) = 5x^4 + 3x^2 + 2 \ge 2 > 0: no critical number, so no local extremum (contrapositive of Fermat).
  • e) Critical numbers 00 and 33; no extremum at 00; u(x)+27=(x−3)2(x2+2x+3)≥0u(x) + 27 = (x - 3)^2(x^2 + 2x + 3) \ge 0, absolute min −27-27 at x=3x = 3

a) f′(x)=3x2f'(x) = 3x^2, so f′(0)=0f'(0) = 0: 00 is a critical number. But for x<0x < 0, x3<0=f(0)x^3 < 0 = f(0), and for x>0x > 0, x3>0=f(0)x^3 > 0 = f(0): on EVERY open interval around 00 there are values below and values above f(0)f(0), so f(0)f(0) is neither a local maximum nor a local minimum. This refutes the CONVERSE of Fermat's theorem, if f′(c)=0f'(c) = 0 then ff has a local extremum at cc. The theorem goes one way only: from extremum to f′(c)=0f'(c) = 0.

b) ∣x∣≥0=g(0)|x| \ge 0 = g(0) for every xx, so g(0)=0g(0) = 0 is a minimum, local and absolute. The derivative at 00 is the limit of ∣h∣h\frac{|h|}{h} as h→0h \to 0: it equals 11 for h>0h > 0 and −1-1 for h<0h < 0, so the one-sided limits differ and g′(0)g'(0) does not exist. No contradiction: Fermat's theorem assumes that f′(c)f'(c) EXISTS, and here it does not. This is why the definition of a critical number includes the points where f′f' does not exist: they are candidates Fermat's theorem cannot see.

c) No contradiction. Fermat's theorem is about LOCAL extrema, and with Stewart's definition a local extremum needs an open interval around cc inside the domain. At the endpoint x=1x = 1 of [0,1][0, 1] there is none, so h(1)h(1) is an absolute maximum but not a local one, and the theorem does not apply. This is why the closed interval method evaluates the endpoints SEPARATELY: they can carry an extremum without being critical numbers.

d) pp is a polynomial, so p′(x)=5x4+3x2+2p'(x) = 5x^4 + 3x^2 + 2 exists everywhere. Since x4≥0x^4 \ge 0 and x2≥0x^2 \ge 0, p′(x)≥2>0p'(x) \ge 2 > 0 for every xx: p′p' is never 00, and pp has no critical number at all. By Fermat's theorem, a local extremum at cc would force p′(c)=0p'(c) = 0 (since p′(c)p'(c) exists). There is no such cc, so pp has no local maximum and no local minimum. This is the correct use of the theorem: in its CONTRAPOSITIVE form, if f′(c)f'(c) exists and is not 00, then ff has no local extremum at cc.

e) u′(x)=4x3−12x2=4x2(x−3)u'(x) = 4x^3 - 12x^2 = 4x^2(x - 3): critical numbers 00 and 33, both with u′=0u' = 0. Near 00, write u(x)=x3(x−4)u(x) = x^3(x - 4). For xx close to 00, x−4<0x - 4 < 0, so u(x)u(x) has the sign opposite to x3x^3: u(x)>0u(x) > 0 for small x<0x < 0 and u(x)<0u(x) < 0 for small x>0x > 0, while u(0)=0u(0) = 0. So u(0)u(0) is not a local extremum, exactly like x3x^3 in a). At 33: u(3)=81−108=−27u(3) = 81 - 108 = -27. Expand (x−3)2(x2+2x+3)=(x2−6x+9)(x2+2x+3)=x4−4x3+27(x - 3)^2(x^2 + 2x + 3) = (x^2 - 6x + 9)(x^2 + 2x + 3) = x^4 - 4x^3 + 27, so u(x)+27=(x−3)2(x2+2x+3)u(x) + 27 = (x - 3)^2(x^2 + 2x + 3). Both factors are ≥0\ge 0, since x2+2x+3=(x+1)2+2>0x^2 + 2x + 3 = (x + 1)^2 + 2 > 0. Hence u(x)≥−27=u(3)u(x) \ge -27 = u(3) for all xx: −27-27 is the absolute minimum value, reached at x=3x = 3 only. Two critical numbers with u′=0u' = 0, one extremum: the figure shows the flat point at the origin and the bottom of the curve at (3,−27)(3, -27).

Exercise 5: The closed interval method: ties, a critical number outside, a corner, a hole

The closed interval method. To find the absolute extrema of a function ff CONTINUOUS on a CLOSED interval [a,b][a, b]: (1) find the values of ff at the critical numbers of ff in (a,b)(a, b); (2) find f(a)f(a) and f(b)f(b); (3) the largest of these values is the absolute maximum, the smallest is the absolute minimum.

The method is a list and a comparison: no sign study, no second derivative. Its first line is the check of continuity on [a,b][a, b], because without it the EVT does not promise that the extrema exist. Each part below hides a different trap.

  • a) f(x)=x3−6x2+9x+2f(x) = x^3 - 6x^2 + 9x + 2 on [0,4][0, 4].
  • b) g(x)=x3−12xg(x) = x^3 - 12x on [0,3][0, 3].
  • c) h(x)=∣x2−2x−3∣h(x) = |x^2 - 2x - 3| on [0,4][0, 4].
  • d) r(x)=x+4xr(x) = x + \frac{4}{x} on [1,4][1, 4].
  • e) A student applies the method to the same rr on [−1,4][-1, 4]: candidates r(−1)=−5r(-1) = -5, r(2)=4r(2) = 4, r(4)=5r(4) = 5, so the absolute minimum is −5-5 and the absolute maximum is 55. Find the error and give the correct conclusion.

Type your answers, the page tells you right or wrong 0/12

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) Max 66 at x=1x = 1 and x=4x = 4; min 22 at x=0x = 0 and x=3x = 3
  • b) Max 00 at x=0x = 0; min −16-16 at x=2x = 2 (x=−2x = -2 rejected, outside [0,3][0, 3])
  • c) Max 55 at x=4x = 4; min 00 at x=3x = 3 (corner)
  • d) Max 55 at x=1x = 1 and x=4x = 4; min 44 at x=2x = 2
  • e) rr is not continuous at 0∈[−1,4]0 \in [-1, 4]: no absolute max, no absolute min.

a) ff is a polynomial, continuous on [0,4][0, 4]. f′(x)=3x2−12x+9=3(x−1)(x−3)f'(x) = 3x^2 - 12x + 9 = 3(x - 1)(x - 3): critical numbers 11 and 33, both in (0,4)(0, 4). Values: f(0)=2f(0) = 2, f(1)=1−6+9+2=6f(1) = 1 - 6 + 9 + 2 = 6, f(3)=27−54+27+2=2f(3) = 27 - 54 + 27 + 2 = 2, f(4)=64−96+36+2=6f(4) = 64 - 96 + 36 + 2 = 6. Absolute maximum 66, attained TWICE, at x=1x = 1 and x=4x = 4; absolute minimum 22, attained at x=0x = 0 and x=3x = 3. The question where is answered by ALL the places: stopping at the first 66 found loses the half mark for the location.

b) gg is a polynomial, continuous on [0,3][0, 3]. g′(x)=3x2−12=3(x−2)(x+2)g'(x) = 3x^2 - 12 = 3(x - 2)(x + 2): the zeros are ±2\pm 2, but only 22 lies in (0,3)(0, 3); −2-2 is REJECTED. Values: g(0)=0g(0) = 0, g(2)=8−24=−16g(2) = 8 - 24 = -16, g(3)=27−36=−9g(3) = 27 - 36 = -9. Absolute maximum 00 at x=0x = 0, absolute minimum −16-16 at x=2x = 2. The trap bites here: g(−2)=16g(-2) = 16, and a student who keeps −2-2 in the list answers max 1616, a value the function never takes on [0,3][0, 3]. Write the word rejected, with its reason, next to every solution of g′(x)=0g'(x) = 0 that falls outside the interval.

c) hh is the composition of a polynomial and the absolute value, both continuous, so hh is continuous on [0,4][0, 4]. Since x2−2x−3=(x−3)(x+1)x^2 - 2x - 3 = (x - 3)(x + 1), it is negative on [0,3)[0, 3) and positive on (3,4](3, 4]. On (0,3)(0, 3): h(x)=3+2x−x2h(x) = 3 + 2x - x^2, h′(x)=2−2xh'(x) = 2 - 2x, zero at x=1x = 1. On (3,4)(3, 4): h(x)=x2−2x−3h(x) = x^2 - 2x - 3, h′(x)=2x−2≠0h'(x) = 2x - 2 \ne 0. At x=3x = 3 the one-sided slopes are −4-4 and 44: h′(3)h'(3) does not exist, so 33 is critical. Values: h(0)=3h(0) = 3, h(1)=4h(1) = 4, h(3)=0h(3) = 0, h(4)=5h(4) = 5. Absolute maximum 55 at x=4x = 4, absolute minimum 00 at x=3x = 3. Forgetting the corner gives min 33: the answer is then wrong, because the minimum IS the corner. The figure of the solution shows it.

d) rr is continuous on [1,4][1, 4] since its only discontinuity, x=0x = 0, is outside. r′(x)=1−4x2=x2−4x2r'(x) = 1 - \frac{4}{x^2} = \frac{x^2 - 4}{x^2}: zeros ±2\pm 2, keep 22, reject −2-2; r′r' is undefined only at 00, not in the domain of rr, so not critical. Values: r(1)=5r(1) = 5, r(2)=2+2=4r(2) = 2 + 2 = 4, r(4)=4+1=5r(4) = 4 + 1 = 5. Absolute maximum 55 at x=1x = 1 and x=4x = 4, absolute minimum 44 at x=2x = 2.

e) The error is in the first line the student did not write: rr is NOT continuous on [−1,4][-1, 4], since r(0)r(0) is undefined and 0∈[−1,4]0 \in [-1, 4]. The EVT does not apply, and the method, which relies on it, is meaningless. In fact r(x)→∞r(x) \to \infty as x→0+x \to 0^+ and r(x)→−∞r(x) \to -\infty as x→0−x \to 0^-, because 4x\frac{4}{x} does: the values are unbounded in both directions, so rr has NO absolute maximum and NO absolute minimum on [−1,4][-1, 4] minus {0}\{0\}. The numbers −5-5 and 55 are values of rr, beaten by values near 00: r(0.1)=40.1r(0.1) = 40.1 and r(−0.1)=−40.1r(-0.1) = -40.1. Checking continuity is not a formality: it is the hypothesis that makes the list of candidates complete.

12345123456max 5 at the endpoint x = 4min 0 at the cornerx

Part B: problems and reasoning (/50)

Exercise 6: Closed interval method without a calculator: comparing exact values

On a MATH 140 exam the candidates of the closed interval method are exact numbers such as π−3\pi - \sqrt 3, 4e2\frac{4}{e^2} or 2−2ln⁡22 - 2\ln 2, and deciding which is largest is part of the question. Compare them with inequalities you can justify by hand: 1.7<3<1.751.7 < \sqrt 3 < 1.75, 3.14<π<3.153.14 < \pi < 3.15, 2.7<e<2.82.7 < e < 2.8, 0.69<ln⁡2<0.70.69 < \ln 2 < 0.7, or better, by an exact argument.

For each function, check continuity on the interval, find the critical numbers INSIDE it, evaluate, and compare with a written justification.

  • a) f(x)=x−2sin⁡xf(x) = x - 2\sin x on [−π2,π]\left[-\frac{\pi}{2}, \pi\right].
  • b) g(x)=x2e−xg(x) = x^2 e^{-x} on [−1,3][-1, 3].
  • c) h(x)=x−2ln⁡xh(x) = x - 2\ln x on [1,e2][1, e^2].
  • d) k(x)=x−3x2/3k(x) = x - 3x^{2/3} on [−8,8][-8, 8].
  • e) p(x)=x4−x2p(x) = x\sqrt{4 - x^2} on [−1,2][-1, 2].

Type your answers, the page tells you right or wrong 0/13

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) Max π\pi at x=πx = \pi; min π3−3\frac{\pi}{3} - \sqrt 3 at x=π3x = \frac{\pi}{3}
  • b) Max ee at x=−1x = -1; min 00 at x=0x = 0
  • c) Max e2−4e^2 - 4 at x=e2x = e^2; min 2−2ln⁡22 - 2\ln 2 at x=2x = 2
  • d) Max 00 at x=0x = 0 (k′k' undefined there); min −20-20 at x=−8x = -8
  • e) Max 22 at x=2x = \sqrt 2; min −3-\sqrt 3 at x=−1x = -1

a) ff is continuous on R\mathbb{R}. f′(x)=1−2cos⁡xf'(x) = 1 - 2\cos x, zero when cos⁡x=12\cos x = \frac{1}{2}, that is x=±π3+2kπx = \pm\frac{\pi}{3} + 2k\pi. In (−π2,π)\left(-\frac{\pi}{2}, \pi\right): x=−π3x = -\frac{\pi}{3} AND x=π3x = \frac{\pi}{3}. Values: f(−π2)=−π2+2=2−π2f\left(-\frac{\pi}{2}\right) = -\frac{\pi}{2} + 2 = 2 - \frac{\pi}{2}, f(−π3)=−π3+2⋅32=3−π3f\left(-\frac{\pi}{3}\right) = -\frac{\pi}{3} + 2 \cdot \frac{\sqrt 3}{2} = \sqrt 3 - \frac{\pi}{3}, f(π3)=π3−3f\left(\frac{\pi}{3}\right) = \frac{\pi}{3} - \sqrt 3, f(π)=π−0=πf(\pi) = \pi - 0 = \pi. Comparison: π>3>2\pi > 3 > 2 beats the others, since 2−π2<22 - \frac{\pi}{2} < 2 and 3−π3<3<2\sqrt 3 - \frac{\pi}{3} < \sqrt 3 < 2. Only one value is negative: π3<1.05<1.7<3\frac{\pi}{3} < 1.05 < 1.7 < \sqrt 3. So the maximum is π\pi at x=πx = \pi, the minimum π3−3\frac{\pi}{3} - \sqrt 3 at x=π3x = \frac{\pi}{3}. The negative solution −π3-\frac{\pi}{3} of cos⁡x=12\cos x = \frac{1}{2} must be listed even though it does not win: a list of candidates is judged complete or incomplete, not by its winner.

b) gg is a product of continuous functions. By the product rule and the chain rule (inner function −x-x), g′(x)=2xe−x−x2e−x=x(2−x)e−xg'(x) = 2xe^{-x} - x^2e^{-x} = x(2 - x)e^{-x}. Since e−x>0e^{-x} > 0, the zeros are x=0x = 0 and x=2x = 2, both in (−1,3)(-1, 3). Values: g(−1)=eg(-1) = e, g(0)=0g(0) = 0, g(2)=4e2g(2) = \frac{4}{e^2}, g(3)=9e3g(3) = \frac{9}{e^3}. Since e>2e > 2, e2>4e^2 > 4, so 4e2<1\frac{4}{e^2} < 1; since e>2.7e > 2.7, e3>19e^3 > 19, so 9e3<1\frac{9}{e^3} < 1. And e>1e > 1. The maximum is ee at the LEFT endpoint x=−1x = -1, and the minimum is 00 at x=0x = 0, also clear from g(x)=x2e−x≥0g(x) = x^2e^{-x} \ge 0. The maximum sits at an endpoint and the minimum at a critical number: the list needs both kinds of candidate.

c) hh is continuous for x>0x > 0, hence on [1,e2][1, e^2]. h′(x)=1−2x=x−2xh'(x) = 1 - \frac{2}{x} = \frac{x - 2}{x}: zero at x=2x = 2, which lies in (1,e2)(1, e^2) because e2>4e^2 > 4. Values: h(1)=1−0=1h(1) = 1 - 0 = 1, h(2)=2−2ln⁡2h(2) = 2 - 2\ln 2, h(e2)=e2−2⋅2=e2−4h(e^2) = e^2 - 2 \cdot 2 = e^2 - 4. Compare with exact arguments. 2−2ln⁡2<12 - 2\ln 2 < 1 is equivalent to ln⁡2>12\ln 2 > \frac{1}{2}, that is 2>e1/22 > e^{1/2}, that is 4>e4 > e: true. e2−4>1e^2 - 4 > 1 is equivalent to e2>5e^2 > 5: true since e>2.7e > 2.7 gives e2>7.29e^2 > 7.29. So the minimum is 2−2ln⁡22 - 2\ln 2 at x=2x = 2 and the maximum is e2−4e^2 - 4 at x=e2x = e^2. Replacing a comparison by a decimal from memory (0.610.61 against 11) earns the value but not the justification mark: write the equivalence.

d) x2/3=(x1/3)2x^{2/3} = \left(x^{1/3}\right)^2 is defined and continuous for every real xx, so kk is continuous on [−8,8][-8, 8]. k′(x)=1−3⋅23x−1/3=1−2x1/3=x1/3−2x1/3k'(x) = 1 - 3 \cdot \frac{2}{3}x^{-1/3} = 1 - \frac{2}{x^{1/3}} = \frac{x^{1/3} - 2}{x^{1/3}}. Zero when x1/3=2x^{1/3} = 2, x=8x = 8: an ENDPOINT, not in (−8,8)(-8, 8), and it will be evaluated as an endpoint anyway. Undefined at x=0x = 0, where k(0)=0k(0) = 0 exists: 00 is a critical number. Values: k(−8)=−8−3⋅4=−20k(-8) = -8 - 3 \cdot 4 = -20 (since (−8)2/3=((−8)1/3)2=(−2)2=4(-8)^{2/3} = \left((-8)^{1/3}\right)^2 = (-2)^2 = 4), k(0)=0k(0) = 0, k(8)=8−12=−4k(8) = 8 - 12 = -4. Maximum 00 at x=0x = 0, minimum −20-20 at x=−8x = -8. The maximum sits at the cusp: forget the critical number where k′k' does not exist, and the answer becomes max −4-4, which is false.

e) pp is defined and continuous on [−2,2][-2, 2], hence on [−1,2][-1, 2]. For −2<x<2-2 < x < 2, by the product rule and the chain rule (inner function 4−x24 - x^2): p′(x)=4−x2+x⋅−2x24−x2=4−x2−x24−x2=4−2x24−x2p'(x) = \sqrt{4 - x^2} + x \cdot \frac{-2x}{2\sqrt{4 - x^2}} = \frac{4 - x^2 - x^2}{\sqrt{4 - x^2}} = \frac{4 - 2x^2}{\sqrt{4 - x^2}}. Zeros: x2=2x^2 = 2, x=±2x = \pm\sqrt 2; keep 2\sqrt 2, which is in (−1,2)(-1, 2), reject −2<−1-\sqrt 2 < -1. p′p' is undefined at x=2x = 2, but that is an endpoint, evaluated in any case. Values: p(−1)=−3p(-1) = -\sqrt 3, p(2)=2⋅2=2p(\sqrt 2) = \sqrt 2 \cdot \sqrt 2 = 2, p(2)=0p(2) = 0. Maximum 22 at x=2x = \sqrt 2, minimum −3-\sqrt 3 at x=−1x = -1. Had the interval been [−2,2][-2, 2], −2-\sqrt 2 would have entered the list with the value −2-2, and the minimum would have moved.

-2-11234-11234max π at x = πmin at x = π/3

Exercise 7: Reasoning with Fermat and the Extreme Value Theorem

Two facts do most of the work in this exercise. First, if ff has an absolute extremum on an interval II at a point cc in the INTERIOR of II, then it is also a local extremum of ff: there is an open interval around cc inside II. Second, Fermat's theorem in its contrapositive form: where f′(c)f'(c) exists and is not 00, there is no local extremum.

The figure shows y=x+1xy = x + \frac{1}{x}, with its two critical points marked.

-4-3-2-11234-6-4-2246y = x + 1/x
  • a) For f(x)=x+1xf(x) = x + \frac{1}{x}, find the critical numbers. Apply the closed interval method on [−2,−12]\left[-2, -\frac{1}{2}\right] and on [12,2]\left[\frac{1}{2}, 2\right], and deduce that ff has a local maximum value that is SMALLER than one of its local minimum values.
  • b) For fk(x)=x3+kxf_k(x) = x^3 + kx, give the number of critical numbers according to the value of the constant kk. Prove that fkf_k has no local extremum when k≥0k \ge 0.
  • c) Prove that a polynomial of degree n≥1n \ge 1 has at most n−1n - 1 local extrema. Is the bound always reached?
  • d) Give a function defined on [0,1][0, 1] that has an absolute maximum but no absolute minimum. Which hypothesis of the EVT must it violate?
  • e) Prove that f(x)=x4−4xf(x) = x^4 - 4x has an absolute minimum on R\mathbb{R} and find it, by combining the closed interval method on [−2,2][-2, 2] with an inequality outside. Does ff have an absolute maximum on R\mathbb{R}?

Type your answers, the page tells you right or wrong 0/10

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) Critical numbers ±1\pm 1; local max −2-2 at x=−1x = -1, local min 22 at x=1x = 1, and −2<2-2 < 2
  • b) Two if k<0k < 0 (±−k/3\pm\sqrt{-k/3}), one if k=0k = 0, none if k>0k > 0; no extremum for k≥0k \ge 0
  • c) Local extrema are zeros of f′f', of degree n−1n - 1: at most n−1n - 1. Not always reached (x4−4x3x^4 - 4x^3 has one).
  • d) f(0)=12f(0) = \frac{1}{2}, f(x)=xf(x) = x on (0,1](0, 1]: max 11, no min. Continuity fails at 00.
  • e) Absolute min −3-3 at x=1x = 1; no absolute maximum

a) f′(x)=1−1x2=x2−1x2f'(x) = 1 - \frac{1}{x^2} = \frac{x^2 - 1}{x^2}: zeros x=±1x = \pm 1; f′f' is undefined only at 00, which is not in the domain. Critical numbers: −1-1 and 11. On [−2,−12]\left[-2, -\frac{1}{2}\right], ff is continuous (00 is outside), and the only critical number inside is −1-1: f(−2)=−52f(-2) = -\frac{5}{2}, f(−1)=−2f(-1) = -2, f(−12)=−52f\left(-\frac{1}{2}\right) = -\frac{5}{2}. The absolute maximum on this interval is −2-2, at the INTERIOR point −1-1, so f(−1)=−2f(-1) = -2 is a local maximum value of ff. On [12,2]\left[\frac{1}{2}, 2\right]: f(12)=52f\left(\frac{1}{2}\right) = \frac{5}{2}, f(1)=2f(1) = 2, f(2)=52f(2) = \frac{5}{2}, so f(1)=2f(1) = 2 is a local minimum value. And −2<2-2 < 2: the local maximum lies BELOW the local minimum, as the figure shows. Local means compared with the neighbours, and the two branches of this graph are not neighbours.

b) fk′(x)=3x2+kf_k'(x) = 3x^2 + k, defined everywhere. If k<0k < 0: x2=−k3>0x^2 = -\frac{k}{3} > 0 gives two critical numbers ±−k/3\pm\sqrt{-k/3}. If k=0k = 0: one critical number, 00. If k>0k > 0: 3x2+k≥k>03x^2 + k \ge k > 0, no critical number. For k>0k > 0, fk′f_k' exists and is never 00, so by Fermat's theorem (contrapositive) there is no local extremum. For k=0k = 0, f0(x)=x3f_0(x) = x^3 has the single candidate 00, and it is not an extremum: x3<0x^3 < 0 for x<0x < 0 and x3>0x^3 > 0 for x>0x > 0. So for every k≥0k \ge 0, fkf_k has no local extremum. The case k=0k = 0 is where a careless answer says one critical number, so one extremum.

c) Let ff be a polynomial of degree n≥1n \ge 1. It is differentiable everywhere, so by Fermat's theorem every local extremum cc satisfies f′(c)=0f'(c) = 0. Now f′f' is a polynomial of degree n−1n - 1, not identically zero, with at most n−1n - 1 real zeros. Hence ff has at most n−1n - 1 local extrema. For n=1n = 1 this gives none, as expected for a line. The bound is not always reached: u(x)=x4−4x3u(x) = x^4 - 4x^3 of Exercise 4 has degree 44, two critical numbers, and a single local extremum, because the critical number 00 is not an extremum. Fermat bounds the number of extrema; it does not produce them.

d) Let f(0)=12f(0) = \frac{1}{2} and f(x)=xf(x) = x for 0<x≤10 < x \le 1. The largest value is f(1)=1f(1) = 1: absolute maximum. The values on (0,1](0, 1] come as close to 00 as we like, but 00 is never taken (the only candidate would be x=0x = 0, where f(0)=12f(0) = \frac{1}{2}), and every positive value is beaten by a smaller one: no absolute minimum. The interval [0,1][0, 1] is closed, so by the EVT ff cannot be continuous on it; indeed lim⁡x→0+f(x)=0≠12=f(0)\lim_{x\to 0^+} f(x) = 0 \ne \frac{1}{2} = f(0). Any correct example must break continuity somewhere, and the break must sit where the minimum escapes.

e) f′(x)=4x3−4=4(x−1)(x2+x+1)f'(x) = 4x^3 - 4 = 4(x - 1)(x^2 + x + 1), and x2+x+1=(x+12)2+34>0x^2 + x + 1 = \left(x + \frac{1}{2}\right)^2 + \frac{3}{4} > 0: the only critical number is 11. On [−2,2][-2, 2], where ff is continuous: f(−2)=16+8=24f(-2) = 16 + 8 = 24, f(1)=1−4=−3f(1) = 1 - 4 = -3, f(2)=16−8=8f(2) = 16 - 8 = 8, so the minimum on [−2,2][-2, 2] is −3-3. Outside: for x≥2x \ge 2, f(x)=x(x3−4)≥2⋅4=8>−3f(x) = x(x^3 - 4) \ge 2 \cdot 4 = 8 > -3; for x≤−2x \le -2, x4>0x^4 > 0 and −4x>0-4x > 0, so f(x)>0>−3f(x) > 0 > -3. Hence f(x)≥−3=f(1)f(x) \ge -3 = f(1) for every real xx: the absolute minimum on R\mathbb{R} is −3-3, at x=1x = 1. There is no absolute maximum: f(x)≥x(x3−4)f(x) \ge x(x^3 - 4) grows without bound, for instance f(10)=9960f(10) = 9960. The EVT alone says nothing on R\mathbb{R}, which is not a closed bounded interval; the inequality outside [−2,2][-2, 2] is what extends the answer.

Exercise 8: Five statements to correct

Each statement below was written by a student on a MATH 140 assignment, and each is false. Say what is wrong, give a counterexample, and write the correct statement.

  • a) If f′(c)=0f'(c) = 0, then ff has a local maximum or a local minimum at cc.
  • b) If ff has a local minimum at cc, then f′(c)=0f'(c) = 0.
  • c) x=2x = 2 is a critical number of f(x)=1x−2f(x) = \frac{1}{x - 2}, since f′(2)f'(2) does not exist.
  • d) The absolute maximum of ff on [a,b][a, b] occurs at a number where f′(x)=0f'(x) = 0.
  • e) If ff has an absolute maximum and an absolute minimum on [a,b][a, b], then ff is continuous on [a,b][a, b].

Type your answers, the page tells you right or wrong 0/5

a)
b)
c)
d)
Show the solution

Answers

  • a) False: x3x^3 at 00. A critical number is a candidate, not an extremum.
  • b) False: ∣x∣|x| at 00. True when f′(c)f'(c) exists (Fermat); in general cc is a critical number.
  • c) False: 22 is not in the domain. ff has no critical number.
  • d) False: x2x^2 on [−1,3][-1, 3], max 99 at the endpoint 33. The max is at a critical number OR an endpoint.
  • e) False: 00 on [0,1)[0, 1), 11 on [1,2][1, 2]. The EVT does not reverse.

a) FALSE. f(x)=x3f(x) = x^3 has f′(0)=0f'(0) = 0, yet x3<0x^3 < 0 for x<0x < 0 and x3>0x^3 > 0 for x>0x > 0: no extremum at 00. The statement is the converse of Fermat's theorem, and that converse is false. Correct statement: if ff has a local extremum at cc and f′(c)f'(c) exists, then f′(c)=0f'(c) = 0. A zero of f′f' nominates cc as a candidate; deciding requires something else, here the comparison of values.

b) FALSE. g(x)=∣x∣g(x) = |x| has a minimum at 00, and g′(0)g'(0) does not exist, the one-sided slopes being −1-1 and 11. The student dropped the hypothesis that f′(c)f'(c) exists. Correct statement: if ff has a local extremum at cc, then cc is a critical number, that is, f′(c)=0f'(c) = 0 OR f′(c)f'(c) does not exist. On an exam, this is why the search for critical numbers has two halves.

c) FALSE. A critical number must belong to the DOMAIN of ff, and f(2)f(2) is undefined. Here f′(x)=−1(x−2)2f'(x) = -\frac{1}{(x - 2)^2} is never 00 and is undefined only at 22, so ff has no critical number at all, and no local extremum. Correct statement: cc is a critical number of ff if cc is in the domain of ff and f′(c)=0f'(c) = 0 or f′(c)f'(c) does not exist. A vertical asymptote is never a candidate: there is no value f(2)f(2) to compare.

d) FALSE. f(x)=x2f(x) = x^2 on [−1,3][-1, 3]: the only critical number is 00, with f(0)=0f(0) = 0, while f(−1)=1f(-1) = 1 and f(3)=9f(3) = 9. The absolute maximum 99 is at the endpoint 33, where f′(3)=6≠0f'(3) = 6 \ne 0. Correct statement: if ff is continuous on [a,b][a, b], its absolute extrema occur at critical numbers in (a,b)(a, b) OR at the endpoints aa and bb. Forgetting the endpoints is the most expensive omission of the closed interval method.

e) FALSE. Let f(x)=0f(x) = 0 for 0≤x<10 \le x < 1 and f(x)=1f(x) = 1 for 1≤x≤21 \le x \le 2. It has an absolute maximum 11 and an absolute minimum 00, yet it jumps at x=1x = 1. The statement reverses the Extreme Value Theorem. Correct statement: if ff is continuous on [a,b][a, b], then ff has an absolute maximum and an absolute minimum on [a,b][a, b]. The hypotheses are sufficient, not necessary: without them, extrema may exist or not, and each case must be examined.

Exercise 9: Drug concentration in the blood: the peak, the window, and what a chart can miss

After a tablet is swallowed, the concentration of the drug in the blood, in milligrams per litre, is modelled by c(t)=40(e−t/2−e−t)c(t) = 40\left(e^{-t/2} - e^{-t}\right), where t≥0t \ge 0 is the time in hours since the dose. The drug is absorbed faster than it is eliminated at first, then elimination takes over. The figure shows cc and the level 7.57.5 mg/L above which the drug is effective.

No calculator: give every time and every concentration exactly, then as an order of magnitude from ln⁡2≈0.69\ln 2 \approx 0.69, ln⁡3≈1.10\ln 3 \approx 1.10 and e≈2.72e \approx 2.72.

1234567824681012effective level 7.5 mg/Ly = c(t)t (hours)c (mg/L)
  • a) Show that c(0)=0c(0) = 0 and that c(t)>0c(t) > 0 for every t>0t > 0.
  • b) Find the critical numbers of cc on (0,∞)(0, \infty).
  • c) Find the absolute maximum and minimum of cc on [0,6][0, 6]. The level becomes toxic at 1616 mg/L. Assuming the concentration is proportional to the dose, by what factor at most can the dose be multiplied?
  • d) Find exactly the time interval during which c(t)≥7.5c(t) \ge 7.5, and its length. Hint: put u=e−t/2u = e^{-t/2}.
  • e) A clinic records the concentration only between t=2t = 2 and t=5t = 5 hours. Find the absolute maximum and minimum of cc on [2,5][2, 5], and say what this chart cannot show.

Type your answers, the page tells you right or wrong 0/10

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) c(0)=40(1−1)=0c(0) = 40(1 - 1) = 0; for t>0t > 0, e−t/2>e−te^{-t/2} > e^{-t}
  • b) t=ln⁡4=2ln⁡2t = \ln 4 = 2\ln 2 hours (about 1.391.39 h)
  • c) Max 1010 mg/L at t=ln⁡4t = \ln 4; min 00 at t=0t = 0; dose factor at most 1.61.6
  • d) ln⁡169≤t≤ln⁡16\ln\frac{16}{9} \le t \le \ln 16; length ln⁡9=2ln⁡3≈2.2\ln 9 = 2\ln 3 \approx 2.2 hours
  • e) Max 40(e−1−e−2)40\left(e^{-1} - e^{-2}\right) at t=2t = 2; min 40(e−5/2−e−5)40\left(e^{-5/2} - e^{-5}\right) at t=5t = 5; the peak 1010 is not on the chart.

a) c(0)=40(e0−e0)=0c(0) = 40\left(e^0 - e^0\right) = 0: no drug in the blood at the moment of the dose. For t>0t > 0, t2<t\frac{t}{2} < t, so −t2>−t-\frac{t}{2} > -t, and since the exponential is increasing, e−t/2>e−te^{-t/2} > e^{-t}, so c(t)>0c(t) > 0. This settles the absolute minimum on any interval starting at 00 before any derivative is taken: c(t)≥0=c(0)c(t) \ge 0 = c(0).

b) By the chain rule (inner functions −t2-\frac{t}{2} and −t-t): c′(t)=40(−12e−t/2+e−t)=20e−t(2−et/2)c'(t) = 40\left(-\frac{1}{2}e^{-t/2} + e^{-t}\right) = 20e^{-t}\left(2 - e^{t/2}\right). It exists for every tt, and since e−t>0e^{-t} > 0 it vanishes exactly when et/2=2e^{t/2} = 2, that is t2=ln⁡2\frac{t}{2} = \ln 2, t=2ln⁡2=ln⁡4t = 2\ln 2 = \ln 4 hours. With ln⁡2≈0.69\ln 2 \approx 0.69, that is about 1.391.39 hours, roughly 11 hour 2323 minutes. One critical number, found exactly: the factorization e−t(2−et/2)e^{-t}\left(2 - e^{t/2}\right) is what makes it solvable by hand.

c) cc is continuous on [0,6][0, 6] and ln⁡4∈(0,6)\ln 4 \in (0, 6). Values: c(0)=0c(0) = 0; c(ln⁡4)=40(e−ln⁡2−e−ln⁡4)=40(12−14)=10c(\ln 4) = 40\left(e^{-\ln 2} - e^{-\ln 4}\right) = 40\left(\frac{1}{2} - \frac{1}{4}\right) = 10; c(6)=40(e−3−e−6)c(6) = 40\left(e^{-3} - e^{-6}\right), which is less than 40e−3<408=540e^{-3} < \frac{40}{8} = 5 since e3>8e^3 > 8. Absolute maximum 1010 mg/L at t=ln⁡4t = \ln 4, absolute minimum 00 at t=0t = 0. If the dose is multiplied by λ\lambda, the concentration becomes λc(t)\lambda c(t), whose maximum is 10λ10\lambda; it stays below the toxic level when 10λ≤1610\lambda \le 16, so λ≤1.6\lambda \le 1.6. The safety of a dose is a question about the absolute MAXIMUM, which is why it has to be found exactly and not read off a graph.

d) With u=e−t/2u = e^{-t/2}, e−t=u2e^{-t} = u^2 and c(t)=40(u−u2)c(t) = 40\left(u - u^2\right). The condition 40(u−u2)≥7.540\left(u - u^2\right) \ge 7.5 becomes u−u2≥316u - u^2 \ge \frac{3}{16}, that is 16u2−16u+3≤016u^2 - 16u + 3 \le 0, that is (4u−1)(4u−3)≤0(4u - 1)(4u - 3) \le 0, so 14≤u≤34\frac{1}{4} \le u \le \frac{3}{4}. Now u=e−t/2u = e^{-t/2} decreases as tt grows: u≤34u \le \frac{3}{4} gives t≥2ln⁡43=ln⁡169t \ge 2\ln\frac{4}{3} = \ln\frac{16}{9}, and u≥14u \ge \frac{1}{4} gives t≤2ln⁡4=ln⁡16t \le 2\ln 4 = \ln 16. The drug is effective for ln⁡169≤t≤ln⁡16\ln\frac{16}{9} \le t \le \ln 16, a window of length ln⁡16−ln⁡169=ln⁡9=2ln⁡3≈2.2\ln 16 - \ln\frac{16}{9} = \ln 9 = 2\ln 3 \approx 2.2 hours, from about 0.580.58 h to about 2.772.77 h. Consistency check: the peak time ln⁡4\ln 4 lies inside the window, as it must, since 10≥7.510 \ge 7.5.

e) On [2,5][2, 5], cc is continuous, and its only critical number ln⁡4\ln 4 is NOT in (2,5)(2, 5): ln⁡4<2\ln 4 < 2 because 4<e24 < e^2. So the extrema are at the endpoints. c(2)=40(e−1−e−2)=40e−2(e−1)c(2) = 40\left(e^{-1} - e^{-2}\right) = 40e^{-2}(e - 1) and c(5)=40(e−5/2−e−5)c(5) = 40\left(e^{-5/2} - e^{-5}\right). Compare: c(5)<40e−5/2c(5) < 40e^{-5/2}, while c(2)=40e−2(e−1)>40e−2>40e−5/2c(2) = 40e^{-2}(e - 1) > 40e^{-2} > 40e^{-5/2}, since e−1>1e - 1 > 1. So the maximum on [2,5][2, 5] is c(2)=40(e−1−e−2)c(2) = 40\left(e^{-1} - e^{-2}\right), about 9.39.3 mg/L, and the minimum is c(5)=40(e−5/2−e−5)c(5) = 40\left(e^{-5/2} - e^{-5}\right). The chart cannot show the true peak of 1010 mg/L, reached before it starts: the maximum of cc on a window is not the maximum of cc. Keeping the critical number ln⁡4\ln 4 in the list here would have produced a value the recorded function never takes.

Exercise 10: A final exam question: a piecewise function, its corner, its extrema and its range

Let aa be a constant and f(x)=x3+3x2+1f(x) = x^3 + 3x^2 + 1 for −1≤x≤0-1 \le x \le 0, f(x)=a+4x−x2f(x) = a + 4x - x^2 for 0<x≤30 < x \le 3.

This is the shape of a long final exam question: every hypothesis must be checked before a theorem is quoted, every candidate listed before a value is compared, and every conclusion stated with its location.

  • a) Find aa so that ff is continuous on [−1,3][-1, 3]. Use this value from now on.
  • b) Is ff differentiable at x=0x = 0? Compute the one-sided limits of the difference quotient.
  • c) Find the critical numbers of ff in (−1,3)(-1, 3).
  • d) Find the absolute maximum and minimum values of ff on [−1,3][-1, 3], then its local extrema in (−1,3)(-1, 3) that follow from them.
  • e) For which values of kk does the equation f(x)=kf(x) = k have at least one solution in [−1,3][-1, 3]?

Type your answers, the page tells you right or wrong 0/11

a)
b)
c)
d)
e)
Values of kk ,
Show the solution

Answers

  • a) a=1a = 1
  • b) No: left limit 00, right limit 44; corner at x=0x = 0
  • c) x=0x = 0 (f′f' undefined) and x=2x = 2; x=−2x = -2 rejected
  • d) Max 55 at x=2x = 2, min 11 at x=0x = 0; both interior, so also local
  • e) 1≤k≤51 \le k \le 5

a) Each piece is a polynomial, continuous on its own interval. The only point to check is 00: f(0)=0+0+1=1f(0) = 0 + 0 + 1 = 1 (the first formula holds at 00), lim⁡x→0−f(x)=1\lim_{x\to 0^-} f(x) = 1, and lim⁡x→0+f(x)=lim⁡x→0+(a+4x−x2)=a\lim_{x\to 0^+} f(x) = \lim_{x\to 0^+}(a + 4x - x^2) = a. Continuity at 00 requires the three to agree: a=1a = 1. Then ff is continuous on [−1,3][-1, 3], the hypothesis the EVT and the closed interval method need; write that sentence, it is worth a mark.

b) From the left, with h<0h < 0: f(h)−f(0)h=h3+3h2h=h2+3h→0\frac{f(h) - f(0)}{h} = \frac{h^3 + 3h^2}{h} = h^2 + 3h \to 0. From the right, with h>0h > 0: f(h)−f(0)h=1+4h−h2−1h=4−h→4\frac{f(h) - f(0)}{h} = \frac{1 + 4h - h^2 - 1}{h} = 4 - h \to 4. The one-sided limits are 00 and 44, different: f′(0)f'(0) does not exist, and the graph has a corner at (0,1)(0, 1). Differentiating each formula and comparing f′(0−)=0f'(0^-) = 0 with f′(0+)=4f'(0^+) = 4 gives the same verdict here, but the difference quotient is the definition, and it is what the question asks for.

c) On (−1,0)(-1, 0): f′(x)=3x2+6x=3x(x+2)f'(x) = 3x^2 + 6x = 3x(x + 2), zeros 00 and −2-2. The zero −2-2 is outside (−1,3)(-1, 3): REJECTED; the zero 00 is not in the open piece (−1,0)(-1, 0) and is treated at the junction. On (0,3)(0, 3): f′(x)=4−2xf'(x) = 4 - 2x, zero at x=2x = 2. At 00, f′f' does not exist by b), while f(0)=1f(0) = 1 is defined: 00 is critical. Critical numbers in (−1,3)(-1, 3): 00 and 22. Note that f(−2)f(-2) would be −8+12+1=5-8 + 12 + 1 = 5, the same value as the true maximum: keeping −2-2 would give the right value at a WRONG location, and cost the location mark.

d) ff is continuous on the closed interval [−1,3][-1, 3] by a). Values: f(−1)=−1+3+1=3f(-1) = -1 + 3 + 1 = 3, f(0)=1f(0) = 1, f(2)=1+8−4=5f(2) = 1 + 8 - 4 = 5, f(3)=1+12−9=4f(3) = 1 + 12 - 9 = 4. Absolute maximum 55 at x=2x = 2, absolute minimum 11 at x=0x = 0. Both are reached at INTERIOR points of [−1,3][-1, 3], so they are also a local maximum and a local minimum of ff. The minimum is the corner: a student who forgets the critical number where f′f' does not exist compares 33, 55, 44 and answers min 33 at x=−1x = -1, which is false. The figure of the solution shows the four candidates.

e) By d), 1≤f(x)≤51 \le f(x) \le 5 for every xx in [−1,3][-1, 3], so for k<1k < 1 or k>5k > 5 the equation has no solution. Conversely, let 1≤k≤51 \le k \le 5. ff is continuous on [0,2][0, 2] with f(0)=1≤k≤5=f(2)f(0) = 1 \le k \le 5 = f(2), so by the Intermediate Value Theorem there is cc in [0,2][0, 2] with f(c)=kf(c) = k. Hence the equation has a solution exactly when 1≤k≤51 \le k \le 5: the range of ff on [−1,3][-1, 3] is [1,5][1, 5]. This is the pairing to remember: the EVT gives the two ends mm and MM of the range of a continuous function on [a,b][a, b], and the IVT fills in everything between them.

-1123123456max 5min 1 at the cornerx

© Ahmed Squalli Houssaini. Exercise set published at www.letuteurscientifique.ca/en/exercices/math140-extreme-values. Free for personal and classroom use; republishing it elsewhere requires written permission (legal notice).

See also

Struggling with MATH 140?

I tutor first-year calculus at McGill and Concordia, in English or in French, in Montreal or online. Get in touch for a first session.

Site by Studio Squalli