Comprehensive Guide to First and Second Derivatives, Curve Sketching, and Optimization

First Derivative and Curve Shape

  • Formal Definitions of Increasing and Decreasing Functions:

    • A function ff is increasing on an open interval (a,b)(a,b) if for all x1,x2x_1, x_2 in (a,b)(a,b), a<x1<x2<ba < x_1 < x_2 < b implies f(x1)<f(x2)f(x_1) < f(x_2).

    • A function ff is decreasing on an open interval (a,b)(a,b) if for all x1,x2x_1, x_2 in (a,b)(a,b), a<x1<x2<ba < x_1 < x_2 < b implies f(x1)>f(x2)f(x_1) > f(x_2).

    • Graphically, a function is increasing if the height of the curve rises when moving from left to right, and decreasing if the height of the curve falls when moving from left to right.

    • In physical contexts, if h(t)h(t) represents the height of a rocket in feet at time tt seconds, the rocket is rising (its height is increasing) if h(t)h(t) increases over a given time interval as tt increases.

  • Interval Identification Example:

    Graph of a function f(x) over the interval from 0 to 8
    • The function ff is increasing on the intervals [0,1][0,1], [2,3][2,3], and [4,6][4,6].

    • The function ff is decreasing on the intervals [1,2][1,2] and [6,8][6,8].

    • On the interval [3,4][3,4], the function is neither increasing nor decreasing; it remains constant.

  • First Derivative Information About Shape:

    • For a function ff that is differentiable on an open interval (a,b)(a,b), the behavior of ff dictates the sign of its first derivative:

    • If ff is increasing on (a,b)(a,b), then f′(x)→f′(x)≥0f'(x) \to f'(x) \ge 0 for all xx in (a,b)(a,b).

    • If ff is decreasing on (a,b)(a,b), then f′(x)≤0f'(x) \le 0 for all xx in (a,b)(a,b).

    • If ff is constant on (a,b)(a,b), then f′(x)=0f'(x) = 0 for all xx in (a,b)(a,b).

  • Helicopter Height and Upward Velocity Case Study:

    Helicopter height over time showing local extrema
    • The upward velocity of a helicopter is the rate of change of height with respect to time, given by v(t)=dhdtv(t) = \frac{dh}{dt}.

    • At t=2 minutest = 2\,\text{minutes} and t=5 minutest = 5\,\text{minutes}, h(t)h(t) achieves local maxima; consequently, the tangent lines are horizontal, yielding v(2)=0v(2) = 0 and v(5)=0v(5) = 0.

    • At t=3 minutest = 3\,\text{minutes}, h(t)h(t) achieves a local minimum, yielding a horizontal tangent line and v(3)=0v(3) = 0.

    • When h(t)h(t) is increasing over the intervals (0,2)(0,2) and (3,5)(3,5), the upward velocity v(t)v(t) is strictly positive (v(t)>0v(t) > 0).

    • When h(t)h(t) is decreasing over the intervals (2,3)(2,3) and (5,7)(5,7), the upward velocity v(t)v(t) is strictly negative (v(t)<0v(t) < 0).   

      Helicopter upward velocity graph over time
  • First Derivative Information About Shape (Converse Perspective):

    • For a function ff differentiable on an interval II:

    • If f′(x)>0f'(x) > 0 for all xx in II, then ff is increasing on II.

    • If f′(x)<0f'(x) < 0 for all xx in II, then ff is decreasing on II.

    • If f′(x)=0f'(x) = 0 for all xx in II, then ff is constant on II.

  • Detailed Polynomial Curve Analysis: f(x)=x3−6x2+9x+1f(x) = x^3 - 6x^2 + 9x + 1:

    • Differentiate f(x)f(x): f′(x)=3x2−12x+9=3(x−1)(x−3)f'(x) = 3x^2 - 12x + 9 = 3(x - 1)(x - 3).

    • Because f′(x)f'(x) is a polynomial, it is defined everywhere on (−∞,∞)(-\infty, \infty).

    • Set f′(x)=0f'(x) = 0 to find critical numbers: 3(x−1)(x−3)=0  ⟹  x=13(x - 1)(x - 3) = 0 \implies x = 1 and x=3x = 3.

    • These critical numbers partition the real line into three test intervals: (−∞,1)(-\infty, 1), (1,3)(1, 3), and (3,∞)(3, \infty).

    • Interval (−∞,1)(-\infty, 1): For x<1x < 1, f′(x)=3(negative)(negative)>0f'(x) = 3(\text{negative})(\text{negative}) > 0, so ff is increasing.

    • Interval (1,3)(1, 3): For 1<x<31 < x < 3, f′(x)=3(positive)(negative)<0f'(x) = 3(\text{positive})(\text{negative}) < 0, so ff is decreasing.

    • Interval (3,∞)(3, \infty): For x>3x > 3, f′(x)=3(positive)(positive)>0f'(x) = 3(\text{positive})(\text{positive}) > 0, so ff is increasing.   

      Intervals of increasing and decreasing behaviors partitioned by critical numbers
    • The graph turns at x=1x = 1 and x=3x = 3, establishing a local maximum at x=1x = 1 and a local minimum at x=3x = 3.

    • Specific plotted points:

    • f(1)=(1)3−6(1)2+9(1)+1=1−6+9+1=5f(1) = (1)^3 - 6(1)^2 + 9(1) + 1 = 1 - 6 + 9 + 1 = 5, giving local maximum point (1,5)(1, 5).

    • f(3)=(3)3−6(3)2+9(3)+1=27−54+27+1=1f(3) = (3)^3 - 6(3)^2 + 9(3) + 1 = 27 - 54 + 27 + 1 = 1, giving local minimum point (3,1)(3, 1).   

      Complete plot of the cubic polynomial showing local extrema

