Learn

Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

Lesson 14 of 27

Quantify progress under smoothness and curvature

Derive descent and convergence bounds rather than trusting a trace.

Loading your saved responses…

Try the optional starting-point checks and targeted refreshers. You can continue directly into this lesson.

Try

For f(x)=x², gradient descent uses x_next=x−α·2x=(1−2α)x. Starting at x=4 with α=1/4 halves the iterate each time: 4,2,1,1/2. The objective falls by a factor of four per step. With α=1, the same method alternates between 4 and−4 without progress. With a larger step its magnitude grows. A convex objective does not protect an arbitrarily chosen numerical step from failure.

Predict

Predict which scale controls a safe step for a general smooth objective. A large curvature can make the gradient direction change quickly, so the tangent approximation remains accurate only over shorter distances. A Lipschitz constant L for the gradient bounds this change. The usual step 1/L is therefore a statement about curvature and coordinates, not a universal learning rate. Rescaling variables changes L and can materially change algorithm behavior.

Experiment

Compare exact recurrence factors for the same quadratic. Inspect both iterate and objective behavior rather than only whether one step happened to reduce the value.

Step αIterate factor 1−2αBehavior from nonzero x
1/41/2Converges without sign changes
3/4−1/2Converges with alternating signs
1−1No decay
5/4−3/2Diverges in magnitude

The complete convergence interval for this quadratic is 0<α<1. The conservative 1/L rule uses L=2 and gives α=1/2, solving this particular quadratic in one step. A sufficient general bound need not describe every step that works for a specific function.

Understand

If ∇f is L-Lipschitz along the segment from x to x+d, integrate its change to obtain f(x+d)≤f(x)+∇f(x)·d+(L/2)||d||². Indeed the error beyond the tangent equals the integral from zero to one of [∇f(x+td)−∇f(x)]·d, bounded above by the integral of Lt||d||². Substituting d=−∇f(x)/L gives decrease at least ||∇f(x)||²/(2L).

If f is bounded below and this common smoothness bound holds throughout the iterates and steps, summing decreases bounds the sum of squared gradient norms, so those norms tend to zero. This alone does not prove that iterates converge, or that a limiting stationary point is globally optimal. Convexity upgrades stationary points to global minimizers. With μ-strong convexity and an existing minimizer, minimizing the strong tangent lower bound gives ||∇f||²≥2μ(f−f⋆). Combining this with descent yields a function-gap contraction by at most 1−μ/L for the 1/L step.

Apply

For f(x,y)=(x²+100y²)/2, the Hessian eigenvalues are 1 and 100. The safe step 1/100 makes the y coordinate vanish immediately but multiplies x by 99/100. The ratio L/μ=100 predicts slow worst-direction progress. This is conditioning, not a failure of the gradient formula. A coordinate transformation or a curvature-aware method can change the geometry seen by the algorithm, but must preserve the interpretation of the original decision variables.

As a stopping exercise, suppose the gradient norm is small. Under strong convexity, it bounds objective suboptimality using the gradient-gap inequality. Without such a condition it may indicate a flat nonoptimal region or a saddle. State which theorem converts your numerical residual into a useful optimization guarantee.

Continue

Keep the objective lower bound, smoothness region, step rule and claimed convergence type explicit. A finite decreasing trace is not a convergence proof. Continue to Line search and convergence for a procedure that selects a step using observed decrease while retaining a theoretical termination condition. It reduces dependence on knowing a usable global L, but does not remove the need for smoothness assumptions in global analysis.

Apply · explain · revise

Practice and reasoning

Drafts save locally as you type. Reveal worked solutions when useful; the site remembers that exposure. Automatic matches check the requested answer, while written arguments require review against the rubric.

For f(x)=x², start x₀=3 and use step α=1/4. What is x₁?

Integers, fractions and finite decimals are accepted. Expressions such as sqrt(2) are not parsed by this checker.

For f(x)=2x² and step α=1/8, what is the factor xₖ₊₁/xₖ for nonzero xₖ?

Integers, fractions and finite decimals are accepted. Expressions such as sqrt(2) are not parsed by this checker.

Derive f(x+d)≤f(x)+∇f(x)·d+(L/2)||d||² for an L-Lipschitz gradient along the segment.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

For step 1/L, derive the objective decrease and a gradient-norm conclusion when f is bounded below.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Under μ-strong convexity and L-smoothness, derive the usual function-gap contraction for step 1/L.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

For f(x)=x², explain the behavior when α=1 and when α>1.

Structure your argument and preserve revisions

These optional planning fields save locally. Recording your response saves an immutable copy of the argument and these fields. Older records may contain only first/latest responses; missing intermediate revisions are not reconstructed.

Each field allows 2,000 characters. Keep a specific claim, state where it applies, cite the facts you use, and explain what still needs checking. Blank fields are allowed and are not evidence of mastery.

Reflect and continue

Before marking this lesson complete, explain one key idea without the worked solution and identify a condition that matters. Marking complete records participation, not independent mastery.