Intuition The one idea behind everything
Gradient descent is just rolling downhill in fog : feel the steepest downward slope, step that way, repeat. All the convergence theory is bookkeeping to answer one question — how big a step is safe, and how fast do we reach the bottom? — and the answer is governed entirely by how curved the hill is.
This page is the toolbox. The parent note fires off a barrage of symbols at speed. Here we earn every single one from zero — plain words, then a picture, then why the topic can't live without it . Nothing is used before it is built. Read top to bottom; each item leans only on the ones above it.
Before any symbol, fix the mental picture.
f we want to minimize
We write f : R n → R . In plain words: you hand f a location — a list of n numbers — and it hands back one height number .
R n = "all lists of n real numbers", e.g. a point ( x , y ) when n = 2 .
→ R = "outputs one real number", the height.
The picture (figure s01): for n = 2 , imagine a hilly landscape. The floor is the ( x , y ) plane; the height above each floor-point is f . Our goal is to find the floor-point sitting under the lowest part of the surface.
Intuition Read figure s01
The white curve is f . The blue dotted line drops from a sample location x (blue dot on the floor) up to its height f ( x ) . The pink dot marks x ⋆ , the valley bottom; the yellow dashed line marks its height f ⋆ . Every symbol below lives somewhere in this one picture.
Why the topic needs it: every later symbol describes this landscape — its slope, its curvature, its lowest point. If you don't see the landscape, the algebra is noise.
Why needed: every convergence bound is measured as a distance from x ⋆ or a height gap above f ⋆ . They are the finish line.
A location x ∈ R n is a vector : an arrow from the origin to that floor-point.
∥ v ∥ — length of a vector
For v = ( v 1 , … , v n ) ,
∥ v ∥ = v 1 2 + v 2 2 + ⋯ + v n 2 .
Plain words: the straight-line length of the arrow (Pythagoras in n dimensions).
The picture: in 2D, ∥ ( 3 , 4 ) ∥ = 9 + 16 = 5 — the hypotenuse of a 3-by-4 right triangle.
Why needed: convergence means "the gap shrinks ". To say something shrinks we must measure it — and ∥ x k − x ⋆ ∥ (distance from current point to the goal) is exactly that measuring stick.
∥ v ∥ is not ∣ v ∣ on each coordinate
∥ v ∥ is one number for the whole arrow, not a list of absolute values. It combines all coordinates via the square-root-of-sum-of-squares.
Definition Dot product (inner product)
For two vectors u , v ∈ R n :
u ⊤ v = u 1 v 1 + u 2 v 2 + ⋯ + u n v n .
The little ⊤ ("transpose") just turns a column of numbers on its side so the multiplication lines up; you can read u ⊤ v as "u dot v ".
The picture (figure s02): u ⊤ v = ∥ u ∥ ∥ v ∥ cos θ , where θ is the angle between the arrows. So it measures how much two arrows point the same way : maximal when aligned, zero when perpendicular, negative when opposed.
Intuition Read figure s02
The blue arrow is u , the pink arrow is v , and θ is the chalk angle between them. The yellow dotted drop is v 's shadow onto u ; its length is u ⊤ v /∥ u ∥ . Swing v toward u (shrink θ ) and the shadow — the dot product — grows; make them perpendicular and it vanishes.
Why the topic needs it: the slope-in-a-direction is a dot product (∇ f ⊤ u , next section), and the whole "steepest descent" argument is "which direction u makes this dot product most negative?"
Why needed: this is the one line that proves − ∇ f is the steepest direction, and it also appears bounding the descent-lemma integral (Section 9). It caps how big a dot product can be.
Here is the star of the show.
Definition Partial derivative
∂ x i ∂ f
Freeze every coordinate except the i -th, then ask "if I nudge only x i , how fast does the height change?" That rate is the partial derivative. (See Taylor's Theorem and the Fundamental Theorem of Calculus for the single-variable derivative it rests on.)
∇ f ( x )
Collect all the partials into one vector:
∇ f ( x ) = ( ∂ x 1 ∂ f , … , ∂ x n ∂ f ) .
Read ∇ as "nabla" or "grad".
The picture (figure s03): at any floor-point, ∇ f is an arrow lying in the floor plane pointing in the direction of steepest uphill , and its length is how steep that climb is. So − ∇ f points steepest downhill — the direction we step.
Intuition Read figure s03
The white rings are contours — floor-curves of equal height, like a topographic map. The pink arrow (+ ∇ f ) points straight across the rings toward higher ground; the blue arrow (− ∇ f ) points the opposite way, toward lower ground — that is the direction each gradient-descent step actually moves.
Intuition Why steepest descent is
− ∇ f
The slope you feel when stepping in unit-direction u is the directional derivative ∇ f ( x ) ⊤ u . By Cauchy–Schwarz (Section 2) this is smallest (most negative) when u points exactly opposite to ∇ f . That is why the update subtracts the gradient.
Why needed: the entire update rule x k + 1 = x k − η ∇ f ( x k ) is built from this arrow. No gradient, no descent.
Definition Stationary point:
∇ f ( x ⋆ ) = 0
At the valley floor the ground is flat in every direction, so all partials are zero. This is how we recognize we've arrived.
Definition Step size (learning rate)
η
η > 0 ("eta") is how far we travel along − ∇ f each move. Small η = timid baby steps; large η = bold leaps that may overshoot.
Definition Iteration index
k and the sequence x k
k = 0 , 1 , 2 , … counts steps. x 0 is where we start; x k is where we stand after k steps; x k + 1 is the next stand. The subscript is a time stamp , not a coordinate.
Why needed: "how big a step (η ) and how fast (k )" is the topic's central question. Both symbols live in every bound.
Slope tells you which way is down; curvature tells you how the slope itself changes — and curvature is what decides how hard the problem is.
∇ 2 f ( x )
The matrix of all second partial derivatives. In plain words: it records how the gradient turns as you move — the "bendiness" of the landscape at a point. In 1D it is just f ′′ ( x ) : positive = valley-shaped (curving up), negative = hill-shaped.
Definition Positive semidefinite matrix
A symmetric matrix M is positive semidefinite (write M ⪰ 0 ) if
v ⊤ M v ≥ 0 for every direction v .
Plain words: M describes a bowl that never curves downward — pick any direction and the curvature it reports is ≥ 0 . If the inequality is strict (> 0 for all v = 0 ) we say positive definite : a bowl that curves strictly up in every direction, with no flat channels.
Intuition Why this matters at all
"Curving up in every direction" is exactly what makes a point a genuine bottom rather than a saddle or a ridge. Positive semidefiniteness of the Hessian is the algebraic way of saying "this really is a valley".
Definition The matrix ordering
A ⪯ B and A ⪰ B
Read A ⪯ B as "A is no larger than B in the curvature sense", and it is defined using the idea we just built:
A ⪯ B ⟺ B − A ⪰ 0 ⟺ v ⊤ ( B − A ) v ≥ 0 for all v .
So A ⪯ B means B curves up at least as much as A in every direction. Then:
∇ 2 f ⪯ L I means: curvature never exceeds L in any direction (I is the identity matrix — the "unit" curvature reference).
∇ 2 f ⪰ μ I means: curvature is at least μ in every direction.
The picture (figure s04): trap the true curved surface between two parabolas — a flatter one of curvature μ below and a steeper one of curvature L above.
Intuition Read figure s04
The white curve is the true f . The blue dashed parabola underneath has the gentlest allowed curvature μ ; the pink dashed parabola on top has the steepest allowed curvature L . The true function is squeezed inside the yellow band between them — that is precisely what μ I ⪯ ∇ 2 f ⪯ L I says.
Why needed: these two sandwiching bounds (μ below, L above) are the only facts the convergence proofs use. Everything — safe step size, speed — is squeezed out of this sandwich. See Convex Functions and Optimization for the convexity (μ ≥ 0 ) that guarantees a single valley.
L — the smoothness constant (upper curvature)
f is L -smooth if its gradient never changes faster than rate L :
∥∇ f ( x ) − ∇ f ( y ) ∥ ≤ L ∥ x − y ∥.
This is exactly Lipschitz Continuity applied to the gradient. Plain words: the slope can't whip around wildly — its change is capped by L times the distance moved. Equivalently (Section 5) ∇ 2 f ⪯ L I : curvature is at most L .
Why needed: L sets the safe step size (derived in Section 7). Because curvature ≤ L , a step of η ≈ 1/ L is guaranteed not to overshoot.
μ — the strong-convexity constant (lower curvature)
f is μ -strongly convex (μ > 0 ) if it curves up at least as fast as a parabola of curvature μ : ∇ 2 f ⪰ μ I . The μ = 0 case is ordinary convexity — a valley that may be dead flat at the bottom.
Why needed: μ gives the valley a definite pull toward the bottom , which is what upgrades convergence from slow O ( 1/ k ) to fast geometric ρ k (Section 8).
We can now derive the danger line the parent note keeps citing, using only L and the picture of a bowl.
Intuition The one-line takeaway
Steepness is capped by L , so a step longer than 2/ L overshoots the far wall by more than it started — and keeps amplifying. Safe steps live in ( 0 , 2/ L ) ; the sweet spot is ≈ 1/ L . This is the fact the equipment checklist tests.
Why needed: this is the precise reason L (not μ ) controls the safe step size, and it is the seed of the full convergence rates in the parent note.
Definition Eigenvector and eigenvalue (for a symmetric matrix)
An eigenvector of a matrix M is a special direction v that M does not rotate — it only stretches it: M v = λ v . The stretch factor λ is the eigenvalue .
A key fact: a symmetric matrix (like every Hessian) has a full set of eigenvectors that are mutually perpendicular , and along each one the matrix acts like plain multiplication by its eigenvalue. This is called diagonalization — choosing axes lined up with the eigenvectors turns the messy matrix into a simple list of stretch factors. See Eigenvalues and the Condition Number .
Intuition What eigenvalues mean for our bowl
Line the axes up with the Hessian's eigenvectors and the bowl becomes a clean stack of 1D parabolas — one per axis — with the eigenvalue λ i as that axis's curvature . For an L -smooth, μ -strongly-convex quadratic every eigenvalue lies in [ μ , L ] : no direction is flatter than μ or steeper than L . That is why the sandwich of Section 5 has exactly those two ends.
Definition Condition number
κ = L / μ
The ratio of steepest to shallowest curvature, always ≥ 1 . Plain words: how stretched the valley is . κ = 1 = a perfectly round bowl; κ = 100 = a long thin ravine.
The picture: round bowl → straight shot to the bottom. Long ravine → zig-zag across the narrow direction while barely moving down the long axis.
Definition Contraction / convergence rate
ρ
ρ ∈ [ 0 , 1 ) is the fraction of the error kept each step: ∥ x k + 1 − x ⋆ ∥ ≤ ρ ∥ x k − x ⋆ ∥ . Smaller ρ = faster. Applying Section 7 along each eigen-axis and taking the worst one, the best GD achieves is ρ ⋆ = κ + 1 κ − 1 (the star = optimal, tuned over η ).
Why needed: κ is the single number that says whether GD flies or crawls, and ρ is the literal speed. The headline "momentum turns κ into κ " lives here — see Nesterov Acceleration .
∫ 0 1 ( ⋯ ) d t (how the lemma is proved)
Adding up infinitely many tiny contributions as t slides from 0 to 1 along the straight path from x to y . It is the Fundamental Theorem of Calculus in vector form — the FTC — and it is what turns "curvature ≤ L " into the descent-lemma parabola.
E [ ⋅ ] (for SGD)
E [ g ] = the average value of a random quantity g over all its possible outcomes. In SGD the gradient g k is a noisy guess whose average equals the true gradient: E [ g k ] = ∇ f ( x k ) .
∇ 2 f ⪯ L I vs. Newton's method
When you can afford the full curvature matrix, you can rescale each direction by its own curvature — that's Newton's Method (second-order methods) . GD is the cheaper cousin that uses only the slope.
Function f maps R^n to a height
Vector length norm measures the gap
Gradient grad f = steepest uphill arrow
Dot product and Cauchy-Schwarz
Update rule step of size eta
Positive semidefinite = curves up everywhere
L smoothness upper curvature
mu strong convexity lower curvature
Step below two over L stays stable
Descent Lemma via integral
Condition number kappa = L over mu
Eigenvalues = curvatures on perpendicular axes
Gradient Descent convergence analysis
Cover the right side and recall each before moving on.
What does f : R n → R mean in words? Takes a location (list of n numbers), returns one height number.
What are x ⋆ and f ⋆ ? The location of the lowest point, and the height there.
How do you compute ∥ v ∥ and what does it picture? v 1 2 + ⋯ + v n 2 ; the straight-line length of the arrow.
Why does the topic need ∥ ⋅ ∥ ? To measure the shrinking gap ∥ x k − x ⋆ ∥ .
What does u ⊤ v measure geometrically? How much two arrows point the same way: ∥ u ∥∥ v ∥ cos θ .
State Cauchy–Schwarz. ∣ u ⊤ v ∣ ≤ ∥ u ∥∥ v ∥ , equality when aligned.
What is ∇ f and where does it point? The vector of partials; the steepest-uphill arrow in the floor plane.
Why do we step along − ∇ f ? The directional slope ∇ f ⊤ u is most negative when u opposes ∇ f (Cauchy–Schwarz).
What is η , and what happens when η > 2/ L ? The step size; the factor ∣1 − η L ∣ > 1 , so distance-to-bottom grows and GD diverges.
Why is η = 1/ L special on the 2 1 L x 2 bowl? The factor 1 − η L becomes 0 — it reaches the bottom in one step.
What is the Hessian ∇ 2 f ? The matrix of second derivatives — the curvature/bendiness of the landscape.
What does "positive semidefinite" (M ⪰ 0 ) mean? v ⊤ M v ≥ 0 for every v — curves up (never down) in every direction.
What does ∇ 2 f ⪯ L I mean in words? L I − ∇ 2 f ⪰ 0 ; curvature never exceeds L in any direction.
Define L -smoothness. ∥∇ f ( x ) − ∇ f ( y ) ∥ ≤ L ∥ x − y ∥ — the gradient is L -Lipschitz.
Define μ -strong convexity. ∇ 2 f ⪰ μ I with μ > 0 ; curves up at least like a μ -parabola.
What is an eigenvalue of a Hessian, geometrically? The curvature along one of its perpendicular eigenvector axes.
What is κ and what does it picture? L / μ ≥ 1 ; how stretched the valley is (round bowl vs thin ravine).
State the Descent Lemma and its job. f ( y ) ≤ f ( x ) + ∇ f ( x ) ⊤ ( y − x ) + 2 L ∥ y − x ∥ 2 ; GD minimizes this upper bowl each step.
What is the rate ρ ? The fraction of error kept per step; smaller is faster (ρ ⋆ = κ + 1 κ − 1 ).
What does E [ g k ] = ∇ f ( x k ) say? The noisy SGD gradient is on average the true gradient.