Second Derivative and Concavity

  • Geometric Concavity:

    • Graphically, a function is concave up if its curve opens upward (like a cup or bowl).

    • A function is concave down if its curve opens downward.   

      Visual distinction between concave up and concave down curves
    • Concavity is distinct from whether a function is rising or falling: a function can be concave up while increasing or while decreasing, and concave down while increasing or while decreasing.   

      Function graph with alternating intervals of concavity
  • Epidemic Modeling Application:

    • Let f(x)f(x) represent the number of individuals infected with a disease at time xx.

    • Consider two potential trajectories at the present moment (now\text{now}), where current infected counts f(now)f(\text{now}) and rates of new infections f′(now)f'(\text{now}) are identical:

    • Situation (a): The graph is concave down at now\text{now}. The slopes of the tangent lines are decreasing (ff is increasing at a decreasing rate). The epidemic is leveling off, showing that current intervention strategies are bringing it under control.

    • Situation (b): The graph is concave up at now\text{now}. The slopes of the tangent lines are increasing (ff is increasing at an increasing rate). The rate of infection is accelerating, signaling an out-of-control epidemic requiring stronger measures and resources.   

      Comparison of epidemic infection curves exhibiting identical slopes but opposing concavities
  • Definition and Notations of the Second Derivative:

    • Let y=f(x)y = f(x). The second derivative of ff is the derivative of the first derivative y′=f′(x)y' = f'(x).

    • Prime notation: written as f′′(x)f''(x) or y′′y'' (read aloud as "yy double prime").

    • Leibniz notation: written as d2ydx2\frac{d^2y}{dx^2} or d2fdx2\frac{d^2f}{dx^2} (read aloud as "the second derivative of ff").

  • Relationship Between Concavity and the Second Derivative:

    • If f′′(x)>0f''(x) > 0 on an interval, then the graph of y=f(x)y = f(x) is concave up on that interval. The function increases (or decreases) at an increasing rate.

    • If f′′(x)<0f''(x) < 0 on an interval, then the graph of y=f(x)y = f(x) is concave down on that interval. The function increases (or decreases) at a decreasing rate.

    • For a function ff that is twice differentiable on (a,b)(a,b), the converse holds:

    • ff is concave up on (a,b)  ⟺  f′′(x)≥0(a,b) \iff f''(x) \ge 0 for all x∈(a,b)x \in (a,b).

    • ff is concave down on (a,b)  ⟺  f′′(x)≤0(a,b) \iff f''(x) \le 0 for all x∈(a,b)x \in (a,b).

  • Higher-Order Derivative Computation:

    • For f(x)=3x7f(x) = 3x^7:

    • First derivative: f′(x)=ddx(3x7)=21x6f'(x) = \frac{d}{dx}(3x^7) = 21x^6.

    • Second derivative: f′′(x)=ddx(21x6)=126x5f''(x) = \frac{d}{dx}(21x^6) = 126x^5.

  • Kinematic Interpretation of Derivatives:

    • If f(t)f(t) represents position at time tt:

    • Velocity is the first derivative: v(t)=f′(t)v(t) = f'(t).

    • Acceleration is the second derivative: a(t)=v′(t)=f′′(t)a(t) = v'(t) = f''(t).

    • Physical particle motion example with height f(t)=t3−4t2+8tf(t) = t^3 - 4t^2 + 8t (in feet, seconds):

    • Position function: f(t)=t3−4t2+8tf(t) = t^3 - 4t^2 + 8t.

    • Velocity function: v(t)=f′(t)=3t2−8t+8v(t) = f'(t) = 3t^2 - 8t + 8.

    • Acceleration function: a(t)=f′′(t)=6t−8a(t) = f''(t) = 6t - 8.

    • At t=0 st = 0\,\text{s}:

      • Height: f(0)=0 feetf(0) = 0\,\text{feet}.

      • Velocity: v(0)=8 ft/sv(0) = 8\,\text{ft/s}.

      • Acceleration: a(0)=−8 ft/s2a(0) = -8\,\text{ft/s}^2.

      • Kinematic interpretation: Velocity is positive (particle moves upward), but acceleration is negative (velocity is decreasing; particle is slowing down).

    • At t=1 st = 1\,\text{s}:

      • Height: f(1)=(1)3−4(1)2+8(1)=5 feetf(1) = (1)^3 - 4(1)^2 + 8(1) = 5\,\text{feet}.

      • Velocity: v(1)=3(1)2−8(1)+8=3 ft/sv(1) = 3(1)^2 - 8(1) + 8 = 3\,\text{ft/s}.

      • Acceleration: a(1)=6(1)−8=−2 ft/s2a(1) = 6(1) - 8 = -2\,\text{ft/s}^2.

      • Kinematic interpretation: Velocity is positive (rising), but acceleration is negative (slowing down).

    • At t=2 st = 2\,\text{s}:

      • Height: f(2)=(2)3−4(2)2+8(2)=8−16+16=8 feetf(2) = (2)^3 - 4(2)^2 + 8(2) = 8 - 16 + 16 = 8\,\text{feet}.

      • Velocity: v(2)=3(2)2−8(2)+8=12−16+8=4 ft/sv(2) = 3(2)^2 - 8(2) + 8 = 12 - 16 + 8 = 4\,\text{ft/s}.

      • Acceleration: a(2)=6(2)−8=4 ft/s2a(2) = 6(2) - 8 = 4\,\text{ft/s}^2.

      • Kinematic interpretation: Velocity is positive (rising) and acceleration is positive (speeding up).

