Skip to main content

Section 7.3 Constrained Optimization

Handout 7.3 Constrained Optimization

Example 7.31.

Consider the quadratic form
\begin{equation*} Q(\vec x)=9x_1^2 + 4x_2^2 + 3x_3^2\text{.} \end{equation*}
Find the largest and smallest values of \(Q(\vec x)\) under the constraint that \(\|\vec x\| = 1\text{.}\)
A coloring of the unit sphere which represents the values of Q from the previous example, where blue means low values and red means high values.
Suppose we wish to find the maximum and minimum values of
\begin{equation*} Q(\vec x)=\vec x^{\,T}A\vec x \end{equation*}
subject to the constraint \(\|\vec x\|=1\text{.}\)
That is, we want
\begin{equation*} m=\min\{Q(\vec x)\mid \|\vec x\|=1\},\qquad M=\max\{Q(\vec x)\mid \|\vec x\|=1\}. \end{equation*}
This is an example of a constrained optimization problem. We are also interested in where these extreme values are attained.
These problems are straight-forward when \(Q(\vec x)\) has no cross-product terms. What about when it does have cross-product terms?

Example 7.32.

Calculate the maximum and minimum values of
\begin{equation*} Q(\vec x)=x_2^2 + 2x_1x_3. \end{equation*}
where \(\vec x\in\mathbb{R}^3\) and \(\|\vec x\|=1\text{.}\) Identify the points where these values are obtained.
The image below is the unit sphere whose surface is colored according to the quadratic form from ExampleΒ 7.32. Notice the agreement between our solution and the image.
A coloring of the unit sphere which represents the values of Q from the previous example, where blue means low values and red means high values.

Example 7.34.

Calculate the maximum value of \(Q(\vec x)=\vec x^{\,T}A\vec x\text{,}\) with \(\vec x\in\mathbb{R}^3\text{,}\) subject to the constraint \(\|\vec x\|=5\text{.}\) Identify a point where this maximum is obtained.
\begin{equation*} Q(\vec x)=x_2^2 + 2x_1x_3. \end{equation*}

Example 7.36.

Calculate the maximum and minimum values of
\begin{equation*} Q(\vec x)=\vec x^T A \vec x = x_1^2 + x_2^2 + x_3^2 + 6x_1x_2\text{,} \end{equation*}
with \(\vec x\in\mathbb{R}^3\text{,}\) subject to \(\|\vec x\|=1\) and \(\vec x\cdot\vec u_1=0\text{,}\) where
\begin{equation*} A = \begin{bmatrix} 1 \amp 3 \amp 0 \\ 3 \amp 1 \amp 0 \\ 0 \amp 0 \amp 1 \end{bmatrix} \quad \text{and} \quad \vec u_1=\begin{bmatrix}1\\1\\0\end{bmatrix}\text{.} \end{equation*}
Identifu points where the maximum and minimum values occur. The eigenvalues of \(A\) are \(\lambda = 4, 1, -2\text{.}\)