Conditions for Boundedness in Unconstrained Quadratic Minimization
Machine LearningModel answerLast updated
Analyze when an unconstrained scalar quadratic function has a finite minimum, and derive the optimal solution set and value using matrix properties.
Consider the unconstrained minimization problem over $\mathbb{R}^n$:
$$ \min_{x \in \mathbb{R}^n} f(x) = x^\top Q x + c^\top x $$
where $Q \in \mathbb{R}^{n \times n}$ is a real matrix (not guaranteed to be symmetric) and $c \in \mathbb{R}^n$ is a real vector.
- State the exact necessary and sufficient conditions under which $f(x)$ has a finite minimum value.
- Under these conditions, specify the complete set of minimizers $\arg\min_{x} f(x)$ and the optimal value $f^*$.
- Explain why checking the eigenvalues of $Q$ directly can be misleading if $Q$ is non-symmetric.
Hints
Hint 1
Recall that any real quadratic form $x^ op Q x$ can be rewritten using the symmetric part $S = rac{1}{2}(Q + Q^ op)$.
Hint 2
Positive semidefiniteness of $S$ is necessary, but what happens along the nullspace of $S$ if $c$ has a component there?
Hint 3
Use the Moore–Penrose pseudoinverse $S^+$ to express the full family of minimizers when $S$ is singular.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Overview
To analyze the objective function $f(x) = x^\top Q x + c^\top x$, we must examine the properties of $Q$ and $c$. The primary pitfall in this problem is dealing with non-symmetric matrices $Q$ and handling singular cases where $Q$ is positive semidefinite but not strictly positive definite.
1. Symmetrization
For any scalar quadratic form $x^\top Q x$, taking the scalar transpose yields $x^\top Q x = x^\top Q^\top x$. Thus:
$$ x^\top Q x = x^\top \left( \frac{Q + Q^\top}{2} \right) x $$
The skew-symmetric component $\frac{1}{2}(Q - Q^\top)$ evaluates to zero for all $x$. Define the symmetric part of $Q$ as:
$$ S = \frac{1}{2}(Q + Q^\top) $$
We can rewrite the objective and its derivative strictly in terms of $S$:
$$ f(x) = x^\top S x + c^\top x $$ $$ \nabla f(x) = 2Sx + c $$ $$ \nabla^2 f(x) = 2S $$
All conditions regarding convexity, existence of minima, and optimality depend on $S$, not on the raw matrix $Q$.
2. Necessary and Sufficient Conditions for a Finite Minimum
The optimization problem $\min_{x} f(x)$ has a finite minimum value if and only if both of the following conditions hold:
- Positive Semidefiniteness: $S \succeq 0$ (all eigenvalues of $S$ are non-negative, $\lambda_i(S) \ge 0$).
- Subspace Compatibility (Solvability): $c \in \text{range}(S)$, or equivalently $c \perp \text{null}(S)$.
Proof of Necessity
-
If $S \nsucceq 0$: There exists some eigenvector $v$ such that $v^\top S v = \lambda < 0$. Evaluating $f$ along the ray $x = t v$ for $t \in \mathbb{R}$: $$ f(t v) = t^2 \lambda v^\top v + t c^\top v $$ As $t \to \infty$, the quadratic term $t^2 \lambda |v|^2$ dominates and drives $f(tv) \to -\infty$.
-
If $S \succeq 0$, but $c \notin \text{range}(S)$: By the fundamental theorem of linear algebra for symmetric matrices, $\mathbb{R}^n = \text{range}(S) \oplus \text{null}(S)$ orthogonally. Decompose $c = c_{\text{range}} + c_{\text{null}}$, where $c_{\text{null}} \ne 0$. Choose $x = -t c_{\text{null}}$: $$ f(-t c_{\text{null}}) = (-t c_{\text{null}})^\top S (-t c_{\text{null}}) + c^\top (-t c_{\text{null}}) = 0 - t |c_{\text{null}}|^2 $$ As $t \to \infty$, $f(-t c_{\text{null}}) \to -\infty$.
Proof of Sufficiency (Completing the Square)
If $c \in \text{range}(S)$, there exists at least one vector $x_0$ satisfying $2 S x_0 = -c$. Substituting $c = -2 S x_0$ into $f(x)$:
$$ f(x) = x^\top S x - 2 x_0^\top S x = (x - x_0)^\top S (x - x_0) - x_0^\top S x_0 $$
Since $S \succeq 0$, $(x - x_0)^\top S (x - x_0) \ge 0$ for all $x$. Therefore:
$$ f(x) \ge -x_0^\top S x_0 $$
The minimum is achieved at $x = x_0$, showing that a finite minimum exists and is explicitly attained.
3. Characterization of Minimizers and Optimal Value
When $S \succeq 0$ and $c \in \text{range}(S)$, the objective function $f(x)$ is convex. The first-order optimality condition $\nabla f(x) = 0$ is both necessary and sufficient.
Set of Minimizers
The set of optimal solutions is the solution set to $2Sx = -c$:
$$ \arg\min_{x} f(x) = \left{ -\frac{1}{2} S^+ c + v ;\middle|; v \in \text{null}(S) \right} $$
where $S^+$ denotes the Moore–Penrose pseudoinverse of $S$.
- If $S \succ 0$ (strictly positive definite), $\text{null}(S) = {0}$, yielding a unique minimizer $x^* = -\frac{1}{2} S^{-1} c$.
- If $S$ is singular, the minimizers form an affine subspace of dimension $\dim(\text{null}(S))$.
Optimal Value
Using the particular solution $x_0 = -\frac{1}{2} S^+ c$ and the pseudoinverse property $S^+ S S^+ = S^+$:
$$ f^* = f(x_0) = \left(-\frac{1}{2} S^+ c\right)^\top S \left(-\frac{1}{2} S^+ c\right) + c^\top \left(-\frac{1}{2} S^+ c\right) = -\frac{1}{4} c^\top S^+ c $$
4. Why Non-Symmetric $Q$ Eigenvalues are Misleading
Evaluating the eigenvalues of $Q$ directly (rather than $S$) can produce completely false conclusions about convexity and boundedness.
Example: Positive Eigenvalues of $Q$, but Unbounded Objective
Let $Q = \begin{pmatrix} 1 & 4 \ 0 & 1 \end{pmatrix}$ and $c = \begin{pmatrix} 0 \ 0 \end{pmatrix}$.
- Eigenvalues of $Q$: Both eigenvalues of $Q$ are $+1 > 0$. One might incorrectly infer that the function is strictly convex and bounded below.
- Symmetric Part $S$: $$ S = \frac{1}{2}(Q + Q^\top) = \begin{pmatrix} 1 & 2 \ 2 & 1 \end{pmatrix} $$
- Eigenvalues of $S$: Solving $\det(S - \lambda I) = (1-\lambda)^2 - 4 = 0 \implies \lambda \in {3, -1}$.
Because $S$ has a negative eigenvalue ($\lambda = -1$), the objective $f(x) = x_1^2 + 4x_1 x_2 + x_2^2$ is an indefinite saddle form and is unbounded below along direction $x = (1, -1)^\top$.
Summary Matrix
| Properties of $S = \frac{1}{2}(Q+Q^\top)$ | Condition on $c$ | Existence of Minimum | Solution Set | Optimal Value $f^*$ |
|---|---|---|---|---|
| $S \succ 0$ | Any $c \in \mathbb{R}^n$ | Exists (Unique) | ${-\frac{1}{2} S^{-1} c}$ | $-\frac{1}{4} c^\top S^{-1} c$ |
| $S \succeq 0$, Singular | $c \in \text{range}(S)$ | Exists (Infinite) | $-\frac{1}{2} S^+ c + \text{null}(S)$ | $-\frac{1}{4} c^\top S^+ c$ |
| $S \succeq 0$, Singular | $c \notin \text{range}(S)$ | Unbounded ($-\infty$) | $\emptyset$ | $-\infty$ |
| $S \nsucceq 0$ (Negative $\lambda$) | Any $c \in \mathbb{R}^n$ | Unbounded ($-\infty$) | $\emptyset$ | $-\infty$ |
Common Interview Pitfalls
- Forgetting to Symmetrize: Writing $\nabla f(x) = 2Qx + c$ or assuming $Q \succeq 0$ is required. The gradient is $(Q + Q^\top)x + c$, and only $S = \frac{1}{2}(Q+Q^\top)$ dictates geometry.
- Ignoring the Linear Term in Singular Cases: Claiming $S \succeq 0$ alone guarantees a finite minimum. If $S$ has a zero eigenvalue, $c$ must be orthogonal to the corresponding eigenvector; otherwise, $f(x) \to -\infty$ along that direction.
- Omitting the Pseudoinverse: Stating $x^* = -\frac{1}{2}S^{-1}c$ without addressing singular $S$ misses the affine subspace of minimizers.