1.2.10 · D4Calculus & Optimization Basics

Exercises — Critical points and saddle points

2,920 words13 min readBack to topic

This page is a self-test ladder. Each rung is harder than the last: L1 Recognition → L2 Application → L3 Analysis → L4 Synthesis → L5 Mastery. Read a problem, try it on paper, THEN open the collapsible solution. Every symbol you need was built in the parent note; if a step feels fast, revisit it there.

Quick reminders in one place:

For a Hessian there is a fast shortcut instead of solving the eigenvalue equation:


Level 1 — Recognition

Goal: read off critical points and name their type from the raw definitions.

Exercise 1.1 (L1)

Find all critical points of and classify using .

Recall Solution 1.1

Step 1 — gradient (here just ). WHAT: set the slope to zero. WHY: a critical point is where the tangent line is flat. Step 2 — curvature. everywhere. A positive second derivative means the curve bends upward like a valley. Verdict: is a local (and global) minimum. Value: .

Exercise 1.2 (L1)

For , write the gradient, find the critical point, and state its type by inspection.

Recall Solution 1.2

. Hessian , eigenvalues — both positive. Verdict: minimum (a round bowl). .

Exercise 1.3 (L1)

Which of these Hessians (each already evaluated at a critical point) is a minimum, a maximum, or a saddle?

Recall Solution 1.3

Read the diagonal directly since each is already diagonal — the diagonal entries are the eigenvalues (curvatures along the two axes).

  • : eigenvalues both minimum.
  • : eigenvalues both maximum.
  • : eigenvalues mixed → saddle. Cross-check with : , , . Consistent.

Level 2 — Application

Goal: run the full pipeline — gradient, solve, Hessian, classify — on real functions.

Exercise 2.1 (L2)

Classify the critical point of .

Recall Solution 2.1

Gradient. . Solving: from the first, ; substitute into the second, , so . Critical point . Hessian. . Test. , . Both positive → minimum. (Eigenvalues, if you want them: , both positive. Same verdict.)

Exercise 2.2 (L2)

Find and classify the critical point of .

Recall Solution 2.2

Gradient. . From the first, ; sub into second: . Point . Hessian. . Test. saddle. Geometry: along , (curves down); along , (curves up). Down in one direction, up in another — a saddle. See figure below.

Figure — Critical points and saddle points

Exercise 2.3 (L2)

. Find all critical points and classify each with the second-derivative test.

Recall Solution 2.3

Slope. . Two critical points. Curvature. .

  • At : local maximum, value .
  • At : local minimum, value . This is the classic cubic wiggle: up to a hill at , down to a valley at .

Level 3 — Analysis

Goal: handle degenerate cases, multiple critical points, and reason about why a test fails.

Exercise 3.1 (L3)

. Show the second-derivative test fails at the critical point, then determine the true type from first principles.

Recall Solution 3.1

Critical point. . Second-derivative test. , so . WHAT this means: the quadratic term in the Taylor expansion vanishes, so the bowl/dome test is blind here — degenerate. Go higher. Near , for every , with equality only at . Since moving either way makes strictly larger, is a strict local (and global) minimum — the curve is just extremely flat at the bottom. Contrast with (parent Example 1): there changes sign with , so that was an inflection, not an extremum. The parity of the lowest non-zero power decides: even → extremum, odd → inflection.

Exercise 3.2 (L3)

(a function that ignores ). Find all critical points and explain the degenerate direction.

Recall Solution 3.2

Gradient. . This is whenever , for any . So the entire line is critical — an infinite ridge, not an isolated point. Hessian. , eigenvalues and . The zero eigenvalue is the -direction: is perfectly flat along , so the test is degenerate there. Because the other eigenvalue is positive and never decreases in any direction, every point on the ridge is a (non-strict) minimum — a flat-bottomed trough (a "valley floor"). This is exactly the kind of flat direction that plagues ill-conditioned loss landscapes.

Exercise 3.3 (L3)

("monkey saddle"). Find the critical point and show the standard test is inconclusive.

