What the relationship means
The general update applies to differentiable real objectives. Any convergence claim needs additional assumptions. The calculator handles only a strictly convex one-dimensional quadratic with constant step size and an integer count from 0 through 1000. A stationary start at the minimum is an exact identity even if the chosen step size would fail from other starts.
The gradient supplies local direction; the Hessian describes curvature. Newton’s method uses this curvature to scale the step. In higher dimensions, eigenvalues of a positive-definite quadratic Hessian constrain the stable range of a constant step size. For nonconvex objectives, a small gradient initially means only proximity to a stationary point.
Derive it step by step
The linear Taylor approximation predicts a small displacement d changes the objective by ∇f(x)·d. For a fixed small displacement length, the negative gradient points most strongly downward. Step size determines how far this local information is trusted. For a quadratic, the whole iteration can be described exactly by a geometric error sequence.
- Differentiate the fixed quadratic f(x)=a(x−b)2/2: f′(x)=a(x−b), with a>0.
- Set xn+1=xn−ηa(xn−b), η>0. Subtract b from both sides.
- Position error en=xn−b satisfies en+1=(1−ηa)en, hence en=(1−ηa)ne0.
- Convergence from every start requires |1−ηa|<1, hence 0<ηa<2. Objective gap is a·en2/2 and its ratio is (1−ηa)2.
Visualize the model
Three steps on a quadratic
Free with a Quanta account. Your download stays ready after registration.
Two worked examples
Three controlled steps
- Given
- Author calculation: f(x)=(x−1)2, x0=5, η=0.1.
- Find
- Point and objective gap after three steps.
a=2, b=1, error factor q=1−0.1·2=0.8.
The sequence is 5→4.2→3.56→3.048. Equivalently x3=1+0.83·4.
Position error is 2.048; f(x3)−f(1)=2.0482=4.194304.
Result: x3=3.048, objective gap 4.194304.
Check: 0<ηa=0.2<2 and the objective decreases from 16 to 4.194304.
Overshooting can still converge
- Given
- Author calculation: the same quadratic and x0=5, but η=0.75.
- Find
- Explain two steps and oscillation.
q=1−2·0.75=−0.5: error changes sides and halves in magnitude.
x1=1−0.5·4=−1; x2=1+(−0.5)2·4=2.
Objective values are 16→4→1. Positions are not monotone, but objective values are.
Result: The sequence oscillates around b=1 while still converging.
Check: |q|=0.5<1; an error sign change is not evidence of divergence.
Recall the method later with the formula’s flashcards.
10 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Limits and result checks
A negative gradient direction guarantees local descent only for sufficiently small positive steps, not arbitrary η. At ηa=2 the position error oscillates without shrinking; for ηa>2 its magnitude grows. Numerical stagnation can also reflect rounding rather than a true minimum. The fixed quadratic is a checkable learning model, not hidden optimization of arbitrary functions.
- A negative direction permits any step size. The actual step must match the curvature.
- ηa=2 is classified as convergent. q=−1 means undamped oscillation except at an already stationary start.
- Zero gradient always means minimum. Check additional curvature or convexity conditions.
Five exercises with solutions
Calculate · Foundation
f(x)=(x−1)2, x0=5, η=0.1. Find x3.
Show hint
f′=2(x−1), error factor 0.8.
Learning goal: Calculate three gradient steps
Show solution and calculation
x1=4.2, x2=3.56, x3=3.048.
Alternatively 1+0.83·(5−1)=3.048.
Rearrange · Foundation
For a>0, make the fixed quadratic reach b from every start in one step. Which step size is needed?
Show hint
Set 1−ηa=0.
Learning goal: Find the one-step minimization step size
Show solution and calculation
η=1/a.
The error factor is zero and x1=b.
For a=2, η=0.5.
This optimal constant applies to the fixed one-dimensional quadratic, not arbitrary functions.
Interpret · Application
For ηa=1.5, xn−b changes sign. Must the objective increase?
Show hint
Square the error factor.
Learning goal: Separate position oscillation and descent
Show solution and calculation
No.
Position error has factor −0.5, but the objective-gap factor is (−0.5)2=0.25.
Position oscillates while the objective gap decreases geometrically.
Error analysis · Application
Someone claims η=2/a converges fastest because it is the largest step. Check this.
Show hint
Calculate q=1−ηa.
Learning goal: Identify the stability boundary
Show solution and calculation
q=−1.
Every nonzero position error only changes sign; its magnitude and objective gap stay constant.
Convergence from an arbitrary start needs the strict inequality η<2/a.
Transfer · Challenge
A positive-definite quadratic Hessian has eigenvalues 2 and 10. Which constant η converge from every start?
Show hint
Each eigenmode needs |1−ηλ|<1.
Learning goal: Transfer stability to multiple dimensions
Show solution and calculation
For λ=2, 0<η<1; for λ=10, 0<η<0.2.
The intersection is 0<η<0.2.
The largest curvature limits the step.
Check your understanding with the formula’s reference test.
8 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Sources for this explanation
Quanta · Updated November 8, 2026
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Added a full article with model limits, independently calculated examples, five exercise paths and source references.
Cite this reference page
Quanta. Gradient Descent. Updated November 8, 2026. https://quanta-study.de/en/formula-sheet/gradientenabstieg
When citing a specific scientific statement, also cite the specialist source linked to that statement.