A topic in the Open Knowledge Graph — a free, open map of 15,495 topics and the order to learn them in.

Unconstrained Optimization: Finding Extrema

College Depth 96 in the knowledge graph ☐ I know this ☆ Set as goal
1,017topics build on this
432prerequisites beneath it
See this on the map →
Critical Points, Extrema, and Saddle PointsThe Hessian Matrix and Second Derivative Test→→Applications of Multivariable CalculusLagrange Multipliers+1 more
optimization extrema applications

Core Idea

To optimize f(x, y) without constraints: (1) find critical points by setting ∇f = 0, (2) classify each using the Hessian test, (3) check boundary behavior. This process identifies global maxima and minima.

How It's Best Learned

Work f(x, y) = x³ − 3x + y² on the whole plane through all three steps. Setting ∇f = 0 gives (1, 0) and (−1, 0). The Hessian test makes (1, 0) a local minimum with f = −2 (D = 12, f_xx = 6) and (−1, 0) a saddle (D = −12). Then check behavior far away: along y = 0, f → −∞ as x → −∞, so there is no global minimum.

Common Misconceptions

Explainer

Optimization in single-variable calculus works by finding points where f'(x) = 0 (critical points) and then applying the second derivative test to classify them as local max, min, or neither. Multivariable unconstrained optimization follows exactly the same logical structure, with the gradient replacing the derivative and the Hessian replacing the second derivative.

The first step is finding critical points: solve ∇f = 0, meaning both ∂f/∂x = 0 and ∂f/∂y = 0 simultaneously. Geometrically, the gradient points in the direction of steepest ascent; setting it to zero means the surface is locally "flat" at that point — neither ascending nor descending in any direction. Solving the system ∂f/∂x = 0 and ∂f/∂y = 0 gives you the candidate locations for extrema. This is typically a system of nonlinear equations, and solving it may require algebraic manipulation, substitution, or numerical methods.

The second step is classifying each critical point using the Hessian matrix H, whose entries are the second partial derivatives: H = [[f_xx, f_xy], [f_yx, f_yy]]. You already know that the Hessian encodes the local curvature of f in all directions. The second derivative test says: compute D = f_xx · f_yy − (f_xy)². If D > 0 and f_xx > 0, the point is a local minimum. If D > 0 and f_xx < 0, it is a local maximum. If D < 0, it is a saddle point — like the center of a mountain pass, which is a minimum along one direction but a maximum along another. If D = 0, the test is inconclusive. The quantity D is the determinant of H, and its sign tells you whether H is positive definite (bowl-shaped upward), negative definite (bowl-shaped downward), or indefinite (saddle).

The third step — checking boundary behavior — depends on the domain. If f is defined on all of ℝ² and f → ∞ in all directions, then a local minimum is a global minimum. But if the domain is bounded, you must also examine what happens as you approach the boundary (or, on a closed bounded domain, optimize f on the boundary using single-variable techniques). A critical point in the interior is only guaranteed to be a global optimum if the function behaves appropriately at infinity or at the boundary. Forgetting this step is the most common source of wrong answers in applied optimization problems.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Number Bonds Within 5 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Multiplying Binomials (FOIL) → Factoring Trinomials → Factoring Completely → Introduction to Rational Expressions → Simplifying Radical Expressions → Segments and Distance → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Similar Right Triangles and the Geometric Mean → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Special Right Triangles: 30-60-90 → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Inverse Trigonometric Functions → Implicit Differentiation → Related Rates → Optimization Problems → Critical Points of Multivariable Functions → Critical Points and Classification of Extrema → Second Partial Test for Local Extrema (Hessian) → The Hessian Matrix and Second Derivative Test → Unconstrained Optimization: Finding Extrema

Longest path: 97 steps · 432 total prerequisite topics

Prerequisites (2)

Leads To (3)