Lecture Week 13a (Supplementary) : - Constrained Optimisation
Lecture Week 13a (Supplementary) : - Constrained Optimisation
• Constrained Optimisation
1
Constrained Optimization
In many applications it is necessary to find the
maximum or minimum values of a quadratic
form Q(x) for the set of x given by kxk = 1.
≤ 9x2 2
1 + 9x2 + 9x3
2
= 9(x2 2 2
1 + x2 + x3 )
=9
So the maximum value of Q(x) = 9. This is
the case when x = (1, 0, 0). The matrix for
this quadratic form is
9 0 0
A = 0 4 0 .
0 0 2
The largest eigenvalue is 9 and the correspond-
ing eigenvector is v1 = x = (1, 0, 0).
Q(x) = 9x2 2 2
1 + 4x2 + 2x3
≥ 2x2 2 2
1 + 2x2 + 2x3
= 2(x2 2 2
1 + x2 + x3 )
= 2,
so the minimum value of Q(x) = 2. This value
is achieved when x = (0, 0, 1). Recall:
9 0 0
A = 0 4 0 .
0 0 2
The smallest eigenvalue is 2 and the corre-
sponding eigenvector is v3 = x = (0, 0, 1).
3
Constrained Optimization
kxk = 1
The values of Q(x) satisfy 3 ≤ Q(x) ≤ 7.
4
Constrained Optimization
m = min{xT Ax : kxk = 1}
M = max{xT Ax : kxk = 1}.
Then M is the greatest eigenvalue λ1 of A and
m is the smallest eigenvalue λn of A.
xT x = 1, xT u1 = 0
is the second greatest eigenvalue λ2 and this
maximum is attained when x is an eigenvector
u2 corresponding to λ2.
5
Constrained Optimization
9x2
1 + 4x 2 + 3x2
2 3
subject to the constraints xT x = 1 and xT u1 =
0, where u1 = (1, 0, 0).
9x2 2 2 2 2
1 + 4x2 + 3x3 = 4x2 + 3x3
≤ 4x2
2 + 4x 2
3
= 4(x2 2
2 + x3 )
= 4.
Therefore the constrained maximum does not
exceed 4.
Example: If
" #
4 11 14
A=
8 7 −2
then the transformation x → Ax maps the unit
sphere {x : kxk = 1} in R3 onto an ellipse in
R2 .
8
The Singular Value Decomposition
Also,
9
The Singular Value Decomposition
We calculate AT A
4 8 " # 80 100 40
4 11 14
AT A = 11 7 100 170 140 .
8 7 −2
14 −2 40 140 200
The eigenvalues of this matrix are λ1 = 360,
λ2 = 90, λ3 = 0. The corresponding unit
eigenvectors are:
1/3 −2/3 2/3
2/3 , v2 = −1/3 , v3 = −2/3 .
v1 =
2/3 2/3 1/3
The maximum value of kAx||2 is 360, attained
when x is the unit vector v1.
10
The Singular Value of Matrix A
" # 1/3 " #
4 11 14 3
Av2 = 2/3 = .
8 7 −2 −9
2/3
This point is on the minor axis of the ellipse.
12
The Singular Value of Matrix A
Proof: We have:
Proof (cont’d):
For any y in Col A we have y = Ax, where
x = c1v1 + . . . + cnvn
and so
y = Ax
= c1Av1 + . . . + cr Avr
+ cr+1Avr+1 + . . . + cnAvn
= c1Av1 + . . . + cr Avr
+ cr+10 + . . . + cn0.
Therefore y is in Span{Av1, . . . , Avr } which means
that the set {Av1, . . . , Avr } is an orthogonal ba-
sis for Col A.
14
The Singular Value Decomposition
Now let
U Σ = [σ u1 . . . σr ur 0 . . . 0] = AV,
that is,
AV = U Σ.
But V is an orthogonal matrix, so V T V = I
and
AV V T = U ΣV T ,
and so
A = U ΣV T .
17
The Singular Value Decomposition
Example: Construct a singular value decom-
position of A:
" #
4 11 14
A= .
8 7 −2
Solution: Step 1: Construct an orthogonal
diagonalization of AT A
18
The Singular Value Decomposition
Step 2: The singular values of A are:
√ √ √ √
σ1 = 360 = 6 10, σ2 = 90 = 3 10, σ3 = 0.
The nonzero values are diagonal values of D:
" √ #
6 10 √0
D= ,
0 3 10
" √ #
6 10 √0 0
Σ = [D0] = .
0 3 10 0
Step 3: Construct U . When A has rank r
the first r columns of U are normalized vectors
obtained from Av1, . . . , Avr . A has two nonzero
singular values so rank A = 2 and
kAv1k = σ1, kAv2k = σ2.
Thus the columns of U are
" # " √ #
1 1 18 3/√10
u1 = Av1 = √ =
σ1 6 10 6 1/ 10
" # " √ #
1 1 3 1/ √10
u2 = Av2 = √ = .
σ2 3 10 −9 −3/ 10
The set {u1, u2} is already a basis for R2. No
additional vectors are needed for U and
U = [u1 u2].
19
The Singular Value Decomposition
A = U ΣV T
1 2 2
3 3 3
√3 √1
" √ #
10 10 6 10 0 0
−2
=
√ −1 2
0 3 10 0 3 3 3
1
√ −3
√
10 10
2 −2 1
3 3 3
20
The Singular Value Decomposition
21
The Singular Value Decomposition
Singular values of A:
√ √
σ1 = 18 = 3 2, σ2 = 0.
Since there is only one nonzero singular value
the matrix D is of order 1 × 1:
√
D = (3 2).
4/ 2 0
22
The Singular Value Decomposition
The only column found for U so far is therefore
Av1 1/3
u1 = √ = −2/3 .
3 2 2/3
The other columns must be found by extending {u1 } to
an orthogonal basis for R3 .
Solution is
2 −2
w1 = 1 , w2 = 0 .
0 1
23
The Singular Value Decomposition
The result is
√ √
2/√5 −2/√ 45
u2 = 1/ 5 , u3 = 0/√45
.
0 5/ 45
Therefore U = [u1 u2 u3] and the singular value
decomposition takes the form
√ √ √
1/3 2/√5 −2/√ 45 3 2 0
A = −2/3 1/ 5 4/√45 0 0 ×
2/3 0 5/ 45 0 0
" √ √ #
1/√2 −1/√ 2
1/ 2 1/ 2
24
Bases for Fundamental Subspaces
Let A be an m × n matrix;
u1, . . . , um be the left singular vectors;
v1, . . . , vn be the right singular vectors;
σ1, . . . , σr be the singular values;
r be the rank of A;
Then
{u1, . . . , ur }
is an orthonormal basis for Col A (Thrm 68).
Also recall that (Col A)⊥ = N ul T
A , and so
{ur+1, . . . , um}
is an orthonormal basis for N ul T
A .
√ √
1/3 2/
√ 5 −2/√ 45
−2/3 , u2 = 1 5/ , u3 = 0/√45
u1 =
2/3 0 5/ 45
" √ # " √ #
1/ √2 1/√2
v1 = , v2 = .
−1/ 2 1/ 2
26
The Singular Value Decomposition
The singular value decomposition of A is
A = U ΣV T .
We can write this as
T
σ1 . . . 0 0 v1
0 ... 0 0 0
A = [u1 . . . um]
..
0 0 σr 0 .
0 0 0 0 T
vn
= σ1u1v1 T + σ u vT + . . . + σ u vT .
2 2 2 r r r
Notes: