Beruflich Dokumente
Kultur Dokumente
2 Quadratic Forms
Let ~
x = c1~v1 + c2~v2, we can express the value
of the function as follows:
x) = ~
q(~ x = (c1~v1 + c2~v2) (c11~v1 + c22~v2)
x A~
= 1 c2 2 2 2
1 + 2 c2 = 9c1 + 4c2
Therefore, q(~
x) > 0 for all nonzero ~
x. q(0, 0) =
0 is the global minimum of the function.
Def 8.2.1 Quadratic forms
A function q(x1, x2, . . . , xn) from Rn to R is
called a quadratic form if it is a linear combina-
tion of functions of the form xixj . A quadratic
form can be written as
x) = ~
q(~ x A~ xT A~
x=~ x
for a symmetric n n matrix A.
2
Change of Variables in a Quadratic Form
x ) = 1 c2
q(~ 1 + 2 c 2 + . . . + c2 ,
2 n n
Let 1 x =
= P y, or equivalently, y = P
x
c1
..
. , if change of variable is made in a quadratic
cn
form xT Ax, then
xT Ax = (P y)T A(P y) = y T P T AP y = y T (P T AP )y
Since P orghogonally diagonalizes A, the P T AP =
P 1AP = D.
3
Classifying Quadratic Form
4
Example 3 Consider m n matrix A. Show
that the function q(~ x||2 is a quadratic
x) = ||A~
form, find its matrix and determine its definite-
ness.
Principle Axes
Solution
x) = 9x2
Q(~ 2 2 2 2 2
1 + 4x2 + 3x3 9x1 + 9x2 + 9x3
= 9(x2 2 2
1 + x2 + x3 ) = 9
whenever x2 2 2
1 + x2 + x3 = 1. Q(~
x) = 9 when
x = (1, 0, 0). Similarly,
~
x) = 9x2
Q(~ 2 2 2 2 2
1 + 4x2 + 3x3 3x1 + 3x2 + 3x3
= 3(x2
1 + x 2 + x2 ) = 3
2 3
whenever x2 1 + x 2 + x2 = 1. Q(~
2 3 x) = 3 when
x = (0, 0, 1).
~
7
THEOREM Let A be a symmetric matrix, and
define
m = min{xT Ax : k~
x} = 1}, M = max{xT Ax : k~
x} = 1}.
Proof
Orthogonally diagonalize A, i.e. P T AP = D
(by change of variable x = P y), we can trans-
form the quadratic form xT Ax = (P y)T A(P y)
into y T Dy. The constraint kxk = 1 implies
kyk = 1 since kxk2 = kP yk2 = (P y)T P y =
y T P T P y = y T (P T P )y = y T y = 1.
h i
Arrange the columns of P so that P = u1 u n
and 1 n.
8
Given
that any unit vector y with coordinates
c1
..
. , observe that
cn
y T Dy = 1c2
1 + + n c 2
n
1 c2
1 + + c
1 n
2 = kyk =
1 1
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.
xT x = 1, xT u1 = 0, ..., xT uk1 = 0
is the eigenvalue k , and this maximum is at-
tained when x = uk .
9
The Singular Value Decomposition
10
" #
4 11 14
Example If A = , then the lin-
8 7 2
ear transformation T (x) = Ax maps the unit
sphere {x : kxk = 1} in R3 into an ellipse in R2
(see Fig. 1). Find a unit vector at which kAxk
is maximized.
11
Observe that
Compute
4 8 80 100 40
T 4 11 14
A A = 11 7 = 100 170 140
8 7 2
14 2 40 140 200
12
The Singular Values of an m n Matrix
13
Example
Let A be the matrix in the last example. Since the
eigenvalues of AT A are 360, 90, and 0, the singular
values of A are
1 = 360 = 6 10, 2 = 90 = 3 10, 3 = 0
Note that, the first singular value of A is the maximum
of kAxk over all unit vectors, and the maximum is at-
tained at the unit eigenvector v1 . The second singular
value of A is the maximum of kAxk over all unit vectors
that are orthogonal to v1 , and this maximum is attained
at the second unit eigenvector, v2 . Compute
1/3
4 11 14 18
Av1 = 2/3 =
8 7 2 6
2/3
2/3
4 11 14 3
Av2 = 1/3 =
8 7 2 9
2/3
14
THEOREM Suppose that {v1, ..., vn} is an or-
thonormal basis of Rn consisting of eigenvec-
tors of AT A, arranged so that the correspond-
ing eigenvalues of AT A satisfy 1 2 n,
and suppose that A has r nonzero singular val-
ues. Then {Av1, ..., Avr } is an orthogonal basis
for im(A), and rank(A)=r.
y = Ax = A(c1v1 + + cnvn)
= c1Av1 + + cr Avr + 0 + + 0
Thus y is in Span{Av1, ..., Avr }, which shows
that {Av1, ..., Avr }is an (orthogonal) basis for
im(A). Hence rank(A)=dim im(A)=r.
15