Interactive 3D · Quadratic Optimization

One start. Two step sizes.

Both runs begin at exactly the same point. The surface height is the objective value, while the surface coordinates are the two variables.

f(x,y) = ½(x² + 4y²) ∇f = (x, 4y) pₖ₊₁ = pₖ − η∇f(pₖ)

Live descent

same start: (3.4, 2.2)
Stable step
η = 0.20
Descending
xₖ₊₁ = 0.80xₖ   ·   yₖ₊₁ = 0.20yₖ
—
—
0
Marginal step
η = 0.50
Bounded oscillation
xₖ₊₁ = 0.50xₖ   ·   yₖ₊₁ = −1.00yₖ
—
—
0

Signed y-coordinate

the oscillating direction
η = 0.20 η = 0.50
Both trails
Vertical height is f(x,y). Drag to orbit, scroll to zoom, and double-click to reset the camera.
Loading Three.js…