Comparative numerical laboratory

Optimization Algorithms: Gradient Descent versus Newton — Chapter 14

Minimize a quadratic with anisotropic curvature and compare trajectories.

\[ \phi(x,y)=(x-1)^2+10(y+1)^2. \]

Methods compared

MethodConvenienceInconvenience / warning
Gradient descentCheap iterations.Can zigzag and needs step-size control.
NewtonUses curvature and solves this quadratic in one step.Requires Hessian solve; can fail without globalization in nonlinear problems.
Line search viewpointProtects decrease.Adds algorithmic overhead.

Illustrative plot / animation

Numerical diagnostics

What the student must compare