Login

Concepts

Read through concept notes with worked explanations and diagrams, chapter by chapter.

Concept 11 / 12Limits, Continuity and Differentiability

Maxima and Minima: First and Second Derivative Tests and Optimisation

Local and global extrema, critical points, the first derivative test with sign changes, the second derivative test and its inconclusive case, global extrema on closed intervals, and a systematic method for applied optimisation problems.

Figure 1
A function has a local maximum at cc if f(c)≥f(x)f(c) \ge f(x) for all xx near cc, and a local minimum if f(c)≤f(x)f(c) \le f(x) nearby. Global (absolute) extrema compare with all xx in the domain. The figure shows several local extrema; the global ones on the closed interval can occur at a local extremum or at an endpoint. 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 (Fermat's theorem). So local extrema can occur only at critical points: where f′(c)=0f'(c) = 0 or f′(c)f'(c) does not exist. The converse fails: f′(0)=0f'(0) = 0 for x3x^{3}, but 00 is not an extremum. And extrema can occur where f′f' does not exist: ∣x∣|x| has a minimum at 00. First derivative test. At a critical point cc where ff is continuous: f′f' changes from ++ to −-: local maximum. f′f' changes from −- to ++: local minimum. f′f' does not change sign: no extremum (a point of inflection with horizontal tangent, if f′(c)=0f'(c) = 0). This test always works, including at points where f′f' does not exist. Second derivative test. If f′(c)=0f'(c) = 0 and f′′(c)<0f''(c) < 0, there is a local maximum; if f′′(c)>0f''(c) > 0, a local minimum. If f′′(c)=0f''(c) = 0, the test is inconclusive: x4x^{4} (minimum), −x4-x^{4} (maximum) and x3x^{3} (neither) all have f′(0)=f′′(0)=0f'(0) = f''(0) = 0. Then use the first derivative test, or the higher derivative test: if the first non-zero derivative at cc has even order nn, there is an extremum (maximum if f(n)(c)<0f^{(n)}(c) < 0, minimum if >0> 0); if odd order, no extremum. Concavity and inflection. f′′>0f'' > 0 means concave up (the graph lies above its tangents, slopes increasing); f′′<0f'' < 0 means concave down. A point of inflection is where concavity changes, which requires f′′f'' to change sign (not merely f′′=0f'' = 0). Global extrema on a closed interval [a,b][a, b]. A continuous function attains its maximum and minimum there. Find them by evaluating ff at all critical points in (a,b)(a, b) and at the endpoints a,ba, b, then choosing the largest and smallest values. No derivative test is needed for this. On open or infinite intervals, also examine limits at the ends; the extreme may not be attained. Applied optimisation, step by step. 1. Draw a diagram and name the variables. 2. Write the quantity to optimise as a function of one variable, using the constraint to eliminate the others. 3. Determine the allowed interval for that variable from the physical situation. 4. Find critical points in the interval and check them (sign of f′f' or f′′f''), and compare with the endpoints. 5. Answer the question actually asked (the dimension, or the maximum value). Classic results: among rectangles with fixed perimeter, the square has the largest area; a closed cylinder of fixed volume has minimum surface area when the height equals the diameter; the largest rectangle inscribed in a circle is a square; the shortest distance from a point to a curve is along the normal. Key Takeaways: - Critical points: f′=0f' = 0 or f′f' undefined; extrema occur only there (in the interior). - First derivative test: sign change +→−+ \to - max, −→+- \to + min, no change none. - Second derivative test: f′′<0f'' < 0 max, f′′>0f'' > 0 min, f′′=0f'' = 0 inconclusive. - Inflection needs a sign change of f′′f''. - Global extremes on [a,b][a, b]: compare ff at critical points and endpoints. - Cylinder of fixed volume, least surface area: h=2rh = 2r. - Pitfall: declaring every root of f′f' an extremum. Brain-Teaser 1: Find the local extrema of f(x)=x2/3(x−5)f(x) = x^{2/3}(x - 5). Solution: f(x)=x5/3−5x2/3f(x) = x^{5/3} - 5x^{2/3}, so f′(x)=53x2/3−103x−1/3=5(x−2)3x1/3f'(x) = \frac{5}{3}x^{2/3} - \frac{10}{3}x^{-1/3} = \frac{5(x - 2)}{3x^{1/3}}. Critical points: x=2x = 2 (f′=0f' = 0) and x=0x = 0 (f′f' undefined). Signs: for x<0x < 0, numerator negative and denominator negative, so f′>0f' > 0; for 0<x<20 < x < 2, f′<0f' < 0; for x>2x > 2, f′>0f' > 0. So there is a local maximum at x=0x = 0 with f(0)=0f(0) = 0 (a cusp), and a local minimum at x=2x = 2 with f(2)=−3⋅22/3f(2) = -3 \cdot 2^{2/3}. The maximum at 00 would be missed entirely by solving only f′(x)=0f'(x) = 0. Brain-Teaser 2: A closed cylindrical can must hold volume VV. Show that the least surface area occurs when the height equals the diameter. Solution: V=πr2hV = \pi r^{2}h, so h=Vπr2h = \frac{V}{\pi r^{2}}. The surface area is S=2πr2+2πrh=2πr2+2VrS = 2\pi r^{2} + 2\pi rh = 2\pi r^{2} + \frac{2V}{r} for r>0r > 0. S′(r)=4πr−2Vr2=0S'(r) = 4\pi r - \frac{2V}{r^{2}} = 0 gives r3=V2πr^{3} = \frac{V}{2\pi}. Then h=Vπr2=2πr3πr2=2rh = \frac{V}{\pi r^{2}} = \frac{2\pi r^{3}}{\pi r^{2}} = 2r. S′′(r)=4π+4Vr3>0S''(r) = 4\pi + \frac{4V}{r^{3}} > 0, confirming a minimum; since this is the only critical point on (0,∞)(0, \infty) and S→∞S \to \infty at both ends, it is the global minimum. Height equals diameter. Brain-Teaser 3: Find the point on the parabola y2=4xy^{2} = 4x nearest to (5,0)(5, 0). Solution: Take the point (t2,2t)(t^{2}, 2t). The squared distance to (5,0)(5, 0) is D(t)=(t2−5)2+4t2=t4−6t2+25D(t) = (t^{2} - 5)^{2} + 4t^{2} = t^{4} - 6t^{2} + 25. D′(t)=4t3−12t=4t(t2−3)D'(t) = 4t^{3} - 12t = 4t(t^{2} - 3), with critical points t=0t = 0 and t=±3t = \pm\sqrt{3}. D(0)=25D(0) = 25 (a local maximum of DD, at the vertex) and D(±3)=9−18+25=16D(\pm\sqrt{3}) = 9 - 18 + 25 = 16. So the nearest points are (3,±23)(3, \pm 2\sqrt{3}) at distance 44. Check with the normal: the normal to y2=4xy^{2} = 4x at (t2,2t)(t^{2}, 2t) has slope −t-t and passes through (t2+2,0)(t^{2} + 2, 0) on the axis, which is (5,0)(5, 0) exactly when t2=3t^{2} = 3. The vertex is not the nearest point, because (5,0)(5, 0) is farther from the vertex than 2a=22a = 2 along the axis.