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 15 of 27

Accept step s using a verifiable decrease rule

Prove backtracking termination and state global convergence conditions.

Loading your saved responses…

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

Try

At x=2 for f(x)=x², choose the negative-gradient direction d=−4. A full step lands at−2 and gives no objective reduction. Halving the step lands at zero and solves the problem. Backtracking formalizes this trial-and-reduction process. It tests a sufficient-decrease inequality rather than accepting any numerical change that happens to be negative. The direction and the step are separate choices: line search determines how far to move along an already selected direction.

Predict

Predict whether backtracking must succeed for every direction. If ∇f(x)·d is positive, the direction initially increases the function, so the standard descent proof is unavailable. With a strict descent direction and differentiability, sufficiently small positive steps satisfy Armijo decrease. This is a local existence statement. To derive convergence over infinitely many iterations, we will also need uniform control preventing accepted steps from becoming arbitrarily tiny for unrelated reasons.

Experiment

Use Armijo parameter c=1/4 at the opening point. The right side is f(x)+cα∇f(x)·d=4−4α. Compare it with the actual trial value.

Trial αNew pointActual fArmijo boundAccepted?
1−240No
1/2002Yes

Now choose d=+4 and explain why the usual sufficient-small-step argument fails. The slope is positive, so the linear term itself points the wrong way. A line-search routine should not silently assume that a Newton or approximate direction is descent; that property must be checked or guaranteed by its construction.

Understand

Armijo requires f(x+αd)≤f(x)+cα∇f(x)·d with 0<c<1. Differentiability gives f(x+αd)=f(x)+α∇f(x)·d+o(α). For a strict descent direction, the unused fraction (1−c) of the negative slope provides a margin that eventually dominates the remainder. Thus repeated multiplication of the trial step by a fixed factor β in (0,1) terminates after finitely many reductions at a nonstationary point.

For d=−∇f and an L-Lipschitz gradient, the descent lemma guarantees Armijo whenever α≤2(1−c)/L. With a fixed initial trial step and fixed β, the accepted step is therefore bounded below by a positive constant depending on these quantities. If f is bounded below and the smoothness bound holds throughout the relevant region, summing Armijo decreases forces the gradient norms to zero. The uniform step bound is essential to this argument; arbitrary diminishing steps can produce a finite total movement before reaching stationarity.

Apply

The weak Wolfe curvature condition additionally requires ∇f(x+αd)·d≥c₂∇f(x)·d, where the Armijo parameter c₁ satisfies 0<c₁<c₂<1. Because the original slope is negative, this asks for enough slope improvement and prevents accepting a very short step solely because it gives a tiny decrease. It is not guaranteed by simple backtracking alone; practical Wolfe searches may bracket and interpolate. Its existence theory assumes appropriate behavior along the search ray.

Repair the claim “The objective decreased at every iteration, so the algorithm found the global minimum.” Decreasing scalar values can converge while the iterates fail to settle, and nonconvex objectives can have nonglobal local minima. Separate finite descent evidence, stationarity convergence, iterate convergence and global optimality. Each requires its own assumptions or certificate.

Continue

Record direction slope, trial step, actual value, required bound and acceptance decision. This trace distinguishes a bad direction from an overly large step. Continue to Newton and quasi-Newton methods to use curvature in choosing directions. A full Newton step has powerful local guarantees under appropriate hypotheses, while damping and descent safeguards are needed to connect that local theory to more distant starting points.

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² at x=1,d=−2,c=1/4, try α=1 then halve. What first step is accepted by f(x+αd)≤f(x)+cαf′(x)d?

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

With L=4,c=1/2 and d=−∇f, what upper step bound 2(1−c)/L guarantees Armijo?

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

Prove sufficiently small positive step s satisfy Armijo when ∇f(x)·d<0 and f is differentiable at x.

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.

State conditions under which gradient descent with backtracking has gradient norms tending to zero.

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.

Why does monotonically decreasing objective not prove convergence to a global minimum?

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.

Explain what the weak Wolfe curvature condition adds to Armijo for a descent direction.

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.