On this page
Gradient descent asks one question: which way is downhill? Newton's method also asks how sharply the ground curves. That second answer comes from the Hessian, the matrix of second partial derivatives, and it lets Newton's method take well-aimed steps where gradient descent often zig-zags.
What is Newton's method for optimisation?
The Newton step at a point x is Δx = −H(x)⁻¹∇f(x), where ∇f is the gradient and H is the Hessian (Boyd and Vandenberghe, Convex Optimization, section 9.5). You repeat x ← x + Δx until the gradient is nearly zero. In one variable this is x ← x − f′(x)/f″(x): Newton–Raphson root-finding applied to f′ (Newton's method in optimization, Wikipedia).
Where does x ← x − H⁻¹∇f come from?
Near x, approximate f by its second-order Taylor model:
f(x + v) ≈ f(x) + ∇f(x)ᵀv + ½ vᵀH(x)v
If H is positive definite, this model is a bowl with one lowest point. Set its gradient in v to zero: ∇f(x) + H(x)v = 0, so v = −H(x)⁻¹∇f(x). The Newton step takes you to the bottom of the bowl that best fits f where you stand, and if f is itself quadratic, that is the exact minimiser (Boyd and Vandenberghe, section 9.5.1).
In practice you solve the linear system H v = −∇f instead of forming H⁻¹ (Wikipedia).
Worked example: why does it finish in one step on a quadratic?
Take f(x, y) = x² + 3y² + xy and start at (1, 1), where f = 5.
Gradient: ∇f = (2x + y, 6y + x) = (3, 7).
Hessian: rows (2, 1) and (1, 6), constant because f is quadratic. Top-left entry 2 and determinant 11 are both positive, so H is positive definite.
Inverse: H⁻¹ = (1/11) × rows (6, −1) and (−1, 2).
Step: v = −(1/11)(18 − 7, −3 + 14) = (−1, −1).
Update: (1, 1) + (−1, −1) = (0, 0).
At (0, 0) the gradient is zero and f = 0: the minimum, in one step. Steepest descent with the best step length along −∇f goes to about (0.508, −0.147), then (0.050, 0.050), zig-zagging across the valley, as the diagram shows. For a quadratic, the Taylor model is not an approximation: it is f.
How fast does it converge on a non-quadratic function?
Take f(x) = x − ln x for x > 0, minimum at x = 1. With f′ = 1 − 1/x and f″ = 1/x², the update simplifies to x ← 2x − x², so the new error 1 − x is exactly the old error squared. From x = 0.5:
step 1: x = 0.75, error 0.25
step 2: x = 0.9375, error 0.0625
step 3: x = 0.99609375, error about 0.0039
step 4: x ≈ 0.9999847, error about 0.000015
step 5: error about 0.00000000023
That is quadratic convergence. Boyd and Vandenberghe prove that for a strongly convex function with a Lipschitz-continuous Hessian, once iterates are close enough, the number of correct digits roughly doubles each iteration, and they treat five or six iterations of this phase as enough for practical purposes (Convex Optimization, section 9.5.3).
Close enough matters: start this example at x = 2 and the update gives x = 0, outside the domain.
Why can Newton's method go uphill?
The derivation assumed the model is a bowl. If H is not positive definite, the model has no bottom, and the Newton step heads for its flat point, which can be a peak or a saddle. Positive definiteness is what guarantees ∇fᵀΔx = −∇fᵀH⁻¹∇f < 0, that is, a downhill direction (Boyd and Vandenberghe, section 9.5.1).
Example: f(x) = x⁴/4 − x²/2 has minima at x = ±1 and a local maximum at x = 0. At x = 0.3, f′ = −0.273 and f″ = −0.73. Downhill is to the right. The Newton step −f′/f″ ≈ −0.374 goes left, to x ≈ −0.074, and f rises from about −0.043 to about −0.0027. The next step lands near 0.0008, closing in on the maximum.
Iterates can converge to a saddle point instead of a minimum this way; common fixes add μI to the Hessian, as in the Levenberg–Marquardt algorithm, or replace its negative eigenvalues with small positive ones (Wikipedia).
A checklist before you take a Newton step
Compute ∇f and H at the current point.
Check H is positive definite (2 × 2: top-left entry and determinant positive).
Solve H v = −∇f.
Confirm ∇f · v < 0.
If 2 or 4 fails, add μI to H or take a gradient step; far from the minimum, shrink the step until f decreases.
Stop when the gradient is tiny.
If the Taylor model or positive definiteness feels shaky, the Fermi Concept Library gives every concept in mathematics its own lesson. To practise, the Fermi Problem Library has worked problems with a step-by-step solver that explains the reasoning.



