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)=0. Second derivative test: if f′′(c)<0, local max; if f′′(c)>0, local min.

Ask yourself: Am I seeking an extreme value by finding where the slope is zero and then classifying it?

Quick example

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

Notation

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

What this formula means

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

Hiking a ridge in fog, you know you are at a summit or the bottom of a dip when the path goes level, so level ground is where to look. But a level spot can also be a flat ledge partway up a climb, and the hike's highest point might be where the trail ends at a cliff. So check every level spot and both ends.

Formal view

f has a local maximum at c if ∃δ>0:f(x)≤f(c)  ∀x∈(c−δ,c+δ). Necessary condition (Fermat's theorem): if f is differentiable at an interior extremum c, then f′(c)=0. Second derivative test: f′(c)=0∧f′′(c)<0  ⟹   local max; f′(c)=0∧f′′(c)>0  ⟹   local min.

Worked examples

Example 1

easy
Find the local maximum and minimum values of f(x)=x3−3x+2.
Show solution

Answer

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

First step

1.
Find f′(x)=3x2−3=3(x2−1)=3(x−1)(x+1).

Full solution

  1. 2.
    Set f′(x)=0: critical points at x=1 and x=−1.
  2. 3.
    Find f′′(x)=6x. At x=−1: f′′(−1)=−6<0, so local maximum.
  3. 4.
    At x=1: f′′(1)=6>0, so local minimum.
  4. 5.
    Evaluate: f(−1)=−1+3+2=4 (local max); f(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)=x3−3x2 on [−1,3].

Common mistakes

  • Stopping at f′(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 a or b, 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 turns "what is best?" into a calculation. A can maker can find the shape that uses the least metal, a theatre the price that earns the most, a delivery service the fastest route. Skip the classification and you can report a minimum when the question wanted a maximum; ignore the endpoints and you can miss the true best value entirely.

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?

Use optimization when a problem asks for the largest, smallest, most or least of something, or the best choice, and the quantity can be written as a function of one variable after using a constraint such as a fixed perimeter, volume or budget. Then solve f′(x)=0, classify each critical point, and check endpoints on a closed interval. If the question asks where a function equals zero, solve f(x)=0 instead. If it asks how fast one quantity changes as another changes over time, that is related rates.

What do the symbols mean in the Optimization formula?

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

Why is the Optimization formula important in Math?

Optimization turns "what is best?" into a calculation. A can maker can find the shape that uses the least metal, a theatre the price that earns the most, a delivery service the fastest route. Skip the classification and you can report a minimum when the question wanted a maximum; ignore the endpoints and you can miss the true best value entirely.

What do students get wrong about Optimization?

The procedure for optimization is the easy part; the trap is stopping at f′(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.

The full guide

This formula is covered in depth in Derivatives Explained: Rules, Interpretation, and Applications.