PracticeVideosBlogFlashcards

20.1 First & Second Derivative Tests, Extrema, Concavity & Optimization

Key Takeaways

  • A critical number cc is an interior domain value where f′(c)=0f'(c) = 0 or f′(c)f'(c) does not exist; local extrema can occur exclusively at critical numbers, but not all critical numbers yield extrema.

  • The Extreme Value Theorem guarantees that every continuous function on a closed interval [a,b][a, b] attains an absolute maximum and minimum; the Candidates Test locates them by comparing function values at all interior critical numbers and boundary endpoints.

  • The First Derivative Test establishes monotonicity (f′(x)>0f'(x) > 0 for increasing, f′(x)<0f'(x) < 0 for decreasing) and classifies local extrema by tracking derivative sign changes: positive to negative indicates a local maximum, and negative to positive indicates a local minimum.

  • Concavity is governed by the second derivative (f′′(x)>0f''(x) > 0 for concave up, f′′(x)<0f''(x) < 0 for concave down); a point of inflection requires an actual change in concavity sign across a point where the curve possesses a continuous tangent line.

  • Applied optimization translates verbal problems into a single-variable objective function via geometric or physical constraint equations, requiring explicit domain verification and confirmation of global optimality via derivative tests.

Last updated: September 2026

20.1 First & Second Derivative Tests, Extrema, Concavity & Optimization

Critical Numbers & The Extreme Value Theorem

Differential calculus provides the analytical framework for uncovering the qualitative and quantitative geometry of functions. At the core of curve analysis is Fermat's Theorem on local extrema: if a function ff attains a local extremum (maximum or minimum) at an interior point cc, and if f′(c)f'(c) exists, then f′(c)=0f'(c) = 0. This motivates the formal definition of a critical number: a number cc in the domain of ff such that either f′(c)=0f'(c) = 0 or f′(c)f'(c) does not exist (is undefined).

Crucially, an xx-value where f′f' is undefined is a critical number only if xx belongs to the domain of ff. For instance, for f(x)=x2/3f(x) = x^{2/3}, f′(x)=23x1/3f'(x) = \frac{2}{3x^{1/3}} is undefined at x=0x = 0; because 00 is in the domain of ff, x=0x = 0 is a critical number (corresponding to a vertical cusp). Conversely, for g(x)=1xg(x) = \frac{1}{x}, g′(x)=−1x2g'(x) = -\frac{1}{x^2} is undefined at x=0x = 0, but x=0x = 0 is not in the domain of gg, so x=0x = 0 is a vertical asymptote rather than a critical number.

The Extreme Value Theorem (EVT) states that if a real-valued function ff is continuous on a closed, bounded interval [a,b][a, b], then ff must attain both an absolute (global) maximum and an absolute (global) minimum at least once on [a,b][a, b]. These absolute extrema must occur either at an interior critical number c∈(a,b)c \in (a, b) or at one of the boundary endpoints x=ax = a or x=bx = b.

The Candidates Test (or Closed Interval Method) operationalizes the EVT:

  1. Confirm ff is continuous on [a,b][a, b].
  2. Calculate f′(x)f'(x) and find all critical numbers c1,c2,…c_1, c_2, \dots lying strictly inside the open interval (a,b)(a, b).
  3. Evaluate the original function ff at each interior critical number: f(c1),f(c2),…f(c_1), f(c_2), \dots
  4. Evaluate ff at the boundary endpoints: f(a)f(a) and f(b)f(b).
  5. Identify the largest evaluated value as the absolute maximum and the smallest evaluated value as the absolute minimum on [a,b][a, b].

Monotonicity & The First Derivative Test

The sign of the first derivative characterizes the direction of a function's graph over an interval:

  • If f′(x)>0f'(x) > 0 for all x∈(a,b)x \in (a, b), then ff is strictly increasing on [a,b][a, b].
  • If f′(x)<0f'(x) < 0 for all x∈(a,b)x \in (a, b), then ff is strictly decreasing on [a,b][a, b].
  • If f′(x)=0f'(x) = 0 for all x∈(a,b)x \in (a, b), then ff is constant on [a,b][a, b].

The First Derivative Test classifies local extrema at a continuous critical number cc:

  1. Local Maximum: If f′(x)f'(x) changes sign from positive to negative as xx increases through cc (i.e., ff transitions from increasing to decreasing), then f(c)f(c) is a local maximum.
  2. Local Minimum: If f′(x)f'(x) changes sign from negative to positive as xx increases through cc (i.e., ff transitions from decreasing to increasing), then f(c)f(c) is a local minimum.
  3. No Local Extremum: If f′(x)f'(x) maintains the same sign on both sides of cc (positive to positive, or negative to negative), then f(c)f(c) is neither a local maximum nor a local minimum. For example, f(x)=x3f(x) = x^3 has f′(0)=0f'(0) = 0, but f′(x)=3x2>0f'(x) = 3x^2 > 0 for all x≠0x \neq 0, producing a stationary point of inflection rather than an extremum.

Concavity & Points of Inflection

