M9 · Chapter 4 · Newton and quasi-Newton
From "replace f by a bowl and jump to its bottom" to SR1/DFP/BFGS: the Newton step, one-step finish on quadratics, when it goes downhill, how fast it converges and when it fails, then the quasi-Newton secant condition and its updates. Lectures on Newton and quasi-Newton (Midterm 2 material). Full theory and the worked past problems: M3; conjugate gradient is M2.
Each stop = a concept card (plain words → picture → symbols) followed by questions that start trivial and end tricky. Answer before opening the explanation. Levels: L1 term L2 use L3 trap L4 exam. Three interactive pictures sit inside Stops 3, 5 and 8.
1. The quadratic model and the Newton step
In plain words: Minimising a curvy function $f$ directly is hard. Newton's method stands at the current point and builds a bowl (a parabola) that has the same height, the same slope and the same curvature as $f$ there. The bottom of the bowl is easy to find, so we jump straight to it. Then we repeat from the new point.
Words and symbols on this stop: $x^{(k)}$ = the current point (a number in 1-D, a vector in $d$ dimensions); $f'(x)$ = slope of $f$; $f''(x)$ = curvature (how fast the slope changes); $\nabla f$ = gradient, the vector of slopes; $\nabla^2f$ = Hessian, the $d\times d$ table of all second derivatives (curvature in every direction); $\delta$ = the step we take; $q(\delta)$ = the bowl, called the quadratic model; $[\nabla^2f]^{-1}$ = the inverse matrix (the matrix that undoes $\nabla^2f$); "solve $H\delta=-g$" = find the vector $\delta$ that makes this equation true.
Precisely: $q_k(\delta)=f(x^{(k)})+\nabla f(x^{(k)})^\top\delta+\frac12\delta^\top\nabla^2f(x^{(k)})\,\delta$. Setting its gradient to zero gives $\nabla^2f(x^{(k)})\,\delta=-\nabla f(x^{(k)})$, so $$x^{(k+1)}=x^{(k)}-[\nabla^2f(x^{(k)})]^{-1}\nabla f(x^{(k)}),$$ with step length exactly 1. In 1-D: $x^{(k+1)}=x^{(k)}-f'/f''$. Example: if $\nabla f=(4,-6)$ and $\nabla^2f=\mathrm{diag}(2,3)$, the Newton step is $\delta=(-2,2)$ (each coordinate: slope divided by curvature), whereas a plain gradient step with length 1 would be $(-4,6)$, which overshoots. It needs $f\in C^2$ (twice continuously differentiable).
In one variable, the Newton step from the current point $x$ is $x-\dfrac{f'(x)}{f''(x)}$: slope divided by curvature, subtracted.
Explanation
True. The bowl is $q(\delta)=f+f'\delta+\frac12f''\delta^2$. Its slope is $f'+f''\delta$, which is zero at $\delta=-f'/f''$. Big slope means a big step; big curvature means the bowl is narrow, so the bottom is close and the step is short. (Depth: M3 §A.)
For $f(x)=e^x-2x$, one Newton step from $x=0$ lands at
- (a) $0.5$
- (b) $1$
- (c) $-1$
- (d) $2$
Explanation
(b) 1. $f'(x)=e^x-2$ and $f''(x)=e^x$, so $f'(0)=-1$ and $f''(0)=1$. The step is $-f'/f''=+1$, so $x^{(1)}=0+1=1$. The slope is negative, so we must move right.
Why not the others: (a) is only half of the step (a damped step; pure Newton always uses the full step); (c) is the sign slip $x+f'/f''$; (d) divides by $f''/2$ instead of $f''$.
Newton's method does not have a stepsize.
Explanation
True. His key: True. Pure Newton always takes the whole jump to the bottom of the model, i.e. step length exactly 1; there is no $\alpha_k$ to choose and no line search. (A damped Newton method adds a line search for safety, but that is a different method; the question is about Newton's method as taught.) Contrast gradient descent and quasi-Newton, which do carry $\alpha_k$. (M3 §A.)
Newton's method applies to thrice differentiable functions.
Explanation
True. Newton needs the Hessian to exist (and be continuous), i.e. $f\in C^2$. A thrice differentiable function is in particular twice differentiable, so Newton applies. The trap is thinking the method needs more smoothness than $C^2$. (The reverse wording "for a $C^3$ function Newton is not applicable" is False; it comes back in the final round.)
The iterates of Newton's method are obtained by minimizing a quadratic function.
Explanation
True. His key: True. Each iterate is the bottom of the quadratic model $q_k$ built at the previous point (Newton's method = repeatedly minimising a local quadratic approximation). Precise wording: the iterate is the stationary point of $q_k$, which is its minimiser exactly when the Hessian is positive definite (Stop 3 shows what goes wrong otherwise). Answer True, and say "quadratic model" if asked to justify. (M3 §A.)
2. One step on a quadratic; affine invariance
In plain words: A quadratic function is already a perfect bowl. So if $f$ itself is a quadratic, the Newton bowl is not an approximation, it is $f$, and its bottom is the true minimiser. Hence Newton minimises a (positive definite) quadratic in one step from any starting point, however stretched the bowl is.
Words and symbols on this stop: (CQ): $f(x)=\frac12x^\top Qx-h^\top x+c$ with $Q$ symmetric; $Q\succ0$ (positive definite) = all eigenvalues of $Q$ are positive, so $f$ is a bowl with one bottom $x^*=Q^{-1}h$; $\nabla f=Qx-h$ and $\nabla^2f=Q$ everywhere; "eigenvalues of $Q$" = how steep the bowl is along its principal directions; condition number = largest eigenvalue / smallest (how stretched the bowl is); $A$ = an invertible matrix used to change variables $y=A^{-1}x$.
Precisely: For $Q\succ0$: $x^{(1)}=x^{(0)}-Q^{-1}(Qx^{(0)}-h)=Q^{-1}h=x^*$ for every $x^{(0)}$. The number of iterations does not depend on the eigenvalues, the condition number or the start. Affine invariance: if we rename the variables, $\tilde f(y)=f(Ay)$ with $A$ invertible, then $\nabla\tilde f=A^\top\nabla f$ and $\nabla^2\tilde f=A^\top(\nabla^2f)A$, so the Newton step in $y$ is $-A^{-1}(\nabla^2f)^{-1}\nabla f$, which is $A^{-1}\times$ the Newton step in $x$: the two runs are the same run in different coordinates. Gradient descent does not have this property.
For $f(x)=\frac12x^\top Qx-h^\top x+c$ with $Q\succ0$, the Newton quadratic model at any point is exactly equal to $f$.
Explanation
True. The model is $f$ plus its first-order and second-order Taylor terms. For a quadratic, Taylor's expansion to second order has no remainder: $f(x+\delta)=f(x)+\nabla f^\top\delta+\frac12\delta^\top Q\delta$ exactly. That is why the jump lands on the minimiser.
$f(x)=\frac12x^\top Qx-h^\top x$ with $Q=\begin{pmatrix}2&1\\1&3\end{pmatrix}$, $h=(3,5)$. One Newton step from $x^{(0)}=(10,-7)$ gives
- (a) $(0.8,\,1.4)$
- (b) $(0,\,9)$
- (c) $(0.8,\,-1.4)$
- (d) Not at the minimiser yet; it needs a second step (2 distinct eigenvalues)
Explanation
(a). $x^*=Q^{-1}h$; $\det Q=5$, $Q^{-1}=\frac15\begin{pmatrix}3&-1\\-1&2\end{pmatrix}$, so $x^*=\frac15(9-5,\,-3+10)=(0.8,\,1.4)$. Newton from any start lands there at once.
Not (b): $(0,9)$ is what one plain gradient step with length 1 gives ($g=Qx-h=(10,-16)$, $x-g=(0,9)$). Not (c): a sign slip. Not (d): "number of distinct eigenvalues" is the CG count (M2), not Newton's.
Convergence of Newton's method for $h(x)=\frac12x^\top Qx+b^\top x+c$ with positive definite Hessian depends on the eigenvalues of $Q$.
Explanation
False. Newton minimises it in one step whatever the eigenvalues are. Condition numbers and eigenvalue spreads matter for gradient descent (rate) and for CG (step count), not for Newton on a quadratic. Counter-check: $Q=\mathrm{diag}(1,10^4)$ is nasty for gradient descent and still one Newton step. (M3 §A.)
Depending on the start, Newton's method on a (CQ) function can take 10 or more iterations.
Explanation
False. His key: False. On a quadratic with $Q\succ0$ the model equals $f$, so it is exactly one step from every start. (Careful reading: for a singular $Q$ the Newton step is not even defined, so "10 iterations" cannot happen either.) Trap: confusing it with gradient descent, which can take thousands of steps. (M3 §A.)
Let $A$ be an invertible matrix and $\tilde f(y)=f(Ay)$ (the same function with renamed variables). Which statements are correct? Mark all correct answers.
- (a) If $y_k$ are the Newton iterates for $\tilde f$ started at $y_0=A^{-1}x_0$, then $Ay_k$ are the Newton iterates for $f$ started at $x_0$.
- (b) The same holds for gradient descent with a fixed step $\alpha$.
- (c) So for a positive definite quadratic, Newton needs one step no matter how badly scaled the variables are.
- (d) This only works if $A$ is an orthogonal matrix.
Explanation
(a), (c). $\nabla\tilde f=A^\top g$ and $\nabla^2\tilde f=A^\top HA$, so the Newton step in $y$ is $-(A^\top HA)^{-1}A^\top g=-A^{-1}H^{-1}g$; multiplying by $A$ gives exactly the Newton step in $x$. (c) follows by choosing $A$ to turn any $Q\succ0$ into the identity: scaling cannot matter.
(b) is wrong: the gradient step becomes $-\alpha A^\top g$ in $y$, and $A\cdot(-\alpha A^\top g)=-\alpha AA^\top g\ne-\alpha g$ unless $AA^\top=I$. That is exactly why gradient descent suffers from badly scaled variables and Newton does not. (d) is false: any invertible $A$ works. (M3 §A; M1 for gradient descent.)
3. When is the Newton step downhill?
In plain words: The Newton step jumps to the stationary point of the bowl. That is the bottom only if the bowl opens upwards (positive curvature). If the curvature is negative the bowl opens downwards, its stationary point is the top, and Newton happily jumps uphill. So we need the Hessian to be positive definite.
Words and symbols on this stop: Descent direction $u$ at $x$: $\nabla f(x)^\top u\lt 0$ (moving a tiny bit along $u$ lowers $f$); positive definite (PD) $H\succ0$: $z^\top Hz\gt 0$ for every $z\ne0$ (all eigenvalues positive); PSD $H\succeq0$: $z^\top Hz\ge0$ (eigenvalues may be 0); indefinite: some eigenvalues positive, some negative (a saddle); $u_N=-H^{-1}g$ = the Newton direction, with $g=\nabla f(x)$ and $H=\nabla^2f(x)$.
Precisely: $\nabla f^\top u_N=-g^\top H^{-1}g$. If $H\succ0$ then $H^{-1}\succ0$ and this is $\lt 0$ whenever $g\ne0$: $u_N$ is a descent direction. If $H$ is indefinite or negative definite the sign can flip. If $H$ is only PSD and singular, $H^{-1}$ may not exist at all (e.g. $f=x_1^2+x_2$: $H=\mathrm{diag}(2,0)$ and $H\delta=-g$ has no solution), so Newton is not even defined. The Hessian of a $C^2$ function is symmetric but need not be PSD.
If $\nabla^2f(x)$ is positive definite and $\nabla f(x)\ne0$, the Newton direction $-[\nabla^2f(x)]^{-1}\nabla f(x)$ is a descent direction.
Explanation
True. $\nabla f^\top u_N=-g^\top H^{-1}g$, and $H^{-1}$ is also positive definite, so $g^\top H^{-1}g\gt 0$ for $g\ne0$. Negative directional derivative = descent direction. (M3 §A4.)
$f(x)=x^3-3x$. One Newton step from $x=-0.5$ lands at $x^{(1)}=$ ?, and what happens to $f$?
- (a) $-1.25$, and $f$ increases (from $1.375$ to about $1.80$)
- (b) $-1.25$, and $f$ decreases
- (c) $0.25$, and $f$ decreases
- (d) is undefined, because $f$ has no minimum
Explanation
(a). $f'=3x^2-3=-2.25$ and $f''=6x=-3$ at $x=-0.5$. Step $=-f'/f''=-(-2.25)/(-3)=-0.75$, so $x^{(1)}=-1.25$. But $f''\lt 0$: the model is a downward bowl and we went to its top. $f(-0.5)=1.375$ while $f(-1.25)=1.797$: uphill. (Newton from here even converges to $x=-1$, a local maximum.)
(b) has the right point but the wrong conclusion. (c) is the slip of using $+f'/f''$. (d): the step only needs $f''\ne0$; it exists, it is just bad.
Newton method does not generate descent directions.
Explanation
False. When the Hessian is positive definite (e.g. near a strict local minimum or for strongly convex $f$) the Newton direction is a descent direction. The word "does not" makes it a blanket claim; one case where it does generate a descent direction is enough to kill it. (Stop 3 shows it can fail sometimes, which is a different statement.)
For a $C^2$ function the Hessian is always positive semi-definite.
Explanation
False. Counterexample $f(x,y)=x^2-y^2$: $\nabla^2f=\mathrm{diag}(2,-2)$ is indefinite (a saddle). Being twice continuously differentiable only says the Hessian exists and is symmetric. A PSD Hessian everywhere is exactly convexity, which is an extra assumption. That is why Newton's direction needs a separate PD condition.
$f(x)=x^3-3x$ on the real line. At which starting points is the Newton direction $-f'(x)/f''(x)$ a descent direction? Mark all correct answers.
- (a) $x=2$
- (b) $x=0.5$
- (c) $x=-0.5$
- (d) $x=-2$
Explanation
(a), (b). In 1-D the direction $u=-f'/f''$ is a descent direction iff $f'u\lt 0$ iff $-(f')^2/f''\lt 0$ iff $f''\gt 0$ (when $f'\ne0$). $f''=6x$ is positive only for $x\gt 0$. At $x=2$: $f'=9$, $f''=12$, $u=-0.75$, $f'u=-6.75\lt 0$ (down). At $x=0.5$: $f''=3\gt 0$ (down). At $x=-0.5$: $f'=-2.25$, $f''=-3$, $u=-0.75$, $f'u=+1.69\gt 0$ (up). At $x=-2$: $f'=9$, $f''=-12$, $u=+0.75$, $f'u\gt 0$ (up). So (c) and (d) are the negative-curvature points.
4. Speeds of convergence and local convergence
In plain words: How fast do the errors shrink? Write $e_k=|x^{(k)}-x^*|$. If every step cuts the error by a fixed factor you gain a fixed number of correct digits per step (linear). If every step squares the error, the number of correct digits doubles each step (quadratic): from 3 digits to 6 to 12. Newton gets this squaring speed, but only once it is close enough to the minimiser, because the guarantee is local.
Words and symbols on this stop: $e_k$ = error (distance to the minimiser $x^*$) after $k$ steps; linear: $e_{k+1}\le\rho\,e_k$ with a fixed $\rho\lt 1$; superlinear: $e_{k+1}/e_k\to0$; quadratic: $e_{k+1}\le C\,e_k^2$ for a constant $C$; $\beta$ = lower bound on $|f''|$ (the bowl is never flatter than $\beta$); $\alpha$ = upper bound on $|f'''|$ (curvature never changes faster than $\alpha$); basin = the set of starting points from which the method is guaranteed to converge; Lipschitz Hessian with constant $M$: $\|\nabla^2f(x)-\nabla^2f(y)\|\le M\|x-y\|$.
Precisely: Quadratic implies superlinear implies linear (in that order of strength). 1-D theorem (2020 final): if $|f''|\ge\beta\gt 0$ and $|f'''|\le\alpha$ on the interval, then Newton satisfies $e_{k+1}\le\dfrac{\alpha}{2\beta}\,e_k^2$. (Proof idea: Taylor-expand $f'$ about $x^{(k)}$ and evaluate at the root $r$ where $f'(r)=0$; divide by $f''$.) With $C=\frac{\alpha}{2\beta}$: if $Ce_k\lt 1$ then $e_{k+1}\le(Ce_k)e_k\lt e_k$, so the errors shrink and keep shrinking: the basin contains $e_0\lt \frac{2\beta}{\alpha}$. Closed form: $Ce_k\le(Ce_0)^{2^k}$. $d$-D theorem: Hessian $M$-Lipschitz and $\nabla^2f(x^*)\succeq\ell I$ ($\ell\gt 0$) give quadratic convergence for $\|x^{(0)}-x^*\|\lt \frac{2\ell}{3M}$. No $C^3$ is needed.
If $e_{k+1}\le0.5\,e_k$ for every $k$, the error at least halves each step, so $e_k\le0.5^k e_0$. This is called linear convergence.
Explanation
True. Repeat the inequality: $e_1\le0.5e_0$, $e_2\le0.5e_1\le0.25e_0$, and so on. "Linear" refers to the log of the error falling along a straight line (a fixed number of digits per step), not to the error being a linear function.
Which sequence of errors converges quadratically (i.e. $e_{k+1}\le Ce_k^2$ for a constant $C$)?
- (a) $e_k=2^{-k}$
- (b) $e_k=1/k$
- (c) $e_k=10^{-2^k}$ (that is $10^{-2},10^{-4},10^{-8},\dots$ digits double)
- (d) $e_k=1/k^2$
Explanation
(c). $e_{k+1}/e_k^2=10^{-2^{k+1}}/10^{-2^{k+1}}=1$: bounded. For the others the ratio $e_{k+1}/e_k^2$ blows up: (a) gives $2^{k-1}$ (this is linear with $\rho=\frac12$), (b) gives $k^2/(k+1)$ and (d) gives $k^4/(k+1)^2$ (both are sublinear: not even linear). In digits: (c) doubles the number of correct digits each step.
$f$ satisfies $|f''|\ge\beta=2$ and $|f'''|\le\alpha=8$ on an interval around the minimiser. Newton starts with $e_0=0.1$. Which bound on $e_2$ does the theorem $e_{k+1}\le\frac{\alpha}{2\beta}e_k^2$ guarantee?
- (a) $e_2\le6.4\times10^{-3}$
- (b) $e_2\le8\times10^{-4}$
- (c) $e_2\le0.02$
- (d) $e_2\le10^{-4}$
Explanation
(b). $C=\frac{\alpha}{2\beta}=2$. Then $e_1\le2(0.1)^2=0.02$ and $e_2\le2(0.02)^2=8\times10^{-4}$. Also $Ce_0=0.2\lt 1$, so $e_0=0.1$ is inside the guaranteed basin $e_0\lt \frac{2\beta}{\alpha}=0.5$.
(a) forgets the $\frac12$ (uses $C=\alpha/\beta=4$). (c) is the bound on $e_1$, one step too early. (d) uses $C=1$.
Speed up of Newton method can be observed only when initialized from a point close to a local minimum.
Explanation
True. His key: True. The quadratic rate is a local guarantee (the basin in the card). Far from the minimiser the bowl may be a poor model and Newton can crawl or diverge: Stop 5 shows $\sqrt{1+x^2}$, which diverges from $|x|\gt 1$ although it is convex. (The one exception is a quadratic, where "close" is everywhere.)
Newton's method shows quadratic convergence when initialized near a local minimum.
Explanation
True. His key: True. The unwritten conditions are the ones in the $d$-D theorem: Hessian at the minimiser positive definite ($\nabla^2f(x^*)\succeq\ell I$, $\ell\gt 0$) and a Lipschitz Hessian. They fail at a degenerate minimum like $x^4$ (Stop 5), where convergence is only linear; that is a boundary case, so the generic statement is accepted as True. (M3 §B3.)
5. Failure modes
In plain words: Newton trusts its bowl completely. It fails when the bowl is a bad picture of $f$: (1) start too far (the model is only valid nearby, so the jump can land farther out); (2) curvature has the wrong sign (Stop 3: it jumps to a top or a saddle); (3) curvature is zero or tiny at the solution (bowl is almost flat: slow, or huge jumps); (4) it only looks for stationary points, so it can converge to a maximum or a saddle. And each step costs a Hessian and a linear solve. Example of (3): for $x^4$, $f'/f''=x/3$, so the step is $x\mapsto\frac23x$, only a fixed shrink.
Words and symbols on this stop: Stationary (critical) point: $\nabla f=0$ (a minimum, maximum or saddle); degenerate minimum: $f''(x^*)=0$ (flat bottom, e.g. $x^4$); divergence: iterates run away; convex $f$: $f''\ge0$ (a bowl everywhere); "basin" as in Stop 4.
Precisely: Examples to remember: $\sqrt{1+x^2}$ (Newton step $x\mapsto-x^3$; basin $|x|\lt 1$; from exactly 1 it bounces $1,-1,1,\dots$); $f=x^4$ (Newton step $x\mapsto\frac23x$, linear with factor $\frac23$, because $f''(0)=0$); $e^x-2x$ from $x_0=-5$ (first jump to $2e^5-6\approx290.8$, then about 290 slow steps before the fast phase); $x^3-3x$ from $-0.5$ (converges to the local maximum at $-1$); 2021 final: $g=(1-x_1)^3+x_2^2$ has no minimiser, yet Newton converges to the stationary point $(1,0)$ (the variable $y=1-x_1$ halves each step).
Newton's method can converge to a point that is a maximum (or saddle) instead of a minimum.
Explanation
True. Newton only looks for $\nabla f=0$; it cannot tell a minimum from a maximum or a saddle. Example: $x^3-3x$ from $x=-0.5$ converges to $x=-1$, a local maximum (Stop 5.4).
Newton's method on $f(x)=x^4$ (minimum at $0$) from $x^{(0)}=1$. After 3 steps $x^{(3)}$ is
- (a) $0$ (the minimiser exactly)
- (b) $8/27\approx0.30$
- (c) $1/27\approx0.037$
- (d) $10^{-8}$
Explanation
(b). $f'=4x^3$, $f''=12x^2$, so the step is $x-\frac{4x^3}{12x^2}=x-\frac x3=\frac23x$. Three steps: $(\frac23)^3=\frac8{27}$. The error shrinks by the fixed factor $\frac23$: linear, not quadratic, because $f''(0)=0$ (the bowl is flat at the bottom, so the model is poor). (a), (c) and (d) would need quadratic or superlinear speed.
If $f$ is strictly convex and $C^2$ (so $f''\gt 0$ everywhere), Newton's method converges to the minimiser from every starting point.
Explanation
False. $f(x)=\sqrt{1+x^2}$ has $f''=(1+x^2)^{-3/2}\gt 0$ everywhere, yet from $x_0=1.1$ the iterates are $-1.331,\ 2.358,\ -13.1,\dots$ and diverge. (Another convex failure: $e^x-2x$ from $-5$ jumps to $290.8$.) Convexity makes the Newton direction a descent direction, but a full step of length 1 can overshoot. That is the reason for the local statement in Stop 4 and for damped Newton. (M3 §B4.)
If the Newton iterates converge to a point $\bar x$, then $\bar x$ is a local minimiser of $f$.
Explanation
False. Newton looks for $\nabla f=0$ and cannot tell a minimum from a maximum or a saddle. Counterexample: $f=x^3-3x$ from $x_0=-0.5$ goes to $-1.25$ and then converges to $x=-1$, where $f''(-1)=-6\lt 0$ (a local maximum). Also the 2021 function $(1-x_1)^3+x_2^2$ converges to $(1,0)$, which is not a minimum.
$f(x)=\sqrt{1+x^2}$, whose Newton step is $x^{(k+1)}=-\big(x^{(k)}\big)^3$. Which starting points converge to the minimiser $0$? Mark all correct answers.
- (a) $x^{(0)}=0.5$
- (b) $x^{(0)}=0.9$
- (c) $x^{(0)}=1.0$
- (d) $x^{(0)}=1.1$
Explanation
(a), (b). The basin is $|x^{(0)}|\lt 1$. From $0.5$: $-0.125,\ 0.00195,\ -7.5\times10^{-9}$. From $0.9$: $-0.729,\ 0.387,\ -0.058,\dots\to0$. From exactly $1.0$: $-1,\ 1,\ -1,\dots$ it bounces forever (neither converges nor diverges), so (c) is wrong. From $1.1$: $-1.331,\ 2.358,\ -13.1,\dots$ diverges, so (d) is wrong. Note that once $|x|\lt 1$ the error is cubed, even faster than quadratic.
6. The quasi-Newton idea and the secant condition
In plain words: Newton is fast but each step needs the whole Hessian ($d^2$ numbers) and a linear solve (about $d^3$ work). Quasi-Newton keeps a cheap running guess $G^{(k)}$ for the inverse Hessian and improves it after every step using only the gradients we already computed. How do we learn curvature from gradients? By watching how the gradient changes over the step we just took: that ratio is a secant slope (in 1-D, slope of the line through two points of $f'$).
Words and symbols on this stop: $G^{(k)}$ = current approximation of $[\nabla^2f]^{-1}$ (symmetric, positive definite); $\delta_k=x^{(k+1)}-x^{(k)}$ = the step just taken; $\gamma_k=\nabla f(x^{(k+1)})-\nabla f(x^{(k)})$ = how the gradient changed; secant = a line through two points of a curve (instead of the tangent at one point); line search $\alpha_k$ = how far to go along $-G^{(k)}\nabla f$.
Precisely: Iteration: $x^{(k+1)}=x^{(k)}-\alpha_kG^{(k)}\nabla f(x^{(k)})$, with $G^{(0)}=I$ (the first step is a steepest-descent step). Quasi-Newton (secant) condition: $$G^{(k+1)}\gamma_k=\delta_k.$$ Reason: for a quadratic, $\gamma_k=Q\delta_k$ exactly, i.e. $Q^{-1}\gamma_k=\delta_k$; we ask the new $G$ to behave like $Q^{-1}$ on the last step. The cost of an update is about $d^2$ (versus about $d^3$ for a Newton solve), and no second derivatives are ever evaluated.
In quasi-Newton methods the matrix $G^{(k)}$ approximates the inverse of the Hessian (so that $-G^{(k)}\nabla f$ mimics the Newton step).
Explanation
True. The Newton step is $-H^{-1}g$, so the object to approximate is $H^{-1}$; with $G\approx H^{-1}$ no linear solve is needed, just a matrix-vector product $-G^{(k)}g$. (Some books approximate $H$ instead; in his notation $G$ is the inverse.)
In one variable $f'(x)=4x-2$. A quasi-Newton step goes from $x=1$ to $x=3$. The secant condition $G\gamma=\delta$ then forces $G=$
- (a) $1/4$
- (b) $4$
- (c) $2$
- (d) $1/8$
Explanation
(a). $\delta=3-1=2$ and $\gamma=f'(3)-f'(1)=10-2=8$. $G\cdot8=2$ gives $G=\frac14$. This is exactly $1/f''$ since $f''=4$ (the function is a quadratic, so the secant slope is the true curvature). (b) is $f''$ itself, i.e. the Hessian, not its inverse. (c) is $\delta$. (d) is $\delta/(\gamma\cdot2)$.
The quasi-Newton condition $G^{(k+1)}\gamma_k=\delta_k$ determines the matrix $G^{(k+1)}$ uniquely.
Explanation
False. It is only $d$ equations, while a symmetric $d\times d$ matrix has $d(d+1)/2$ unknowns (for $d=3$: 3 equations, 6 unknowns). Many matrices satisfy it: SR1, DFP and BFGS are different solutions of the same condition. Each adds an extra requirement (rank one; or rank two with positive definiteness). (M3 §C.)
If $G^{(k+1)}$ is positive definite and satisfies the quasi-Newton condition $G^{(k+1)}\gamma_k=\delta_k$, then necessarily $\delta_k^\top\gamma_k\gt 0$.
Explanation
True. Multiply the condition by $\gamma_k^\top$: $\gamma_k^\top\delta_k=\gamma_k^\top G^{(k+1)}\gamma_k\gt 0$ because $G^{(k+1)}\succ0$ and $\gamma_k\ne0$. So $\delta^\top\gamma\gt 0$ (the curvature condition) is necessary for a PD solution to exist; with exact line search or a Wolfe line search it holds automatically (Stop 7). In 1-D this just says $\delta$ and $\gamma$ have the same sign, i.e. positive curvature.
7. SR1, DFP, BFGS: the updates, their coefficients, positive definiteness
In plain words: Three standard ways to correct $G$ so that it satisfies the secant condition. SR1 adds one rank-one matrix (the simplest). DFP and BFGS add a rank-two correction and are designed to keep $G$ positive definite, which keeps $-G\nabla f$ pointing downhill. His exam favourite: write the update as $G+BAB^\top$ with $B=[\delta,\ G\gamma]$ and a small $2\times2$ matrix $A$ of unknown coefficients, then find the coefficients from the secant condition.
Words and symbols on this stop: Rank-one matrix: $vv^\top$ for a vector $v$ (it only acts in one direction); rank-two: a sum of two such pieces; SR1 = symmetric rank-one; DFP = Davidon–Fletcher–Powell; BFGS = Broyden–Fletcher–Goldfarb–Shanno; Wolfe line search = a step-size rule that guarantees $\delta^\top\gamma\gt 0$; Broyden family: all combinations $(1-\phi)\mathrm{DFP}+\phi\,\mathrm{BFGS}$; $A=\begin{pmatrix}a&b\\b&c\end{pmatrix}$ = the coefficient matrix; $G\gamma$ and $\delta$ = the two vectors that appear in the secant condition.
Precisely: SR1: $G^{+}=G+\dfrac{(\delta-G\gamma)(\delta-G\gamma)^\top}{(\delta-G\gamma)^\top\gamma}$. DFP: $G^{+}=G+\dfrac{\delta\delta^\top}{\delta^\top\gamma}-\dfrac{G\gamma\gamma^\top G}{\gamma^\top G\gamma}$. BFGS: $G^{+}=V^\top GV+\rho\,\delta\delta^\top$ with $\rho=\frac1{\delta^\top\gamma}$, $V=I-\rho\gamma\delta^\top$. In the form $G+BAB^\top$, $B=[\delta,G\gamma]$: $B^\top\gamma=(\delta^\top\gamma,\ \gamma^\top G\gamma)^\top$, so $G^+\gamma=\delta$ becomes $a\,\delta^\top\gamma+b\,\gamma^\top G\gamma=1$ and $1+b\,\delta^\top\gamma+c\,\gamma^\top G\gamma=0$ (coefficient of $\delta$ equals 1, coefficient of $G\gamma$ equals 0). $b=0$ gives DFP. PD preservation: if $G\succ0$ and $\delta^\top\gamma\gt 0$, DFP and BFGS stay PD; $\delta^\top\gamma\gt 0$ holds with exact line search, with a Wolfe line search, and for a strictly convex quadratic.
SR1 adds a rank-one term to $G$, while DFP and BFGS add rank-two terms.
Explanation
True. SR1 = "symmetric rank-one": $G^+=G+\dfrac{vv^\top}{v^\top\gamma}$ with $v=\delta-G\gamma$, a single outer product. DFP and BFGS add two outer-product pieces (e.g. $\delta\delta^\top$ and $G\gamma\gamma^\top G$). The names "rank-one" and "rank-two" describe the correction, not $G$ itself (see 7.2).
Rank one Quasi-newton method yields rank one matrices.
Explanation
False. $G^{(k+1)}=G^{(k)}+vv^\top/(v^\top\gamma)$: the change is rank one, but $G^{(k+1)}$ is a full-rank matrix (it starts as $I$ and stays an approximate inverse Hessian). A rank-one $G$ would be singular and could not approximate $H^{-1}$. (M3 §C3.)
$G^{(k+1)}=G^{(k)}+BAB^\top$ with $B=[\delta_k,\ G^{(k)}\gamma_k]$, $A=\begin{pmatrix}a&b\\b&c\end{pmatrix}$, $\delta_k^\top\gamma_k=10$, $\gamma_k^\top G^{(k)}\gamma_k=2$. With $b=0$, which $(a,c)$ satisfy $G^{(k+1)}\gamma_k=\delta_k$?
- (a) $a=\frac1{10},\ c=-\frac12$
- (b) $a=\frac1{10},\ c=-3$
- (c) $a=\frac12,\ c=-\frac1{10}$
- (d) $a=10,\ c=-2$
Explanation
(a). The conditions are $10a+2b=1$ and $1+10b+2c=0$. With $b=0$: $a=\frac1{10}$ and $c=-\frac12$. This is DFP ($a=1/\delta^\top\gamma$, $c=-1/\gamma^\top G\gamma$). Other choices: with $a=0$ the equations give $b=\frac12$, $c=-3$ ((b) mixes that $c$ into the wrong case). (c) swaps the roles ($a=1/2=1/\gamma^\top G\gamma$). (d) inverts instead of dividing.
Which to prefer? His answer: the $b=0$ (DFP) update, because it keeps $G$ positive definite when $\delta^\top\gamma\gt 0$; the $a=0$ update has no such guarantee. (M3 §C4.)
$G=I$ (2×2), $\delta=(1,0)$, $\gamma=(0.1,\,3)$, so $\delta^\top\gamma=0.1\gt 0$. After one update, which is true?
- (a) SR1 gives an indefinite matrix; DFP and BFGS give positive definite matrices
- (b) All three give positive definite matrices, since $\delta^\top\gamma\gt 0$
- (c) SR1 is positive definite, DFP is indefinite
- (d) All three are indefinite
Explanation
(a). SR1: $v=\delta-G\gamma=(0.9,-3)$, $v^\top\gamma=0.09-9=-8.91\lt 0$, and $\det(G^+)=1+\|v\|^2/(v^\top\gamma)=1+9.81/(-8.91)=-0.101\lt 0$: one negative eigenvalue, so $G^+$ is indefinite and $-G^+\nabla f$ can be an uphill direction. DFP and BFGS need only $G\succ0$ and $\delta^\top\gamma\gt 0$ (both true), so they stay PD. This is the weakness of rank one: it satisfies the secant condition but gives no PD guarantee. (M3 §C3, C5.)
$G^{(k+1)}=G+ADA^\top$, $A=[\delta,\ G\gamma]$, $D=\mathrm{diag}\big(\frac a{\delta^\top\gamma},\ \frac b{\gamma^\top G\gamma}\big)$, with $G\succ0$ and $\delta^\top\gamma\gt 0$ (here $a,b$ are the diagonal scalars of $D$, not the entries of $A$ in 7.3). Which statements are correct? Mark all correct answers.
- (a) $a=1$, $b=-1$ makes the update satisfy the quasi-Newton condition.
- (b) For that choice $D$ is positive definite, which is why $G^{(k+1)}$ is positive definite.
- (c) For that choice $D$ is indefinite, yet $G^{(k+1)}$ is still positive definite.
- (d) For that choice the update is the SR1 update.
Explanation
(a), (c). $G^{+}\gamma=G\gamma+a\,\delta+b\,G\gamma=\delta$ requires $a=1$ and $1+b=0$, so $b=-1$ (this is DFP). (b) is false and (c) is true: $D=\mathrm{diag}(\frac1{\delta^\top\gamma},-\frac1{\gamma^\top G\gamma})$ has one positive and one negative entry, so it is indefinite; positive definiteness of $G^+$ does not come from $D$ but from Cauchy–Schwarz: with $G=LL^\top$, $z^\top G^+z=\|u\|^2-\frac{(u^\top v)^2}{\|v\|^2}+\frac{(z^\top\delta)^2}{\delta^\top\gamma}\ge0$ ($u=L^\top z$, $v=L^\top\gamma$), with equality impossible for $z\ne0$. (d) is false: SR1 is rank one, DFP is rank two. (M3 §C5.)
The rank-one quasi-Newton method yields a descent direction at every iterate.
Explanation
True. His key: True. The direction is $-G^{(k)}\nabla f$, which is a descent direction whenever $G^{(k)}$ is positive definite (then $\nabla f^\top(-G\nabla f)\lt 0$). Caveat that 7.4 shows: SR1 does not guarantee $G^{(k)}\succ0$, so strictly the answer needs "assuming $G^{(k)}\succ0$". If asked to justify, write exactly that. (M3 §C3.)
8. Quadratic termination, the CG link, and cost
In plain words: On a quadratic with exact line search, DFP and BFGS (and SR1 when its denominators are nonzero) build up exactly the curvature of $Q$: after $d$ steps $G=Q^{-1}$ and the minimiser has been found. Started from $G^{(0)}=I$ the steps are the conjugate gradient steps, so quasi-Newton on a quadratic is CG in disguise (it needs at most as many steps as CG, e.g. 4 on a 50-dimensional problem with 4 distinct eigenvalues). In return for being slower than Newton (1 step) it costs only about $d^2$ per iteration instead of $d^3$.
Words and symbols on this stop: Exact line search: $\alpha_k$ minimises $f$ along the direction; $Q$-conjugate directions: $u_i^\top Qu_j=0$ for $i\ne j$; quadratic termination: finishing a quadratic in finitely many steps; Expanding Subspace theorem = after $k$ conjugate steps, $f$ is minimised over their whole span (Ch 3); CG = conjugate gradient method (Ch 3); (CQ) = the quadratic $\frac12x^\top Qx-h^\top x+c$ with $Q\succ0$ (as in Stop 2).
Precisely: (i) With exact line search the steps $\delta_0,\delta_1,\dots$ of a Broyden-family method are $Q$-conjugate, so by the Expanding Subspace theorem it finishes in $\le d$ steps. (ii) If $\delta_0,\dots,\delta_{d-1}$ are linearly independent, $G^{(d)}=Q^{-1}$ and the next step is exactly the Newton step. (iii) With $G^{(0)}=I$ the iterates coincide with CG's. (iv) Cost per iteration: Newton about $d^3$ (a solve), quasi-Newton about $d^2$, gradient descent about $d$ (plus the cost of $f$, $\nabla f$).
On a $d$-variable (CQ) function with $Q\succ0$, DFP or BFGS with $G^{(0)}=I$ and exact line search reaches the minimiser in at most $d$ steps.
Explanation
True. The steps are $Q$-conjugate (equivalently they are CG's steps), and $d$ conjugate directions span $\mathbb R^d$; by the Expanding Subspace theorem the iterate after $d$ steps minimises $f$ over everything. This is called quadratic termination. (M3 §C6, M2.)
$f(x)=\frac12x^\top Qx-h^\top x$ with $d=50$ variables and $Q\succ0$ having exactly 4 distinct eigenvalues. Which statements are correct? Mark all correct answers.
- (a) Newton's method finishes in 1 iteration.
- (b) CG finishes in at most 4 iterations.
- (c) BFGS with $G^{(0)}=I$ and exact line search finishes in at most 4 iterations.
- (d) BFGS with $G^{(0)}=I$ and exact line search needs exactly 50 iterations.
Explanation
(a), (b), (c). Newton: always 1 step on a PD quadratic. CG: at most the number of distinct eigenvalues, here 4 (M2). BFGS from $G^{(0)}=I$ produces exactly CG's iterates, so it also stops within 4 steps (checked numerically in the check script). (d) confuses the worst case $d=50$ (a quasi-Newton bound, valid for any $Q$) with what actually happens here.
In the rank-one update in Quasi Newton method it can be shown that the algorithm recovers the inverse of the Hessian for (CQ) functions.
Explanation
True. His key: True. With $d$ linearly independent steps and nonzero SR1 denominators, $G^{(d)}Q\delta_i=\delta_i$ for all $i$, i.e. $G^{(d)}=Q^{-1}$. After that the quasi-Newton step equals the Newton step. The caveat is "can be shown": it needs independent steps and $(\delta-G\gamma)^\top\gamma\ne0$. (M3 §C3.)
A Broyden-family based Quasi-Newton method is not guaranteed to recover the minimum of (CQ).
Explanation
False (watch the double negative: "not guaranteed"). With exact line search every Broyden-family member (DFP, BFGS, ...) recovers the minimiser of a (CQ) function in at most $d$ steps, so it is guaranteed. Read the sentence as "it may fail" and answer False. (M3 §C6.)
Rank two Quasi-newton method yields Conjugate Gradient directions for convex quadratic programs.
Explanation
True. From $G^{(0)}=I$ with exact line search, the DFP/BFGS directions are parallel to the CG directions and the iterates are identical (this is the CG link; confirmed numerically in the check script). (M3 §C6.)
The rank-2 quasi-Newton method converges faster than gradient descent for (CQ) functions.
Explanation
True. His key: True. Rank-2 quasi-Newton ends in at most $d$ steps with exact line search; gradient descent converges only at a linear rate $\big(\frac{\kappa-1}{\kappa+1}\big)^2$ and never lands exactly on the minimiser unless started on an eigenvector. (Contrast with "always faster than rank-one", which is False.)
The rigorous version
- Newton step. For $f\in C^2$ with $\nabla^2f(x^{(k)})$ invertible: $x^{(k+1)}=x^{(k)}-[\nabla^2f(x^{(k)})]^{-1}\nabla f(x^{(k)})$, the stationary point of $q_k(\delta)=f+\nabla f^\top\delta+\frac12\delta^\top\nabla^2f\,\delta$. Step length 1.
- Quadratics. If $f(x)=\frac12x^\top Qx-h^\top x+c$ with $Q\succ0$, Newton from any $x^{(0)}$ gives $x^{(1)}=Q^{-1}h=x^*$. Newton is affine invariant: for invertible $A$, the Newton iterates of $f(Ay)$ are $A^{-1}\times$ those of $f(x)$.
- Descent. If $\nabla^2f(x)\succ0$ and $\nabla f(x)\ne0$, then $\nabla f(x)^\top u_N=-\nabla f^\top[\nabla^2f]^{-1}\nabla f\lt 0$. Without $\nabla^2f\succ0$ no such statement holds.
- 1-D local convergence (2020 final). $f$ thrice differentiable on $(a,b)$, $f'(a)f'(b)\lt 0$, $|f''|\ge\beta\gt 0$, $|f^{(3)}|\le\alpha$: exactly one critical point $r$, and Newton satisfies $e_{k+1}\le\frac{\alpha}{2\beta}e_k^2$ where $e_k=|x^{(k)}-r|$; it converges whenever $e_0\lt \frac{2\beta}{\alpha}$ (and the interval around $r$ stays inside $(a,b)$).
- $d$-D local convergence. $\nabla^2f$ $M$-Lipschitz, $\nabla^2f(x^*)\succeq\ell I$ with $\ell\gt 0$: $r_{k+1}\le\frac{Mr_k^2}{2(\ell-Mr_k)}$ for $r_k\lt \ell/M$; for $r_0\lt \frac{2\ell}{3M}$ the iterates stay in the ball and $r_{k+1}\le\frac{3M}{2\ell}r_k^2$ (quadratic convergence).
- Quasi-Newton condition. $G^{(k+1)}\gamma_k=\delta_k$ with $\delta_k=x^{(k+1)}-x^{(k)}$, $\gamma_k=\nabla f(x^{(k+1)})-\nabla f(x^{(k)})$; for a quadratic $\gamma_k=Q\delta_k$.
- Updates. SR1: $G^+=G+\frac{(\delta-G\gamma)(\delta-G\gamma)^\top}{(\delta-G\gamma)^\top\gamma}$. DFP: $G^+=G+\frac{\delta\delta^\top}{\delta^\top\gamma}-\frac{G\gamma\gamma^\top G}{\gamma^\top G\gamma}$. BFGS: $G^+=V^\top GV+\rho\delta\delta^\top$, $\rho=1/\delta^\top\gamma$, $V=I-\rho\gamma\delta^\top$. General rank-two form $G+BAB^\top$, $B=[\delta,G\gamma]$: secant condition iff $a\,\delta^\top\gamma+b\,\gamma^\top G\gamma=1$ and $1+b\,\delta^\top\gamma+c\,\gamma^\top G\gamma=0$.
- PD preservation. $G\succ0$ and $\delta^\top\gamma\gt 0$ imply DFP and BFGS updates are $\succ0$; $\delta^\top\gamma\gt 0$ is necessary for any PD $G^+$ obeying the secant condition, and holds under exact or Wolfe line search. SR1 gives no such guarantee.
- Quadratic termination. On (CQ) with $Q\succ0$, exact line search, any Broyden-family update: the steps are $Q$-conjugate, the method stops in $\le d$ steps, and $G^{(d)}=Q^{-1}$ when the $\delta_i$ are linearly independent; with $G^{(0)}=I$ the iterates are the CG iterates.
Final mixed round (exam level)
Eight past-paper items and one new multi-part item, across all stops.
Applying Newton's method to a strongly convex quadratic function is slower than the CG method.
Explanation
False. Newton finishes in 1 step. CG needs at most the number of distinct eigenvalues of $Q$ (up to $d$). "Slower" is wrong in iteration count (Stop 2). (Per iteration Newton is the more expensive one, but the claim is about convergence.) (M3 §A, M2.)
For a convex quadratic program Newton method will converge in half the number of iterations when compared with steepest descent with exact line search.
Explanation
False. It is 1 iteration versus many (steepest descent never reaches the minimiser exactly and its count grows with the condition number), not a factor of two. A constant-factor claim like "half" is the trap. (M3 §A.)
For a $C^3$ function Newton's method is not applicable.
Explanation
False. $C^3\subset C^2$, and Newton needs only $C^2$. Same idea as 1.4 with the negation: "not applicable" is false because the method does apply.
To prove convergence of Newton method the function needs to be in $C^3$.
Explanation
False. The local quadratic convergence theorem needs $C^2$ with a Lipschitz Hessian ($\nabla^2f$ $M$-Lipschitz); no third derivative is needed. (The 1-D version uses $|f^{(3)}|\le\alpha$ only as a convenient Lipschitz bound.) (Stop 4; M3 §B3.)
The computational effort in computing one iterate of Newton method is same as one iteration of Gradient Descent.
Explanation
False. Gradient descent needs one gradient (about $d$ work beyond evaluating it). Newton needs the Hessian ($d^2$ entries) and a linear solve, about $d^3$ operations. For $d=1000$ that is about $10^9$ versus $10^3$, and quasi-Newton sits at about $10^6$ ($d^2$). (Stop 6, 8; M3 §D.)
Rank one Quasi-newton method is faster than Newton's method for Convex Quadratic programs.
Explanation
His key: True. This only makes sense as "cheaper per iteration" (no Hessian, no $d^3$ solve). In iteration count Newton wins on a quadratic (1 step versus up to $d$). If asked to justify, say which meaning you use. Compare F5: the cost per iteration is the real difference. (M3 practice T10.)
The rank-two quasi-Newton method always yields faster convergence than the rank-one approach.
Explanation
False. "Always" is the problem. On a quadratic with exact line search both finish in at most $d$ steps, so neither is faster there; the rank-two methods' real advantage is the positive definiteness guarantee (Stop 7), not speed. Compare 8.6, where the comparison is with gradient descent and is True.
Quasi Newton method has lower computational complexity per iteration than Newton method.
Explanation
True. Newton: Hessian plus an $O(d^3)$ solve each iteration. Quasi-Newton: only gradients plus an $O(d^2)$ update. (M3 §C1.)
$f(x)=\frac12x^\top Qx$ with $Q=\mathrm{diag}(1,4)$, start $x^{(0)}=(4,1)$ (so $\nabla f=(4,4)$). Which methods reach the minimiser $(0,0)$ exactly within 2 iterations? Mark all correct answers.
- (a) Newton's method
- (b) CG
- (c) BFGS with $G^{(0)}=I$ and exact line search
- (d) Steepest descent with exact line search
Explanation
(a), (b), (c). Newton: 1 step. CG: $Q$ has 2 distinct eigenvalues (and $d=2$), so at most 2 steps. BFGS: $d=2$ steps (and it equals CG). (d) is wrong: the first step has $\alpha=\frac{g^\top g}{g^\top Qg}=\frac{32}{80}=0.4$, giving $x^{(1)}=(2.4,-0.6)$, and it keeps zig-zagging: the error shrinks by 0.6 per step ($f$ by $0.36=\big(\frac{\kappa-1}{\kappa+1}\big)^2$, $\kappa=4$); it only terminates in one step when started on an eigenvector.