CMO formula sheet

← Pack home · print to PDF for paper (about 2–3 A4 pages)

Collected from the summary cards of M1–M6. Read it aloud once the night before; copy anything you can't recall onto a scrap sheet.

M1 · Convergence rates

  • 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.

M2 · Conjugate gradient

  • Conjugate: $u_i^\top Qu_j=0$ ($i\ne j$). With $Q\succ0$: independent, at most $d$, full rank, not unique. Without PD: can be dependent (2016 Q2).
  • Gram–Schmidt with $Q$: $u_i=v_i-\sum_{j<i}\frac{v_i^\top Qu_j}{u_j^\top Qu_j}u_j$.
  • Decoupling: $\min_yf(a+Uy)$ with conjugate columns: $y_i=-\frac{\nabla f(a)^\top u_i}{u_i^\top Qu_i}$. Conjugate direction method ⇒ at most $d$ steps.
  • Expanding Subspace: $g^{(k)}\perp u^{(i)}$ for $i<k$; $x^{(k)}$ minimises over $x^{(0)}+\mathrm{span}\{u^{(0..k-1)}\}$. Any conjugate set.
  • CG: $u^{(0)}=-g^{(0)}$; $\alpha_k=\frac{\|g^{(k)}\|^2}{u^{(k)\top}Qu^{(k)}}$; $g^{(k+1)}=g^{(k)}+\alpha_kQu^{(k)}$; $\beta_k=\frac{\|g^{(k+1)}\|^2}{\|g^{(k)}\|^2}$; $u^{(k+1)}=-g^{(k+1)}+\beta_ku^{(k)}$. Gradients orthogonal, directions conjugate, span = Krylov space.
  • Bound: $E(x^{(k)})\le\max_i(1+\lambda_iP_{k-1}(\lambda_i))^2E(x^{(0)})$. One step: $c=-\frac2{\lambda_{\min}+\lambda_{\max}}$ gives $(\frac{\lambda_{\max}-\lambda_{\min}}{\lambda_{\max}+\lambda_{\min}})^2$. General: factor $\frac{\sqrt\kappa-1}{\sqrt\kappa+1}$.
  • Count: steps = number of distinct eigenvalues touched by the start error ($\le$ number of distinct eigenvalues $\le d$).
  • Structured: $\sigma I+aa^\top+2bb^\top$ (orthonormal $a,b$): $\sigma$ ($d-2$×), $\sigma+1$, $\sigma+2$. $\sigma I+$ rank $r$ ⇒ at most $r+1$ distinct. Singular $Q$ with $w\notin$ range: unbounded below; CG breaks down ($u^\top Qu=0$) at once if $w$ is in the null space, otherwise once the range part is solved.
  • Linear systems: CG needs $A$ symmetric PD (check leading minors); otherwise use $A^\top Ax=A^\top b$.

