Newton's Method for Optimization
An iterative method for finding the minimum of a function that uses curvature, not just slope, to jump almost straight to the answer — much faster than plain gradient descent when it works.
Prerequisites: Gradient Descent, Convex Sets and Convex Functions
Gradient descent tells you which direction is downhill, but not how far to step — take too small a step and it crawls, too large and it overshoots. It also treats every direction as equally curved, which is rarely true: a loss surface curves sharply in some directions and gently in others. Newton's method fixes both problems at once by using not just the slope but the curvature of the function to pick both the direction and the step length in one move.
An analogy: parking by feel vs parking by sight
Imagine rolling a ball toward the bottom of a valley in fog, feeling only the slope under your feet (gradient descent) — you take a step, feel the new slope, take another step, and it takes many small steps to reach the bottom. Now imagine someone hands you a topographic map showing not just the slope where you stand but exactly how the valley curves around you. You can now calculate, in one shot, exactly where the bottom of a bowl-shaped valley must be, and jump straight there. That map of curvature is the extra information Newton's method uses.
The method, one symbol at a time
For a function that you want to minimize, let be the gradient (the vector of slopes) and be the Hessian (the matrix of second derivatives, describing curvature in every direction). Newton's method updates the current guess by
In words: at your current point, fit a bowl-shaped (quadratic) approximation to the true function using its slope and curvature there, then jump directly to the bottom of that bowl. If the true function actually were a perfect bowl, this reaches the minimum in one step. Real functions aren't perfect bowls, so you repeat the process, each time re-fitting a bowl at the new point, until the steps become tiny.
The Hessian does the heavy lifting: in a direction where the function curves sharply (steep-walled), is large, so the step in that direction is automatically shrunk; in a direction where it's nearly flat, is small, so the step is stretched out. Gradient descent has no such correction and takes clumsy, equal-sized steps in every direction.
Worked example 1: a simple quadratic by hand
Minimize , starting from . The gradient (first derivative) is , and the Hessian (second derivative) is . At : . The update is
Check: , exactly the minimum. Because is already an exact quadratic, Newton's method reaches the true minimum in a single step — plain gradient descent with a fixed step size would need many iterations to creep there.
Worked example 2: a curved (non-quadratic) function
Minimize , starting from . Here and . At : , and . The update:
Repeating: at , , , giving . Continuing a few more iterations converges rapidly toward the true minimum near — notice the step size shrinks fast once curvature is correctly accounted for, unlike a fixed-size gradient step.
Drag the starting point and compare a curvature-aware step against a plain gradient step: watch how the Newton-style jump lands far closer to the minimum in fewer moves when the surface is bowl-like, and notice what happens when the surface briefly curves the wrong way.
What this means in practice
Newton's method is the fast-converging workhorse behind many solvers for smooth, well-behaved problems — pricing model calibration, maximum-likelihood fitting, and implied-volatility root-finding all lean on it or its variants. Its speed comes at a cost: computing and inverting the Hessian is expensive for high-dimensional problems (a Hessian for parameters is an matrix), which is exactly why quasi-Newton methods like BFGS exist — they approximate the curvature information cheaply instead of computing it exactly.
Newton's method uses second-derivative (curvature) information to fit a local quadratic bowl at each point and jump straight to its minimum, converging far faster than gradient descent near a well-behaved minimum — at the cost of needing the Hessian.
Newton's method assumes the local quadratic approximation is trustworthy, but away from the minimum — or on a non-convex surface with saddle points or negative curvature — the Hessian can point the "jump" uphill or off into a completely wrong region, sometimes diverging outright. Production solvers almost always pair Newton's method with a line search or trust-region safeguard that shrinks the step when the raw Newton jump doesn't actually improve the function, rather than trusting the curvature-fit jump blindly.
Related concepts
Practice in interviews
Further reading
- Nocedal & Wright, Numerical Optimization, ch. 3
- Boyd & Vandenberghe, Convex Optimization, ch. 9