Inflection Points

  • Definitions and Conditions:

    • Formal Definition: An inflection point is a point on the graph of a function where the concavity changes, either from concave up to concave down or from concave down to concave up.

    • Working Definition: An inflection point is a point on the graph where the second derivative changes sign.

    • A necessary condition for an inflection point is that f′′(x)=0f''(x) = 0 or f′′(x)f''(x) is undefined.

    • This condition is not sufficient on its own: f′′(x)f''(x) must actively change sign across the point.

  • Inflection Point Identification on Generic Curves:

    Curve with labeled points a through h for concavity analysis
    • Points bb and gg are inflection points because the concavity changes across them.

    • Points aa and hh are not inflection points; the curve remains concave up on both sides.

    • Points cc and ff are not inflection points; the curve remains concave down on both sides.

    • Point ee is a sharp cusp where the curve is concave down on both sides; concavity does not change, so it is not an inflection point.

  • Comparative Case Studies of Potential Inflection Points:

    Plots of x cubed, x to the fourth, and x to the one-third
    • Case 1: f(x)=x3f(x) = x^3:

    • Derivatives: f′(x)=3x2f'(x) = 3x^2, f′′(x)=6xf''(x) = 6x.

    • Candidate location: f′′(x)=0  ⟹  x=0f''(x) = 0 \implies x = 0.

    • Sign testing: For x<0x < 0, f′′(x)<0f''(x) < 0 (concave down). For x>0x > 0, f′′(x)>0f''(x) > 0 (concave up).

    • Conclusion: Concavity changes at x=0x = 0, so (0,0)(0, 0) is an inflection point.

    • Case 2: g(x)=x4g(x) = x^4:

    • Derivatives: g′(x)=4x3g'(x) = 4x^3, g′′(x)=12x2g''(x) = 12x^2.

    • Candidate location: g′′(x)=0  ⟹  x=0g''(x) = 0 \implies x = 0.

    • Sign testing: For x<0x < 0, g′′(x)=12(x)2>0g''(x) = 12(x)^2 > 0 (concave up). For x>0x > 0, g′′(x)>0g''(x) > 0 (concave up).

    • Conclusion: Although g′′(0)=0g''(0) = 0, the concavity does not change. Thus, (0,0)(0, 0) is not an inflection point.

    • Case 3: h(x)=x1/3h(x) = x^{1/3}:

    • Derivatives: h′(x)=13x−2/3h'(x) = \frac{1}{3}x^{-2/3}, h′′(x)=−29x−5/3h''(x) = -\frac{2}{9}x^{-5/3}.

    • Candidate location: h′′(x)h''(x) is undefined at x=0x = 0.

    • Sign testing: For x<0x < 0, x−5/3<0  ⟹  h′′(x)=−29(negative)>0x^{-5/3} < 0 \implies h''(x) = -\frac{2}{9}(\text{negative}) > 0 (concave up). For x>0x > 0, x−5/3>0  ⟹  h′′(x)=−29(positive)<0x^{-5/3} > 0 \implies h''(x) = -\frac{2}{9}(\text{positive}) < 0 (concave down).

    • Conclusion: Concavity changes across x=0x = 0, so (0,0)(0, 0) is an inflection point.

  • Inflection Point in Polynomial Sketching:

    • For f(x)=x3−6x2+9x+1f(x) = x^3 - 6x^2 + 9x + 1:

    • Second derivative: f′′(x)=6x−12f''(x) = 6x - 12.

    • Set f′′(x)=0  ⟹  6x−12=0  ⟹  x=2f''(x) = 0 \implies 6x - 12 = 0 \implies x = 2.

    • Interval (−∞,2)(-\infty, 2): f′′(0)=6(0)−12=−12<0  ⟹  ff''(0) = 6(0) - 12 = -12 < 0 \implies f is concave down.

    • Interval (2,∞)(2, \infty): f′′(3)=6(3)−12=6>0  ⟹  ff''(3) = 6(3) - 12 = 6 > 0 \implies f is concave up.

    • Inflection point occurs at x=2x = 2, with coordinates (2,f(2))=(2,(2)3−6(2)2+9(2)+1)=(2,8−24+18+1)=(2,3)(2, f(2)) = (2, (2)^3 - 6(2)^2 + 9(2) + 1) = (2, 8 - 24 + 18 + 1) = (2, 3).

  • Graph Construction with Prescribed Local Properties:

    • For a function satisfying f(2)=3f(2) = 3, f′(2)=1f'(2) = 1, and possessing an inflection point at (2,3)(2, 3), the tangent line at (2,3)(2,3) has a slope of 11.

    • The curve can transition from concave up to concave down, or from concave down to concave up across (2,3)(2, 3), slicing through its tangent line.   

      Two potential solution graphs with an inflection point at (2,3) and slope of 1

