TExcelTAD
Home › School Calculus: Limits, Derivatives & Integrals › Local Extrema: Critical Points and Fermat's Theorem

Local Extrema: Critical Points and Fermat's Theorem

A fundamental task in science, engineering, and commerce is finding optimal values: maximizing profit, minimizing material consumption, or locating stable equilibrium states.

Before we can optimize, we must understand the mathematical conditions where peaks and valleys can possibly occur. In this lesson, you will master Fermat's Theorem, the rigorous definition of critical points, and the Closed Interval Method for finding absolute extrema on paper.


1. Definitions of Extrema

Let f(x)f(x) be defined on a domain DD.

Local Maximum:f(c)≥f(x)for all x in some open interval containing cLocal Minimum:f(c)≤f(x)for all x in some open interval containing cAbsolute Maximum:f(c)≥f(x)for all x∈DAbsolute Minimum:f(c)≤f(x)for all x∈D\begin{aligned} \text{\bf Local Maximum:} & \quad f(c) \ge f(x) \quad \text{for all } x \text{ in some open interval containing } c \\ \text{\bf Local Minimum:} & \quad f(c) \le f(x) \quad \text{for all } x \text{ in some open interval containing } c \\ \text{\bf Absolute Maximum:} & \quad f(c) \ge f(x) \quad \text{for all } x \in D \\ \text{\bf Absolute Minimum:} & \quad f(c) \le f(x) \quad \text{for all } x \in D \end{aligned}

[!NOTE] An extremum refers to the yy-value (the height of the peak or depth of the valley), while the location of the extremum refers to the xx-value. For instance, if f(2)=7f(2) = 7 is a peak, we say: "The local maximum value is 77, occurring at x=2x = 2."


2. Fermat's Theorem on Stationary Points

The 17th-century French mathematician Pierre de Fermat established the foundational theorem connecting calculus derivatives to local extrema:

