Professional Documents
Culture Documents
Orthogonal decomposition
Ellipsoids
c1 x 1 + · · · + cn x n = c T x
T
x1 q11 . . . q1n x1
.. .. . . . . T
=. . . .. .. = x Qx
xn qn1 . . . qnn xn
11-2
Quadratic forms
Example: 4x 2 + 6xy − 2yz + y 2 − z 2
T
x 4 6 0 x
y 0 1 0 y
z 0 −2 −1 z
T
x 4 p2 q2 x p1 + p2 = 6
In general: y p1 1 r2 y q1 + q2 = 0
z q1 r1 −1 z r1 + r2 = −2
T
x 4 3 0 x
Symmetric: y 3 1 −1 y
z 0 −1 −1 z
11-3
Quadratic forms
Therefore:
x T Rx = 1
x T Rx + x T R T x = x T 12 (R + R T )x
2
11-4
Orthogonal decomposition
Q = UΛU T
11-5
Orthogonal matrices
A matrix U is orthogonal if U T U = I .
11-6
Orthogonal matrices
11-7
Orthogonal matrices
Orthogonal matrices preserve angle and (2-norm) distance:
11-8
Orthogonal matrix example
Rotation matrices are orthgonal:
cos θ sin θ
Rθ =
− sin θ cos θ
We can verify this:
T cos θ − sin θ cos θ sin θ
Rθ Rθ =
sin θ cos θ − sin θ cos θ
2
cos2 θ + sin θ cos θ sin θ − sin θ cos θ
=
sin θ cos θ − cos θ sin θ sin2 θ + cos2 θ
1 0
=
0 1
11-9
Eigenvalues and eigenvectors
If A ∈ Rn×n and there is a vector v and scalar λ such that
Av = λv
11-10
Recap: symmetric matrices
Every symmetric Q = Q T ∈ Rn×n has n real eigenvalues λi .
There exist n mutually orthogonal eigenvectors u1 , . . . , un :
λ1 · · · 0
Q = U ... . . . ... U T
0 · · · λn
11-11
Eigenvalue example
Consider the quadratic: 7x 2 + 4xy + 6y 2 + 4yz + 5z 2 .
A simple question: are there values that make this negative?
T
x 7 2 0 x
equivalent to: y 2 6 2 y
z 0 2 5 z
Orthogonal decomposition:
1 2 T
2 2
−3 3 0 0 − 13 2
7 2 0 3 3 3 3
2 6 2 = 32 − 13 2
0 6 0 32 − 13 2
3 3
0 2 5 − 32 − 23 1
0 0 9 − 23 − 23 1
3 3
11-12
Eigenvalue example
Eigenvalue decomposition:
1 2 T
2 2
−3 3 0 0 − 13 2
7 2 0 3 3 3 3
2 6 2 = 2 − 1
2
0
2
6 0 3 − 13 2
3 3 3 3
0 2 5 − 32 − 23 1
0 0 9 − 23 − 23 1
3 3
7x 2 + 4xy + 6y 2 + 4yz + 5z 2 = 3p 2 + 6q 2 + 9r 2
where:
p = − 31 x + 23 y − 23 z
2
q= 3
x − 31 y − 23 z
2
r= 3
x + 23 y + 31 z
11-14
Recap
Question: Is x T Qx ever negative?
11-15
Positive definite matrices
1. x T Qx ≥ 0 for all x ∈ Rn
2. all eigenvalues of Q satisfy λi ≥ 0
11-16
Positive definite matrices
Some properties:
If P 0 then −P 0
If P 0 and α > 0 then αP 0
If P 0 and Q 0 then P + Q 0
Every R = R T can be written as R = P − Q for some
appropriate choice of matrices P 0 and Q 0.
11-17
Ellipsoids
11-18
Ellipsoids
11-19
Ellipsoids
Plot of the region
3p 2 + 6q 2 + 9r 2 ≤ 1
7x 2 + 4xy + 6y 2 + 4yz + 5z 2 ≤ 1
1/2
2
Therefore: x T Qx ≤ b ⇐⇒
Q x
≤ b
11-21