Curve Sketching Methodology and Derivative Analysis

  • Summary of Derivative Information About Function Shape:

  | Original Function f(x)f(x) | First Derivative f′(x)f'(x) | Second Derivative f′′(x)f''(x) |   | :--- | :--- | :--- |   | Increasing | Positive (++, f′(x)>0f'(x) > 0) | |   | Decreasing | Negative (−-, f′(x)<0f'(x) < 0) | |   | Concave up | Increasing | Positive (++, f′′(x)>0f''(x) > 0) |   | Concave down | Decreasing | Negative (−-, f′′(x)<0f''(x) < 0) |

  • When f′(x)=0f'(x) = 0, the graph of ff may have a local maximum or local minimum.

  • When f′′(x)=0f''(x) = 0, the graph of ff may have an inflection point.

    • Curve Sketching Analysis for Cusp Functions: f(x)=x2/3f(x) = x^{2/3}:

  • First derivative: f′(x)=23x−1/3=23x3f'(x) = \frac{2}{3}x^{-1/3} = \frac{2}{3\sqrt[3]{x}}, undefined at x=0x = 0.

  • Second derivative: f′′(x)=−29x−4/3=−29(x3)4f''(x) = -\frac{2}{9}x^{-4/3} = -\frac{2}{9(\sqrt[3]{x})^4}, undefined at x=0x = 0.

  • Critical number is x=0x = 0, yielding test intervals (−∞,0)(-\infty, 0) and (0,∞)(0, \infty).

  • Interval (−∞,0)(-\infty, 0): Test value x=−1x = -1:

    • f′(−1)=23(−1)−1/3=−23<0f'(-1) = \frac{2}{3}(-1)^{-1/3} = -\frac{2}{3} < 0 (decreasing).

    • f′′(−1)=−29(−1)−4/3=−29<0f''(-1) = -\frac{2}{9}(-1)^{-4/3} = -\frac{2}{9} < 0 (concave down).

  • Interval (0,∞)(0, \infty): Test value x=1x = 1:

    • f′(1)=23(1)−1/3=23>0f'(1) = \frac{2}{3}(1)^{-1/3} = \frac{2}{3} > 0 (increasing).

    • f′′(1)=−29(1)−4/3=−29<0f''(1) = -\frac{2}{9}(1)^{-4/3} = -\frac{2}{9} < 0 (concave down).

  • Base coordinate: f(0)=02/3=0f(0) = 0^{2/3} = 0.

  • Geometric conclusion: The curve decreases and is concave down to the left of the origin, then increases and is concave down to the right of the origin, forming a sharp vertical cusp at (0,0)(0, 0).   

    Graph of x to the two-thirds exhibiting a sharp cusp at the origin
    • Reconstructing Derivatives from Data Graphs: Company Bank Balance:

  • Let B(t)B(t) represent a company's bank balance in millions of dollars, tt weeks after releasing a new product.   

    Bank balance B(t) curve with marked tangent slopes and inflection points
  • Horizontal tangent lines occur at approximately t≈0.6t \approx 0.6 and t≈3.2t \approx 3.2, identifying where the marginal balance B′(t)=0B'(t) = 0.

  • Monotonicity and sign correspondence of B′(t)B'(t):

    | Interval | Function Behavior B(t)B(t) | Derivative Value B′(t)B'(t) |     | :--- | :--- | :--- |     | 0<t<0.60 < t < 0.6 | Decreasing | Negative (B′(t)<0B'(t) < 0) |     | 0.6<t<3.20.6 < t < 3.2 | Increasing | Positive (B′(t)>0B'(t) > 0) |     | t>3.2t > 3.2 | Decreasing | Negative (B′(t)<0B'(t) < 0) |

  • Inflection points occur at approximately t≈1.5t \approx 1.5 and t≈5.5t \approx 5.5. At these points, B′(t)B'(t) switches between increasing and decreasing, forming local extrema of the derivative function.

  • Concavity and slope correspondence of B′(t)B'(t):

    | Interval | Function Concavity B(t)B(t) | Derivative Behavior B′(t)B'(t) |     | :--- | :--- | :--- |     | 0<t<1.50 < t < 1.5 | Concave up | Increasing |     | 1.5<t<5.51.5 < t < 5.5 | Concave down | Decreasing |     | t>5.5t > 5.5 | Concave up | Increasing |

  • Specific slope estimations for sketch precision:

    • At t=0t = 0: B′(0)≈−10B'(0) \approx -10.

    • At t=1.5t = 1.5: B′(1.5)≈3B'(1.5) \approx 3.

    • For t>5.5t > 5.5: B′(t)≈−1B'(t) \approx -1.

  • Connecting these features yields a precise reconstruction of the derivative curve:   

    Estimated marginal balance derivative curve

