4.10.18 · D1Advanced Topics (Elite Level)

Foundations — First-order optimality conditions — gradient = 0

2,147 words10 min readBack to topic

Before you can read the parent note, you must be able to read its symbols. Below is every piece of notation and every idea it silently assumes, built up one at a time — each one earned before the next uses it. Nothing here assumes you have seen calculus notation before.


1. The function — a machine that turns inputs into a height

Picture a landscape. You stand somewhere, and the machine tells you your height above sea level. In one variable, the input is your position along a path; in two variables, your position on a map.

Figure — First-order optimality conditions — gradient = 0

The parent note needs because "finding a minimum" means finding the input that makes this height as small as possible.


2. , , and — where inputs and outputs live

The arrow notation reads: " takes an input from -dimensional space and returns a single real number (one height)."

Reveal check:

means the input is...
a point on a 2-D map, and the output is one number (a height).

3. — the special point we are hunting

In the picture of a valley, is the floor of the valley: the horizontal position directly under the lowest point.


4. "Local", "interior", and "boundary" — where you are standing

Figure — First-order optimality conditions — gradient = 0

Reveal check:

Why must be interior for the argument to work?
You must be free to move in both the and direction; a boundary blocks one side.

5. , limits, and — zooming in on one point

The little superscript matters:

  • means "shrink toward zero from the positive side" (approach from the right).
  • means "from the negative side" (approach from the left).

The parent's proof approaches from both sides separately, so this distinction is essential.


6. The derivative — steepness of a 1-D curve

Break the fraction down, because every piece is a picture:

Figure — First-order optimality conditions — gradient = 0

Sign meaning (all three cases):

  • → curve rising as you go right.
  • → curve falling as you go right.
  • → curve momentarily flat (top, bottom, or an inflection like ).

7. Partial derivatives — slope along one axis

Reveal check:

What does the curly signal that the straight does not?
That other input variables are being held constant while we differentiate along one axis.

8. Vectors and the gradient — all the slopes bundled into one arrow

Figure — First-order optimality conditions — gradient = 0

The bold zero (with the little bold-face) means the ==zero vector== — an arrow of length zero, pointing nowhere — as opposed to the plain number . This is why the parent writes , not .

See Gradient and directional derivatives for the full construction.


9. Unit vectors, the dot product, and directional derivatives

Reveal check:

equals which operation on and ?
The dot product .

10. Stationary point & the Hessian — the finish line and the judge


How these feed the topic

Function f: input to height

Derivative f prime: slope in 1D

Limit: shrink the step h

Partial derivative: slope along one axis

Vector: arrow with length and direction

Gradient: all slopes in one arrow

Unit vector: pure direction

Directional derivative

Dot product

Interior point: room both ways

Gradient = zero condition

Stationary point

Hessian: classify the candidate

Each foundation above is a prerequisite arrow feeding into the parent: the topic note.


Equipment checklist

Read every line as a question; only unfold to the parent note once you can answer all of them.

I can say what means in words.
takes a point in -dimensional space and returns one real number (a height).
I know the difference between and .
is the number zero; is the zero vector — an arrow of length zero.
I can describe an interior point and why the topic needs it.
A point with room to step in every direction; the proof must move both and .
I can read vs .
Approach zero from the positive (right) side vs the negative (left) side.
I can state what a derivative measures.
The slope of the curve at a point — rise over run as the run shrinks to zero.
I know what the curly signals.
A partial derivative — slope along one axis while other variables are held fixed.
I can say what the gradient is geometrically.
The arrow pointing in the direction of steepest increase; its length is that steepness.
I can define the dot product in one sentence.
A number measuring how much two vectors point the same way.
I can write the directional derivative as a formula.
.
I know what a stationary point is and that it is only a candidate.
A point with ; it could be a max, min, or saddle.