Back to AI Math Mind Map
中文·English
📐 AI MathID: newton-method

Newton's Method

牛顿法 vs 梯度下降
🎯Core Definition
Newton's method uses second-order information: take the second-order Taylor expansion at ww, f(w+Δw)f(w)+fTΔw+12ΔwTHΔwf(w + \Delta w) \approx f(w) + \nabla f^T\Delta w + \frac{1}{2}\Delta w^T H\Delta w (H = Hessian), differentiate w.r.t. Δw\Delta w and set to zero: f+HΔw=0\nabla f + H\Delta w = 0, giving the Newton step Δw=H1f\Delta w = -H^{-1}\nabla f. Geometrically it fits a quadratic surface and jumps straight to its vertex: exactly one step for quadratics, and local quadratic convergence for smooth functions — the error decays quadratically, wk+1wCwkw2\Vert w_{k+1} - w^*\Vert \le C\Vert w_k - w^*\Vert^2, doubling correct digits per iteration (103106101210^{-3} \to 10^{-6} \to 10^{-12}), versus linear convergence (11/κ)t(1 - 1/\kappa)^t for gradient descent.
💡Use Cases
a canonical interview comparison with GD. Ill-conditioned example: f(x,y)=x2+100y2f(x,y) = x^2 + 100y^2. Hessian H=diag(2,200)H = \mathrm{diag}(2, 200), condition number κ=200/2=100\kappa = 200/2 = 100. GD zig-zags along the steep yy direction and needs O(κ)O(\kappa) iterations; Newton computes H1f=(x,y)TH^{-1}\nabla f = (x, y)^T, effectively a coordinate transform that removes the scale difference, and reaches the origin in one step.
Key Problems Solved
first-order rates are dominated by the condition number, while Newton's H1H^{-1} isotropizes the space and converges in one step on ill-conditioned problems; the cost is O(D3)O(D^3) per step to solve the linear system and O(D2)O(D^2) memory for the Hessian, infeasible for high-dimensional deep networks — hence approximations: L-BFGS (O(D)O(D) memory, inverse-Hessian built from gradient history) and Gauss-Newton (HJTJH \approx J^TJ for least squares, made invertible via JTJ+λIJ^TJ + \lambda I). For non-convex functions H can be indefinite and the Newton direction is not a descent direction; fixes include damped Newton and regularization H+λIH + \lambda I (Levenberg-Marquardt).
🎯5 High-Frequency Exam Points
1
Derive the Newton step Δw=H1f\Delta w = -H^{-1}\nabla f from the second-order Taylor expansion (show the full stationarity derivation).
2
Why does Newton converge in one step on quadratics and quadratically in general? Explain the rate wk+1wCwkw2\Vert w_{k+1}-w^*\Vert \le C\Vert w_k-w^*\Vert^2.
3
Ill-conditioned example f=x2+100y2f = x^2 + 100y^2: estimate steps for GD (κ=100\kappa=100) vs Newton and explain why Newton lands in one step.
4
What is Newton's cost (O(D3)O(D^3) per step, O(D2)O(D^2) memory)? How do L-BFGS and Gauss-Newton approximate the Hessian?
5
For non-convex functions the Hessian can be indefinite — why does the Newton direction become unreliable? How do damped Newton and H+λIH + \lambda I (Levenberg-Marquardt) fix it?
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "Newton's Method"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardConvex Optimization & KKTNext CardRegularization Geometry

🔗 More AI Math Knowledge Cards

Adam/AdamW MathBayesian InferenceBias-Variance DecompositionBootstrap