Optimization Formula

Optimization is the process of using derivatives to systematically find maximum or minimum values of a function over a domain.

The Formula

Find critical points by solving f(x)=0f'(x) = 0. Second derivative test: if f(c)<0f''(c) < 0, local max; if f(c)>0f''(c) > 0, local min.

When to use: Find where the function hits its peaks (maxima) and valleys (minima) by finding where the slope is zero.

Quick Example

Maximize area of rectangle with fixed perimeter: take derivative, set to zero, solve.

Notation

Critical point: cc where f(c)=0f'(c) = 0 or f(c)f'(c) is undefined. Local max/min at cc.

What This Formula Means

The process of using derivatives to systematically find maximum or minimum values of a function over a domain.

Find where the function hits its peaks (maxima) and valleys (minima) by finding where the slope is zero.

Formal View

ff has a local maximum at cc if δ>0:f(x)f(c)  x(cδ,c+δ)\exists \delta > 0 : f(x) \leq f(c)\; \forall x \in (c - \delta, c + \delta). Necessary condition (Fermat's theorem): if ff is differentiable at an interior extremum cc, then f(c)=0f'(c) = 0. Second derivative test: f(c)=0f(c)<0    f'(c) = 0 \land f''(c) < 0 \implies local max; f(c)=0f(c)>0    f'(c) = 0 \land f''(c) > 0 \implies local min.

Worked Examples

Example 1

easy
Find the local maximum and minimum values of f(x)=x33x+2f(x) = x^3 - 3x + 2.

Answer

Local maximum: f(1)=4f(-1) = 4; local minimum: f(1)=0f(1) = 0

First step

1
Find f(x)=3x23=3(x21)=3(x1)(x+1)f'(x) = 3x^2 - 3 = 3(x^2 - 1) = 3(x-1)(x+1).

Full solution

  1. 2
    Set f(x)=0f'(x) = 0: critical points at x=1x = 1 and x=1x = -1.
  2. 3
    Find f(x)=6xf''(x) = 6x. At x=1x = -1: f(1)=6<0f''(-1) = -6 < 0, so local maximum.
  3. 4
    At x=1x = 1: f(1)=6>0f''(1) = 6 > 0, so local minimum.
  4. 5
    Evaluate: f(1)=1+3+2=4f(-1) = -1 + 3 + 2 = 4 (local max); f(1)=13+2=0f(1) = 1 - 3 + 2 = 0 (local min).
The second derivative test classifies critical points: negative second derivative means concave down (local max), positive means concave up (local min). Always evaluate the function at the critical point to get the actual max/min value.

Example 2

hard
A farmer has 200 m of fencing to enclose a rectangular field. What dimensions maximize the enclosed area?

Example 3

medium
Find the absolute maximum and minimum of f(x)=x33x2f(x) = x^3 - 3x^2 on [1,3][-1, 3].

Common Mistakes

  • Stopping at f(x)=0f'(x)=0 without classifying — a critical point may be a max, min, or neither; apply the second derivative test.
  • Ignoring endpoints on a closed interval — the absolute max or min can occur at aa or bb, not just at interior critical points.
  • Optimizing the wrong quantity — translate the word problem into a single-variable function of what's being maximized before differentiating.

Why This Formula Matters

Optimization is the payoff of derivatives in the real world: maximizing profit, minimizing material, finding the fastest route. The discipline it teaches is that a candidate isn't an answer — you must verify it's a max not a min (second derivative test) and check the domain endpoints, where the true extreme often hides. Recognizing it by "Am I seeking an extreme value by finding where the slope is zero and then classifying it?" — rather than by familiar numbers — is what lets a student tell it apart from solving f(x)=0f(x)=0 (roots) and second derivative test and related rates in a mixed problem set.

Frequently Asked Questions

What is the Optimization formula?

The process of using derivatives to systematically find maximum or minimum values of a function over a domain.

How do you use the Optimization formula?

Find where the function hits its peaks (maxima) and valleys (minima) by finding where the slope is zero.

What do the symbols mean in the Optimization formula?

Critical point: cc where f(c)=0f'(c) = 0 or f(c)f'(c) is undefined. Local max/min at cc.

Why is the Optimization formula important in Math?

Optimization is the payoff of derivatives in the real world: maximizing profit, minimizing material, finding the fastest route. The discipline it teaches is that a candidate isn't an answer — you must verify it's a max not a min (second derivative test) and check the domain endpoints, where the true extreme often hides. Recognizing it by "Am I seeking an extreme value by finding where the slope is zero and then classifying it?" — rather than by familiar numbers — is what lets a student tell it apart from solving f(x)=0f(x)=0 (roots) and second derivative test and related rates in a mixed problem set.

What do students get wrong about Optimization?

The procedure for optimization is the easy part; the trap is stopping at f(x)=0f'(x)=0 without classifying. Asking "Am I seeking an extreme value by finding where the slope is zero and then classifying it?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the Optimization formula?

Before studying the Optimization formula, you should understand: derivative.

Want the Full Guide?

This formula is covered in depth in our complete guide:

Derivatives Explained: Rules, Interpretation, and Applications →