M3 · Newton and quasi-Newton

  • Newton: $x^{(k+1)}=x^{(k)}-[\nabla^2f(x^{(k)})]^{-1}\nabla f(x^{(k)})$ (solve $\nabla^2f\,\delta=-\nabla f$), step length 1, minimises the quadratic model. Needs $C^2$.
  • (CQ): one step from anywhere, independent of the eigenvalues.
  • Descent if $\nabla^2f\succ0$ (sufficient; invertible is not enough); an indefinite Hessian can go uphill or to a saddle.
  • 1-D: $|f''|\ge\beta$, $|f'''|\le\alpha$ ⇒ $e_{k+1}\le\frac\alpha{2\beta}e_k^2$; basin $e_0<\frac{2\beta}\alpha$; one critical point if $f'(a)f'(b)<0$.
  • $d$-D: $C^2_M$, $\nabla^2f(x^*)\succeq\ell I$: $r_{k+1}\le\frac{Mr_k^2}{2(\ell-Mr_k)}$; the bound gives $r_{k+1}<r_k$ when $r_k<\frac{2\ell}{3M}$.
  • Failures: indefinite Hessian (uphill), far start ($\sqrt{1+x^2}$, $x\mapsto-x^3$), no minimum ($(1-x)^3$: halving to a non-minimum), degenerate min ($x^4$: factor $\frac23$).
  • QN: $x^{(k+1)}=x^{(k)}-\alpha_kG^{(k)}\nabla f$; condition $G^{(k+1)}\gamma_k=\delta_k$; $\delta_k=x^{(k+1)}-x^{(k)}$, $\gamma_k=\nabla f(x^{(k+1)})-\nabla f(x^{(k)})$.
  • SR1: $G+\frac{vv^\top}{v^\top\gamma}$, $v=\delta-G\gamma$ (can lose PD). DFP: $G+\frac{\delta\delta^\top}{\delta^\top\gamma}-\frac{G\gamma\gamma^\top G}{\gamma^\top G\gamma}$. BFGS: $V^\top GV+\rho\delta\delta^\top$.
  • Coefficients: multiply by $\gamma$, coefficient of $\delta$ = 1, coefficient of $G\gamma$ = 0.
  • PD kept (DFP/BFGS) if $G\succ0$, $\delta^\top\gamma>0$ (true for convex quadratics, exact LS, Wolfe).
  • Quadratic + exact LS: conjugate steps, $\le d$ steps, $G^{(d)}=Q^{-1}$, same iterates as CG when $G^{(0)}=I$.
  • Cost per step: GD/CG $\sim d$, QN $\sim d^2$, Newton $\sim d^3$.

M4 · Optimality basics

  • Existence: continuous on compact (Weierstrass); continuous + coercive on $\mathbb R^d$. Open/unbounded sets can fail ($x$ on $(0,1)$, $e^x$). Boundary minima need not have $f'=0$.
  • Local ≠ global: $\frac12u^2-\frac13u^3$; coercive with two local mins $x^4-2x^2+\frac x2$.
  • FONC $\nabla f=0$; SONC + $H\succeq0$; SOSC $\nabla f=0$, $H\succ0$ ⇒ strict local. Counterexamples $x^3$, $x^4$, $-x^4$, $-x^2$.
  • Hessian at a stationary point: PD strict local min, ND strict local max, indefinite saddle, singular inconclusive. $2\times2$: PD ⇔ $a>0$, $ac-b^2>0$; $\det<0$ ⇒ saddle.
  • Quadratic $\frac12x^\top Ax-b^\top x$: use $\frac12(A+A^\top)$. PD: unique min $A^{-1}b$. PSD singular: many or none. Indefinite: none. Taylor exact for any symmetric $Q$.
  • Convex: chord above graph; tangent below graph; $H\succeq0$. Local = global; stationary = global. Strongly convex ⇒ unique global min. Strictly convex can have none ($e^x$).
  • Descent direction: $\nabla f^\top u<0$. Exact line search for any direction: $\alpha=-\frac{\nabla f^\top u}{u^\top Qu}$.
  • Armijo $g(\alpha)\le g(0)+\rho_1\alpha g'(0)$; Wolfe adds $g'(\alpha)\ge\rho_2g'(0)$.
  • Bounds: $|f(y)-f(x)-\nabla f^\top(y-x)|\le\frac L2\|y-x\|^2$; at a stationary point with $lI\preceq H\preceq LI$: $\frac l2\|x-\hat x\|^2\le f(x)-f(\hat x)\le\frac L2\|x-\hat x\|^2$.

M5 · KKT and projection

  • First order: local min ⇒ no feasible descent direction; convex $C$: $\nabla f(x^*)^\top(x-x^*)\ge0$ on $C$, sufficient if $f$ convex. $\nabla f(x^*)\ne0$ ⇒ some constraint active.
  • Projection: exists, unique (closed convex); $(z-p)^\top(x-p)\le0$. Box: clip. Ball: $a+\frac{r(z-a)}{\max(r,\|z-a\|)}$. Half-space: $z-\frac{(a^\top z-b)_+}{\|a\|^2}a$. Affine: $z-A^\top(AA^\top)^{-1}(Az-b)$; min-norm $A^\top(AA^\top)^{-1}b$.
  • KKT ($g\ge0$, $h=0$): $\nabla f=\sum\lambda_i\nabla g_i+\sum\mu_j\nabla h_j$, $\lambda\ge0$, $\lambda_ig_i=0$, feasible. "$\le$" ⇒ flip the gradient's sign. Necessary at regular points; sufficient (global) for convex problems.
  • Reverse KKT: active set at $x^0$ → stationarity → parameter + $\lambda\ge0$; global via convexity or relaxation (2024 Q3(b)).
  • Wrong way: $g_i(x^0)<0$ ⇒ reverse (inactive); solve multipliers, check all components; $\lambda_i<0$ ⇒ reverse $i$.
  • Gradient projection: $x^+=P_C(x-\alpha\nabla f)$, $\alpha<\frac2L$; fixed points = first-order condition; converges in the limit; limit gradient need not be 0.
  • Active set: subproblem on $W$; $v\ne0$: ratio test, add blocker; $v=0$: all $\mu\ge0$ stop, else drop negative. $v^\top Qv=-\mu_la_l^\top v$.
  • Separation: $h=z-P_C(z)$. Farkas: $Ax=b,x\ge0$ vs $A^\top y\ge0,b^\top y<0$.
  • Key slips: 2019 MT3 Q2b ($u=4(1,-1,2)$); 2024 Q4 numbers inconsistent.

M6 · Duality, LP, simplex

  • $\mathcal L=f-\sum\lambda_ig_i+\sum\mu_jh_j$; $t=\min_x\mathcal L$ (concave); domain = finite; dual: $\max t$, $\lambda\ge0$.
  • Linear in $x$: coefficient $=0$ (dual equality). Quadratic: $M\succeq0$ domain, value $-\frac12v^\top M^{-1}v$.
  • Weak: $t\le f$; gap estimate $f(\bar x)-p^*\le f(\bar x)-t$. Strong: LP (finite), convex + Slater, or exhibit $x$ with $f=d^*$. Then KKT; recover $x$ by minimising $\mathcal L$.
  • Ball: $t=-\lambda$ on $\lambda\ge-\lambda_{\min}/2$, $p^*=d^*=\min(0,\lambda_{\min}/2)$. MT3 2026 Q6: $t=b^\top\mu-\frac12\|h+A^\top\mu\|^2$.
  • LP: $\min c^\top x$, $Ax=b$, $x\ge0$ ↔ $\max b^\top\mu$, $A^\top\mu\le c$. $Ax\ge b,x\ge0$ ↔ $A^\top y\le c,y\ge0$. Table: eq↔free, ≥↔≥0, x≥0↔≤, free↔eq.
  • Theorem: finite optimum ⇒ equal values; unbounded ⇒ other infeasible; both infeasible possible.
  • BFS $=(B^{-1}b,0)\ge0$ = corner; optimal BFS exists if an optimum exists.
  • Simplex: $r_j=c_j-c_B^\top B^{-1}a_j$; all $\ge0$ optimal; enter $r_l<0$; $x_B=\hat b-\alpha\hat a_l$; ratio $\min\hat b_i/\hat a_{il}$ over $\hat a_{il}>0$; none positive ⇒ unbounded; $\bar\alpha=0$ degenerate; dual $\mu^\top=c_B^\top B^{-1}$.