Preparation
We assume gradients, Hessians, the multivariable chain rule, eigenvalues of symmetric matrices and one-variable Taylor’s theorem. Review multivariable Taylor polynomials before the finite-step analysis.
5.3 Why the negative gradient is locally downhill
Assume is differentiable at . For a unit direction , . By Cauchy–Schwarz this is at least , with equality for when the gradient is nonzero. Thus the negative gradient is the direction of steepest first-order decrease in the chosen Euclidean coordinates.
The coordinate metric matters: changing the scales of inputs changes which direction has unit length. A gradient direction in dollars and rate proportions has no invariant physical meaning until scaling is chosen.
Gradient descent uses
Its directional derivative at a nonstationary point is negative, but an arbitrary finite step can overshoot and increase the objective. A step-size condition requires curvature information.
5.4 Deriving a finite-step descent bound
Assume is on an open set containing the entire relevant segment, and the gradient is Lipschitz there with constant : for . A zero Lipschitz constant may be replaced by any positive upper bound. By the line-integral form of the one-variable fundamental theorem,
Subtract , use Cauchy–Schwarz and integrate to obtain the descent lemma
For ,
Hence guarantees strict decrease at a nonstationary point when the assumptions hold throughout the step. A local curvature bound must not be used to justify a step that leaves the region where that bound is valid.
Worked example 2: safe and unsafe steps. For , gradient is and globally. With constant ,
Starting at , the first iterate is with objective , compared with initial value five. The next is with objective . With , the second-coordinate multiplier is ; that component grows in magnitude even though the initial direction is downhill.
5.5 Exact convergence for positive-definite quadratics
Let with symmetric positive-definite , and use a fixed constant step size . Its unique minimizer is . Writing error gives
Use an orthonormal eigenbasis of . Each error coordinate is multiplied by . Thus every initial point converges to exactly when for all eigenvalues, namely
At the upper endpoint, a largest-eigenvalue component can oscillate without decaying. Below the range, a zero or negative step need not decrease; above it, some component grows. The conditioning ratio also explains slow convergence when one coordinate direction is much flatter than another.
For this quadratic, . A gradient-norm stopping rule therefore yields a distance bound only when a positive lower eigenvalue bound is known. Small steps caused by choosing a tiny do not themselves establish closeness to the minimizer.
5.6 Constraints and stopping statements
An unconstrained step can leave a feasible set. For example, a nonnegative-weight constraint is not automatically preserved by subtracting a gradient. Equality constraints may require projected directions, substitution or a separate constrained algorithm. Chapter 2's multiplier condition and the unconstrained gradient descent formula answer different questions.
A useful numerical report states the objective, starting point, coordinate scaling, step rule, stopping criterion, and any error or decrease bound actually justified. “The code stopped” is not a mathematical convergence certificate, and a nonconvex stationary point may be a saddle rather than a desired minimum.
5.7 Exercises
P02. Find the gradient descent update for .
P03. For , show one step with from increases the objective.
P05. For , determine every constant step size yielding convergence from all starting points.
P06. For the same objective, take from and calculate the first two iterates and objective values.
P08. For with , if , bound distance to the quadratic's minimizer.
P09. Derive the finite-step descent lemma directly for a symmetric positive-definite quadratic and compare its curvature bound with the largest eigenvalue.
P10. Explain why a step parallel to the negative gradient does not necessarily preserve the constraint . At with gradient , derive the condition under which that particular step preserves the sum.
5.8 Full solutions
P02. Gradient is , so for constant step.
P03. Gradient at is . The step gives , changing the objective from one to nine. A downhill infinitesimal direction did not protect an oversized finite step.
P05. Eigenvalues are one and four, so convergence from all initial points requires .
P06. Update multipliers are and zero. Iterates are then . Objective values are and , respectively, below initial value four.
P08. The minimum eigenvalue is two, so distance is at most .
P09. The exact difference is . Since , the descent lemma holds with . Substituting gives the same sufficient decrease bound; the eigen-coordinate recurrence gives the exact all-starting-point convergence range.
P10. The new sum is . For a positive step it stays one exactly when . A general gradient need not satisfy that tangent-direction condition.
Summary
The negative gradient is steepest only for a chosen metric and at first order. Lipschitz curvature gives a finite-step decrease bound; symmetric eigenvalues give an exact convergence test for positive-definite quadratics. Constraints and stopping certificates require separate checks.