While the first derivative dictates the slope of the tangent line, the second derivative dictates the rate of change of that slope, which defines the concavity of the curve:

  • A differentiable function ff is concave upward on an open interval II if f′f' is strictly increasing on II. If f′′(x)>0f''(x) > 0 on II, the graph is concave upward, curving like an open cup ∪\cup. Tangent lines lie strictly below the curve.
  • A differentiable function ff is concave downward on an open interval II if f′f' is strictly decreasing on II. If f′′(x)<0f''(x) < 0 on II, the graph is concave downward, curving like an inverted cup ∩\cap. Tangent lines lie strictly above the curve.

A point of inflection is a point (c,f(c))(c, f(c)) on the curve where the concavity strictly changes sign (from upward to downward, or downward to upward) and where the function is continuous with a well-defined tangent line.

  • A necessary condition for an inflection point on a twice-differentiable function is f′′(c)=0f''(c) = 0 or f′′(c)f''(c) does not exist.
  • However, f′′(c)=0f''(c) = 0 alone is not sufficient. For f(x)=x4f(x) = x^4, f′′(x)=12x2f''(x) = 12x^2, so f′′(0)=0f''(0) = 0. Yet f′′(x)>0f''(x) > 0 for all x≠0x \neq 0; because the concavity does not change sign across x=0x = 0, (0,0)(0, 0) is a local minimum, not a point of inflection.

The Second Derivative Test for Local Extrema

The Second Derivative Test uses curvature at a stationary critical point where f′(c)=0f'(c) = 0:

  1. If f′(c)=0f'(c) = 0 and f′′(c)<0f''(c) < 0, then ff is concave downward at cc, meaning the horizontal tangent sits atop the curve. Thus, f(c)f(c) is a local maximum.
  2. If f′(c)=0f'(c) = 0 and f′′(c)>0f''(c) > 0, then ff is concave upward at cc, meaning the horizontal tangent sits below the curve. Thus, f(c)f(c) is a local minimum.
  3. If f′(c)=0f'(c) = 0 and f′′(c)=0f''(c) = 0 (or f′′(c)f''(c) does not exist), the test is inconclusive. The point may be a local maximum (f(x)=−x4f(x) = -x^4 at 00), a local minimum (f(x)=x4f(x) = x^4 at 00), or an inflection point (f(x)=x3f(x) = x^3 at 00). When this occurs, one must revert to the First Derivative Test.

Curve Sketching & Derivative Behavior Summary

Derivative ConditionGeometric Curve BehaviorClassification / Feature
f′(x)>0f'(x) > 0Slopes upward from left to rightFunction is strictly increasing
f′(x)<0f'(x) < 0Slopes downward from left to rightFunction is strictly decreasing
f′(c)=0f'(c) = 0 or undefined; f′f' changes ++ to −-Peaks smoothly or sharplyLocal (relative) maximum at x=cx = c
f′(c)=0f'(c) = 0 or undefined; f′f' changes −- to ++Valleys smoothly or sharplyLocal (relative) minimum at x=cx = c
f′′(x)>0f''(x) > 0Tangents lie below curve; slopes increasingConcave upward (∪\cup)
f′′(x)<0f''(x) < 0Tangents lie above curve; slopes decreasingConcave downward (∩\cap)
f′′(c)=0f''(c) = 0 or undefined; f′′f'' changes signCurve transitions between ∪\cup and ∩\capPoint of inflection at (c,f(c))(c, f(c))
f′(c)=0f'(c) = 0 and f′′(c)<0f''(c) < 0Horizontal tangent with downward bowlLocal maximum confirmed
f′(c)=0f'(c) = 0 and f′′(c)>0f''(c) > 0Horizontal tangent with upward bowlLocal minimum confirmed
f′(c)=0f'(c) = 0 and f′′(c)=0f''(c) = 0Flat curvature at stationary pointInconclusive; use First Derivative Test

Applied Optimization: Systematic Analytical Methodology

Applied optimization problems require finding the absolute maximum or absolute minimum of a quantity modeled by a mathematical function subject to physical or economic constraints.

  1. Formulate Variables and Objective Function: Identify the target quantity to optimize (e.g., area, volume, cost, material surface area) and write an algebraic expression for it.
  2. Identify Constraint Equations: State the equations relating the auxiliary variables based on geometric, physical, or monetary conditions.
  3. Reduce to a Single Variable: Substitute the constraint into the objective function so that it depends on exactly one independent variable.
  4. Establish the Feasible Domain: Determine the physically and mathematically valid interval for the independent variable, taking note of whether the domain is closed [a,b][a, b] or open (a,b)(a, b).
  5. Differentiate & Locate Critical Numbers: Compute the first derivative of the single-variable objective function, set it equal to zero, and solve for critical values within the feasible domain.
  6. Verify Optimality: If the domain is closed, apply the Candidates Test. If the domain is an open interval with exactly one critical number, apply the Second Derivative Test or First Derivative Test to prove the critical value yields a global extremum.

Worked Exemplar: Optimization of a Cylindrical Container

Problem: A manufacturing engineer must design a closed right circular cylindrical container with a fixed volume of 54π cm354\pi\text{ cm}^3. Determine the radius rr and height hh that minimize the total surface area of the container, and compute this minimum surface area.