Optimization and Local Extrema

  • Foundations of Optimization:

    • Optimization is the mathematical process of locating the maximum or minimum values of a function.

    • Real-world applications include maximizing computer processor speed, minimizing appliance heat generation, maximizing corporate profit and market share, minimizing manufacturing waste, or maximizing academic performance while minimizing required study hours.

  • Definitions of Local Extrema:

    • A function ff has a local maximum at aa if f(a)≥f(x)f(a) \ge f(x) for all xx in an open neighborhood near aa.

    • A function ff has a local minimum at aa if f(a)≤f(x)f(a) \le f(x) for all xx in an open neighborhood near aa.

    • A function ff has a local extreme (or relative extreme) at aa if f(a)f(a) is either a local maximum or a local minimum.

    • Local extrema are determined strictly by the local geometric shape of the curve.

  • Critical Numbers and Critical Points:

    • Critical Number: A value x=ax = a in the domain of ff where either f′(a)=0f'(a) = 0 or f′(a)f'(a) is undefined.

    • Critical Point: An ordered pair (a,f(a))(a, f(a)) where aa is a critical number of ff.

    • Useful Fact: A local maximum or minimum of ff can only occur at a critical point.

    • At smooth local extrema, the tangent line is horizontal (f′(a)=0f'(a) = 0); at sharp local extrema or cusps, the tangent line is vertical or discontinuous (f′(a)f'(a) undefined).

  • Critical Numbers Do Not Guarantee Extrema:

    • Finding a critical point is a necessary prerequisite, but it does not guarantee that an extreme value exists.

    • Illustrated by six distinct behaviors at critical points with x=2x = 2 and y=3y = 3:

    • (a) Smooth crest: horizontal tangent, local maximum.

    • (b) Smooth trough: horizontal tangent, local minimum.

    • (c) Inflection corner: slope changes but continues rising, neither.

    • (d) Sharp peak: undefined derivative, local maximum.

    • (e) Sharp cusp trough: undefined derivative, local minimum.

    • (f) Corner transition: undefined derivative, continues falling, neither.   

      Six configurations of critical points at (2,3) demonstrating local maxima, local minima, and non-extrema
    • Example: f(x)=x3f(x) = x^3

    • Differentiating gives f′(x)=3x2f'(x) = 3x^2.

    • Setting f′(x)=0f'(x) = 0 yields critical number x=0x = 0, with critical point (0,0)(0, 0).

    • If x>0x > 0, then f(x)=x3>0=f(0)f(x) = x^3 > 0 = f(0), meaning f(0)f(0) is not a local maximum.

    • If x<0x < 0, then f(x)=x3<0=f(0)f(x) = x^3 < 0 = f(0), meaning f(0)f(0) is not a local minimum.

    • Thus, f(x)=x3f(x) = x^3 has a critical point at (0,0)(0, 0), but has no local extremes whatsoever.   

      Graph of x cubed showing stationary inflection point at origin
  • The First Derivative Test for Extremes:

    • Procedure:

    1. Find all critical numbers of ff.

    2. For each critical number cc, evaluate the sign of f′(x)f'(x) immediately to the left and right of cc.

    • Classification Rules:

    • If f′(x)f'(x) changes from positive to negative at x=cx = c, then ff has a local maximum at (c,f(c))(c, f(c)).

    • If f′(x)f'(x) changes from negative to positive at x=cx = c, then ff has a local minimum at (c,f(c))(c, f(c)).

    • If f′(x)f'(x) does not change sign at x=cx = c, then (c,f(c))(c, f(c)) is neither a local maximum nor a local minimum.   

      Four derivative sign change conditions across a critical point
  • First Derivative Test Worked Example: f(x)=x3−6x2+9x+2f(x) = x^3 - 6x^2 + 9x + 2:

    • Compute first derivative: f′(x)=3x2−12x+9=3(x2−4x+3)=3(x−1)(x−3)f'(x) = 3x^2 - 12x + 9 = 3(x^2 - 4x + 3) = 3(x - 1)(x - 3).

    • Setting f′(x)=0f'(x) = 0 yields critical numbers x=1x = 1 and x=3x = 3, corresponding to points (1,6)(1, 6) and (3,2)(3, 2).

    • Evaluating x=1x = 1:

    • For xx slightly less than 11: (x−1)<0(x - 1) < 0 and (x−3)<0  ⟹  f′(x)=3(−)(−)>0(x - 3) < 0 \implies f'(x) = 3(-)(-) > 0.

    • For xx slightly greater than 11 (e.g., x=2x = 2): (x−1)>0(x - 1) > 0 and (x−3)<0  ⟹  f′(x)=3(+)(−)<0(x - 3) < 0 \implies f'(x) = 3(+)(-) < 0.

    • Because f′f' switches from positive to negative, (1,6)(1, 6) is a local maximum.

    • Evaluating x=3x = 3:

    • For xx slightly less than 33 (e.g., x=2x = 2): f′(x)<0f'(x) < 0.

    • For xx slightly greater than 33 (e.g., x=4x = 4): (x−1)>0(x - 1) > 0 and (x−3)>0  ⟹  f′(x)=3(+)(+)>0(x - 3) > 0 \implies f'(x) = 3(+)(+) > 0.

    • Because f′f' switches from negative to positive, (3,2)(3, 2) is a local minimum.

  • The Second Derivative Test for Extremes:

    • Procedure:

    1. Find all critical numbers cc of ff where f′(c)=0f'(c) = 0.

    2. Evaluate the second derivative f′′(c)f''(c).

    • Classification Rules:

    • (a) If f′′(c)<0f''(c) < 0, then ff is concave down at cc, and ff has a local maximum at x=cx = c.

    • (b) If f′′(c)>0f''(c) > 0, then ff is concave up at cc, and ff has a local minimum at x=cx = c.

    • (c) If f′′(c)=0f''(c) = 0, the test is inconclusive; ff may have a local maximum, a local minimum, or neither at x=cx = c (the First Derivative Test must be used instead).

    • Mnemonic Aid:

    • A positive face (++++ eyes with a smile ⌣\smile) represents positive second derivative (f′′>0f'' > 0), concave up shape, and a local minimum.

    • A negative face (−−-- eyes with a frown ⌢\frown) represents negative second derivative (f′′<0f'' < 0), concave down shape, and a local maximum.   

      Smiley and frowny mnemonic faces illustrating the second derivative test
  • Second Derivative Test Worked Example: f(x)=2x3−15x2+24x−7f(x) = 2x^3 - 15x^2 + 24x - 7:

    • First derivative: f′(x)=6x2−30x+24=6(x2−5x+4)=6(x−1)(x−4)f'(x) = 6x^2 - 30x + 24 = 6(x^2 - 5x + 4) = 6(x - 1)(x - 4).

    • Critical numbers occur at x=1x = 1 and x=4x = 4.

    • Second derivative: f′′(x)=12x−30f''(x) = 12x - 30.

    • Evaluate at x=1x = 1: f′′(1)=12(1)−30=−18<0f''(1) = 12(1) - 30 = -18 < 0. By the Second Derivative Test, f(1)f(1) is a local maximum.

    • Evaluate at x=4x = 4: f′′(4)=12(4)−30=48−30=18>0f''(4) = 12(4) - 30 = 48 - 30 = 18 > 0. By the Second Derivative Test, f(4)f(4) is a local minimum.

  • Comparison of First vs. Second Derivative Tests:

    • The Second Derivative Test requires evaluating only one value per critical number rather than testing intervals on both sides, which is often faster for polynomials.

    • If calculating the first derivative required extensive product, quotient, or chain rules, computing the second derivative can be prohibitively tedious.

    • The Second Derivative Test can fail (f′′(c)=0f''(c) = 0 or undefined), whereas the First Derivative Test always provides a definitive classification.