Fermat’s Theorem:If f has a local extremum at c and f′(c) exists, then f′(c)=0.\text{\bf Fermat's Theorem:} \quad \text{If } f \text{ has a local extremum at } c \text{ and } f'(c) \text{ exists, then } f'(c) = 0.

The Logic of Fermat's Theorem: Caution with the Converse

Students frequently misinterpret Fermat's Theorem as an "if and only if" statement. It is strictly a one-way implication:

mermaid
flowchart LR
    A["Local Extremum + Differentiable at c"] -- "Always implies" --> B["f'(c) = 0"]
    C["f'(c) = 0"] -- "DOES NOT necessarily imply" --> D["Local Extremum"]
  1. f′(c)=0f'(c) = 0 does NOT guarantee an extremum: For f(x)=x3f(x) = x^3, differentiating gives f′(x)=3x2f'(x) = 3x^2, so f′(0)=0f'(0) = 0. However, the curve merely has a horizontal tangent at the origin and continues climbing; x=0x = 0 is neither a local maximum nor a local minimum.
  2. Local extrema can occur where f′(c)f'(c) does not exist: For f(x)=∣x∣f(x) = |x|, there is a clear absolute minimum at x=0x = 0 (the sharp vertex of the V-shape). Yet f′(0)f'(0) does not exist because the left-hand derivative (−1-1) does not equal the right-hand derivative (+1+1).

3. The Definition of Critical Points

To ensure no peaks or valleys are ever missed, mathematicians define critical points to encompass both smooth horizontal peaks and sharp corners:

Critical Point:A number c in the domain of f such that either f′(c)=0 or f′(c) does not exist.\text{\bf Critical Point:} \quad \text{A number } c \text{ in the \bf domain} \text{ of } f \text{ such that either } f'(c) = 0 \text{ or } f'(c) \text{ does not exist.}

[!IMPORTANT] Domain Requirement: A number cc cannot be a critical point if f(c)f(c) is not defined in the original domain! For example, for f(x)=1xf(x) = \frac{1}{x}, the derivative f′(x)=−1x2f'(x) = -\frac{1}{x^2} is undefined at x=0x = 0. However, x=0x = 0 is not a critical point because 00 is not in the domain of f(x)f(x) (it is a vertical asymptote).


4. The Extreme Value Theorem (EVT) and Closed Interval Method

The Extreme Value Theorem guarantees the existence of optimal values on bounded intervals:

If f is continuous on a closed interval [a,b], then f attains an absolute maximum and absolute minimum on [a,b].\text{If } f \text{ is continuous on a closed interval } [a, b]\text{, then } f \text{ attains an absolute maximum and absolute minimum on } [a, b].

These absolute extrema can occur only at:

  1. Interior critical points c∈(a,b)c \in (a, b)
  2. Endpoints x=ax = a and x=bx = b

The Step-by-Step Closed Interval Method on Paper

mermaid
flowchart TD
    A["Continuous function f(x) on [a, b]"] --> B["1. Compute f'(x)"]
    B --> C["2. Solve f'(c) = 0 and find where f'(c) is undefined in (a, b)"]
    C --> D["3. Discard any critical points lying outside [a, b]"]
    D --> E["4. Compute f(c) for all remaining critical numbers"]
    E --> F["5. Compute endpoint values f(a) and f(b)"]
    F --> G["6. Compare values: Largest = Absolute Max, Smallest = Absolute Min"]

5. Worked Examples

Example 1: Critical Points with Non-Differentiable Cusps

Problem: Find all critical points of f(x)=(x−2)2/3+1f(x) = (x - 2)^{2/3} + 1 on R\mathbb{R}.

Step 1: Check the domain The cube root is defined for all real numbers: Df=RD_f = \mathbb{R}.

Step 2: Differentiate using the Chain Rule

f′(x)=23(x−2)23−1⋅ddx[x−2]=23(x−2)−1/3⋅(1)=23x−23\begin{aligned} f'(x) &= \frac{2}{3}(x - 2)^{\frac{2}{3} - 1} \cdot \frac{d}{dx}[x - 2] \\ &= \frac{2}{3}(x - 2)^{-1/3} \cdot (1) \\ &= \frac{2}{3\sqrt[3]{x - 2}} \end{aligned}

Step 3: Test for f′(x)=0f'(x) = 0

23x−23=0  ⟹  2=0(No solution)\frac{2}{3\sqrt[3]{x - 2}} = 0 \implies 2 = 0 \quad (\text{No solution})

The derivative is never zero.

Step 4: Test where f′(x)f'(x) is undefined The denominator is zero when:

3x−23=0  ⟹  x−2=0  ⟹  x=23\sqrt[3]{x - 2} = 0 \implies x - 2 = 0 \implies x = 2

Since x=2x = 2 is in the domain (f(2)=(0)2/3+1=1f(2) = (0)^{2/3} + 1 = 1), x=2x = 2 is a valid critical point.

Step 5: Inspect behavior around x=2x = 2

  • For x<2x < 2: x−2<0  ⟹  x−23<0  ⟹  f′(x)<0x - 2 < 0 \implies \sqrt[3]{x - 2} < 0 \implies f'(x) < 0 (Decreasing ↘\searrow).
  • For x>2x > 2: x−2>0  ⟹  x−23>0  ⟹  f′(x)>0x - 2 > 0 \implies \sqrt[3]{x - 2} > 0 \implies f'(x) > 0 (Increasing ↗\nearrow).

The derivative switches from negative to positive across x=2x = 2, forming a sharp cusp where f(2)=1f(2) = 1 is a local (and absolute) minimum.

Final Answer:

Critical point: x=2(where f′(x) does not exist);Local minimum at (2,1)\text{Critical point: } x = 2 \quad (\text{where } f'(x) \text{ does not exist}); \quad \text{Local minimum at } (2, 1)

Example 2: The Closed Interval Method on a Polynomial

Problem: Find the absolute maximum and absolute minimum of:

f(x)=2x3−3x2−12x+1on the closed interval [−2,3]f(x) = 2x^3 - 3x^2 - 12x + 1 \quad \text{on the closed interval } [-2, 3]

Step 1: Find all critical numbers of ff in (−2,3)(-2, 3) Compute and factor the derivative:

f′(x)=6x2−6x−12=6(x2−x−2)=6(x−2)(x+1)\begin{aligned} f'(x) &= 6x^2 - 6x - 12 \\ &= 6(x^2 - x - 2) \\ &= 6(x - 2)(x + 1) \end{aligned}

Set f′(x)=0f'(x) = 0:

6(x−2)(x+1)=0  ⟹  x=2orx=−16(x - 2)(x + 1) = 0 \implies x = 2 \quad \text{or} \quad x = -1

Both critical numbers lie inside the open interval (−2,3)(-2, 3).

Step 2: Evaluate f(x)f(x) at all critical points

  • At x=−1x = -1:
    f(−1)=2(−1)3−3(−1)2−12(−1)+1=−2−3+12+1=8f(-1) = 2(-1)^3 - 3(-1)^2 - 12(-1) + 1 = -2 - 3 + 12 + 1 = 8
  • At x=2x = 2:
    f(2)=2(2)3−3(2)2−12(2)+1=16−12−24+1=−19f(2) = 2(2)^3 - 3(2)^2 - 12(2) + 1 = 16 - 12 - 24 + 1 = -19

Step 3: Evaluate f(x)f(x) at the interval endpoints

  • Left endpoint x=−2x = -2:
    f(−2)=2(−2)3−3(−2)2−12(−2)+1=−16−12+24+1=−3f(-2) = 2(-2)^3 - 3(-2)^2 - 12(-2) + 1 = -16 - 12 + 24 + 1 = -3
  • Right endpoint x=3x = 3:
    f(3)=2(3)3−3(3)2−12(3)+1=54−27−36+1=−8f(3) = 2(3)^3 - 3(3)^2 - 12(3) + 1 = 54 - 27 - 36 + 1 = -8

Step 4: Compare all values in a summary table

Candidate xx Type f(x)f(x) Value Conclusion
x=−2x = -2 Left Endpoint −3-3
x=−1x = -1 Critical Point 88 Absolute Maximum
x=2x = 2 Critical Point −19-19 Absolute Minimum
x=3x = 3 Right Endpoint −8-8

Final Answer:

Absolute Maximum value is 8 (at x=−1);Absolute Minimum value is −19 (at x=2)\text{Absolute Maximum value is } 8 \text{ (at } x = -1\text{)}; \quad \text{Absolute Minimum value is } -19 \text{ (at } x = 2\text{)}

Example 3: Absolute Extrema of a Radical Product

Problem: Find the absolute extrema of g(x)=x4−x2g(x) = x \sqrt{4 - x^2} on the interval [−2,2][-2, 2].

Step 1: Domain and Endpoints The radicand requires 4−x2≥0  ⟹  x2≤4  ⟹  −2≤x≤24 - x^2 \ge 0 \implies x^2 \le 4 \implies -2 \le x \le 2. The given interval [−2,2][-2, 2] is exactly the natural domain. At both endpoints:

g(−2)=−24−4=0andg(2)=24−4=0g(-2) = -2\sqrt{4 - 4} = 0 \quad \text{and} \quad g(2) = 2\sqrt{4 - 4} = 0

Step 2: Differentiate using Product and Chain Rules Let u=x  ⟹  u′=1u = x \implies u' = 1 and v=(4−x2)1/2  ⟹  v′=−2x24−x2=−x4−x2v = (4 - x^2)^{1/2} \implies v' = \frac{-2x}{2\sqrt{4 - x^2}} = -\frac{x}{\sqrt{4 - x^2}}.

g′(x)=(1)4−x2+x(−x4−x2)=4−x2−x24−x2\begin{aligned} g'(x) &= (1)\sqrt{4 - x^2} + x\left( -\frac{x}{\sqrt{4 - x^2}} \right) \\ &= \sqrt{4 - x^2} - \frac{x^2}{\sqrt{4 - x^2}} \end{aligned}

Combine over the common denominator 4−x2\sqrt{4 - x^2}:

g′(x)=(4−x2)−x24−x2=4−2x24−x2=2(2−x2)4−x2g'(x) = \frac{(4 - x^2) - x^2}{\sqrt{4 - x^2}} = \frac{4 - 2x^2}{\sqrt{4 - x^2}} = \frac{2(2 - x^2)}{\sqrt{4 - x^2}}

Step 3: Solve for critical numbers in (−2,2)(-2, 2)

  • Numerator equals zero:
    2−x2=0  ⟹  x2=2  ⟹  x=2orx=−22 - x^2 = 0 \implies x^2 = 2 \implies x = \sqrt{2} \quad \text{or} \quad x = -\sqrt{2}
  • Denominator equals zero: 4−x2=0  ⟹  x=±24 - x^2 = 0 \implies x = \pm 2 (these are the boundary endpoints).

Step 4: Evaluate g(x)g(x) at critical points

  • At x=2x = \sqrt{2}:
    g(2)=24−2=22=2g(\sqrt{2}) = \sqrt{2} \sqrt{4 - 2} = \sqrt{2}\sqrt{2} = 2
  • At x=−2x = -\sqrt{2}:
    g(−2)=−24−2=−22=−2g(-\sqrt{2}) = -\sqrt{2} \sqrt{4 - 2} = -\sqrt{2}\sqrt{2} = -2

Step 5: Compare values

  • g(±2)=0g(\pm 2) = 0
  • g(2)=2g(\sqrt{2}) = 2 (Highest value)
  • g(−2)=−2g(-\sqrt{2}) = -2 (Lowest value)

Final Answer:

Absolute Maximum value is 2 at x=2;Absolute Minimum value is −2 at x=−2\text{Absolute Maximum value is } 2 \text{ at } x = \sqrt{2}; \quad \text{Absolute Minimum value is } -2 \text{ at } x = -\sqrt{2}

6. Common Paper Traps & Exam Pitfalls

Common Mistake Why It Fails Correct Paper Method
Forgetting points where f′(x)f'(x) is undefined Critical points include corners and cusps, not just f′(x)=0f'(x) = 0. Check both f′(x)=0f'(x) = 0 AND where denominator of f′(x)f'(x) is 00.
Calling x=0x = 0 a critical point for f(x)=1x2f(x) = \frac{1}{x^2} 00 is not in the domain of f(x)f(x)! A critical point must be in the domain of the original function.
Forgetting to check endpoints Absolute extrema on closed intervals often occur at the boundary edges. Always calculate f(a)f(a) and f(b)f(b) alongside interior critical values.
Plugging critical xx-values into f′(x)f'(x) instead of f(x)f(x) Plugging into f′f' just gives 00, not the extremum height! Always evaluate the original function f(c)f(c) to find maximum/minimum values.

7. Pencil & Paper Practice

Solve these three exercises step by step in your notebook.

  1. Practice 1: Find all critical points of f(x)=x4−8x2+3f(x) = x^4 - 8x^2 + 3.
  2. Practice 2: Find the absolute maximum and minimum of g(x)=x3−12xg(x) = x^3 - 12x on the closed interval [0,4][0, 4].
  3. Practice 3: Does h(x)=∣x−3∣+4h(x) = |x - 3| + 4 have a critical point? If so, identify it and state whether it is a local maximum or minimum.
Click to view step-by-step solutions

Solution to Practice 1

Compute derivative:

f′(x)=4x3−16x=4x(x2−4)=4x(x−2)(x+2)f'(x) = 4x^3 - 16x = 4x(x^2 - 4) = 4x(x - 2)(x + 2)

Set f′(x)=0f'(x) = 0:

4x(x−2)(x+2)=0  ⟹  x=0,x=2,x=−24x(x - 2)(x + 2) = 0 \implies x = 0, \quad x = 2, \quad x = -2

Since ff is a polynomial, f′f' is defined everywhere.

  • Final Answer: Critical points are x=−2,0,2x = -2, 0, 2.

Solution to Practice 2

Find critical points on [0,4][0, 4]:

g′(x)=3x2−12=3(x2−4)=3(x−2)(x+2)g'(x) = 3x^2 - 12 = 3(x^2 - 4) = 3(x - 2)(x + 2)

In the open interval (0,4)(0, 4), only x=2x = 2 is an interior critical number (discard x=−2x = -2 since −2∉[0,4]-2 \notin [0, 4]).

Evaluate candidates:

  • Critical point: g(2)=23−12(2)=8−24=−16g(2) = 2^3 - 12(2) = 8 - 24 = -16
  • Left endpoint: g(0)=03−12(0)=0g(0) = 0^3 - 12(0) = 0
  • Right endpoint: g(4)=43−12(4)=64−48=16g(4) = 4^3 - 12(4) = 64 - 48 = 16

Compare:

  • Largest value: 1616 (at x=4x = 4)
  • Smallest value: −16-16 (at x=2x = 2)
  • Final Answer: Absolute Maximum is 1616 (at x=4x = 4); Absolute Minimum is −16-16 (at x=2x = 2).

Solution to Practice 3

The function h(x)=∣x−3∣+4h(x) = |x - 3| + 4 can be written piecewise:

h(x)={(x−3)+4=x+1if x≥3−(x−3)+4=−x+7if x<3h(x) = \begin{cases} (x - 3) + 4 = x + 1 & \text{if } x \ge 3 \\ -(x - 3) + 4 = -x + 7 & \text{if } x < 3 \end{cases}

The derivative is:

h′(x)={1if x>3−1if x<3h'(x) = \begin{cases} 1 & \text{if } x > 3 \\ -1 & \text{if } x < 3 \end{cases}

At x=3x = 3, the left and right derivatives differ, so h′(3)h'(3) does not exist. Since x=3x = 3 is in the domain (h(3)=4h(3) = 4), x=3x = 3 is a critical point. Since h(x)≥4h(x) \ge 4 for all xx, (3,4)(3, 4) is an absolute (and local) minimum.

  • Final Answer: Critical point at x=3x = 3 where h′h' is undefined; it is an absolute and local minimum with value 44.

Test yourself

Which of the following numbers is a critical point of f(x)=x3−3x2+5f(x) = x^3 - 3x^2 + 5?

  1. x=1x = 1
  2. x=2x = 2
  3. x=3x = 3
  4. x=−2x = -2

Why is x=0x = 0 NOT a critical point of f(x)=1x2f(x) = \frac{1}{x^2}?

  1. Because f′(0)=0f'(0) = 0
  2. Because x=0x = 0 is not in the domain of f(x)f(x)
  3. Because f′(x)f'(x) is positive everywhere
  4. Because the function is continuous at x=0x = 0

What is the absolute maximum value of f(x)=4−x2f(x) = 4 - x^2 on the closed interval [−1,3][-1, 3]?

  1. 44
  2. 33
  3. −5-5
  4. 00