Recall Solution 3.3

Gradient. , . Setting both to zero: forces or ; either way then forces the other to be . Critical point: . Hessian at origin. , , . So — the zero matrix, all eigenvalues : fully degenerate. True shape (higher order). Along a ray : — up on one side, down on the other. Three "up" valleys and three "down" ridges alternate as you circle the origin (room for two legs and a tail — hence "monkey saddle"). It is a genuine saddle-type point that no second-order test can detect.

Figure — Critical points and saddle points

Level 4 — Synthesis

Goal: combine curvature, eigenvectors, and the optimization picture.

Exercise 4.1 (L4)

At a critical point of a loss you measure the Hessian (a) Classify the point. (b) Give the exact direction (unit vector) in which you should perturb to decrease the loss fastest, and (c) estimate the loss change for a step of size along that direction using the quadratic model.

Recall Solution 4.1

(a) Eigenvalues and → mixed → saddle. (b) The most negative eigenvalue is , whose eigenvector is the -axis, . Loss curves downward fastest there, so that is the escape direction. (See Second-Order Optimization for why the min-eigenvalue direction is the escape route.) (c) Since at a critical point, the quadratic model gives The loss drops by about — a small but definite decrease, confirming the point is not a minimum. This is precisely how noise in SGD/Adam nudges an optimizer off saddles.

Exercise 4.2 (L4)

Build a function of two variables whose only critical point is a saddle with curvature along the direction and along . Give explicitly.

Recall Solution 4.2

Idea (synthesis via eigen-decomposition). We want a quadratic whose Hessian has eigenvalue on eigenvector and on . Reconstruct . Function. Check. only at ; Hessian , → saddle. Its eigenvalues are . Exactly as required. ✓


Level 5 — Mastery

Goal: reason about high dimensions, convexity, and the statistics of saddles.

Exercise 5.1 (L5)

A critical point in has a Hessian with eigenvalues that are each independently positive or negative with probability (a toy model). (a) What is the probability the point is a local minimum? (b) Evaluate for . (c) What does this say about neural network landscapes?

Recall Solution 5.1

(a) A local minimum needs all eigenvalues positive. With independent fair coins, . (b)

  • : .
  • : .
  • : — effectively zero. (c) As dimension grows, minima become exponentially rare; almost every critical point has at least one negative eigenvalue and is therefore a saddle. This matches the parent note's claim that saddles dominate high-dimensional loss landscapes, and it is good news: saddles are escapable, unlike bad local minima. See Second-Order Optimization.

Exercise 5.2 (L5)

Show that a convex twice-differentiable function has no saddle points: every critical point is a global minimum.

Recall Solution 5.2

Fact used. For a convex , the Hessian is positive semi-definite everywhere: for all , i.e. no eigenvalue is ever negative (see Convex Optimization). Argument. A saddle requires at least one negative eigenvalue (a direction of downward curvature). Convexity forbids negative eigenvalues, so no saddle can exist. Any critical point has ; by convexity the first-order Taylor bound holds for all . Hence is a global minimum. This is why convex losses (linear/logistic regression) never have the saddle problem — but real deep nets are non-convex.

Exercise 5.3 (L5)

For , find all critical points and classify each. (This mixes multiple critical points with a non-trivial off-diagonal Hessian.)

Recall Solution 5.3

Gradient. ; . Substitute into : . Real solutions , giving . Critical points: . Hessian. .

  • At : , saddle.
  • At : , , minimum, .
  • At : (same), → minimum, . Picture: two symmetric valleys at separated by a saddle at the origin — a miniature two-basin loss landscape.

Recall Self-check: can you state the whole pipeline from memory?

Steps to classify any critical point ::: (1) solve ; (2) build ; (3) eigenvalue signs — all min, all max, mixed saddle, any degenerate (go higher order). The shortcut ::: ; saddle; with min, max; degenerate. Why saddles dominate high-D ::: a minimum needs all eigenvalues positive, probability , vanishing as grows.