Professional Documents
Culture Documents
PDM 1
PDM 1
Chia-Ping Chen
Professor
Department of Computer Science and Engineering
National Sun Yat-sen University
Linear Algebra
1/36
Outline and Notation
2/36
Chen P Positive Definite Matrix
Quadratic Function and Matrix
3/36
Chen P Positive Definite Matrix
Quadratic Function of Multiple Variables
4/36
Chen P Positive Definite Matrix
Representation with a Symmetric Matrix
A quadratic function of n variables can be represented by
a symmetric matrix of order n × n.
n
P
Construction of matrix. For f (x1 , . . . , xn ) = cij xi xj ,
i,j=1
define matrix A with aij = 12 (cij + cji ). Note aij = aji so A is
symmetric. Furthermore, aij + aji = cij + cji , so
n n
aij xi xj = xT Ax
X X
f (x1 , . . . , xn ) = cij xi xj =
i,j=1 i,j=1
6/36
Chen P Positive Definite Matrix
Positivity of Eigenvalues
7/36
Chen P Positive Definite Matrix
Positive Eigenvalues
Proof.h Suppose
i A is positive definite. For every k, consider
T T
x = xk 0 with xk ∈ Rk . For a non-zero xk , we have
T
x 6= 0, and
" #" #
h i Ak B xk
xT Ax = xTk 0T = xTk Ak xk > 0
BT C 0
1 A is positive definite.
2 Every eigenvalue of A is positive.
3 The determinant of every leading principal sub-matrices
of A is positive.
4 A has full positive pivots.
1 ⇔
2
and
1 ⇒
3 ⇒
4 ⇒
1
12/36
Chen P Positive Definite Matrix
Example
2 −1 0
A = −1 2 −1
0 −1 2
xT QΛQT x = y T Λy = λi yi2 = 1
X
15/36
Chen P Positive Definite Matrix
Approximation and Extremal Points
16/36
Chen P Positive Definite Matrix
First-order Approximation
where ∂f (x)
∂x1
.
∇f (x) = .
.
∂f (x)
∂xn
17/36
Chen P Positive Definite Matrix
Second-order Approximation
18/36
Chen P Positive Definite Matrix
Stationary Point
19/36
Chen P Positive Definite Matrix
Example
Find the second-order approximation near x0 = 0 to
" ∂f (x) # " # ∂ ∂f (x) ∂ ∂f (x)
∂x 4x + 4y ∂x ∂x ∂y ∂x
∇f (x) = ∂f (x) = , H(x) = ∂ ∂f (x) ∂ ∂f (x)
∂y
4x + 2y ∂x ∂y ∂y ∂y
" #
4 4
f (0) = 0, ∇f (0) = 0, H(0) =
4 2
1
f (x) ≈ f (0) + (x − 0)T H(0)(x − 0) = 2x2 + 4xy + y 2
2
20/36
Chen P Positive Definite Matrix
Example
Find the second-order approximation near x0 = 0 to
22/36
Chen P Positive Definite Matrix
Optimality of a Stationary Point
23/36
Chen P Positive Definite Matrix
Singular Value Decomposition
24/36
Chen P Positive Definite Matrix
Singular Value and Singular Vector
25/36
Chen P Positive Definite Matrix
Positivity of Singular Value
26/36
Chen P Positive Definite Matrix
Number of Singular Values
n − (n − r) = r
A = U ΣV T
U = u1 . . . , V = v 1 . . .
um vn
29/36
Chen P Positive Definite Matrix
Proof of SVD 2
We show U T AV = Σ which leads to SVD A = U ΣV T . For
j = 1 . . . r, we have uj = Av
σj
j
, so Av j = σj uj and
(U T AV )ij = uTi Av j = 0, i = 1, . . . , m
U T AV = Σ
Hence
A = U ΣV T
30/36
Chen P Positive Definite Matrix
Matrices in SVD
The eigenvalues of
1 −1 0
T
A A = −1 2 −1
0 −1 1
33/36
Chen P Positive Definite Matrix
Orthonormal eigenvectors of AT A are
1 −1 1
1 1 1
v 1 = √ −2 , v 2 = √ 0 , v 3 = √ 1
6 1 2 1 3 1
So
1
− √26 √1
# "√ √
− √12 √1
" #
3 0 0 61 6
A = U ΣV T = 2 − √ 0 √1
√1 √1 0 1 0 2 2
2 2 √1 √1 √1
3 3 3
34/36
Chen P Positive Definite Matrix
SVD as a Sum of Rank-1 Matrices
By SVD
A = U ΣV T = σ1 u1 v T1 + · · · + σr ur v Tr
= A1 + · · · + A r
36/36
Chen P Positive Definite Matrix