M4 · Optimality basics, from zero
Lectures 1–7 (Aug – 27 Aug) · MT1 material · about 1 hour with practice · Goal: decide quickly and correctly whether a minimum exists, what kind of point a stationary point is, whether a function or set is convex, and whether a direction or step size is acceptable. This is what most of the 10–20 True/False marks in Q1 of the final test.
Same story style as M1–M3, but shorter: each section is a handful of facts, each with the counterexample that makes a T/F item false. Learn the counterexamples: they are the fastest way to answer T/F.
Notation: $f:\mathbb R^d\to\mathbb R$; $\nabla f$ gradient; $\nabla^2f$ or $H(x)$ Hessian (matrix of second derivatives). $C^1$/$C^2$ = once/twice continuously differentiable. A symmetric matrix $A$ is positive definite ($A\succ0$) if $z^\top Az>0$ for all $z\ne0$, positive semidefinite ($A\succeq0$) if $\ge0$; equivalently all eigenvalues $>0$ (resp. $\ge0$). Indefinite: eigenvalues of both signs. A stationary (critical) point has $\nabla f=0$. ND = negative definite (all eigenvalues $<0$). Singular matrix: some eigenvalue is $0$. Range of $A$ = all vectors $Az$. $e_i$ = the $i$-th unit vector. An inflection point: stationary but neither min nor max (the graph changes curvature there). $f\in C^1_L$: $\|\nabla f(x)-\nabla f(y)\|\le L\|x-y\|$ (for $C^2$: Hessian eigenvalues in $[-L,L]$).
Symbol warning: the papers write quadratics as $\frac12x^\top Ax-b^\top x$, $\frac12x^\top Qx+b^\top x$ or $+h^\top x$; $A$, $Q$, $H$ all name the matrix. Letters $a,b,c$ change meaning between questions (vector $a$ in MT1 2024 Q2, entries of $H$ in the 2-D widget, interval ends in Rolle). Read each question's own definitions.
0. Why this module
In 2025 the final's Q1 had 20 T/F items worth 20 of 60 marks; 2024 had 10 of 45. About half were about unconstrained basics: existence, local vs global, what the Hessian tells you, convexity, descent directions. Each item takes 30 seconds if you know the one fact and one counterexample behind it. That is all this module is.
Necessary ≠ sufficient, local ≠ global, existence needs compactness or coercivity, and convexity is what upgrades "local" and "stationary" to "global".
A. Does a minimum exist?
A1. Words
- $x^*$ is a global minimiser if $f(x^*)\le f(x)$ for all $x$; a local minimiser if this holds for all $x$ near $x^*$ (in some ball $B(x^*,\delta)$). Strict: "$<$" for $x\ne x^*$.
- A function can have a local minimum and no global minimum: $g(u)=\frac12u^2-\frac13u^3$ has a local min at $0$ but $g\to-\infty$ as $u\to\infty$ (2019 MT1 (d), 2025 final T/F (b): True).
- Infimum vs minimum: $\inf f$ may not be attained. $e^x$ has $\inf=0$ but no minimum.
A2. Two existence theorems
- Weierstrass: a continuous $f$ on a closed and bounded (compact) set attains its minimum and maximum.
- Coercive: if $f$ is continuous on $\mathbb R^d$ and $f(x)\to\infty$ as $\|x\|\to\infty$, a global minimum exists. (Pick any $x_0$; outside a big ball $f>f(x_0)$; inside, Weierstrass.)
- Open or unbounded sets: $f(x)=x$ on $(0,1)$ has no minimum. But $f(x)=x$ on $[0,1]$ has its minimum at $0$, even though $f'\ne0$ everywhere: minima of a constrained problem can sit on the boundary (2025 final T/F (c), "$f'\ne0$ on $(0,1)$ ⇒ no global min": False).
- Coercive gives existence, not uniqueness, and not "every local min is global": $x^4-2x^2+\frac x2$ is coercive with two local minima ($x\approx-1.06$, value $-1.51$; $x\approx0.93$, value $-0.52$). Only the first is global (MT1 2024 Q5(c): False).
- 2025 final T/F (a): "$g$ continuous, $g(x)\ge1$ whenever $\|x\|\ge10$ ⇒ $g$ has a minimum". His key: True. The intended argument: $g$ attains a minimum $m$ on the closed ball $\|x\|\le10$, and if $m\le1$ it beats everything outside. Strictly, if $m>1$ this can fail ($g=1+\frac1{1+\|x\|^2}$ has $\inf=1$, never attained). Answer True as the key does; if you must justify, mention that you need $\min_{\|x\|\le10}g\le1$.
A3. The analysis facts behind them (MT1 2026 Q1)
- Closed set: contains all its limit points, in particular its boundary. Open: every point has a small ball inside the set. $[0,1]$ is closed, not open; $(0,1)$ open; $\mathbb R^d$ both.
- $\inf S$ = greatest lower bound, $\sup S$ = least upper bound; they need not belong to $S$.
- Rolle / mean value theorem: differentiable $h$ on $[a,b]$ with $h(a)=h(b)$ has $h'(c)=0$ for some $c\in(a,b)$ (2019 MT1 (a): True). More generally $f(b)-f(a)=f'(c)(b-a)$: e.g. $f(1)-f(0)=2$ ⇒ $f'(c)=2$ somewhere in $(0,1)$ (2020 final P1 Q1(a)i).
B. First- and second-order conditions
- FONC (first-order necessary): $x^*$ local min ⇒ $\nabla f(x^*)=0$. (MT1 2025 T/F (f): a global min of a $C^1$ function on $\mathbb R^d$ is stationary: True.)
- SONC (second-order necessary): $x^*$ local min ⇒ $\nabla f(x^*)=0$ and $\nabla^2f(x^*)\succeq0$.
- SOSC (second-order sufficient): $\nabla f(x^*)=0$ and $\nabla^2f(x^*)\succ0$ ⇒ $x^*$ is a strict local min.
Why: Taylor, $f(x^*+z)=f(x^*)+\nabla f(x^*)^\top z+\frac12z^\top\nabla^2f(\xi)z$. If the gradient were nonzero, a small step against it would decrease $f$. Once the gradient is zero, the quadratic term decides.
B1. The counterexamples (memorise)
| Function at $0$ | $f'(0)$ | $f''(0)$ | What $0$ is | Lesson |
|---|---|---|---|---|
| $x^3$ | 0 | 0 | neither (inflection) | FONC + SONC are not sufficient |
| $x^4$ | 0 | 0 | strict global min | SOSC is not necessary |
| $-x^4$ | 0 | 0 | max | $f''=0$ tells you nothing |
| $-x^2$ | 0 | $-2$ | max | $\nabla f=0$ alone is not sufficient (MT1 2026 T/F (a): False) |
- SOSC gives local, not global: MT1 2025 T/F (d) and MT1 2024 T/F 5(e) ("$\nabla f=0$, Hessian PD ⇒ global min"): False. E.g. the local min at $0.93$ of $x^4-2x^2+\frac x2$.
$f(x)=\frac32x^4-2x^3+1$. Find the stationary points and classify them.
- $f'(x)=6x^3-6x^2=6x^2(x-1)$: stationary at $x=0$ and $x=1$.
- $f''(x)=18x^2-12x$: $f''(1)=6>0$ ⇒ strict local min, $f(1)=\frac12$. $f''(0)=0$: inconclusive.
- At $0$: $f'=6x^2(x-1)\le0$ on both sides near 0, so $f$ is decreasing through 0 ($f(-0.1)>1>f(0.1)$): neither min nor max (inflection).
- Global: $f$ is coercive ($\frac32x^4$ dominates), so a global min exists and is a stationary point. $0$ is not even a local min (and $f(0)=1>f(1)=\frac12$), so the global min is $x=1$: global min, value $\frac12$. No global max ($f\to\infty$).
C. Quadratic functions and definiteness
$f(x)=\frac12x^\top Ax-b^\top x+c$. Quadratics are the test bed of the whole course, and they hide two T/F traps.
C1. Gradient and Hessian: use the symmetric part
- $\nabla f(x)=\frac12(A+A^\top)x-b$ and $\nabla^2f=\frac12(A+A^\top)$. Only if $A$ is symmetric is this $Ax-b$ and $A$.
- The derivative of $a^\top x$ is $a$ (MT1 2025 T/F (b): True).
- A constant Hessian means $f$ is a quadratic (plus linear plus constant) (2025 final T/F (d): True).
- Taylor is exact for quadratics with symmetric $Q$, definite or not: $h(y)-h(x)=\nabla h(x)^\top(y-x)+\frac12(y-x)^\top Q(y-x)$ (2024 final T/F (a) "only if $Q\succeq0$": False).
$f=\frac12x^\top(uv^\top)x$: the Hessian is $\frac12(uv^\top+vu^\top)$, which differs from $uv^\top$ unless $u,v$ are parallel. The item claims $H=A$ for every $u\ne v$, so it is False. MT1 2023: $A=\begin{pmatrix}1&a\\-a&2\end{pmatrix}$ has symmetric part $\mathrm{diag}(1,2)$ for every $a$: so $f$ is strictly convex, its Hessian eigenvalues are real, the minimiser is $(1,1)$ (with $b=(1,2)$), and there is never a saddle.
C2. Testing definiteness
- Eigenvalues (symmetric matrix): all $>0$ PD; all $\ge0$ PSD; mixed signs indefinite.
- Leading minors (Sylvester): the $k$-th leading minor is the determinant of the top-left $k\times k$ block. PD ⇔ all leading minors $>0$. (Not for PSD: $\mathrm{diag}(0,-1)$ has leading minors $0,0$ but is not PSD; use eigenvalues.) For $2\times2$ $\begin{pmatrix}a&b\\b&c\end{pmatrix}$: PD ⇔ $a>0$ and $ac-b^2>0$; $\det<0$ ⇒ indefinite.
- Examples: $\begin{pmatrix}2&1\\1&3\end{pmatrix}$ PD; $\begin{pmatrix}1&2\\2&1\end{pmatrix}$ indefinite (eigenvalues $3,-1$; a stationary point with this Hessian is a saddle); $\begin{pmatrix}1&1\\1&1\end{pmatrix}$ PSD, singular.
C3. When does a quadratic have a minimum?
| Symmetric part of $A$ | Minimum? |
|---|---|
| PD | unique global min $x^*=A^{-1}b$, $f^*=c-\frac12b^\top A^{-1}b$ |
| PSD, singular | if $b\in$ range of $A$: infinitely many minimisers (a line/plane); if not: unbounded below, no min. (MT1 2026 T/F (b) "every convex quadratic has a unique local min": False, e.g. $x_1^2$ on $\mathbb R^2$, or $x_1^2+x_2$.) |
| indefinite | no min, no max; a stationary point, if one exists, is a saddle |
$f(x)=\frac12\sum_i\frac{x_i^2}{a_i}-\sum_ix_i$ with all $a_i\ne0$, $\sum a_i=10$, $a_{\max}/a_{\min}=5$; $\nabla f(\hat x)=0$; and $f(\tilde x)=-20$ at $\tilde x=a+\alpha e_2$, $\alpha>0$.
- $\partial f/\partial x_i=x_i/a_i-1=0$ ⇒ $\hat x=a$, $f(\hat x)=\frac12\sum a_i-\sum a_i=-5$.
- $f(\tilde x)=-20<-5$ ⇒ $\hat x$ is not the global min. Along $e_2$: $f(a+se_2)-f(a)=\frac{s^2}{2a_2}$, negative only if $a_2<0$. So $a_2<0$ (the paper's options B and D).
- If instead $f$ is bounded below: any $a_i<0$ would send $f\to-\infty$ along $e_i$, so all $a_i>0$, Hessian $\mathrm{diag}(1/a_i)\succ0$, $\hat x$ is the global min and $a_2>0$ (the paper's options A and D for part (c)).
- (Bounded-below case, all $a_i>0$.) Rate of steepest descent with exact line search: Hessian eigenvalues $1/a_i$, condition number $\frac{a_{\max}}{a_{\min}}=5$, so $\rho=\big(\frac{5-1}{5+1}\big)^2=\frac49$ (M1: steepest descent with exact line search has $f_{k+1}-f^*\le(\frac{\kappa-1}{\kappa+1})^2(f_k-f^*)$, $\kappa=\lambda_{\max}/\lambda_{\min}$).
D. Convexity
- Convex set $C$: the segment between any two points of $C$ stays in $C$.
- Convex function: $f(\theta x+(1-\theta)y)\le\theta f(x)+(1-\theta)f(y)$ (chord above graph).
- First-order test ($C^1$): $f(y)\ge f(x)+\nabla f(x)^\top(y-x)$ for all $x,y$ (graph above every tangent).
- Second-order test ($C^2$): $f$ convex ⇔ $\nabla^2f(x)\succeq0$ for all $x$. ($\succ0$ everywhere ⇒ strictly convex, but not conversely: $x^4$.)
- Strongly convex ($\mu>0$): $\nabla^2f\succeq\mu I$, equivalently $f(y)\ge f(x)+\nabla f(x)^\top(y-x)+\frac\mu2\|y-x\|^2$.
- Convex $f$: every local min is global, and every stationary point is a global min.
- Strictly convex: at most one minimiser. Strongly convex: exactly one (exists and unique) (MT1 2025 T/F (j): True).
- The converse fails: "all critical points are global minima ⇒ convex" is False (2019 (f)); e.g. $\frac{x^2}{1+x^2}$: only critical point $0$, global min, but $f''(2)<0$.
Sets to recognise: $\{x:Ax=b\}$ (affine: convex; 2019 (j) "not convex": False), half-spaces, balls, $\{(x,t):\|x\|\le t\}$ (the cone: convex; 2019 (i): True), intersections of convex sets, boxes like $\{-1\le x_1\le1,\ x_2^2\le1\}$ (2025 final (l): True). Not convex: $\{x:\|x\|=1\}$, $\{x:x_1x_2\ge1\}$ (both branches together; the first-quadrant branch alone is convex).
Functions to recognise: norms, $e^x$, $-\log x$, $x\log x$, $\max$ of convex functions, sums with positive weights, convex of affine $f(Ax+b)$.
- A 1-D quadratic $h$ with $h(a)=h(b)=0$ and $h>0$ in between opens downward: concave, not convex (2019 (b): False).
- "Convex" needs no differentiability; the Hessian test does.
- $f(t)=e^t-t-1$: $f'(t)=e^t-1=0$ only at $t=0$; $f''=e^t>0$ ⇒ strictly convex, so $t=0$ is the unique global min, $f(0)=0$.
- Hence $e^t\ge1+t$ for all $t$. Put $t=\ln a$ ($a>0$): $a\ge1+\ln a$, i.e. $a-1\ge\ln a$, with equality only at $a=1$.
E. Descent directions and line search rules
Here $\rho_1,\rho_2$ are line-search constants (his 2025 key calls the second one $\rho_3$), unrelated to the convergence factor $\rho$ of M1.
- Descent direction at $x$: $u$ with $\nabla f(x)^\top u<0$ (negative directional derivative). Then $f(x+\alpha u)<f(x)$ for all small $\alpha>0$ (2025 final T/F (e): True). If $\nabla f(x)\ne0$, $u=-\nabla f(x)$ is one, so the set of descent directions is never empty at a non-stationary point (MT1 2023 Q2 (v): False).
- Exact line search works for any descent direction, not just $-\nabla f$. On a quadratic $\frac12x^\top Qx-b^\top x$ with $Q\succ0$: $\alpha=-\frac{\nabla f^\top u}{u^\top Qu}$ (MT1 2025 T/F (g): False).
With $g(\alpha)=f(x^{(k)}+\alpha u^{(k)})$, so $g'(0)=\nabla f(x^{(k)})^\top u^{(k)}<0$:
- Armijo (sufficient decrease): $g(\alpha)\le g(0)+\rho_1\alpha\,g'(0)$, $0<\rho_1<1$. Stops steps that are too long.
- Wolfe = Armijo + curvature $g'(\alpha)\ge\rho_2\,g'(0)$ with $\rho_1<\rho_2<1$. Stops steps that are too short.
Both apply to any $C^1$ function, quadratics included (MT1 2025 (h): False). Neither is "always more efficient" (MT1 2025 (i): False). With $f\in C^1_L$, Wolfe gives the Sufficient Decrease Lemma (M1, B3).
Show answer
$g(\alpha)=(1-2\alpha)^2$, $g'(0)=-4$. $\alpha=1$: $1\le1-2$? No. $\alpha=\frac14$: $0.25\le1-0.5$: yes. Curvature: $g'(\alpha)=-4(1-2\alpha)$; at $0.01$: $-3.92\ge-3.6$? No: too short.
First-order error bound (MT1 2023 Q4(d)): for $f\in C^1_L$, $|f(y)-f(x)-\nabla f(x)^\top(y-x)|\le\frac L2\|y-x\|^2$; within a ball of radius $r$, the error is at most $\frac L2r^2$. And from Taylor, if $lI\preceq H(x)\preceq LI$ for all $x$ and $\nabla f(\hat x)=0$: $\frac l2\|x-\hat x\|^2\le f(x)-f(\hat x)\le\frac L2\|x-\hat x\|^2$. (MT1 2023 Q3, $I\preceq H\preceq2I$: the ratio $\frac{f(x)-f(\hat x)}{\|x-\hat x\|^2}$ lies between $\frac12$ and $1$.)
F. Exam recipe and T/F checklist
- Solve $\nabla f=0$ (factor!).
- Hessian at each point: PD ⇒ strict local min; ND ⇒ strict local max; indefinite ⇒ saddle; singular ⇒ look at the function near the point (sign of $f'$ on each side in 1-D).
- Global: convex ⇒ any stationary point is global. Otherwise: coercive ⇒ a global min exists and is one of the stationary points, so compare values. Unbounded below along some ray ⇒ no global min.
- Is a necessary condition being sold as sufficient (or vice versa)?
- Is local being upgraded to global without convexity?
- Is existence assumed on an open or unbounded set?
- Is $A$ in $x^\top Ax$ symmetric? Is "PSD" enough, or is PD needed (uniqueness)?
- Does the word "always", "only", "unique", "never" have a 1-line counterexample from this page?
How he asks it (from the papers)
- Finals: T/F only (2024 (a); 2025 (a)–(e) and (l)), plus 2020 P1 Q1(a) (paper held 25 Jan 2021) (three MVT-style MCQs, 6 marks) and 2021 P1 Q2 (Hessian, convexity, global minima of a rank-one quadratic: in M2, P16).
- MT1 every year: a T/F block (5–10 items) on these facts, one "classify the stationary points" question (2024 Q1, 2019), one "quadratic with unknown parameters" question (2023 Q2/Q4, 2024 Q2), and in 2026 an analysis warm-up (continuity, open/closed, inf/sup) and an inequality proved from a minimum.
- Expect the final's T/F to recycle these with new numbers.
Practice
A long T/F block (the main payoff), then short descriptive questions. Click an option for T/F.
In unconstrained optimization, a function with a local minimum may not have a global minimum.
- (a) True
- (b) False
Show answer
True. $\frac12u^2-\frac13u^3$.
For $f:[0,1]\to\mathbb R$ with $f'(x)\ne0$ for all $x\in(0,1)$, $f$ has no global minimum.
- (a) True
- (b) False
Show answer
False. $f(x)=x$: minimum at the endpoint $0$ (Weierstrass on the closed interval).
A constant Hessian implies that the function is quadratic.
- (a) True
- (b) False
Show answer
True (integrate twice: quadratic + linear + constant; a zero Hessian gives an affine function, a degenerate quadratic).
If the directional derivative of a function along $v$ is negative, then $v$ is a descent direction.
- (a) True
- (b) False
Show answer
True (that is the definition: $\nabla f^\top v<0$).
For $h=\frac12x^\top Qx+b^\top x+c$, $h(y)-h(x)=\nabla h(x)^\top(y-x)+\frac12(y-x)^\top Q(y-x)$ is true only if $Q$ is PSD or PD.
- (a) True
- (b) False
Show answer
False. It is an algebraic identity for any symmetric $Q$.
For a local minimum, $\nabla f(x)=0$ is a sufficient condition if $f$ is $C^1$.
- (a) True
- (b) False
Show answer
False. Necessary only: $-x^2$, $x^3$.
All convex quadratic functions always have a unique local minimum.
- (a) True
- (b) False
Show answer
False. $x_1^2$ on $\mathbb R^2$ (a line of minimisers); $x_1^2+x_2$ (no minimum).
The Hessian of $f(x)=\frac12x^\top Ax$, $A=uv^\top$, $u\ne v$, is $H=A$.
- (a) True
- (b) False
Show answer
False. $H=\frac12(uv^\top+vu^\top)$ (C1).
For $f\in C^2$, if $\nabla f(\hat x)=0$ and $H(\hat x)\succ0$, then $\hat x$ is a global minimum.
- (a) True
- (b) False
Show answer
False. Strict local only (SOSC). Global needs convexity.
$f(x)=(1+x_1)^2+b(x_2-x_1^2)^2$, $b>0$: the global minimum for $b=100$ and $b=1$ are different.
- (a) True
- (b) False
Show answer
False. Both terms are $\ge0$ and both vanish at $(-1,1)$: minimum $0$ there for every $b>0$.
$f:[-1,1]\to\mathbb R$ with $|f''(x)|\le\frac12$ on $(-1,1)$. If the global minimum is attained in $(-1,1)$ and equals $1$, then $f(x)\le2$ on $(-1,1)$.
- (a) True
- (b) False
Show answer
True. At the interior min $z$, $f'(z)=0$, so $f(x)=f(z)+\frac12f''(\xi)(x-z)^2\le1+\frac12\cdot\frac12\cdot2^2=2$.
Strongly convex functions have a unique global minimum.
- (a) True
- (b) False
Show answer
True (exists: coercive; unique: strictly convex).
Exact line search for minimizing a quadratic function can be implemented only when the descent direction is the negative gradient.
- (a) True
- (b) False
Show answer
False. Any direction: $\alpha=-\frac{\nabla f^\top u}{u^\top Qu}$ (used by CG, M2).
If $f$ is coercive then all minima must be global minima.
- (a) True
- (b) False
Show answer
False. $x^4-2x^2+\frac x2$.
If all critical points of $f$ are global minima then $f$ must be convex.
- (a) True
- (b) False
Show answer
False. $\frac{x^2}{1+x^2}$.
The set $\{(x,t):\|x\|\le t\}$ is convex.
- (a) True
- (b) False
Show answer
True. If $\|x\|\le t$ and $\|y\|\le s$ then $\|\theta x+(1-\theta)y\|\le\theta t+(1-\theta)s$ (triangle inequality).
$f=\frac12x^\top Ax-b^\top x+c$ with $A=\begin{pmatrix}1&a\\-a&2\end{pmatrix}$: for any $a\ne0$, $f$ has a saddle point.
- (a) True
- (b) False
Show answer
False. The Hessian is the symmetric part $\mathrm{diag}(1,2)\succ0$ for every $a$.
$f:[-1,2]\to\mathbb R$ differentiable. (i) $f(1)=-f(0)=1$: A. $|f'|\le1.5$ on $(0,1)$; B. $|f'|\ge1.5$ on $(0,1)$; C. $|f'(x)|=2$ for some $x\in(0,1)$; D. none. (ii) $f(0.5)=f(0.8)$ and $f''>0$ on $(-1,2)$: A. no minima in $[-1,2]$; B. exactly one minimum; C. at least one minimum; D. none. (iii) $f$ attains its minimum (over $[-1,2]$) at $x=2$: A. $f(x)\ge f(2)$ for all $x\in\mathbb R$; B. $f'\le0$ on $[-1,2]$; C. $f'\ge0$ on $[-1,2]$.
Show answer
- (i) C: mean value theorem, $f'(c)=\frac{1-(-1)}{1}=2$.
- (The paper's key for this part isn't in the folder; these are my answers.) (ii) B: Rolle gives $f'(c)=0$ in $(0.5,0.8)$; $f''>0$ makes $f$ strictly convex, so that is the unique minimum (C is also true; if only one answer is allowed, B is the sharper one).
- (iii) None of A–C is guaranteed (A is not even meaningful, B and C can fail): $f$ is only defined on $[-1,2]$ (A is meaningless outside), and the slope can change sign inside. What is true: $f'(2)\le0$ (otherwise moving left would decrease $f$).
$f=\frac12x^\top Ax-b^\top x+1$, $A=\mathrm{diag}(a_1,a_2)$, $b=(1,\beta)$, all nonzero; $\nabla f(\hat x)=0$ at $\hat x=(1,2)$. (a) When is $\hat x$ a saddle? (b) When is it the global min with value $-\frac12$? (c) Lipschitz constant of $\nabla f$. (d) Largest first-order approximation error at $x_0=(1,1)$ over $B_1(x_0)$. (e) Constant steps $\alpha$ for which GD from 0 always decreases $f$.
Show answer
- $\nabla f=(a_1x_1-1,\ a_2x_2-\beta)=0$ at $(1,2)$: $a_1=1$, $\beta=2a_2$.
- (a) Saddle iff $a_2<0$: $(a_1,a_2,\beta)=(1,t,2t)$, $t<0$.
- (b) Min iff $a_2>0$; $f(\hat x)=\frac12+2a_2-1-2\beta+1=\frac12-2a_2=-\frac12$ ⇒ $a_2=\frac12$, $\beta=1$.
- (c)–(e) using the values from (b): $L=\lambda_{\max}=\max(1,a_2)=\max(1,\frac12)=1$. (d) $\frac L2r^2=\frac12$. (e) $\alpha\in(0,\frac2L)=(0,2)$.
$g(u)=\frac12u^2-\frac13u^3$. Does $g$ have a global minimum? Is $u=0$ a local maximum?
Show answer
$g'=u-u^2=0$ at $0,1$. $g''(0)=1>0$: $0$ is a strict local min (so "local max": False). $g''(1)=-1$: local max. $g\to-\infty$ as $u\to\infty$: no global min.
$f(x)=\frac12x^\top Qx-h^\top Qx+c$, $Q\succ0$. Global minimum point and value?
Show answer
$\nabla f=Qx-Qh=0$ ⇒ $x^*=h$; $f^*=\frac12h^\top Qh-h^\top Qh+c=c-\frac12h^\top Qh$.
If $\nabla f(x^*)=0$ and $\nabla^2f(x^*)\succeq0$, then $x^*$ is a local minimum.
- (a) True
- (b) False
Show answer
False. $x^3$ at $0$ (SONC holds, not a min).
A stationary point of a convex differentiable function is a global minimum.
- (a) True
- (b) False
Show answer
True. First-order test with $\nabla f(x^*)=0$: $f(y)\ge f(x^*)$.
A strictly convex function on $\mathbb R^d$ always has a global minimum.
- (a) True
- (b) False
Show answer
False. $e^x$: strictly convex, no minimum. (Strongly convex would be enough.)
A stationary point with Hessian $\begin{pmatrix}1&2\\2&1\end{pmatrix}$ is a saddle point.
- (a) True
- (b) False
Show answer
True. $\det=-3<0$: eigenvalues $3$ and $-1$.
Self-test (no looking)
State FONC, SONC, SOSC and give a counterexample for "FONC + SONC ⇒ min" and for "min ⇒ SOSC".
Show answer
$\nabla f=0$; $\nabla f=0$ and $H\succeq0$; $\nabla f=0$ and $H\succ0$ ⇒ strict local min. $x^3$; $x^4$.
Two theorems that guarantee a minimum exists.
Show answer
Weierstrass (continuous on compact); coercive and continuous on $\mathbb R^d$.
Gradient and Hessian of $\frac12x^\top Ax-b^\top x$ for non-symmetric $A$.
Show answer
$\frac12(A+A^\top)x-b$ and $\frac12(A+A^\top)$.
State Armijo and the Wolfe curvature condition.
Show answer
$g(\alpha)\le g(0)+\rho_1\alpha g'(0)$; $g'(\alpha)\ge\rho_2g'(0)$, $0<\rho_1<\rho_2<1$.
Summary card
- 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$.