M1 · Convergence rates, from zero

Lectures 6–10 (25 Aug – 8 Sep) · MT1 material · about 3 hours with practice · Goal: given what is known about $f$ (smooth? convex? strongly convex? a quadratic?), you can write the one-step decrease, turn it into a rate, and answer "how many iterations until …?" with a number.

How this page works

It's a story: each section uses only what came before. Formulas come after the idea they express. Small Check boxes test you as you go (answers hidden). The Summary card at the very end is for revision, not for learning.

Why this module is first: some version of "how many steps does gradient descent need" appeared in 6 of the 7 past finals (2016, 2017, 2020, 2021, 2024, 2025; in 2025 as T/F items), and it was MT1 Q5 and Q7 this year.

Notation (the professor's; one letter = one meaning on this page):

  • $x^{(k)}$ = the point after $k$ steps; $x^*$ = the minimiser; $f^*=f(x^*)$.
  • $\Delta_k=f(x^{(k)})-f^*$ = how far the value still is from the best (the "optimality gap").
  • $\alpha$ or $\alpha_k$ = step size. $u^{(k)}$ = search direction.
  • $f\in C^1_L$ = $f$ is differentiable and its gradient is $L$-Lipschitz: $\|\nabla f(x)-\nabla f(y)\|\le L\|x-y\|$. Think: "the slope can't change faster than $L$".
  • $\mu$ = strong-convexity constant (defined in A2; he also writes $l$, as in MT1 Q7). $\kappa=L/\mu$ = condition number.
  • Convex $f$: the graph lies above every tangent line/plane, $f(y)\ge f(x)+\nabla f(x)^\top(y-x)$.
  • $\lambda_{\min},\lambda_{\max}$ = smallest / largest eigenvalue of a matrix $Q$.
  • $T$ = number of iterations; $\varepsilon$ = target accuracy; $\ln$ = natural log.

Algorithm DESCENT (his name, on every paper): $x^{(k+1)}=x^{(k)}+\alpha_k u^{(k)}$ with $u^{(k)\top}\nabla f(x^{(k)})<0$. Gradient descent (= steepest descent) is the case $u^{(k)}=-\nabla f(x^{(k)})$.

0. Why this topic exists

Gradient descent usually does not reach $x^*$ exactly; it creeps towards it. So the real question is how fast. "Fast" has a precise meaning: after $T$ steps, how small is the error (the gap $\Delta_T$, the gradient $\|\nabla f\|$, or the distance $\|x^{(T)}-x^*\|$)? Turned around: how many steps $T$ do I need to get the error below $\varepsilon$?

The answer depends on what you know about $f$. The more you know, the faster the guarantee. That gives a ladder:

RungWhat you know about $f$What you can guarantee after $T$ stepsName
1$f\in C^1_L$ and bounded below (no convexity)smallest gradient seen $\le \dfrac{A}{\sqrt T}$"efficiency estimate", $O(1/\sqrt T)$
2+ convex$\Delta_T\le\dfrac{L\|x^{(0)}-x^*\|^2}{2T}$sublinear, $O(1/T)$
3+ strongly convex ($\mu>0$)$\Delta_T\le(1-\mu/L)^T\Delta_0$, a fixed fraction per steplinear (geometric) rate
4$f$ is a quadratic $\frac12x^\top Qx-h^\top x+c$exact factors from the eigenvalues of $Q$linear, with exact constants
The whole module in one sentence

Everything comes from two parabolas: an upper one (from $L$) says how much one step surely decreases $f$, and a lower one (from $\mu$) says how much decrease is still possible; dividing the two gives the rate.

Roadmap: A builds the two parabolas and what they imply. B computes the decrease of one step. C–F climb the four rungs. G is the exam recipe. Then past questions.

A. Two parabolas that hug $f$

At any point $x$ you know the value $f(x)$ and the slope $\nabla f(x)$. The tangent line (plane) uses both. But a tangent alone tells you nothing about how far $f$ can bend away from it. The constants $L$ and $\mu$ limit the bending: $f$ is trapped between two parabolas that touch it at $x$.

A1. The upper parabola: the Descent Lemma (needs $L$)

In plain words: if the slope can change at most $L$ per unit distance, then $f$ can curve upwards at most like $\frac L2(\text{distance})^2$ above its tangent.

Descent Lemma (memorise exactly)

If $f\in C^1_L$, then for all $x,y\in\mathbb R^d$:

$$f(y)\;\le\;f(x)+\nabla f(x)^\top(y-x)+\frac L2\|y-x\|^2 .$$

No convexity is needed. For a $C^2$ function it is enough that $\nabla^2 f(x)\preceq LI$ everywhere (all Hessian eigenvalues $\le L$).

Why it's true (only if a question says "prove")

Walk from $x$ to $y$ along $x+t(y-x)$, $t\in[0,1]$: $f(y)-f(x)-\nabla f(x)^\top(y-x)=\int_0^1\big(\nabla f(x+t(y-x))-\nabla f(x)\big)^\top(y-x)\,dt$. By Cauchy–Schwarz and the Lipschitz bound, the integrand is $\le L\,t\,\|y-x\|^2$, and $\int_0^1 Lt\,dt=\frac L2$.

A2. The lower parabola: strong convexity (needs $\mu$)

In plain words: a convex function lies above its tangent. A strongly convex function lies above its tangent by at least $\frac\mu2(\text{distance})^2$: it is "at least as curved as a bowl of curvature $\mu$".

Strong convexity with constant $\mu>0$ $$f(y)\;\ge\;f(x)+\nabla f(x)^\top(y-x)+\frac\mu2\|y-x\|^2\qquad\text{for all }x,y.$$

For a $C^2$ function: $\nabla^2f(x)\succeq\mu I$ everywhere. So "$lI\preceq\nabla^2f\preceq LI$" (MT1 Q7) means $\mu=l$ and $L$ at once.

Trap: read which side the inequality is on

A "$\le\dots+\frac{c}{2}\|y-x\|^2$" condition is the upper bound (smoothness), whatever letter is used. In the 2016 final he wrote the upper bound with the letter $\mu$! In 2024 he wrote the lower bound as "$\ge\dots+\frac12\|x-y\|^2$", which means $\mu=1$. Always decide from the direction of the inequality, not from the letter.

x (they all touch here) upper: slope + (L/2)·dist² lower: slope + (μ/2)·dist² f
Schematic. $f$ (black) is squeezed between the steep upper parabola (blue, curvature $L$) and the flat lower one (green, curvature $\mu$). Both touch $f$ at $x$ with the same slope. The widget below draws this for a real function.
The sandwich, and one gradient step

$f(x)=x^2+\sin x$. Its second derivative $2-\sin x$ lies in $[1,3]$, so the true constants are $\mu=1$, $L=3$. Move the touching point $x^{(0)}$, and try a wrong $L$ or $\mu$ to see the sandwich break. The orange dot is the bottom of the blue parabola: that is exactly the gradient step with $\alpha=1/L$.

What to notice: with the true $L=3$, the actual decrease is always at least the guaranteed $\frac{1}{2L}f'(x^{(0)})^2$. Lower $L$ below 3 and the blue curve cuts into $f$ somewhere: the guarantee is no longer valid.

A3. Four consequences you will use again and again

Each one comes from a single choice of $x$ or $y$ in the two parabolas. Learn the move, not just the result.

  1. Gap is at most gradient² (lower parabola, minimised). Write $d=y-x$. The right side of A2 is $f(x)+\nabla f(x)^\top d+\frac\mu2\|d\|^2$, a bowl in $d$. Its gradient $\nabla f(x)+\mu d$ is zero at $d=-\nabla f(x)/\mu$, and there its value is $f(x)-\frac1\mu\|\nabla f(x)\|^2+\frac{1}{2\mu}\|\nabla f(x)\|^2=f(x)-\frac{1}{2\mu}\|\nabla f(x)\|^2$. Since $f(y)$ is above the bowl for every $y$, in particular $f^*=f(x^*)\ge f(x)-\frac{1}{2\mu}\|\nabla f(x)\|^2$. Rearranged: $$\boxed{\;\Delta=f(x)-f^*\le\frac{1}{2\mu}\|\nabla f(x)\|^2\;}\qquad\text{(Polyak–Łojasiewicz, "PL")}$$ Meaning: if the gradient is small, you are close to optimal in value.
  2. Gap is at least distance² (lower parabola at $x=x^*$). Put $x=x^*$ in A2; $\nabla f(x^*)=0$, so $f(y)-f^*\ge\frac\mu2\|y-x^*\|^2$. Renaming $y$ as $x$: $$\boxed{\;\|x-x^*\|^2\le\frac2\mu\,\Delta\;}$$
  3. Gap is at most distance² (upper parabola at $x=x^*$): $\Delta\le\frac L2\|x-x^*\|^2$.
  4. Distance from gradient (combine 1 and 2): $\|x-x^*\|^2\le\frac2\mu\Delta\le\frac{1}{\mu^2}\|\nabla f(x)\|^2$, so $$\boxed{\;\|x-x^*\|\le\frac{\|\nabla f(x)\|}{\mu}\;}$$
Check A3. $f$ is strongly convex with $\mu=2$ and at some point $\|\nabla f(x)\|=4$. Bound $\Delta$ and $\|x-x^*\|$.
Show answer

$\Delta\le\frac{16}{2\cdot2}=4$. $\|x-x^*\|\le\frac42=2$ (equivalently $\|x-x^*\|^2\le\frac{2}{2}\cdot4=4$).

B. How much does one step decrease $f$?

B1. Constant step size $\alpha$

Put the gradient step $y=x-\alpha\nabla f(x)$ into the upper parabola (A1). Write $g=\nabla f(x)$ for short. Then $y-x=-\alpha g$, so

$$f(y)\le f(x)-\alpha\|g\|^2+\frac L2\alpha^2\|g\|^2=f(x)-\alpha\Big(1-\frac{L\alpha}{2}\Big)\|g\|^2 .$$
One-step decrease (constant step) $$f(x^{(k)})-f(x^{(k+1)})\;\ge\;\alpha\Big(1-\frac{L\alpha}{2}\Big)\,\|\nabla f(x^{(k)})\|^2 .$$
  • Decrease is guaranteed when $\alpha(1-\frac{L\alpha}2)>0$, i.e. $0<\alpha<\frac2L$.
  • The factor $\alpha(1-\frac{L\alpha}{2})$ is a downward parabola in $\alpha$, largest at $\alpha=\frac1L$, where it equals $\frac1{2L}$.
With numbers (the widget's function)

$f(x)=x^2+\sin x$, $L=3$, start $x^{(0)}=2$. Then $f'(2)=4+\cos2\approx3.584$. Step $\alpha=\frac13$: $x^{(1)}=2-\frac{3.584}{3}\approx0.805$.

Guaranteed decrease $\frac{1}{2L}f'(2)^2=\frac{3.584^2}{6}\approx2.14$. Actual: $f(2)-f(0.805)\approx4.909-1.370=3.54$. The guarantee is a floor, and it holds.

Trap: the end point $2/L$

$\alpha=2/L$ is not allowed: the factor is $0$, so nothing is guaranteed. Example: $f=\frac L2x^2$ with $\alpha=\frac2L$ gives $x\mapsto x-2x=-x$: it bounces between $1$ and $-1$ forever and $f$ never decreases. The interval is open: $(0,\frac2L)$.

Check B1. $L=4$. Which constant step gives the biggest guaranteed decrease, and how big? Is $\alpha=0.5$ safe?
Show answer

$\alpha=\frac14$, guaranteed decrease $\frac18\|\nabla f\|^2$. $\alpha=0.5=\frac2L$ is the excluded end point: not safe.

B2. Exact line search

Exact line search picks $\alpha_k$ to minimise $f(x^{(k)}-\alpha\nabla f(x^{(k)}))$ over $\alpha>0$. It can only do at least as well as any particular step, in particular as $\alpha=\frac1L$. So

$$f(x^{(k)})-f(x^{(k+1)})\ge\frac{1}{2L}\|\nabla f(x^{(k)})\|^2\qquad\text{(exact line search too)}.$$

Second fact (MT1 Q6): at the best $\alpha$, the derivative of $\alpha\mapsto f(x^{(k)}-\alpha\nabla f(x^{(k)}))$ is zero. By the chain rule that derivative is $-\nabla f(x^{(k+1)})^\top\nabla f(x^{(k)})$. Hence

$$\nabla f(x^{(k+1)})^\top\nabla f(x^{(k)})=0:\quad\text{consecutive gradients are orthogonal (the "zig-zag").}$$

On a quadratic $f=\frac12x^\top Qx-h^\top x+c$ the best step has a formula. With $g=\nabla f(x^{(k)})=Qx^{(k)}-h$: the derivative of $f(x^{(k)}-\alpha g)$ in $\alpha$ is $-g^\top\big(Q(x^{(k)}-\alpha g)-h\big)=-g^\top g+\alpha\,g^\top Qg$. Setting it to zero:

$$\alpha_k=\frac{g^\top g}{g^\top Qg}.$$

B3. Any descent direction: the Sufficient Decrease Lemma

If the direction $u$ is not exactly $-\nabla f$, what matters is the angle between them. The angle condition says $u$ never gets close to perpendicular to the gradient:

$$-\nabla f(x^{(k)})^\top u^{(k)}\;\ge\;q\,\|\nabla f(x^{(k)})\|\,\|u^{(k)}\|\qquad(0<q\le1,\ q=\cos\text{ of the worst angle}).$$

Put $y=x+\alpha u$ into the upper parabola and choose the best $\alpha=\frac{-\nabla f^\top u}{L\|u\|^2}$: the decrease is at least $\frac{(\nabla f^\top u)^2}{2L\|u\|^2}\ge\frac{q^2}{2L}\|\nabla f\|^2$. With a Wolfe line search (MT1 Q4) you get the same shape. Wolfe accepts $\alpha$ if (i) $f(x+\alpha u)\le f(x)+\rho_1\alpha\nabla f(x)^\top u$ (enough decrease) and (ii) $\nabla f(x+\alpha u)^\top u\ge\rho_2\nabla f(x)^\top u$ (the slope has flattened enough), with $0<\rho_1<\rho_2<1$ (his letters; unrelated to the $\rho$ of section F). Then $R=\frac{\rho_1(1-\rho_2)q^2}{L}$.

Sufficient Decrease Lemma (his name for it)

The iterates satisfy $\;f(x^{(k)})-f(x^{(k+1)})\ge R\,\|\nabla f(x^{(k)})\|^2\;$ for some constant $R>0$ and all $k$.

  • Constant step $\alpha\in(0,\frac2L)$: $R=\alpha(1-\frac{L\alpha}2)$; at $\alpha=\frac1L$, $R=\frac1{2L}$.
  • Exact line search: $R=\frac1{2L}$. Wolfe: $R=\frac{\rho_1(1-\rho_2)q^2}{L}$.

Everything in C and E starts from this one inequality.

C. Rung 1: no convexity → the smallest gradient shrinks like $1/\sqrt T$

Idea: each step pays for itself with a drop in $f$ of at least $R\|\nabla f\|^2$. But $f$ can't drop forever: it is bounded below. So the gradients can't all stay big. Make that precise by adding up the steps (a "telescoping sum").

  1. Write the Sufficient Decrease Lemma for $k=0,1,\dots,T-1$ and add: the middle terms cancel, $$R\sum_{k=0}^{T-1}\|\nabla f(x^{(k)})\|^2\le f(x^{(0)})-f(x^{(T)})\le f(x^{(0)})-M,$$ where $M$ is any lower bound on $f$ (e.g. $f^*$).
  2. A sum of $T$ numbers is at least $T$ times the smallest one: $$T\cdot\min_{0\le k\le T-1}\|\nabla f(x^{(k)})\|^2\le\frac{f(x^{(0)})-M}{R}.$$
  3. So $$\boxed{\;\min_{0\le k\le T-1}\|\nabla f(x^{(k)})\|\le\sqrt{\frac{f(x^{(0)})-M}{R}}\cdot\frac1{\sqrt T}=\frac{A}{\sqrt T}\;}$$
  4. Counting: to guarantee some iterate with $\|\nabla f\|\le\varepsilon$, need $\frac{f(x^{(0)})-M}{RT}\le\varepsilon^2$, i.e. $\;T\ge\dfrac{f(x^{(0)})-M}{R\,\varepsilon^2}$.
Worked: 2021 final Part 1 Q3 (a), (b)

$f\in C^1_L$ with $L=0.5$, $f(x^{(0)})=f(0)=0$, $f^*=-1$. Steepest descent with exact line search. How many iterations guarantee a point with $\|\nabla f\|\le0.1$?

  1. Per-step decrease (B2): $f(x^{(k)})-f(x^{(k+1)})\ge\frac{1}{2L}\|\nabla f(x^{(k)})\|^2=\|\nabla f(x^{(k)})\|^2$ (since $2L=1$). So $R=1$.
  2. Total drop available: $f(x^{(0)})-f^*=0-(-1)=1$.
  3. $T\ge\frac{1}{1\cdot0.1^2}=100$. Answer: 100 iterations (the best of $x^{(0)},\dots,x^{(99)}$ has $\|\nabla f\|\le0.1$).
  4. Part (c), constant step instead: the best constant step is $\alpha=\frac1L=2$, which gives the same $R=\frac1{2L}=1$, so again 100. Any other $\alpha\in(0,4)$ gives $R=\alpha(1-\frac\alpha4)<1$ and more iterations.
Traps
  • It is the smallest gradient among the iterates, not the last one. Without convexity the last one might be bigger.
  • You need a lower bound $M$ on $f$. "Bounded below" must be stated (it also guarantees Wolfe steps exist).
  • This rung needs no convexity. It only proves $\nabla f\to0$ (a stationary point), not a minimum.
  • Round $T$ up to an integer.
Check C. $L=2$, $f(x^{(0)})=5$, $f\ge1$, $\alpha=\frac1L$. Iterations to guarantee $\|\nabla f\|\le0.5$ somewhere?
Show answer

$R=\frac1{2L}=\frac14$, drop available $=4$. $T\ge\frac{4}{(1/4)(0.25)}=64$.

D. Rung 2: convex → the gap shrinks like $1/T$

With convexity, a small gradient really does mean you are near the bottom, and one can show the gap itself goes down. The proof is long (diary, 3 Sep); the statement is what gets asked.

Statement (as in his MT1 solution)

$f$ convex and $f\in C^1_L$, gradient descent with $\alpha=\frac1L$:

$$\Delta_T=f(x^{(T)})-f(x^*)\le\frac{L\,\|x^{(0)}-x^*\|^2}{2T}.$$

So the error is $O(1/T)$, and the constant depends on how far the start is from the optimum. To reach $\Delta_T\le\varepsilon$: $T\ge\frac{L\|x^{(0)}-x^*\|^2}{2\varepsilon}$.

Trap (2025 final, T/F 1(g): answer False)

Plain gradient descent on a convex $C^1_L$ function is $O(1/k)$, not $O(1/k^2)$: there are convex $C^1_L$ functions on which GD's gap really does shrink only like $1/k$, so no $C/k^2$ bound can hold for every such $f$. ($1/k^2$ belongs to accelerated methods, not taught as GD.) And MT1 2026 Q2(d): "the rate depends on the distance from the initial point to the optimal set": True, it's the $\|x^{(0)}-x^*\|^2$ above.

E. Rung 3: strongly convex → a fixed fraction of the gap disappears every step

Assumptions: $f\in C^1_L$ and $\mu$-strongly convex (both parabolas).

Idea: B says one step removes at least $R\|\nabla f\|^2$. A3(1) says the gap is at most $\frac{1}{2\mu}\|\nabla f\|^2$, i.e. $\|\nabla f\|^2\ge2\mu\Delta$. Put them together: each step removes at least a fixed fraction of whatever gap is left.

  1. Start from B1: $\Delta_{k+1}=\Delta_k-\big(f(x^{(k)})-f(x^{(k+1)})\big)\le\Delta_k-\alpha(1-\frac{L\alpha}2)\|\nabla f(x^{(k)})\|^2$.
  2. Use $\|\nabla f(x^{(k)})\|^2\ge2\mu\Delta_k$: $$\Delta_{k+1}\le\Big(1-\underbrace{2\mu\alpha\big(1-\tfrac{L\alpha}{2}\big)}_{=:\ \beta}\Big)\Delta_k=(1-\beta)\Delta_k .$$
  3. At the best step $\alpha=\frac1L$: $\beta=\frac{\mu}{L}=\frac1\kappa$, so $\boxed{\Delta_{k+1}\le\big(1-\tfrac{\mu}{L}\big)\Delta_k}$.
  4. Same argument from any Sufficient Decrease Lemma: $\beta=2\mu R$. For exact line search ($R=\frac1{2L}$) that is again $\beta=\frac\mu L$.
  5. Repeat $T$ times: $\Delta_T\le(1-\beta)^T\Delta_0$. A linear rate: on a log scale, the error falls along a straight line.

Two forms he asks for.

  • "Find $A,B$ with $\log\frac{\Delta_T}{\Delta_0}\le A+BT$" (2024 Q2). Use $1-\beta\le e^{-\beta}$: $\Delta_T\le e^{-\beta T}\Delta_0$, so $A=0$, $B=-\beta$.
  • Distance instead of value: by A3(2), $\|x^{(T)}-x^*\|^2\le\frac2\mu\Delta_T\le\frac2\mu e^{-\beta T}\Delta_0$. Then bound $\Delta_0$ using whatever you're given (e.g. $\Delta_0\le\frac{1}{2\mu}\|\nabla f(x^{(0)})\|^2$).

Counting iterations: to get $\Delta_T\le\varepsilon$ you need $(1-\beta)^T\Delta_0\le\varepsilon$:

$$T\ \ge\ \frac{\ln(\Delta_0/\varepsilon)}{-\ln(1-\beta)}\qquad\text{or (simpler, slightly larger)}\qquad T\ge\frac{\ln(\Delta_0/\varepsilon)}{\beta}.$$

At $\alpha=\frac1L$, $\beta=\frac1\kappa$, so $T\approx\kappa\,\ln\frac{\Delta_0}{\varepsilon}$: iterations grow in proportion to the condition number, but only like a log in the accuracy.

A better step (MT1 Q7, second part): with $\alpha=\frac{2}{L+\mu}$ the distance contracts by $\frac{L-\mu}{L+\mu}=\frac{\kappa-1}{\kappa+1}$ per step: $\|x^{(k+1)}-x^*\|\le\frac{\kappa-1}{\kappa+1}\|x^{(k)}-x^*\|$, hence $\Delta_T\le\frac{L}{\mu}\big(\frac{\kappa-1}{\kappa+1}\big)^{2T}\Delta_0$ (using A3(2) and A3(3)). Per step, $\big(\frac{\kappa-1}{\kappa+1}\big)^2<1-\frac1\kappa$ for every $\kappa>1$; only the prefactor $\frac L\mu$ in front makes the bound worse for small $T$.

Worked: 2024 final Q2 (10 marks; his solution, every step explained)

$f\in C^1_L$, convex, $L=5$, and $f(y)\ge f(x)+\nabla f(x)^\top(y-x)+\frac12\|x-y\|^2$. Gradient descent with constant $\alpha$.

  1. Read the constants. The lower bound has $\frac12\|\cdot\|^2=\frac\mu2\|\cdot\|^2$, so $\mu=1$. $L=5$.
  2. (a) $\|\nabla f(x^{(0)})\|=\sqrt2$; bound $\|x^{(0)}-x^*\|^2$. A3(1): $\Delta_0\le\frac12\cdot2=1$. A3(2): $\|x^{(0)}-x^*\|^2\le\frac21\Delta_0\le2$. Answer: $\le2$.
  3. (b) Decrease per step and safe range. B1: $f(x^{(k)})-f(x^{(k+1)})\ge\alpha(1-\frac52\alpha)\|\nabla f(x^{(k)})\|^2$, guaranteed positive for $\alpha\in(0,\frac25)$.
  4. (c) $\log\frac{\Delta_T}{\Delta_0}\le A+BT$. With $\beta=2\alpha(1-\frac52\alpha)$ (that's $2\mu\alpha(1-\frac{L\alpha}2)$ with $\mu=1$): $\Delta_{k+1}\le(1-\beta)\Delta_k\le e^{-\beta}\Delta_k$, so $\Delta_T\le e^{-\beta T}\Delta_0$: $A=0$, $B=-\beta$.
  5. (d) Same for $\log\|x^{(T)}-x^*\|^2$. $\|x^{(T)}-x^*\|^2\le2\Delta_T\le2e^{-\beta T}\Delta_0\le2e^{-\beta T}$ (using $\Delta_0\le1$). So $A=\log2$, $B=-\beta$.
  6. Bonus: the best $\alpha$ maximises $\beta$: $\alpha=\frac15=\frac1L$, $\beta=\frac15=\frac\mu L$.
Iteration counter: how many steps to reach ε

The lines show the guaranteed $\log_{10}\Delta_k$ against $k$. Blue: the general strongly-convex bound with $\alpha=\frac1L$, factor $1-\frac1\kappa$. Green: a quadratic with exact line search or the best step $\frac2{L+\mu}$, factor $\big(\frac{\kappa-1}{\kappa+1}\big)^2$ (section F). Dashed: the target $\varepsilon$.

What to notice: double κ and the blue count roughly doubles. Make ε 10 times smaller and the count only grows by a fixed amount (about $\kappa\ln10$). That's what "linear rate" means.
Check E. $\mu=2$, $L=10$, $\alpha=\frac1L$, $\Delta_0=50$. Iterations to guarantee $\Delta_T\le10^{-3}$?
Show answer

Factor $1-\frac{\mu}{L}=0.8$. Need $0.8^T\cdot50\le10^{-3}$, i.e. $T\ge\frac{\ln(5\times10^4)}{-\ln0.8}=\frac{10.82}{0.223}=48.5$, so 49. The simpler $e^{-\beta T}$ form gives $T\ge\frac{10.82}{0.2}=54.1$, so 55. Both are correct guarantees; give whichever form the question uses.

F. Rung 4: quadratics, where everything is exact

Take $f(x)=\frac12x^\top Qx-h^\top x+c$ with $Q$ symmetric positive definite. Then $\nabla f(x)=Qx-h$, $x^*=Q^{-1}h$, and $\nabla^2f=Q$, so $\mu=\lambda_{\min}(Q)$ and $L=\lambda_{\max}(Q)$.

F1. Constant step: each eigen-direction shrinks on its own

  1. Let $e^{(k)}=x^{(k)}-x^*$ (the error). Since $\nabla f(x^{(k)})=Qx^{(k)}-h=Q(x^{(k)}-x^*)=Qe^{(k)}$: $$e^{(k+1)}=e^{(k)}-\alpha Qe^{(k)}=(I-\alpha Q)\,e^{(k)}.$$
  2. Write $e^{(k)}$ in the eigenvectors $u_i$ of $Q$. Along $u_i$, multiplying by $I-\alpha Q$ just multiplies by the number $1-\alpha\lambda_i$. So the $i$-th component gets multiplied by $(1-\alpha\lambda_i)$ every step.
  3. Converges from every start iff $|1-\alpha\lambda_i|<1$ for all $i$ $\iff$ $0<\alpha<\frac{2}{\lambda_{\max}}$.
  4. The slowest component decides the speed: $\|e^{(k)}\|\le\rho(\alpha)^k\|e^{(0)}\|$ with $\rho(\alpha)=\max\big(|1-\alpha\lambda_{\min}|,\,|1-\alpha\lambda_{\max}|\big)$.
  5. Value vs distance: $\Delta_k=\frac12e^{(k)\top}Qe^{(k)}=\frac12\sum_i\lambda_i(\text{component}_i)^2$, and each component is multiplied by at most $\rho(\alpha)$, so $\Delta$ shrinks by $\rho(\alpha)^2$ per step. (Square for the value, no square for the distance.)
  6. Best constant step: balance the two ends, $1-\alpha\lambda_{\min}=-(1-\alpha\lambda_{\max})$: $\alpha^*=\frac{2}{\lambda_{\min}+\lambda_{\max}}$, giving $\rho^*=\frac{\lambda_{\max}-\lambda_{\min}}{\lambda_{\max}+\lambda_{\min}}=\frac{\kappa-1}{\kappa+1}$.
Check F1. Eigenvalues of $Q$ are $2,5,10$. Safe step range? Best step and its $\rho$? What is $\rho$ for $\alpha=0.15$? What happens at $\alpha=0.21$?
Show answer

Range $(0,\frac{2}{10})=(0,0.2)$. $\alpha^*=\frac{2}{12}=\frac16$, $\rho^*=\frac{8}{12}=\frac23$. For $\alpha=0.15$: factors $|1-0.3|=0.7$, $|1-0.75|=0.25$, $|1-1.5|=0.5$, so $\rho=0.7$. At $0.21$: $|1-2.1|=1.1>1$, the $\lambda=10$ component grows: diverges.

F2. Exact line search on a quadratic

Exact-line-search rate (MT1 Q5(b), 2020 Q1)

Steepest descent with $\alpha_k=\frac{g^\top g}{g^\top Qg}$ satisfies

$$\Delta_{k+1}\le\Big(\frac{\lambda_{\max}-\lambda_{\min}}{\lambda_{\max}+\lambda_{\min}}\Big)^2\Delta_k=\Big(\frac{\kappa-1}{\kappa+1}\Big)^2\Delta_k .$$

MT1 wrote it as $\rho^2\Delta_k\ge\Delta_{k+1}$ with $\rho=\frac{\lambda_{\max}-\lambda_{\min}}{\lambda_{\max}+\lambda_{\min}}$. Eigenvalues in $[1,3]$: $\rho\le\frac12$. (Using bounds is safe: $\frac{\kappa-1}{\kappa+1}$ grows with $\kappa$, and the true $\kappa$ is at most $\frac31$.)

Here $\Delta_k=\frac12(x^{(k)}-x^*)^\top Q(x^{(k)}-x^*)$ (2020 called it $E(x)$). The squared $\rho$ is for the value; the proof uses the Kantorovich inequality.

Worked by hand: the bound is achieved (zig-zag)

$Q=\mathrm{diag}(1,4)$, $h=0$ (so $x^*=0$), start $x^{(0)}=(4,1)$.

  1. $g^{(0)}=Qx^{(0)}=(4,4)$. $g^\top g=32$, $g^\top Qg=16+64=80$, so $\alpha_0=0.4$.
  2. $x^{(1)}=(4,1)-0.4(4,4)=(2.4,-0.6)$. New gradient $(2.4,-2.4)$: dot product with $(4,4)$ is $0$ ✓ (orthogonal, B2).
  3. $f(x^{(0)})=\frac12(16+4)=10$, $f(x^{(1)})=\frac12(5.76+1.44)=3.6$. Ratio $0.36=\big(\frac{4-1}{4+1}\big)^2$ exactly. The next step also has ratio $0.36$. This start is the worst case: the bound is tight. (In general, a start whose two components are in the ratio $\lambda_{\max}:\lambda_{\min}$, here $4:1$, gives the slowest zig-zag.)
Worked: 2020 final Part 1 Q1(b) (4 marks)

Convex quadratic, Hessian eigenvalues between $1$ and $3$, steepest descent (exact line search), $E(x^{(0)})=1$. After how many iterations is $\|x^{(T)}-x^*\|\le10^{-2}$ guaranteed?

  1. Per step: $E_{k+1}\le(\frac{3-1}{3+1})^2E_k=\frac14E_k$, so $E_T\le4^{-T}$.
  2. Value → distance ($H$ is the Hessian, our $Q$): $E(x)=\frac12(x-x^*)^\top H(x-x^*)\ge\frac{\lambda_{\min}}2\|x-x^*\|^2=\frac12\|x-x^*\|^2$. So $\|x^{(T)}-x^*\|^2\le2E_T\le2\cdot4^{-T}$.
  3. Need $2\cdot4^{-T}\le10^{-4}$, i.e. $4^T\ge2\times10^4$, $T\ge\frac{\ln(2\times10^4)}{\ln4}=7.14$. Answer: $T=8$.

F3. Two special cases he likes

  • All eigenvalues equal ($Q=\lambda I$, $\kappa=1$): one step. (2017 final Q1.) The gradient $\lambda(x-x^*)$ points straight at $x^*$, and the exact step is $\alpha=\frac{g^\top g}{g^\top Qg}=\frac1\lambda$, which lands exactly on $x^*$. Also the constant step $\alpha=\frac1L$ does it. The contour lines are circles: no zig-zag.
  • Change of variables ("preconditioning", MT1 Q5(c)). Write $Q=U\Lambda U^\top$ ($U$ orthogonal with the eigenvectors as columns, $\Lambda=\mathrm{diag}(\lambda_i)$) and substitute $x=UD^{-1}y$ with $D$ diagonal. The Hessian in $y$ is $(UD^{-1})^\top Q(UD^{-1})=D^{-1}\Lambda D^{-1}$. Choosing $D=\Lambda^{1/2}$ makes it $I$, so $\kappa=1$, hence $\rho=\frac{1-1}{1+1}=0$, and steepest descent in $y$ finishes in one step. Same $x^*$, same $f^*$.
Gradient descent on $f=\frac12(x_1^2+\kappa x_2^2)$: zig-zag and step size

Ellipses are level sets. Click inside the picture to choose the start. Choose exact line search, or a constant step written as a fraction of $2/L$ (above 1 = beyond the safe range).

What to notice: κ = 1 gives circles and one step. Exact line search makes right-angle turns. With a constant step, 0.5 × (2/L) = 1/L crawls along the long axis, and above 1 the path blows up along the steep axis.

G. The exam recipe

Recipe for "how many iterations until …?" / "find the rate"
  1. Identify the rung from what's given: only $C^1_L$ + bounded below (C) · convex (D) · a lower parabola / $\nabla^2f\succeq\mu I$ (E) · a quadratic with eigenvalue bounds (F). Read constants from the direction of each inequality.
  2. One-step decrease: constant $\alpha$: $\alpha(1-\frac{L\alpha}2)\|\nabla f\|^2$; exact line search: $\frac{1}{2L}\|\nabla f\|^2$; general direction: $R\|\nabla f\|^2$.
  3. Recursion: rung 1: add the steps (telescoping). Rung 3: use $\|\nabla f\|^2\ge2\mu\Delta$ and multiply: $\Delta_{k+1}\le(1-\beta)\Delta_k$. Rung 4: use the eigenvalue factor directly.
  4. Translate what's asked with A3: gradient → gap ($\Delta\le\frac{\|\nabla f\|^2}{2\mu}$), gap → distance ($\|x-x^*\|^2\le\frac2\mu\Delta$).
  5. Solve for $T$, take logs, and round up. Write the final integer clearly.
Mini example (30 seconds)

$L=2$, $\mu=0.5$, $\alpha=\frac1L$, $\Delta_0=8$, want $\Delta_T\le0.01$. Factor $1-\frac{\mu}{L}=0.75$. $T\ge\frac{\ln800}{-\ln0.75}=\frac{6.68}{0.288}=23.2$, so $T=24$.

If the question gives……and asks foruse
$C^1_L$, $f(x^{(0)})$, a lower bound on $f$iterations to $\|\nabla f\|\le\varepsilon$C: $T\ge\frac{f(x^{(0)})-M}{R\varepsilon^2}$
upper and lower parabola ($L$, $\mu$)$\log\Delta_T\le A+BT$E: $A=0$, $B=-2\mu\alpha(1-\frac{L\alpha}2)$
same, plus $\|\nabla f(x^{(0)})\|$bound on $\|x^{(T)}-x^*\|$A3(1) for $\Delta_0$, E, then A3(2)
quadratic, eigenvalues in $[a,b]$step range / best step / rateF1: $(0,\frac2b)$, $\frac{2}{a+b}$, $\frac{b-a}{b+a}$
quadratic, exact line searchper-step factor / iteration countF2: $(\frac{b-a}{b+a})^2$ on $\Delta$
all eigenvalues equal, or a "good change of variables"how many stepsF3: one

How he asks it (from the papers)

Evidence

The MT1-period classes (Aug–Sep) were not recorded, so this comes from his papers and his own solutions, not from quotes.

  • The same ladder every year. 2016 Q1 (prove $\min\|\nabla f\|\le A/\sqrt T$; which constant steps work) → 2020 P1 Q3 (minimise the upper parabola; the decrease $C_k$; iterations to $\|\nabla f\|\le\epsilon$) → 2021 P1 Q3 (exact line search: decrease, iterations to $0.1$, redo with a constant step) → 2024 Q2 (strongly convex: $A$, $B$ in the log bound). Expect a fifth version.
  • He names results: "Algorithm DESCENT", "Sufficient Decrease Lemma", "efficiency estimate", "Descent Lemma". T/F items quote these names (2025 1(f), MT1 Q2(c), Q2(e)).
  • Quadratic items: eigenvalue bounds like "between 1 and 3" (2020, MT1) or "greater than 1 but less than 7" (2024 T/F). He asks for $\rho$, step ranges and iteration counts.
  • Marks reward the setup. In his solutions every part starts by writing the one-step inequality. Write it even if you can't finish.
  • T/F share: 2024 had 5 unconstrained T/F, 2025 had 10, and 2–3 of those were about rates each time.

Practice (try on paper first, then open the answer)

Past-paper questions first (marked with year), then new ones in his style. For True/False, click an option. Letters inside a past question follow that paper (e.g. $\beta$, $g$, $h$, a matrix $L$); each question defines its own.

P1 2024 final, T/F 1(c)T/F

Run (DESCENT) with $u^{(k)}=-\nabla f(x^{(k)})$, $\alpha_k=\frac1L$ on $h(x)=\frac12x^\top Qx+b^\top x+c$, whose eigenvalues are all greater than 1 but less than 7. From any start $\hat x$, after 5 iterations we can be assured that $h(x^{(5)})-h(x^*)\le(\frac34)^5(h(\hat x)-h(x^*))$.

  1. (a) True
  2. (b) False
Show answer

False (his key). The step is $\frac1L$, but $L$ is not given: in $C^1_L$, $L$ is any valid Lipschitz constant, and every $L\ge7$ is valid. With $L=100$ the step is $0.01$; the slowest component shrinks by only about $(1-\frac{1}{100})^2\approx0.98$ per step on $\Delta$, far worse than $\frac34$. So $(\frac34)^5$ cannot be assured.

Careful: if $L$ were exactly $7$, the quadratic analysis of F1 would give $\Delta$ shrinking by $(1-\frac{\lambda_{\min}}{7})^2<(\frac67)^2\approx0.735<\frac34$ per step, and the claim would be true. (The general strongly-convex theorem of E only gives $\frac67$, because it ignores that $f$ is a quadratic.) In the exam, say what $L$ is assumed to be, then answer.

P2 2025 final, T/F 1(f)T/F

Constant stepsize algorithms do not satisfy the Sufficient Decrease Lemma for any choice of stepsize.

  1. (a) True
  2. (b) False
Show answer

False. Any constant $\alpha\in(0,\frac2L)$ satisfies it with $R=\alpha(1-\frac{L\alpha}{2})>0$ (B1, B3).

P3 2025 final, T/F 1(g)T/F

For gradient descent on a convex $f\in C^1_L$ there exists $C>0$ with $f(x^{(k)})-f^*\le\frac{C}{k^2}$ for all $k\ge1$.

  1. (a) True
  2. (b) False
Show answer

False. Plain GD gives $O(1/k)$: $\frac{L\|x^{(0)}-x^*\|^2}{2k}$ (D).

P4 MT1 2026, Q2(d)T/F

The convergence rate for Gradient Descent on a convex function depends on the distance from the initial point to the set of optimal points.

  1. (a) True
  2. (b) False
Show answer

True. The bound is $\frac{L\|x^{(0)}-x^*\|^2}{2T}$.

P5 MT1 2026, Q2(e)T/F

$f$ strongly convex with global minimum $x^*$. Iterates of (DESCENT) with a constant step size satisfy $\Delta_k-\Delta_{k+1}\ge\gamma_k\Delta_k$ for some $\gamma_k>0$.

  1. (a) True
  2. (b) False
Show answer

True (read as GD with $\alpha\in(0,\frac2L)$). This is E rearranged: $\Delta_{k+1}\le(1-\beta)\Delta_k\iff\Delta_k-\Delta_{k+1}\ge\beta\Delta_k$, with $\gamma_k=\beta=2\mu\alpha(1-\frac{L\alpha}2)$.

P6 2016 final, Q1 (10 marks)Descriptive

$f:\mathbb R^d\to\mathbb R$ satisfies $f(y)\le f(x)+(y-x)^\top\nabla f(x)+\frac\mu2\|x-y\|^2$ for all $x,y$. An algorithm takes $x^{(k-1)}$ and outputs $x^{(k)}$ with $f(x^{(k)})\le f\big(x^{(k-1)}-\frac1\mu\nabla f(x^{(k-1)})\big)$.

(a) From any $x^{(0)}$, show there is a constant $A$ with $\min_{1\le k\le T}\|\nabla f(x^{(k-1)})\|\le\frac{A}{\sqrt T}$. (b) For steepest descent with constant step $x^{(k+1)}=x^{(k)}-\alpha\nabla f(x^{(k)})$, for which $\alpha$ can you derive such an $A$?

Hint

Here $\mu$ is the upper constant (it plays the role of $L$). You also need $f$ bounded below: say so.

Show answer
  1. Upper parabola at $x=x^{(k-1)}$, $y=x^{(k-1)}-\frac1\mu\nabla f(x^{(k-1)})$: $f(y)\le f(x^{(k-1)})-\frac1\mu\|\nabla f\|^2+\frac\mu2\cdot\frac1{\mu^2}\|\nabla f\|^2=f(x^{(k-1)})-\frac1{2\mu}\|\nabla f(x^{(k-1)})\|^2$.
  2. So $f(x^{(k)})\le f(x^{(k-1)})-\frac1{2\mu}\|\nabla f(x^{(k-1)})\|^2$: the Sufficient Decrease Lemma with $R=\frac1{2\mu}$.
  3. Assume $f\ge M$. Sum over $k=1..T$: $\frac1{2\mu}\sum_{k=1}^T\|\nabla f(x^{(k-1)})\|^2\le f(x^{(0)})-M$, so $T\min\|\nabla f\|^2\le2\mu(f(x^{(0)})-M)$.
  4. $A=\sqrt{2\mu\,(f(x^{(0)})-M)}$.
  5. (b) Same argument with $R=\alpha(1-\frac{\mu\alpha}{2})$, positive iff $0<\alpha<\frac2\mu$. Then $A=\sqrt{\frac{f(x^{(0)})-M}{\alpha(1-\mu\alpha/2)}}$.
P7 2021 final, Part 1 Q3 (10 marks)Descriptive

$f\in C^1_L$ with $L=0.5$, $f(0)=0$, $f^*=-1$. Steepest descent with exact line search from $x=0$. (a) Lower-bound the decrease at each step in terms of $L$ and $\nabla f$. (b) Smallest number of iterations that guarantees an output $\hat x$ with $\|\nabla f(\hat x)\|\le0.1$. (c) Redo (a), (b) with a constant step size.

Show answer

Worked in section C: (a) $\ge\frac{1}{2L}\|\nabla f\|^2=\|\nabla f\|^2$; (b) $100$; (c) decrease $\alpha(1-\frac\alpha4)\|\nabla f\|^2$ for $\alpha\in(0,4)$, best $\alpha=2$, again $100$; for a general $\alpha$, $T\ge\frac{1}{\alpha(1-\alpha/4)\cdot0.01}$.

P8 2024 final, Q2 (10 marks)Descriptive

$f\in C^1_L$, convex, $L=5$, with $f(y)\ge f(x)+\nabla f(x)^\top(y-x)+\frac12\|x-y\|^2$. GD with constant $\alpha$. (a) If $\|\nabla f(x^{(0)})\|=\sqrt2$, bound $\|x^{(0)}-x^*\|^2$. (b) Lower-bound $f(x^{(k)})-f(x^{(k+1)})$ and give the $\alpha$-range. (c) Find $A,B$ with $\log\frac{\Delta_T}{\Delta_0}\le A+BT$. (d) Same for $\log\|x^{(T)}-x^*\|^2$.

Show answer

Fully worked in section E: (a) $2$; (b) $\alpha(1-\frac52\alpha)\|\nabla f\|^2$, $\alpha\in(0,\frac25)$; (c) $A=0$, $B=-\beta$ with $\beta=2\alpha(1-\frac52\alpha)$; (d) $A=\log2$, $B=-\beta$.

P9 MT1 2026, Q7 (5 marks)Descriptive

$lI\preceq\nabla^2f(x)\preceq LI$ with $L>l>0$. Constant step $x^{(k+1)}=x^{(k)}-\alpha\nabla f(x^{(k)})$. For $\alpha=\frac1L$, relate $\Delta_T$ to $\Delta_0$. Can you show a better $\alpha$?

Show answer
  1. Descent Lemma with $\alpha=\frac1L$: $\Delta_{k+1}\le\Delta_k-\frac1{2L}\|\nabla f(x^{(k)})\|^2$.
  2. PL (A3(1) with $\mu=l$): $\|\nabla f\|^2\ge2l\Delta_k$. So $\Delta_{k+1}\le(1-\frac lL)\Delta_k$ and $\Delta_T\le(1-\frac lL)^T\Delta_0$.
  3. Better: $\alpha=\frac2{L+l}$ gives $\|x^{(k+1)}-x^*\|\le\frac{L-l}{L+l}\|x^{(k)}-x^*\|$, so $\Delta_T\le\frac Ll\big(\frac{L-l}{L+l}\big)^{2T}\Delta_0$. The per-step factor $(\frac{\kappa-1}{\kappa+1})^2$ is smaller than $1-\frac1\kappa$ (e.g. $\kappa=5$: $0.44$ vs $0.8$), so it wins for large $T$.
P10 2020 final, Part 1 Q1(b) (4 marks)Descriptive

Convex quadratic with Hessian eigenvalues between 1 and 3 (largest 3, smallest 1). Steepest descent from $x^{(0)}$ with $E(x^{(0)})=1$, where $E(x)=\frac12(x-x^*)^\top H(x-x^*)$. After how many iterations can you guarantee $\|x^{(T)}-x^*\|\le10^{-2}$?

Show answer

$T=8$. Worked in F2: $E_T\le(\frac14)^T$, $\|x^{(T)}-x^*\|^2\le2E_T$, need $2\cdot4^{-T}\le10^{-4}$.

P11 2017 final, Q1 (5 marks)Descriptive

Steepest descent with exact line search on a quadratic whose Hessian has all eigenvalues equal. Show it converges in one step.

Show answer

$Q=\lambda I$, so $g=\lambda(x^{(0)}-x^*)$ and $\alpha_0=\frac{g^\top g}{g^\top Qg}=\frac{g^\top g}{\lambda g^\top g}=\frac1\lambda$. Then $x^{(1)}=x^{(0)}-\frac1\lambda\cdot\lambda(x^{(0)}-x^*)=x^*$. (Also: $\rho=\frac{\lambda-\lambda}{\lambda+\lambda}=0$.)

P12 2020 final, Part 1 Q3 (10 marks), slightly cleaned upDescriptive

$f$ is bounded below and $f(y)\le g(y;x):=f(x)+\nabla f(x)^\top(y-x)+\frac\beta2\|y-x\|^2$ for all $x,y$. (a) For which $v$ is $h(\alpha)=g(x^{(k)}+\alpha v;x^{(k)})-g(x^{(k)};x^{(k)})$ negative for some $\alpha\ge0$? Find $\alpha^*=\arg\min_{\alpha\ge0}h(\alpha)$. (b) With $x^{(k+1)}=x^{(k)}+\alpha^*v^{(k)}$, find the smallest $C_k$ with $f(x^{(k+1)})-f(x^{(k)})\le C_k$. (c) If $-\nabla f(x^{(k)})^\top v^{(k)}\ge\delta\|\nabla f(x^{(k)})\|\|v^{(k)}\|$ for all $k$, how many iterations guarantee some $\hat x$ with $\|\nabla f(\hat x)\|\le\epsilon$?

(The paper wrote condition (c) as $\nabla f^\top v\ge\delta\|\nabla f\|^2$. It needs a minus sign, and the angle form above is what makes the count work.)

Show answer
  1. (a) $h(\alpha)=\alpha\nabla f^\top v+\frac\beta2\alpha^2\|v\|^2$. For small $\alpha>0$ it is negative iff $\nabla f(x^{(k)})^\top v<0$ (a descent direction). Setting $h'(\alpha)=0$: $\alpha^*=\frac{-\nabla f^\top v}{\beta\|v\|^2}$.
  2. (b) $h(\alpha^*)=-\frac{(\nabla f^\top v)^2}{2\beta\|v\|^2}$, and $f(x^{(k+1)})\le g(x^{(k+1)};x^{(k)})=f(x^{(k)})+h(\alpha^*)$. So $C_k=-\frac{(\nabla f(x^{(k)})^\top v^{(k)})^2}{2\beta\|v^{(k)}\|^2}$.
  3. (c) With the angle condition: $C_k\le-\frac{\delta^2}{2\beta}\|\nabla f(x^{(k)})\|^2$, so $R=\frac{\delta^2}{2\beta}$. Section C: $T\ge\frac{2\beta\,(f(x^{(0)})-M)}{\delta^2\epsilon^2}$, where $M$ is a lower bound of $f$.
P13 2021 final, Part 1 Q1 (10 marks)Descriptive

$g(t)=u^\top L^2u+t^2u^\top L^{-2}u-2t\,u^\top u$, with $L\in S^d$ invertible (here $L$ is a matrix, not a Lipschitz constant). (a) T/F: some $t$ has $g(t)<0$. (b) Justify. (c) Find the global minimiser $t$ and the minimum value. (d) For $A\in S^d_{++}$, find $\max_u\frac{\|u\|^4}{(u^\top Au)(u^\top A^{-1}u)}$, why, and where it is attained.

Hint

Write $g(t)=\|Lu-tL^{-1}u\|^2$. This is the Cauchy–Schwarz half of the Kantorovich inequality behind F2.

Show answer
  1. (a) False. (b) Since $L$ is symmetric, $\|Lu-tL^{-1}u\|^2=u^\top L^2u-2t\,u^\top u+t^2u^\top L^{-2}u=g(t)\ge0$.
  2. (c) $g'(t)=2tu^\top L^{-2}u-2u^\top u=0$ gives $t^*=\frac{u^\top u}{u^\top L^{-2}u}$, $g^*=u^\top L^2u-\frac{(u^\top u)^2}{u^\top L^{-2}u}\ge0$. That is, $(u^\top u)^2\le(u^\top L^2u)(u^\top L^{-2}u)$.
  3. (d) Take $L=A^{1/2}$: $\frac{\|u\|^4}{(u^\top Au)(u^\top A^{-1}u)}\le1$. Maximum value 1, attained when $g^*=0$, i.e. $Lu\parallel L^{-1}u$, i.e. $u$ is an eigenvector of $A$. (The Kantorovich inequality gives the other side: the ratio is $\ge\frac{4\lambda_{\min}\lambda_{\max}}{(\lambda_{\min}+\lambda_{\max})^2}$.)
P14 MT1 2026, Q6 (5 marks)Descriptive

$f\in C^1_L$, (DESCENT) with $u^{(k)}=-\nabla f(x^{(k)})$ and exact line search. Derive $\nabla f(x^{(k+1)})^\top\nabla f(x^{(k)})$.

Show answer

$0$. With $g(\alpha)=f(x^{(k)}-\alpha\nabla f(x^{(k)}))$, optimality gives $g'(\alpha_k)=0$, and the chain rule gives $g'(\alpha_k)=-\nabla f(x^{(k+1)})^\top\nabla f(x^{(k)})$ (B2).

N1 New, 2021-styleDescriptive

$f\in C^1_L$ with $L=4$, $f(x^{(0)})=10$, and $f(x)\ge2$ for all $x$. (a) With $\alpha=\frac1L$, how many iterations guarantee some iterate with $\|\nabla f\|\le0.2$? (b) Same with $\alpha=0.1$.

Show answer
  1. (a) $R=\frac1{2L}=\frac18$, drop available $8$: $T\ge\frac{8}{(1/8)(0.04)}=1600$.
  2. (b) $R=0.1(1-\frac{4\cdot0.1}{2})=0.08$: $T\ge\frac{8}{0.08\cdot0.04}=2500$. A smaller step is safe but slower.
N2 New, 2024-styleDescriptive

$f\in C^1_L$, $L=4$, and $f(y)\ge f(x)+\nabla f(x)^\top(y-x)+\frac12\|y-x\|^2$. $\|\nabla f(x^{(0)})\|=3$, GD with $\alpha=\frac14$. (a) Bound $\Delta_0$ and $\|x^{(0)}-x^*\|^2$. (b) Find $B$ with $\log\frac{\Delta_T}{\Delta_0}\le BT$. (c) Iterations to guarantee $\|x^{(T)}-x^*\|\le10^{-2}$?

Show answer
  1. (a) $\mu=1$: $\Delta_0\le\frac92=4.5$, $\|x^{(0)}-x^*\|^2\le2\Delta_0\le9$.
  2. (b) $\beta=2\mu\alpha(1-\frac{L\alpha}2)=2\cdot\frac14\cdot\frac12=\frac14$, so $B=-\frac14$.
  3. (c) $\|x^{(T)}-x^*\|^2\le2\Delta_T\le2e^{-T/4}\cdot4.5=9e^{-T/4}\le10^{-4}$ needs $T\ge4\ln(9\times10^4)=45.6$: 46.
N3 New, MT1-styleDescriptive

$f=\frac12x^\top Qx-h^\top x$ with eigenvalues of $Q$ in $[2,10]$. (a) Range of constant steps that converge from every start. (b) Best constant step and its contraction $\rho$. (c) Factor per step on $\Delta$ with exact line search. (d) Change of variables that makes steepest descent finish in one step?

Show answer
  1. (a) $(0,0.2)$. (b) $\alpha^*=\frac16$, $\rho=\frac23$ (on $\|x-x^*\|$).
  2. (c) $(\frac{10-2}{10+2})^2=\frac49$.
  3. (d) $x=U\Lambda^{-1/2}y$ with $Q=U\Lambda U^\top$: the Hessian in $y$ is $I$.
N4 New T/FT/F

The bound $\min_k\|\nabla f(x^{(k)})\|\le A/\sqrt T$ for gradient descent requires $f$ to be convex.

  1. (a) True
  2. (b) False
Show answer

False. It needs only $f\in C^1_L$, bounded below (C).

N5 New T/FT/F

For $f\in C^1_L$, gradient descent with constant step $\alpha=\frac2L$ always decreases $f$ (unless $\nabla f=0$).

  1. (a) True
  2. (b) False
Show answer

False. $f=\frac L2x^2$: $x\mapsto-x$, so $f$ stays the same. The safe range is the open interval $(0,\frac2L)$.

N6 New T/FT/F

If $f$ is $\mu$-strongly convex, then $\|x-x^*\|\le\frac1\mu\|\nabla f(x)\|$ for every $x$.

  1. (a) True
  2. (b) False
Show answer

True. A3(4).

N7 New T/FT/F

Steepest descent with exact line search makes consecutive search directions $Q$-conjugate.

  1. (a) True
  2. (b) False
Show answer

False. They are orthogonal ($g_{k+1}^\top g_k=0$). $Q$-conjugacy is what conjugate gradient builds (M2).

N8 New T/FT/F

With $\alpha=\frac1L$ on a strongly convex $f$, doubling $L$ (same $\mu$) roughly doubles the number of iterations needed for a given accuracy.

  1. (a) True
  2. (b) False
Show answer

True. $T\approx\kappa\ln\frac{\Delta_0}{\varepsilon}$ and $\kappa=L/\mu$ doubles.

N9 New T/FT/F

Gradient descent with constant step $\frac1L$ on $f=\frac{\lambda}{2}\|x-x^*\|^2$ (with $L=\lambda$) reaches $x^*$ in one iteration.

  1. (a) True
  2. (b) False
Show answer

True. $x-\frac1\lambda\cdot\lambda(x-x^*)=x^*$ ($\kappa=1$).

Self-test (no looking)

S1

State the Descent Lemma, and the one-step decrease for a constant step $\alpha$.

Show answer

$f(y)\le f(x)+\nabla f(x)^\top(y-x)+\frac L2\|y-x\|^2$; $f(x^{(k)})-f(x^{(k+1)})\ge\alpha(1-\frac{L\alpha}2)\|\nabla f(x^{(k)})\|^2$, positive for $\alpha\in(0,\frac2L)$, best $\frac1L$ giving $\frac1{2L}$.

S2

From strong convexity, the three inequalities linking gap, gradient and distance.

Show answer

$\Delta\le\frac1{2\mu}\|\nabla f\|^2$; $\|x-x^*\|^2\le\frac2\mu\Delta$; $\|x-x^*\|\le\frac1\mu\|\nabla f\|$. (And from $L$: $\Delta\le\frac L2\|x-x^*\|^2$.)

S3

The four rungs: what is guaranteed on each?

Show answer

(1) $\min\|\nabla f\|\le A/\sqrt T$; (2) $\Delta_T\le\frac{L\|x^{(0)}-x^*\|^2}{2T}$; (3) $\Delta_T\le(1-\frac\mu L)^T\Delta_0$; (4) quadratics: $\rho=\max|1-\alpha\lambda_i|$, best $\frac{\kappa-1}{\kappa+1}$, exact line search $(\frac{\kappa-1}{\kappa+1})^2$ on $\Delta$.

S4

$L=8$, $\mu=2$, $\alpha=\frac18$, $\Delta_0=1$. Smallest $T$ with $\Delta_T\le10^{-2}$ guaranteed?

Show answer

Factor $0.75$: $T\ge\frac{\ln100}{-\ln0.75}=16.0$, and $0.75^{16}=0.0100226>0.01$, so $T=17$. (Always check the boundary case when the log comes out near an integer.)

S5

Why does exact line search give consecutive orthogonal gradients?

Show answer

At the minimising $\alpha$, $\frac{d}{d\alpha}f(x-\alpha g)=-\nabla f(x^{(k+1)})^\top g=0$.

Summary card

M1 · Convergence rates on one card
  • Descent Lemma ($f\in C^1_L$, no convexity): $f(y)\le f(x)+\nabla f(x)^\top(y-x)+\frac L2\|y-x\|^2$.
  • Strong convexity: $f(y)\ge f(x)+\nabla f(x)^\top(y-x)+\frac\mu2\|y-x\|^2$; $C^2$: $\mu I\preceq\nabla^2f\preceq LI$. $\kappa=L/\mu$.
  • Consequences: $\Delta\le\frac{\|\nabla f\|^2}{2\mu}$ · $\|x-x^*\|^2\le\frac2\mu\Delta$ · $\Delta\le\frac L2\|x-x^*\|^2$ · $\|x-x^*\|\le\frac{\|\nabla f\|}{\mu}$.
  • One step: constant $\alpha$: decrease $\ge\alpha(1-\frac{L\alpha}2)\|\nabla f\|^2$, $\alpha\in(0,\frac2L)$, best $\frac1L\to\frac1{2L}$. Exact line search: $\ge\frac1{2L}\|\nabla f\|^2$, and $\nabla f(x^{(k+1)})^\top\nabla f(x^{(k)})=0$. Sufficient Decrease Lemma: $\ge R\|\nabla f\|^2$.
  • Rung 1 (bounded below): $\min_{k<T}\|\nabla f(x^{(k)})\|\le\sqrt{\frac{f(x^{(0)})-M}{RT}}$; $T\ge\frac{f(x^{(0)})-M}{R\varepsilon^2}$.
  • Rung 2 (convex, $\alpha=\frac1L$): $\Delta_T\le\frac{L\|x^{(0)}-x^*\|^2}{2T}$, i.e. $O(1/T)$, not $1/T^2$.
  • Rung 3 (strongly convex): $\Delta_{k+1}\le(1-\beta)\Delta_k$, $\beta=2\mu\alpha(1-\frac{L\alpha}2)$, $=\frac\mu L$ at $\alpha=\frac1L$. $\log\frac{\Delta_T}{\Delta_0}\le-\beta T$. $T\ge\frac{\ln(\Delta_0/\varepsilon)}{-\ln(1-\beta)}$. Step $\frac2{L+\mu}$: distance factor $\frac{\kappa-1}{\kappa+1}$.
  • Rung 4 (quadratic): $e^{(k+1)}=(I-\alpha Q)e^{(k)}$; converges iff $0<\alpha<\frac2{\lambda_{\max}}$; $\rho=\max|1-\alpha\lambda_i|$; best $\alpha=\frac2{\lambda_{\min}+\lambda_{\max}}$, $\rho=\frac{\kappa-1}{\kappa+1}$. Exact step $\frac{g^\top g}{g^\top Qg}$; $\Delta_{k+1}\le(\frac{\kappa-1}{\kappa+1})^2\Delta_k$. $\kappa=1$ ⇒ one step.
  • Traps: read upper/lower from the inequality, not the letter · min gradient, not last · $2/L$ excluded · state "bounded below" · round $T$ up.