M9 · Chapter 1 · Basics: minima, convexity, quadratics
What a minimum is, when it exists, how to find and classify stationary points, quadratics, convexity and strong convexity: the unconstrained foundation behind MT1 and half of the final's True/False. Full theory with all past questions: M4.
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. Tags like "2025 final 1(a)" mark real past questions; "new" are practice items written for this page.
1. What does 'minimum' mean?
In plain words: A minimum is a lowest value of the function. 'Lowest' can mean lowest among the points nearby (local) or lowest everywhere (global). 'Strict' means no other point ties. Some functions get arbitrarily close to a value without ever reaching it: that value is the infimum, not a minimum.
Words and symbols on this stop: $f:\mathbb R^d\to\mathbb R$ = the function we minimise ($d$ numbers in, one number out). $x^*$ = a candidate point (a minimiser); $f(x^*)$ = the minimum value. $\|x-x^*\|$ = distance between the points. 'Ball' $B(x^*,\delta)$ = all points within distance $\delta$ of $x^*$. $\inf$ = infimum (greatest lower bound), $\sup$ = supremum (least upper bound). In 1-D, $f'(x)$ = slope and $f''(x)$ = curvature; $f''>0$ means the graph curves up.
Precisely: $x^*$ is a local minimiser if $f(x^*)\le f(x)$ for all $x$ with $\|x-x^*\|<\delta$ (some $\delta>0$); a global minimiser if $f(x^*)\le f(x)$ for all $x$; strict if '$<$' holds for all other $x$ in that range. $\inf f$ is the largest number $\le f(x)$ for all $x$; it equals $\min f$ only if some $x$ attains it.
Every global minimiser of $f$ is also a local minimiser of $f$.
Explanation
True. Global means $f(x^*)\le f(x)$ for all $x$. Local only asks this for the $x$ inside some small ball around $x^*$, and a condition that holds for every $x$ certainly holds for those. The reverse is false (see 1.4).
For $f(x)=e^x$ on $\mathbb R$, which statement is true?
- (a) The minimum value is $0$, reached at $x=0$.
- (b) $\inf f=0$, but $f$ has no minimum.
- (c) $f$ has a local minimum at $x=0$.
- (d) $\inf f=1$.
Explanation
(b). $e^x>0$ for every $x$ and $e^x\to0$ as $x\to-\infty$, so the greatest lower bound is $0$, but no $x$ has $e^x=0$: the infimum is not attained. (a) is wrong because $e^0=1$, not $0$. (c) is wrong because $f'(x)=e^x\ne0$ everywhere, so there is no stationary point at all. (d) $1$ is just the value at $x=0$; $f$ takes smaller values. Depth: M4 §A1.
Let $a=0$ and $f(x)=0$ for $x<0$, $f(x)=x+1$ for $0\le x\le1$, $f(x)=3$ for $x>1$. Let $S=\{x: 0.5<f(x)<2.5\}$. What are $\inf S$, $\sup S$, and the minimiser of $f$ over $S$?
- (a) $\inf S=0.5$, $\sup S=2.5$, no minimiser.
- (b) $\inf S=0$, $\sup S=1$, minimiser $x=0$ (value $1$).
- (c) $\inf S=0$, $\sup S=1$, minimiser $x=1$ (value $2$).
- (d) $\inf S=-\infty$, $\sup S=\infty$.
Explanation
(b). First find $S$. For $x<0$, $f=0\notin(0.5,2.5)$. For $x\in[0,1]$, $f=x+1\in[1,2]\subset(0.5,2.5)$, so all of $[0,1]$ is in. For $x>1$, $f=3\notin(0.5,2.5)$. Hence $S=[0,1]$, so $\inf S=0$ and $\sup S=1$ (here both belong to $S$). On $[0,1]$, $f=x+1$ increases, so the lowest value $1$ is at $x=0$. (a) mixes up the $f$-values with the $x$-values. (c) is the maximiser, not the minimiser. (d) ignores that $S$ is bounded. Depth: M4 §A3.
In unconstrained optimization, a function with a local minimum may not have a global minimum.
Explanation
True. $g(u)=\frac12u^2-\frac13u^3$ has $g'(u)=u-u^2$, so $u=0$ is stationary with $g''(0)=1>0$: a strict local minimum, $g(0)=0$. But $g(u)\to-\infty$ as $u\to+\infty$, so nothing is a global minimum. The figure above (left) also shows a local min that is not global. Depth: M4 §A1.
$g:\mathbb R\to\mathbb R$, $g(u)=\frac12u^2-\frac13u^3$. The function has a global minimum.
Explanation
False. $g(u)=u^2\left(\frac12-\frac u3\right)$, which is very negative once $u$ is large and positive (for example $g(6)=36\cdot(-1.5)=-54$), and it goes to $-\infty$. A function that is unbounded below has no global minimum. The local minimum at $u=0$ is not global.
For the same $g(u)=\frac12u^2-\frac13u^3$, the point $u=0$ is a local maximum.
Explanation
False. $g'(0)=0$ and $g''(0)=1>0$, so $u=0$ is a strict local minimum. (Check by hand: $g(0.1)=0.005-0.000333>0=g(0)$ and $g(-0.1)>0$ too.) The point $u=1$ is the local maximum: $g''(1)=-1$.
2. When does a minimum exist?
In plain words: A minimum might not exist. Walking towards an edge that is not part of the set (open interval), or walking off to infinity while the function keeps decreasing, are the two ways to miss it. Two guarantees: a continuous function on a closed and bounded set always has one (Weierstrass); and a continuous function that blows up at infinity (coercive) always has one on the whole space. But a minimum on a closed set can sit on the boundary, where the slope is not zero.
Words and symbols on this stop: Closed set: contains all its limit points (so its end points / boundary). Open: every point has a small ball inside the set. Bounded: fits in some big ball. Compact = closed and bounded. Continuous: no jumps. Coercive: $f(x)\to\infty$ as $\|x\|\to\infty$. 'Attains' = some point actually has that value. Critical (stationary) point = a point where $\nabla f=0$ (more in Stop 4); $C^1$ = once continuously differentiable.
Precisely: Weierstrass: $f$ continuous on a compact set $K$ $\Rightarrow$ $f$ attains its minimum and maximum on $K$. Coercive: $f$ continuous on $\mathbb R^d$ and $f(x)\to\infty$ as $\|x\|\to\infty$ $\Rightarrow$ a global minimum exists (pick $x_0$; outside a big ball $f>f(x_0)$; inside, Weierstrass). Coercive gives existence, not uniqueness.
A continuous function $f:[0,1]\to\mathbb R$ always attains a smallest value on $[0,1]$.
Explanation
True. This is Weierstrass: $[0,1]$ is closed and bounded (compact) and $f$ is continuous. Both assumptions matter: drop continuity or use an open interval and it can fail (next questions).
$f(x)=a$ for $x<0$, $f(x)=a+x+1$ for $0\le x\le1$, $f(x)=a+3$ for $x>1$. The function $f$ is discontinuous:
- (a) at exactly one point
- (b) at exactly two points
- (c) everywhere
- (d) nowhere
Explanation
(b). A jump is a discontinuity. At $x=0$: from the left $f\to a$, but $f(0)=a+1$ (jump of $1$). At $x=1$: from the left $f\to a+2$, but just to the right $f=a+3$ (jump of $1$). Between the jumps each piece is a straight line or a constant, hence continuous. So exactly two points: $0$ and $1$.
For the same $f$, the set $S=\{x: 0.5<f(x)-a<2.5\}$ is open.
Explanation
False. We found $S=[0,1]$ (question 1.3). It contains its end points $0$ and $1$, and every little ball around $0$ also contains negative numbers, which are not in $S$. So $S$ is closed, not open. (Open means: every point has a small ball inside the set.)
For $f:[0,1]\to\mathbb R$ with $f'(x)\ne0$ for all $x\in(0,1)$, $f$ has no global minimum.
Explanation
False. $f(x)=x$ has $f'=1\ne0$ everywhere, yet its minimum on $[0,1]$ is at the end point $x=0$. On a constrained set a minimum can sit on the boundary, where the derivative need not vanish. Depth: M4 §A2.
$g:\mathbb R^d\to\mathbb R$ is continuous and $g(x)\ge1$ whenever $\|x\|\ge10$. Then $g$ has an unconstrained minimum.
Explanation
True (the lecturer's printed key). Intended argument: on the closed ball $\|x\|\le10$ (compact) $g$ attains a minimum $m$; if $m\le1$, then $m$ beats everything outside the ball too, so it is global. Strictly, if $m>1$ this can fail: $g(x)=1+\frac1{1+\|x\|^2}$ is continuous, $\ge1$ everywhere, with $\inf g=1$ never attained. Answer True as the key does; M4 §A2 has the discussion.
If $f$ (a $C^1$ function on $\mathbb R^d$) is coercive and bounded from below, then a global minimum exists and lies at one of the critical points.
Explanation
True. Coercive ($f\to\infty$ as $\|x\|\to\infty$) plus continuous gives a global minimum (outside a big ball $f$ is larger than at any fixed point; inside, Weierstrass). A global minimiser of a $C^1$ function on all of $\mathbb R^d$ is a local minimiser, so $\nabla f=0$ there (first-order necessary condition, Stop 4). 'Bounded below' is automatic for coercive functions.
If $f$ is coercive, then all its (local) minima must be global minima.
Explanation
False. Coercive guarantees that a global minimum exists, nothing more. $f(x)=x^4-2x^2+\frac x2$ is coercive but has two local minima: $x\approx-1.06$ (value $\approx-1.51$) and $x\approx0.93$ (value $\approx-0.52$). Only the first is global (see the first figure).
3. Gradient, Hessian, Taylor, and the 1-D slice
In plain words: The gradient is the list of slopes in each coordinate direction; it points straight uphill, so $-\nabla f$ points straight downhill. The Hessian is the table of curvatures. To understand a function of many variables, walk along one line and look at the 1-D picture of $f$ along it (the slice). Then everything you know about slopes and curvature in 1-D applies: slope of the slice $=\nabla f^\top u$, curvature of the slice $=u^\top Hu$.
Words and symbols on this stop: $\nabla f(x)=\big(\partial f/\partial x_1,\dots,\partial f/\partial x_d\big)^\top$ = gradient. $\nabla^2f(x)$ or $H(x)$ = the $d\times d$ matrix of second derivatives $\partial^2f/\partial x_i\partial x_j$ (Hessian). $u$ = a direction, $\alpha$ = how far we walk; $g(\alpha)=f(x+\alpha u)$ = the slice. $\nabla f(x)^\top u$ = directional derivative. $C^1$, $C^2$ = once, twice continuously differentiable. $\xi$ = some point on the segment between two points.
Precisely: Slice rules: $g'(0)=\nabla f(x)^\top u$ and $g''(0)=u^\top\nabla^2f(x)\,u$. Descent direction: $\nabla f(x)^\top u<0$. Taylor (2nd order, exact remainder): $f(x+z)=f(x)+\nabla f(x)^\top z+\tfrac12z^\top\nabla^2f(\xi)z$ for some $\xi$ on the segment $[x,x+z]$. Rolle / mean value theorem (1-D): $h$ differentiable on $[a,b]$ gives $c\in(a,b)$ with $h'(c)=\frac{h(b)-h(a)}{b-a}$; if $h(a)=h(b)$ then $h'(c)=0$.
Let $f(x)=a^\top x$. The derivative (gradient) of $f$ is $a$.
Explanation
True. $a^\top x=a_1x_1+\dots+a_dx_d$, and $\partial/\partial x_i$ of that is just $a_i$. So $\nabla f=a$, a constant vector, and the Hessian is the zero matrix.
If the directional derivative of a function along $v$ is negative, then $v$ is a descent direction.
Explanation
True. That is the definition: $v$ is a descent direction at $x$ when $\nabla f(x)^\top v<0$. Then the slice $g(\alpha)=f(x+\alpha v)$ has $g'(0)<0$, so $g(\alpha)<g(0)$ for all small $\alpha>0$.
$f(x)=x_1^2+3x_1x_2$ at the point $x=(1,1)$. Which direction is a descent direction?
- (a) $u=(1,0)$
- (b) $u=(0,1)$
- (c) $u=(-1,0)$
- (d) $u=(1,1)$
Explanation
(c). $\nabla f=(2x_1+3x_2,\ 3x_1)$, so $\nabla f(1,1)=(5,3)$. Directional derivatives $\nabla f^\top u$: $(a)$ $5$, $(b)$ $3$, $(c)$ $-5$, $(d)$ $8$. Only (c) is negative. (Always: $u=-\nabla f=(-5,-3)$ is a descent direction when $\nabla f\ne0$.)
Let $a<b$ and $h:[a,b]\to\mathbb R$ be differentiable with $h(a)=h(b)$. Then $h$ has a critical point in $(a,b)$.
Explanation
True. This is Rolle's theorem: $h$ is continuous on $[a,b]$, so it has a highest and a lowest point; if both are at the end points, $h$ is constant (then $h'=0$ everywhere). Otherwise one is inside, where $h'=0$ (FONC, Stop 4).
$f:[-1,2]\to\mathbb R$ is differentiable and $f(1)=-f(0)=1$. Then:
- (a) $|f'(x)|\le1.5$ for all $x\in(0,1)$
- (b) $|f'(x)|\ge1.5$ for all $x\in(0,1)$
- (c) $|f'(x)|=2$ for some $x\in(0,1)$
- (d) none of the above
Explanation
(c). $f(1)=1$ and $f(0)=-1$. The mean value theorem gives some $c\in(0,1)$ with $f'(c)=\frac{f(1)-f(0)}{1-0}=\frac{1-(-1)}{1}=2$. So the slope is $2$ somewhere, which kills (a). It does not force the slope to be $\ge1.5$ everywhere (b): e.g. $f$ can be flat for a while and steep later. (The paper's key for this part is not in the folder; this is my derivation.)
A constant Hessian implies that the function is quadratic.
Explanation
True. If $\nabla^2f(x)=Q$ for all $x$, integrating twice gives $f(x)=\frac12x^\top Qx+b^\top x+c$. If $Q=0$ this degenerates to an affine function (still counted as a degenerate quadratic). Depth: M4 §C1.
4. FONC, SONC, SOSC and their counterexamples
In plain words: If you stand at the bottom of a valley, the ground is flat under your feet: slope zero. That is the first-order necessary condition. But flat ground can also be the top of a hill or a flat shelf on a slope, so you also look at curvature: a bowl-shaped valley (curving up) is a minimum. The four classic curves $x^3$, $x^4$, $-x^4$, $-x^2$ show exactly which conditions are too weak, and the exam keeps asking about them.
Words and symbols on this stop: Stationary (critical) point: $\nabla f(x^*)=0$. FONC = first-order necessary condition; SONC = second-order necessary; SOSC = second-order sufficient. $\succeq0$ = positive semidefinite (PSD, all eigenvalues $\ge0$); $\succ0$ = positive definite (PD, all $>0$). Necessary: must hold if $x^*$ is a minimum. Sufficient: if it holds, $x^*$ is a minimum. Inflection: stationary but neither min nor max.
Precisely: FONC: $x^*$ local min $\Rightarrow\nabla f(x^*)=0$. SONC: $x^*$ local min ($f\in C^2$) $\Rightarrow\nabla f(x^*)=0$ and $\nabla^2f(x^*)\succeq0$. SOSC: $\nabla f(x^*)=0$ and $\nabla^2f(x^*)\succ0$ $\Rightarrow$ $x^*$ strict local min (local only!). Neither converse holds: SOSC is not necessary ($x^4$), SONC is not sufficient ($x^3$), and $f''=0$ tells you nothing ($x^4$ vs $-x^4$).
If $x^*$ is a local minimiser of a $C^1$ function $f:\mathbb R^d\to\mathbb R$, then $\nabla f(x^*)=0$.
Explanation
True (FONC). If $\nabla f(x^*)\ne0$, then $u=-\nabla f(x^*)$ has $\nabla f^\top u<0$, so a small step along $u$ lowers $f$, contradicting local minimality.
Suppose a global minimum $\hat x$ exists for a function $f\in C^1$ (on $\mathbb R^d$). Then $\hat x\in\{x:\nabla f(x)=0\}$.
Explanation
True. A global minimiser is a local minimiser (1.1), and a local minimiser of a $C^1$ function on $\mathbb R^d$ has zero gradient (4.1). (On a closed interval the end points are exceptions, Stop 2.)
For a local minimum, the condition $\nabla f(x)=0$ is a sufficient condition if $f$ is $C^1$.
Explanation
False. It is only necessary. $f(x)=-x^2$ has $f'(0)=0$ but $0$ is a maximum; $f(x)=x^3$ has $f'(0)=0$ but $0$ is neither. Depth: M4 §B.
If $\nabla f(x^*)=0$ and $\nabla^2f(x^*)\succeq0$ (positive semidefinite), then $x^*$ is a local minimum.
Explanation
False. $f(x)=x^3$ at $0$: $f'(0)=0$ and $f''(0)=0\ge0$, so first- and second-order necessary conditions hold, yet $f(-0.1)<f(0)<f(0.1)$. SONC is necessary, not sufficient. The sufficient version needs strict positivity ($\succ0$, SOSC).
For $f\in C^2$, if $\nabla f(\hat x)=0$ and the Hessian is positive definite, $H(\hat x)\succ0$, then $\hat x$ is a global minimum of $f$.
Explanation
False. SOSC gives only a strict local minimum. $f(x)=x^4-2x^2+\frac x2$ at $\hat x\approx0.93$: $f'=0$ and $f''=12x^2-4\approx6.4>0$, yet $f(0.93)\approx-0.52>f(-1.06)\approx-1.51$. Global needs convexity (Stop 7). Depth: M4 §B1.
5. Definiteness: classifying stationary points
In plain words: A symmetric matrix $H$ describes how a function curves in every direction: $z^\top Hz$ is the curvature along $z$ (up to a positive factor). Positive definite = curves up in every direction (a bowl). Negative definite = curves down in every direction (a dome). Indefinite = up in some directions, down in others (a saddle). Semidefinite = never curves down, but is flat in some direction. For a stationary point, the Hessian's type is the verdict (unless it is singular).
Words and symbols on this stop: $H=\begin{pmatrix}a&b\\b&c\end{pmatrix}$ symmetric. Eigenvalue $\lambda$: a number with $Hv=\lambda v$, $v\ne0$ (the curvature along $v$). Leading minors: determinants of the top-left $1\times1$, $2\times2$, ... blocks (here $a$ and $ac-b^2$). Singular: some eigenvalue is $0$ ($\det=0$). ND = negative definite. Saddle: stationary point that is a min in some directions and a max in others.
Precisely: Tests: (i) eigenvalues all $>0$ (PD), all $\ge0$ (PSD), all $<0$ (ND), mixed signs (indefinite). (ii) Sylvester: PD $\Leftrightarrow$ all leading minors $>0$ (does not extend to PSD by '$\ge$'). (iii) $2\times2$: PD $\Leftrightarrow a>0$ and $ac-b^2>0$; $\det<0\Rightarrow$ indefinite. At a stationary point: PD strict local min, ND strict local max, indefinite saddle, singular: inconclusive.
The diagonal matrix $\mathrm{diag}(2,5)$ is positive definite.
Explanation
True. $z^\top\mathrm{diag}(2,5)z=2z_1^2+5z_2^2>0$ for every $z\ne0$. Equivalently, its eigenvalues $2,5$ are both positive.
A $C^2$ function has a stationary point whose Hessian is $\begin{pmatrix}1&3\\3&2\end{pmatrix}$. This point is:
- (a) a strict local minimum
- (b) a strict local maximum
- (c) a saddle point
- (d) inconclusive (second-order test says nothing)
Explanation
(c). The determinant is $1\cdot2-3^2=-7<0$, so the eigenvalues have opposite signs ($\frac{3\pm\sqrt{37}}2\approx4.54,\,-1.54$): indefinite, a saddle. (a) would need $a>0$ and $\det>0$; the first entry $1>0$ alone is not enough. (b) needs both eigenvalues negative. (d) happens only when $\det=0$.
Let $f:\mathbb R^2\to\mathbb R$ have the Hessian $H=\begin{pmatrix}1&2\\2&1\end{pmatrix}$ at a critical point. Then this critical point is a saddle point.
Explanation
True (the printed item is cut off in the scan; M4 reads it as 'is a saddle'). Eigenvalues are $1\pm2=3,\,-1$: indefinite. Along $(1,1)$ the curvature is $+3$ (rises), along $(1,-1)$ it is $-1$ (falls). The positive diagonal entries are a trap: diagonal entries do not decide definiteness.
The Hessian of $f$ is positive definite everywhere. The cardinality of the set of critical points of $f$ is three.
Explanation
False. $H\succ0$ everywhere means $f$ is strictly convex, and a strictly convex function has at most one minimiser; every critical point of a convex function is a global minimiser (Stop 7), so there can be at most one. Example: $x^2$ has exactly one, $e^x$ has none. Three is impossible.
Mark all correct statements.
- (a) $\begin{pmatrix}1&1\\1&1\end{pmatrix}$ is positive semidefinite but not positive definite.
- (b) $\mathrm{diag}(0,-1)$ is positive semidefinite, because its leading minors $0$ and $0$ are $\ge0$.
- (c) $\begin{pmatrix}2&-1\\-1&2\end{pmatrix}$ is positive definite.
- (d) $\begin{pmatrix}1&2\\2&1\end{pmatrix}$ is positive semidefinite, because its diagonal entries are positive.
Explanation
(a), (c). (a) Eigenvalues $0$ and $2$: all $\ge0$, one equals $0$, so PSD, not PD. (b) False: its eigenvalues are $0,-1$, so it is not PSD; Sylvester's leading-minor test proves PD only (all minors $>0$), it does not turn into 'minors $\ge0$ means PSD'. (c) $a=2>0$ and $\det=4-1=3>0$: PD (eigenvalues $1,3$). (d) The eigenvalues are $3,-1$: indefinite; diagonal entries say nothing.
6. Quadratics: the symmetric part and when a minimum exists
In plain words: A quadratic function is the simplest curved function: a bowl, a trough, or a saddle. It is the test bed of the whole course because gradient and Hessian are explicit and Taylor is exact. One trap: $x^\top Ax$ only sees the symmetric part of $A$, so for a non-symmetric $A$ you must symmetrise first, and its eigenvalues are not the curvatures.
Words and symbols on this stop: $f(x)=\frac12x^\top Ax-b^\top x+c$: $A$ = matrix, $b$ = linear coefficient vector, $c$ = constant. Symmetric part of $A$: $\frac12(A+A^\top)$. $\mathrm{range}(A)$ = all vectors $Az$. $A^{-1}$ = inverse (exists if $A$ is PD). Other books write $Q$ or $H$ for $A$.
Precisely: $\nabla f(x)=\frac12(A+A^\top)x-b$ and $\nabla^2f=\frac12(A+A^\top)$ (equal to $Ax-b$, $A$ if $A$ is symmetric). Minimum exists? symmetric part $S=\frac12(A+A^\top)$ PD: unique global min $x^*=S^{-1}b$, $f^*=c-\frac12b^\top S^{-1}b$ ($S=A$ when $A$ is symmetric). PSD singular: minimisers form a line/plane if $b\in\mathrm{range}(A)$, otherwise $f$ is unbounded below. Indefinite: no min, no max. Exact Taylor (symmetric $Q$): $h(y)-h(x)=\nabla h(x)^\top(y-x)+\frac12(y-x)^\top Q(y-x)$.
A symmetric matrix whose eigenvalues are all positive is positive definite.
Explanation
True. For symmetric $A$, 'all eigenvalues $>0$' and '$z^\top Az>0$ for all $z\ne0$' are the same statement (Stop 5).
$f(x)=\frac12x^\top Ax-b^\top x$ with $A=\mathrm{diag}(2,4)$, $b=(2,4)$. The global minimiser and minimum value are:
- (a) $x^*=(1,1)$, $f^*=-3$
- (b) $x^*=(1,1)$, $f^*=3$
- (c) $x^*=(4,16)$, $f^*=-3$
- (d) no minimum exists
Explanation
(a). $A\succ0$ (eigenvalues $2,4$), so the unique minimiser solves $\nabla f=Ax-b=0$: $x^*=A^{-1}b=(1,1)$. Value: $f^*=-\frac12b^\top A^{-1}b=-\frac12(\frac{4}{2}+\frac{16}{4})=-3$. Check directly: $\frac12(2+4)-(2+4)=-3$. (b) has the wrong sign: $f(0)=0$ and the minimum must be below it. (c) multiplies by $A$ instead of solving with $A^{-1}$. (d) would need a non-PD $A$.
The Hessian of $f(x)=\frac12x^\top Ax$, with $A=uv^\top$ and $u\ne v$, is $H=A$.
Explanation
False. For a non-symmetric $A$ only its symmetric part matters: $x^\top Ax=x^\top\frac{A+A^\top}2x$, so $H=\frac12(uv^\top+vu^\top)$, which differs from $uv^\top$ unless $u,v$ are parallel. Example $u=(1,0)$, $v=(0,1)$: $A=\begin{pmatrix}0&1\\0&0\end{pmatrix}$ but $H=\begin{pmatrix}0&\frac12\\\frac12&0\end{pmatrix}$. Depth: M4 §C1.
All convex quadratic functions always have a unique local minimum.
Explanation
False. Convex quadratic means $A\succeq0$, possibly singular. $f(x)=x_1^2$ on $\mathbb R^2$: every point of the line $x_1=0$ is a minimiser (infinitely many). $f(x)=x_1^2+x_2$ is convex but unbounded below: no minimum at all. Uniqueness needs $A\succ0$.
For $h(x)=\frac12x^\top Qx+b^\top x+c$ ($Q$ symmetric): $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.
Explanation
False. Expand $h(y)=h(x+z)$ with $z=y-x$: $\frac12(x+z)^\top Q(x+z)+b^\top(x+z)+c=h(x)+(Qx+b)^\top z+\frac12z^\top Qz$, and $\nabla h(x)=Qx+b$. This is an algebraic identity for any symmetric $Q$, definite or not. Taylor is exact for quadratics (that is why they are the test bed).
$f(x)=\frac12x^\top Ax$ with $A=\begin{pmatrix}1&4\\0&1\end{pmatrix}$. Both eigenvalues of $A$ equal $1>0$. Which is true?
- (a) $H=A$ is positive definite, so $f$ is convex.
- (b) $H=\begin{pmatrix}1&2\\2&1\end{pmatrix}$, indefinite: $x=0$ is a saddle point.
- (c) $H=\begin{pmatrix}1&4\\4&1\end{pmatrix}$, so $f$ is convex.
- (d) $H=\begin{pmatrix}1&2\\2&1\end{pmatrix}$, positive definite.
Explanation
(b). $f=\frac12(x_1^2+4x_1x_2+x_2^2)$, so $H=\frac12(A+A^\top)=\begin{pmatrix}1&2\\2&1\end{pmatrix}$, with eigenvalues $3,-1$: indefinite. Test: at $x=(1,-1)$, $f=\frac12(1-4+1)=-1<0=f(0)$. So $0$ is not a minimum: it is a saddle. (a) wrongly uses the eigenvalues of the non-symmetric $A$. (c) forgets the factor $\frac12$ in $\frac12(A+A^\top)$. (d) is the right matrix with the wrong verdict ($\det=-3$).
7. Convex sets and convex functions
In plain words: A set is convex if the straight segment between any two of its points stays inside it (no dents, no holes). A function is convex if, between any two points of its graph, the straight chord lies above the graph, equivalently every tangent line lies below the graph, equivalently it never curves down. Convexity is the property that turns every 'local' statement into a 'global' one.
Words and symbols on this stop: $\theta\in[0,1]$: a mixing weight; $\theta x+(1-\theta)y$ = the point on the segment from $y$ to $x$. Chord: the segment joining $(x,f(x))$ and $(y,f(y))$. Tangent: the line $f(x)+\nabla f(x)^\top(\cdot-x)$. Affine set: $\{x:Ax=b\}$. Half-space: $\{x:a^\top x\le\beta\}$. Strictly convex: the chord is strictly above.
Precisely: Set $C$ convex: $x,y\in C$, $\theta\in[0,1]$ $\Rightarrow$ $\theta x+(1-\theta)y\in C$. Function convex: $f(\theta x+(1-\theta)y)\le\theta f(x)+(1-\theta)f(y)$. $C^1$ test: $f(y)\ge f(x)+\nabla f(x)^\top(y-x)$. $C^2$ test: $\nabla^2f(x)\succeq0$ for all $x$ ($\succ0\Rightarrow$ strictly convex, but not conversely: $x^4$). Consequences: local min $\Rightarrow$ global; stationary $\Rightarrow$ global min. Intersections of convex sets, balls, half-spaces, affine sets, norm cones are convex.
The set $\{x: Ax=b\}$ is not a convex set.
Explanation
False. It is convex (an affine subspace). If $Ax=b$ and $Ay=b$, then $A(\theta x+(1-\theta)y)=\theta b+(1-\theta)b=b$, so the whole segment is in the set.
The set $\{(x,t):\|x\|\le t\}$ is convex.
Explanation
True. It is the 'ice-cream cone' (points above a norm-graph). If $\|x\|\le t$ and $\|y\|\le s$, then by the triangle inequality $\|\theta x+(1-\theta)y\|\le\theta\|x\|+(1-\theta)\|y\|\le\theta t+(1-\theta)s$, which says the combination $(\theta x+(1-\theta)y,\ \theta t+(1-\theta)s)$ is in the set.
The set $\{x\in\mathbb R^2: -1\le x_1\le1,\ x_2^2\le1\}$ is convex.
Explanation
True. $x_2^2\le1$ means $-1\le x_2\le1$, so the set is the square $[-1,1]^2$: an intersection of four half-planes. Intersections of convex sets are convex. (Do not be scared by the square on $x_2$.)
$h(x)=\alpha_1x^2+\alpha_2x+\alpha_3$ with $h(a)=h(b)=0$ and $h(x)>0$ for all $x\in(a,b)$. Then $h$ is convex.
Explanation
False. A quadratic that is $0$ at both ends and positive in between is a hill (like $h=x(1-x)$ on $[0,1]$), so it opens downward: $\alpha_1<0$, $h''=2\alpha_1<0$: concave. Convex ('chord above graph') would put the graph below the chord, i.e. $h\le0$ in between.
If $f$ is convex and differentiable, every stationary point of $f$ is a global minimiser.
Explanation
True. Tangent test: $f(y)\ge f(x^*)+\nabla f(x^*)^\top(y-x^*)$ for all $y$. If $\nabla f(x^*)=0$ the last term vanishes, so $f(y)\ge f(x^*)$ for every $y$. This is the upgrade convexity gives: stationary $\Rightarrow$ global.
If all critical points of $f$ are global minima, then $f$ must be convex.
Explanation
False. The converse of 7.5 fails. $f(x)=\frac{x^2}{1+x^2}$: its only critical point is $0$, a global minimum ($f\ge0$), but $f''(x)=\frac{2-6x^2}{(1+x^2)^3}$ is negative for $|x|>1/\sqrt3$ (e.g. $f''(2)=-\frac{22}{125}<0$), so $f$ is not convex. Try it in the chord widget.
8. Strong convexity and uniqueness
In plain words: A convex function can be flat (a plateau of minimisers) or can flatten out forever ($e^x$). Strong convexity forbids both: the graph must stay above its tangent by at least a fixed parabola, so it keeps curving up everywhere. Then there is always exactly one lowest point.
Words and symbols on this stop: $\mu>0$ = the strong-convexity constant (smallest curvature). $I$ = identity matrix. $\nabla^2f\succeq\mu I$ means every eigenvalue of $H(x)$ is at least $\mu$. $\|y-x\|^2$ = squared distance.
Precisely: $\mu$-strongly convex ($C^2$): $\nabla^2f(x)\succeq\mu I$ for all $x$; equivalently $f(y)\ge f(x)+\nabla f(x)^\top(y-x)+\frac\mu2\|y-x\|^2$. Hierarchy: strongly convex $\Rightarrow$ strictly convex $\Rightarrow$ convex. Strongly convex: a global minimiser exists and is unique. Strictly convex: at most one minimiser, may not exist ($e^x$). Convex: minimisers form a convex set, may be empty or infinite.
$f(x)=x^2$ (in 1-D) is strongly convex.
Explanation
True. $f''(x)=2\ge\mu$ with $\mu=2>0$ for every $x$, so $f''\succeq\mu I$ holds everywhere.
Strongly convex functions have a unique global minimum.
Explanation
True. Strong convexity gives growth $f(y)\ge f(x)+\nabla f(x)^\top(y-x)+\frac\mu2\|y-x\|^2$, so $f\to\infty$ at infinity (coercive): a minimiser exists. Strict convexity then gives uniqueness: two minimisers would have the midpoint strictly lower. Depth: M1, M4 §D.
A strictly convex function $f:\mathbb R\to\mathbb R$ always has a global minimum.
Explanation
False. $f(x)=e^x$ is strictly convex ($f''=e^x>0$) but has no minimum (its infimum $0$ is never reached). Strict convexity gives at most one minimiser, not existence. Strong convexity (curvature bounded below by $\mu>0$) would be enough. See the right panel of the figure.
Which hypothesis on a $C^2$ function $f:\mathbb R^d\to\mathbb R$ guarantees that it has exactly one global minimiser?
- (a) $f$ is convex.
- (b) $f$ is strictly convex.
- (c) $\nabla^2f(x)\succeq\mu I$ for all $x$, with some $\mu>0$ (strongly convex).
- (d) $\nabla^2f(x)\succeq0$ for all $x$.
Explanation
(c). Strongly convex: exists (coercive) and unique (strictly convex). (a) and (d) are the same thing (convex): a constant function, or $x_1^2$, has infinitely many minimisers, and $x_1^2+x_2$ has none. (b) strictly convex: at most one, but $e^x$ has none.
$f:[-1,2]\to\mathbb R$ is differentiable, $f(0.5)=f(0.8)$ and $f''(x)>0$ on $(-1,2)$. Mark all correct (more than one may apply).
- (a) $f$ has no minima in $[-1,2]$.
- (b) $f$ has exactly one minimum.
- (c) $f$ has at least one minimum.
- (d) None of the above.
Explanation
(b), (c). By Rolle, $f'(c)=0$ for some $c\in(0.5,0.8)$. Since $f''>0$, $f'$ is increasing, so this $c$ is the only zero of $f'$, and $f$ decreases before $c$ and increases after: $c$ is the global minimiser, unique. So (b) is true, and (c) is true as well (one is at least one); the paper's single-answer format would want (b), the sharper statement. (a) is false because a minimum exists (Weierstrass anyway). (d) is false. (Key not in the folder; derived here.)
The rigorous version
- Local/global/strict. $x^*$ is a local minimiser of $f$ if there is $\delta>0$ with $f(x^*)\le f(x)$ for all $x$ with $\|x-x^*\|<\delta$; global if this holds for all $x$ (in the feasible set); strict if $f(x^*)<f(x)$ for $x\ne x^*$ in the range considered.
- Weierstrass. $f$ continuous on a nonempty compact set $K\subset\mathbb R^d$ $\Rightarrow$ $f$ attains its minimum and maximum on $K$. Coercive. $f$ continuous on $\mathbb R^d$ with $f(x)\to\infty$ as $\|x\|\to\infty$ $\Rightarrow$ a global minimiser exists.
- FONC. $f\in C^1$, $x^*$ a local minimiser on $\mathbb R^d$ $\Rightarrow\nabla f(x^*)=0$. SONC. $f\in C^2$ $\Rightarrow$ additionally $\nabla^2f(x^*)\succeq0$. SOSC. $f\in C^2$, $\nabla f(x^*)=0$, $\nabla^2f(x^*)\succ0$ $\Rightarrow$ $x^*$ is a strict local minimiser.
- Taylor. $f\in C^2$: $f(x+z)=f(x)+\nabla f(x)^\top z+\frac12z^\top\nabla^2f(\xi)z$, $\xi\in[x,x+z]$. If $lI\preceq\nabla^2f\preceq LI$ everywhere 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$ gives ratio in $[\frac12,1]$).
- Quadratics. $f(x)=\frac12x^\top Ax-b^\top x+c$: $\nabla f=\frac12(A+A^\top)x-b$, $\nabla^2f=\frac12(A+A^\top)$. If $\frac12(A+A^\top)\succ0$: unique global minimiser $x^*=(\frac{A+A^\top}2)^{-1}b$. $\succeq0$ singular: minimisers iff $b\in\mathrm{range}$, then an affine set of them. Indefinite: no minimum.
- Definiteness. Symmetric $H$: PD iff all eigenvalues $>0$ iff all leading principal minors $>0$. PSD iff all eigenvalues $\ge0$ (equivalently all principal minors $\ge0$, not only the leading ones). $2\times2$: PD iff $a>0$, $ac-b^2>0$.
- Convexity. $C$ convex: $\theta x+(1-\theta)y\in C$. $f$ convex on convex $C$: $f(\theta x+(1-\theta)y)\le\theta f(x)+(1-\theta)f(y)$. $f\in C^1$ convex iff $f(y)\ge f(x)+\nabla f(x)^\top(y-x)$ for all $x,y$. $f\in C^2$ convex iff $\nabla^2f\succeq0$ everywhere. Convex: local min is global; $\nabla f(x^*)=0\Leftrightarrow$ global min. Strictly convex: at most one minimiser.
- Strong convexity. $f\in C^1$ is $\mu$-strongly convex if $f(y)\ge f(x)+\nabla f(x)^\top(y-x)+\frac\mu2\|y-x\|^2$ for all $x,y$ ($C^2$: $\nabla^2f\succeq\mu I$). Then $f$ has exactly one global minimiser.
Final mixed round (exam level)
Items that mix the stops. Treat each as a mini exam question: decide, then read the reason.
$f:[-1,2]\to\mathbb R$ is differentiable and attains its minimum (over $[-1,2]$) at $x=2$. Which is guaranteed?
- (a) $f(x)\ge f(2)$ for all $x\in\mathbb R$
- (b) $f'(x)\le0$ for all $x\in[-1,2]$
- (c) $f'(x)\ge0$ for all $x\in[-1,2]$
- (d) None of these is guaranteed.
Explanation
(d). One counterexample kills all three: $f(x)=-x^2$ on $[-1,2]$ has its minimum at $x=2$ (value $-4$). (a): $f$ is only defined on $[-1,2]$, and even extended by the same formula, $f(3)=-9<f(2)$. (b): $f'(-0.5)=+1>0$. (c): $f'(1)=-2<0$. What is true is only $f'(2)\le0$ (otherwise a small step left would lower $f$): a boundary minimum satisfies a one-sided condition, not $f'=0$. (Key not in the folder; derived here.)
$f(x)=\frac12x^\top Ax-b^\top x+c$ on $\mathbb R^2$, with $A=\begin{pmatrix}1&a\\-a&2\end{pmatrix}$, $b=(1,2)^\top$, $c=1$, and $a$ unknown. Mark the true statements.
- (a) $f$ is not in $C^2$.
- (b) For every fixed $a\ne0$, $f$ has no global minimum.
- (c) The eigenvalues of the Hessian are real.
- (d) For every fixed $a\ne0$, $f$ has a saddle point.
- (e) For some $a\ne0$, the set of descent directions at $x=0$ is empty.
Explanation
(c) only. The Hessian is the symmetric part $\frac12(A+A^\top)=\mathrm{diag}(1,2)$ for every $a$ (the $\pm a$ cancel). So: (a) false, $f$ is a polynomial. (b) false, $H\succ0$ so $f$ is strictly convex with minimiser $H^{-1}b=(1,1)$. (c) true: $\mathrm{diag}(1,2)$ has eigenvalues $1,2$. (d) false: no saddle, the one stationary point is the minimum. (e) false: $\nabla f(0)=-b\ne0$, so $u=b$ is a descent direction. (Original: five separate T/F items, answers F, F, T, F, F.)
$f(x)=(1+x_1)^2+b(x_2-x_1^2)^2$ with $b>0$. The global minimum of $f$ for $b=100$ and for $b=1$ are different.
Explanation
False. Both terms are squares times positive numbers, so $f\ge0$. At $x=(-1,1)$ both terms are $0$ whatever $b>0$ is: $f=0$. So the minimum value is $0$ at $(-1,1)$ for every $b>0$. (The parameter $b$ changes how narrow the valley is, not where its bottom is.)
Let $f:[-1,1]\to\mathbb R$ with $|f''(x)|\le\frac12$ for all $x\in(-1,1)$. If the global minimum of $f$ is attained in $(-1,1)$ and $\min_{[-1,1]}f=1$, then $f(x)\le2$ for all $x\in(-1,1)$.
Explanation
True. At the interior minimiser $z$, $f'(z)=0$ (FONC). Taylor with remainder: $f(x)=f(z)+0+\frac12f''(\xi)(x-z)^2$. Here $|x-z|<2$ and $|f''|\le\frac12$, so $f(x)\le1+\frac12\cdot\frac12\cdot4=2$. (pdftotext prints $\frac12$ as '12' in the paper.)
$f(x)=x^4-2x^2$. Which statement is true?
- (a) $x=0$ is the global minimiser, because it is stationary.
- (b) $x=\pm1$ are the global minimisers (value $-1$) and $x=0$ is a local maximum.
- (c) $f$ has a unique minimiser.
- (d) $f$ has no global minimum, since it is not convex.
Explanation
(b). $f'=4x^3-4x=4x(x-1)(x+1)$: stationary at $-1,0,1$. $f''=12x^2-4$: $f''(\pm1)=8>0$ (strict local minima, $f=-1$), $f''(0)=-4<0$ (local max, $f=0$). $f$ is coercive, so a global minimum exists and must be among the stationary points: the lowest value is $-1$, attained at both $\pm1$. (a) stationary is not enough ($0$ is the local max). (c) two minimisers (non-convex functions can have several). (d) coercive gives existence; convexity is not needed for that.
$f(x)=\frac12x^\top Ax-b^\top x$ on $\mathbb R^2$ with $A=\mathrm{diag}(2,0)$ (PSD, singular). Mark all correct statements.
- (a) For $b=(2,0)$, $f$ has infinitely many global minimisers.
- (b) For $b=(2,0)$, the minimum value is $-1$.
- (c) For $b=(2,1)$, $f$ has a global minimum.
- (d) For $b=(2,1)$, $f$ is bounded below.
Explanation
(a), (b). $f=x_1^2-b_1x_1-b_2x_2$. With $b=(2,0)$: $f=x_1^2-2x_1=(x_1-1)^2-1$, which is $-1$ along the whole line $x_1=1$ (any $x_2$): infinitely many minimisers, minimum value $-1$. With $b=(2,1)$: $f=x_1^2-2x_1-x_2\to-\infty$ as $x_2\to+\infty$, so there is no minimum and $f$ is not bounded below ((c), (d) false). The rule: PSD singular $A$ has minimisers iff $b\in\mathrm{range}(A)$; here $(2,0)\in\mathrm{range}$, $(2,1)\notin$. Depth: M4 §C3.