Shows how Newton’s method builds a local quadratic model and computes the Newton step by solving H p = −∇f, alongside how quasi-Newton methods (BFGS/L-BFGS) approximate the inverse Hessian via the secant condition B_{k+1} s_k = y_k. The animation cycles through: local model formation, linear-system solve/step, then a B update that makes B s match y, and finally compares Newton vs quasi-Newton step directions.
Uses a 2D quadratic f(x)=0.5 x^T H x + c^T x to render contours and compute ∇f and the Newton step via a 2×2 linear solve. Quasi-Newton is depicted by interpolating B from a scaled identity toward H^{-1} while visualizing the secant vectors s, y=Hs, and the residual ||Bs−y||. Grid-snapped drawing (4px) with green-on-black styling and time-based phase easing.