Step 1: Define the Objective Function and Constraint. Let rr denote the base radius and hh denote the height in centimeters.

  • Volume constraint: V=πr2h=54π cm3V = \pi r^2 h = 54\pi\text{ cm}^3.
  • Objective: Minimize the total surface area AA consisting of the top, bottom, and lateral surface: A=2πr2+2πrhA = 2\pi r^2 + 2\pi r h

Step 2: Express the Objective Function in a Single Variable. Solve the volume constraint for the secondary variable hh:

h=54ππr2=54r2h = \frac{54\pi}{\pi r^2} = \frac{54}{r^2}

Substitute hh into the surface area equation:

A(r)=2πr2+2πr(54r2)=2πr2+108πrA(r) = 2\pi r^2 + 2\pi r \left(\frac{54}{r^2}\right) = 2\pi r^2 + \frac{108\pi}{r}

Because rr represents a physical length, the feasible domain is the open interval r∈(0,∞)r \in (0, \infty).

Step 3: Differentiate and Solve for Critical Numbers. Compute the first derivative with respect to rr:

A′(r)=ddr[2πr2+108πr−1]=4πr−108πr2A'(r) = \frac{d}{dr}\left[2\pi r^2 + 108\pi r^{-1}\right] = 4\pi r - \frac{108\pi}{r^2}

Set A′(r)=0A'(r) = 0 to locate stationary critical numbers:

4πr−108πr2=0  ⟹  4πr=108πr24\pi r - \frac{108\pi}{r^2} = 0 \implies 4\pi r = \frac{108\pi}{r^2}

Multiply through by r2r^2 and divide by 4π4\pi:

r3=108π4π=27  ⟹  r=273=3 cmr^3 = \frac{108\pi}{4\pi} = 27 \implies r = \sqrt[3]{27} = 3\text{ cm}

Step 4: Verify the Global Minimum via the Second Derivative Test. Differentiate A′(r)A'(r) to compute the second derivative:

A′′(r)=ddr[4πr−108πr−2]=4π+216πr3A''(r) = \frac{d}{dr}\left[4\pi r - 108\pi r^{-2}\right] = 4\pi + \frac{216\pi}{r^3}

Evaluate at the critical radius r=3r = 3:

A′′(3)=4π+216π33=4π+216π27=4π+8π=12π>0A''(3) = 4\pi + \frac{216\pi}{3^3} = 4\pi + \frac{216\pi}{27} = 4\pi + 8\pi = 12\pi > 0

Because A′′(r)>0A''(r) > 0 for all r>0r > 0, the function A(r)A(r) is strictly concave upward across its entire domain. Therefore, r=3 cmr = 3\text{ cm} is the unique absolute minimum.

Step 5: Determine Dimensions and Minimum Surface Area. Calculate the optimal container height:

h=54(3)2=549=6 cmh = \frac{54}{(3)^2} = \frac{54}{9} = 6\text{ cm}

Notice that h=2rh = 2r, confirming the classic geometric result that a cylinder minimizing surface area for a fixed volume has a height equal to its diameter. Calculate the minimum surface area:

A(3)=2π(3)2+108π3=18π+36π=54π cm2A(3) = 2\pi(3)^2 + \frac{108\pi}{3} = 18\pi + 36\pi = 54\pi\text{ cm}^2
Test Your Knowledge

What are the absolute maximum and absolute minimum values of the polynomial function f(x) = 2x^3 - 9x^2 + 12x + 1 on the closed interval [0, 3]?

A

Absolute maximum = 6; Absolute minimum = 5

B

Absolute maximum = 10; Absolute minimum = 5

C

Absolute maximum = 10; Absolute minimum = 1

D

Absolute maximum = 6; Absolute minimum = 1

Test Your Knowledge

On which open interval is the function g(x) = 3x^5 - 5x^4 both strictly decreasing and concave downward?

A

(0, 1)

B

(-infinity, 0)

C

(1, 4/3)

D

(0, 4/3)

Test Your Knowledge

An open-top rectangular storage container is fabricated from a square sheet of metal measuring 24 inches on each side by cutting equal square corners of side length x inches and folding up the flaps. What cut length x maximizes the volume of the container, and what is the resulting maximum volume?

A

x = 6 inches; Maximum volume = 864 cubic inches

B

x = 4 inches; Maximum volume = 576 cubic inches

C

x = 8 inches; Maximum volume = 512 cubic inches

D

x = 4 inches; Maximum volume = 1,024 cubic inches

Test Your Knowledge

Suppose a function f is twice-differentiable on the real numbers, with f'(2) = 0 and f''(2) = 0. Which statement must be true regarding the point at x = 2?

A

The function f has a point of inflection at x = 2.

B

The Second Derivative Test is inconclusive at x = 2, so the point could be a local maximum, a local minimum, or an inflection point.

C

The function f has neither a local extremum nor a point of inflection at x = 2.

D

The function f has a local minimum at x = 2 because f''(2) is non-negative.

Sections you finish are checked off in the contents.