Global Extrema and Boundary Analysis

  • Definitions of Global Extrema:

    • A function ff has a global maximum (or absolute maximum) at aa if f(a)≥f(x)f(a) \ge f(x) for all xx in the entire domain of ff.

    • A function ff has a global minimum (or absolute minimum) at aa if f(a)≤f(x)f(a) \le f(x) for all xx in the entire domain of ff.

    • A function ff has a global extreme at aa if f(a)f(a) is a global maximum or a global minimum.

    • Global extrema depend on both the intrinsic geometric shape of the graph and the specific domain window through which the graph is viewed.   

      Curve illustrating local extrema and distinguishing those that also serve as global extrema
  • Relationship Between Local and Global Extrema:

    • Every global extreme on an open interval or interior domain is also a local extreme.

    • Many local extrema are not global extrema.

    • Geographic Elevation Analogy:

    • Let h(x)h(x) represent the height of the Earth above sea level at location xx.

    • Global maximum of Earth: h(summit of Mt. Everest)=29,028 feeth(\text{summit of Mt. Everest}) = 29,028\,\text{feet}.

    • Local maximum for the United States: h(summit of Mt. McKinley)=20,320 feeth(\text{summit of Mt. McKinley}) = 20,320\,\text{feet}.

    • Local minimum for the United States: h(Death Valley)=−282 feeth(\text{Death Valley}) = -282\,\text{feet}.

  • Annual Calculus Enrollment Data Example:

  | Year | Enrollment |   | :---: | :---: |   | 2000 | 1257 |   | 2001 | 1324 |   | 2002 | 1378 |   | 2003 | 1336 |   | 2004 | 1389 |   | 2005 | 1450 |   | 2006 | 1523 |   | 2007 | 1582 |   | 2008 | 1567 |   | 2009 | 1545 |   | 2010 | 1571 |

  • Local maxima occurred in 2002 (enrollment 13781378) and 2007 (enrollment 15821582).

  • Global maximum occurred in 2007 with 1582 students1582\,\text{students}.

  • Local minima occurred in 2003 (enrollment 13361336) and 2009 (enrollment 15451545).

  • Global minimum occurred in 2003 with 1336 students1336\,\text{students}.

  • Convention note: Boundary endpoints (2000 and 2010) are typically excluded from being classified as local extrema, although some textbooks permit endpoint local extrema.

    • General Guidelines for Finding Global (Absolute) Extrema:

  • Global extrema can occur only at critical points or at endpoints.

  • Single Critical Point Rule: If a continuous function has exactly one critical point on an interval, and that point is a local extremum, it is automatically the global extremum on that interval.

    • Geometry: If a function has a single local maximum, the curve moves downward on both sides; to reach a higher value, the curve would have to turn upward, creating a second critical point.

  • Closed Interval Method:

    • For a continuous function f(x)f(x) defined on a closed interval [a,b][a, b]:

      1. Find all critical numbers of f(x)f(x) residing within [a,b][a, b].

      2. Evaluate ff at each critical number.

      3. Evaluate ff at each endpoint (x=ax = a and x=bx = b).

      4. The greatest of these function values is the global (absolute) maximum; the least of these values is the global (absolute) minimum.

    • A continuous function on a closed interval is guaranteed to have both an absolute maximum and an absolute minimum.

    • Closed Interval Optimization Example: f(x)=x3−3x2−9x+5f(x) = x^3 - 3x^2 - 9x + 5 on [−2,6][-2, 6]:

  • Differentiate: f′(x)=3x2−6x−9=3(x2−2x−3)=3(x+1)(x−3)f'(x) = 3x^2 - 6x - 9 = 3(x^2 - 2x - 3) = 3(x + 1)(x - 3).

  • Set f′(x)=0  ⟹  x=−1f'(x) = 0 \implies x = -1 and x=3x = 3. Both critical numbers lie within [−2,6][-2, 6].

  • Endpoints are x=−2x = -2 and x=6x = 6.

  • Value comparison:

    | xx | f(x)f(x) Calculation | Value |     | :---: | :--- | :---: |     | −2-2 | (−2)3−3(−2)2−9(−2)+5=−8−12+18+5(-2)^3 - 3(-2)^2 - 9(-2) + 5 = -8 - 12 + 18 + 5 | 33 |     | −1-1 | (−1)3−3(−1)2−9(−1)+5=−1−3+9+5(-1)^3 - 3(-1)^2 - 9(-1) + 5 = -1 - 3 + 9 + 5 | 1010 |     | 33 | (3)3−3(3)2−9(3)+5=27−27−27+5(3)^3 - 3(3)^2 - 9(3) + 5 = 27 - 27 - 27 + 5 | −22-22 |     | 66 | (6)3−3(6)2−9(6)+5=216−108−54+5(6)^3 - 3(6)^2 - 9(6) + 5 = 216 - 108 - 54 + 5 | 5959 |

  • The global minimum on [−2,6][-2, 6] is −22-22, occurring at x=3x = 3.

  • The global maximum on [−2,6][-2, 6] is 5959, occurring at x=6x = 6.

    • Global Extrema on Unbounded Domains:

  • For f(x)=x3−6x2+9x+2f(x) = x^3 - 6x^2 + 9x + 2 on (−∞,∞)(-\infty, \infty):

    • Critical points are (1,6)(1, 6) (local maximum) and (3,2)(3, 2) (local minimum).

    • Because the interval is open and unbounded, endpoints do not exist.

    • As x→∞x \to \infty, f(x)→∞f(x) \to \infty, exceeding the local maximum value of 66 (e.g., f(4)=(4)3−6(4)2+9(4)+2=64−96+36+2=6f(4) = (4)^3 - 6(4)^2 + 9(4) + 2 = 64 - 96 + 36 + 2 = 6, and for x>4x > 4, y>6y > 6).

    • As x→−∞x \to -\infty, f(x)→−∞f(x) \to -\infty, dropping below the local minimum value of 22.

    • Consequently, f(x)=x3−6x2+9x+2f(x) = x^3 - 6x^2 + 9x + 2 has neither a global maximum nor a global minimum on the entire real line.

