Haesun Park
hpark@cc.gatech.edu
Lecture 14
Solving LS
A = U V
U1
U2
"
1
0
0
0
V1
V2
=
=
T
T
U V x b = U (U V x b)
2
2
T
T
V x U b
2
8
>
>
<
>
>
:
V1T
V2T
Letting V T x =
T
U b=
"
1
0
0
U1T
U2T
#"
y
z
b=
"
x=
nr
mr
#
# "
c 1 y c
d
d
"
y
z
where y = 1
1 c and z can be anything. (if rank(A) = n, z is null).
!
y
= V1 y + V2 z
xLS = V1 V2
z
Note V2 z null(A).
When z = 0, xLS = V
"
1
1 c
0
Example
7
7
7
7
7 T
7V
7
7
7
5
= 3,
3
x
7
x 7
5.
x
2 2
6 6
6 4
=V 6
4
2 "
6
=V 4
1014
0
#"
32
3 3
x
76
7 7
54 x 5 7
7
5
x
x
x
# 3
7
5
0
Determine numerical rank can be difficult. Usually we find a large gap.
2
3
1
6
7
101
6
7
6
7
102
6
7 no gap?
6
7
3
6
7
10
4
5
..
.
=
=
=
=
krk2 = kU
0
d
U V T xLS b
!
!
1 0
y
U
U
0 0
z
!
1 y c
U
d
!
0
U
d
k2 = kdk2 .
CSE/MATH 6643: Numerical Linear Algebra p.6/12
c
d
a1
ak =
k
P
"
an
R
0
i
#
h
q1
Q1
Q2
qn
"
2
i6
6
4
r11
= Q1 R
..
.
r1n
.. 7
7
. 5
rnm
i=1
m1 T
R (A) = z R
|z w = 0 for w R(A)
1 k n where A =
a1
an
,Q=
q1
qn
6
Eg. A = 6
4
Consider QRD of A
7
1 7
5.rank(A) = 2.
1
2
6
A = QR = 6
4
32
1
1
1
76
76
54
7
1 7
5
1
Although rank(A) = 2, we dont have Range(A) = span {qi , qj : i 6= j}. QRD with
C.P. can help us to maintain span {a1 , , ak } = span {q1 , , qk } in rank deficient
case.
B
R=@
R11
0
|{z}
(n r) r
R12
0
|{z}
(n r) (n r)
1
C
A
"
R
0
6
= Q6
4
R11
T x =
y
z
"
11
T
x b =
R12
R12
nr
R11
6
6
kAx bk2 =
4 0
R12
Letting
"
R11
R12
"
R11
kAx bk2 = Q
, QT b =
R12
0
0
6
7
7 A = Q 6
4
5
"
We can choose
mr
"
# "
#
7
y
c
=
7
z
d
7 T
7 .
5
#
T
T
x Q b
,
!
R11 y + R12 z c
so that
z
R11 y + R12 z c = 0 R11 y = c R12 z