1.2.10 · D1Calculus & Optimization Basics

Foundations — Critical points and saddle points

3,134 words14 min readBack to topic

Before you can read the parent note, you need to own every symbol it throws at you. We build each one from a picture, in the order that lets the next one make sense.


1. A function — the landscape itself

The picture: think of a hilly terrain. Your horizontal position needs two numbers (east–west, north–south) → that is . The height of the ground at that position is one number → that is . So a terrain is exactly .

  • = "all real numbers" — every point on an infinite number line.
  • = "a list of real numbers" — a position needing coordinates.

Why the topic needs it. In machine learning is the loss — a number saying how wrong the model is. The inputs are the model's tunable parameters. We want the position of lowest height (least wrong). See Loss Landscape Visualization.

Figure — Critical points and saddle points

2. A point and the star

The picture: on the terrain, is where you are standing (a pin on the map — exactly the orange dot from §1's figure). Its two numbers are how far east and how far north. is a marked pin — the pass or valley we are investigating.

Why the topic needs it. We cannot write "the flat point" a million different ways for a million-parameter network, so we bundle all coordinates into one bold letter and star the interesting one.


3. A one-input warm-up — the derivative

Why the limit? We want the slope at a single instant, not averaged over a chunk. The gap is the chunk width; sending (the symbol means "the value this creeps toward") collapses the chunk to a point. That is the only tool that gives an instantaneous rate — see Taylor Series.

Sign story (all cases):

  • → ground rises to the right (uphill).
  • → ground falls to the right (downhill).
  • flat — the ground momentarily neither rises nor falls. This is the flatness the whole topic hunts for.
Figure — Critical points and saddle points

4. Slope in every direction — partial derivatives and the gradient

Back to the full world: with a bold input . With inputs there is no single slope: the ground can rise going east yet fall going north. We measure one direction at a time.

The picture: slice the terrain with a vertical wall running exactly east–west through your feet. On that wall's edge you see an ordinary 1-D curve. Its slope is .

Why an arrow? Each partial is one component of a total slope. Combined, they form the single direction of fastest increase — exactly what you'd need to climb fastest, or (with a minus sign) descend fastest.

Figure — Critical points and saddle points

5. Naming the three flat spots — local minimum, maximum, saddle

Before we measure curvature, let us pin down exactly what the words "minimum" and "maximum" mean, so "bowl" and "dome" are not just pictures.

The picture: "local" means look only close by. A valley floor may not be the deepest valley on Earth, but among its own neighbours it is lowest — that is enough to be a local minimum. The three shapes in the next section (bowl, dome, pass) are exactly these three cases.


6. Curvature — the second derivative and the Hessian

For many inputs (back to bold ), curvature also depends on direction, so we need a whole grid of second derivatives.

Why ? Every pair of directions has a bending relationship, and there are ordered pairs. The diagonal () holds pure up/down bending along each axis; off-diagonal entries hold twist. See Second-Order Optimization.

Figure — Critical points and saddle points

7. Reading the Hessian — quadratic forms and eigenvalues

The Hessian is a table of numbers; we need to squeeze one verdict out of it.

Why scan all ? If some direction gives a negative value (an escape route downhill) while another gives positive, that mix is the saddle signature.

Why eigenvalues instead of the raw table? They are the cleanest summary of curvature — one number per independent direction. Their signs give the whole verdict:

All curves up everywhere minimum (bowl)
All curves down everywhere maximum (dome)
Mixed signs up some ways, down others saddle (pass)
Some flat in a direction degenerate — look higher

This is the engine of the classification table in the parent note. Bowls are the friends we chase in Convex Optimization; saddles are the traps escaped by Momentum and Adam.


8. How it all feeds the topic

function f: landscape height

derivative: slope in one direction

partial derivative: slope along one axis

gradient: bundle of all slopes

critical point: gradient equals zero

second derivative: bending

Hessian: all curvatures

quadratic form: height change per step

eigenvalues: curvature per axis

Classify: min or max or saddle

The left branch (slopes → gradient) finds where the flat spots are. The right branch (bending → Hessian → eigenvalues) tells us which kind of flat spot. The topic is exactly these two branches meeting at the verdict box.


Equipment checklist

Test yourself — say each answer aloud before revealing.

What does mean in plain words?
A machine taking a position of numbers and returning one height number.
What is a bold versus a plain ?
Bold is the whole position vector (all coordinates); is a single coordinate (a plain number).
Why does §3 use a plain scalar instead of bold ?
It temporarily shrinks to one input () to define the derivative without clutter; §4 returns to the bold world.
Why does the derivative use a limit ?
To get the slope at a single instant/point instead of averaged over a finite chunk.
What does the curly signal?
A partial derivative — the slope along one axis while all other inputs are frozen.
What is and which way does it point?
The gradient, a vector bundling every partial slope; it points toward steepest ascent.
What does say geometrically?
The ground is flat in every direction at — a critical point.
What is the formal definition of a local minimum?
for all in a small neighbourhood of .
Why isn't a flat spot automatically a minimum?
It could equally be a maximum or a saddle; slope alone can't distinguish them.
What does the vertical bar mean?
"Evaluate this expression at the specific point " after computing it.
What is the difference between and ?
Bold is the whole Hessian matrix; is the single number in row , column , so .
Why is the Hessian symmetric, and why does it matter?
Mixed partials are equal for smooth (), which guarantees real eigenvalues so their signs are meaningful.
Where does the quadratic form come from?
It is the surviving second-order term of the Taylor expansion once the gradient (first-order) term vanishes at a critical point.
What do the signs of 's eigenvalues decide?
All positive → minimum, all negative → maximum, mixed → saddle, any zero → degenerate.
Recall Quick self-check

If you can answer every line above without peeking, you are ready for the parent note's derivations and the Hessian classification table.