Practice Exercises and Applied Problems

  • Curvature, Monotonicity, and Rates of Change Statements:

    • Interpreting quantities changing over time with signs of f′(t)f'(t) and f′′(t)f''(t):

    • "Unemployment rose again, but the rate of increase is smaller than last month": f′(t)>0f'(t) > 0 (rising), f′′(t)<0f''(t) < 0 (rate of increase is smaller).

    • "Our profits declined again, but at a slower rate than last month": f′(t)<0f'(t) < 0 (declining), f′′(t)>0f''(t) > 0 (slower decline rate; slopes becoming less negative).

    • "The population is still rising and at a faster rate than last year": f′(t)>0f'(t) > 0 (rising), f′′(t)>0f''(t) > 0 (accelerating rate).

    • "The child's temperature is still rising, but slower than it was a few hours ago": f′(t)>0f'(t) > 0, f′′(t)<0f''(t) < 0.

    • "The number of whales is decreasing, but at a slower rate than last year": f′(t)<0f'(t) < 0, f′′(t)>0f''(t) > 0.

    • "The number of people with the flu is rising and at a faster rate than last month": f′(t)>0f'(t) > 0, f′′(t)>0f''(t) > 0.

  • Properties of Polynomial Inflection Points:

    • A quadratic polynomial f(x)=ax2+bx+cf(x) = ax^2 + bx + c (a≠0a \ne 0) has f′′(x)=2a≠0f''(x) = 2a \ne 0, meaning it can have no inflection points (00 inflection points).

  • A cubic polynomial f(x)=ax3+bx2+cx+df(x) = ax^3 + bx^2 + cx + d (a≠0a \ne 0) has f′′(x)=6ax+2bf''(x) = 6ax + 2b. Setting f′′(x)=0f''(x) = 0 yields x=−b3ax = -\frac{b}{3a}, where the linear second derivative always changes sign; thus, every cubic polynomial has exactly 11 inflection point.

    • A polynomial of degree nn (n≥2n \ge 2) has a second derivative of degree n−2n - 2, meaning it can have at most n−2n - 2 inflection points.

  • Matching Functions and Derivatives:

    Matching functions A, B, C with their derivative plots P, Q, R
    • Function A is a cubic curve with a local max then a local min; its derivative is positive, negative, then positive (parabolic), matching derivative graph Q.

    • Function B is a parabola opening upward with a single minimum where slope is zero; its derivative is a linear function with positive slope passing through zero, matching derivative graph P.

    • Function C is an exponential-like curve that is always increasing at an increasing rate (f′>0,f′′>0f' > 0, f'' > 0); its derivative is always positive and increasing, matching derivative graph R.

  • Matching Heights and Velocities of Rockets:

    Matching rocket height curves A, B, C with velocity curves P, Q, R
    • Rocket Height A rises smoothly to a peak, then descends linearly (constant downward slope); its velocity starts positive, passes through zero to become negative, and then becomes a flat negative constant, matching Velocity graph P.

    • Rocket Height B starts rising slowly, accelerates upward, peaks, and plummets rapidly; its velocity starts small positive, reaches a high positive peak, drops sharply through zero to large negative values, matching Velocity graph R.

    • Rocket Height C rises steeply initially and levels off asymptotically toward a horizontal line; its velocity starts high positive and decreases steadily toward zero, matching Velocity graph Q.

  • Function Optimization Problems on Bounded Intervals:

    • Finding critical points and global extrema for f(x)=x2−6x+5f(x) = x^2 - 6x + 5 on [−2,5][-2, 5]:

    • Derivative: f′(x)=2x−6=0  ⟹  x=3f'(x) = 2x - 6 = 0 \implies x = 3.

    • Evaluate at critical point: f(3)=(3)2−6(3)+5=9−18+5=−4f(3) = (3)^2 - 6(3) + 5 = 9 - 18 + 5 = -4.

    • Evaluate at endpoints: f(−2)=(−2)2−6(−2)+5=4+12+5=21f(-2) = (-2)^2 - 6(-2) + 5 = 4 + 12 + 5 = 21, and f(5)=(5)2−6(5)+5=25−30+5=0f(5) = (5)^2 - 6(5) + 5 = 25 - 30 + 5 = 0.

    • Global maximum is 2121 at x=−2x = -2; global minimum is −4-4 at x=3x = 3.

    • Finding critical points and global extrema for f(x)=2−x3f(x) = 2 - x^3 on [−2,1][-2, 1]:

    • Derivative: f′(x)=−3x2=0  ⟹  x=0f'(x) = -3x^2 = 0 \implies x = 0.

    • Evaluate at critical point: f(0)=2f(0) = 2.

    • Evaluate at endpoints: f(−2)=2−(−2)3=2−(−8)=10f(-2) = 2 - (-2)^3 = 2 - (-8) = 10, and f(1)=2−(1)3=1f(1) = 2 - (1)^3 = 1.

    • Global maximum is 1010 at x=−2x = -2; global minimum is 11 at x=1x = 1.

    • Finding critical points and global extrema for f(x)=x−exf(x) = x - e^x on [1,2][1, 2]:

    • Derivative: f′(x)=1−ex=0  ⟹  ex=1  ⟹  x=0f'(x) = 1 - e^x = 0 \implies e^x = 1 \implies x = 0, which lies outside the interval [1,2][1, 2].

    • Evaluate at endpoints: f(1)=1−e1=1−e≈−1.718f(1) = 1 - e^1 = 1 - e \approx -1.718, and f(2)=2−e2≈2−7.389=−5.389f(2) = 2 - e^2 \approx 2 - 7.389 = -5.389.

    • Global maximum is 1−e1 - e at x=1x = 1; global minimum is 2−e22 - e^2 at x=2x = 2.

  • Area and Slope Functions:

    • Let A(x)A(x) represent the area bounded between the tt-axis, the curve y=f(t)y = f(t), and a vertical boundary line at t=xt = x:     

      Bounded area function A(x) beneath a continuous curve
    • By the Fundamental Theorem of Calculus, A′(x)=f(x)A'(x) = f(x).

    • A(x)A(x) reaches a minimum at x=0x = 0 where accumulation begins.

    • Because f(t)≥0f(t) \ge 0 across the entire region, A(x)A(x) accumulates area continuously and reaches its maximum at the rightmost boundary x=10x = 10.

    • Let S(x)=f(x)xS(x) = \frac{f(x)}{x} represent the slope of the secant line passing through the origin (0,0)(0,0) and the curve point (x,f(x))(x, f(x)):     

      Secant slope line S(x) from the origin to a curve point
    • Differentiating gives S′(x)=xf′(x)−f(x)x2S'(x) = \frac{x f'(x) - f(x)}{x^2}. Setting S′(x)=0  ⟹  f′(x)=f(x)x=S(x)S'(x) = 0 \implies f'(x) = \frac{f(x)}{x} = S(x).

    • Extrema of S(x)S(x) occur precisely where the secant line from the origin is tangent to the curve y=f(x)y = f(x).

    • The maximum of S(x)S(x) occurs at the point of tangency on the highest crest, and the minimum occurs at the point of tangency on the lowest dip.