Professional Documents
Culture Documents
Vandenberghe
EE133A
4/29/15
Midterm Exam
Name:
UID#:
Problem
Problem
Problem
Problem
Total
1
2
3
4
/25
/25
/25
/25
/100
Formulas
Inner product, norm, angle.
Relation between inner product, norms, and angle:
aT b = kak kbk cos (a, b).
Average value of elements of an n-vector: avg(a) = (1T a)/n.
where a
= a avg(a)1.
a
T b
k
akkbk
where a
= a avg(a)1 and b = b avg(b)1.
Complexity of basic matrix and vector operations ( is a scalar, x and y are n-vectors, A is
an m n matrix, B is an n p matrix).
Inner product xT y: 2n 1 flops ( 2n flops for large n).
Vector addition x + y: n flops.
Scalar-vector multiplication x: n flops.
Scalar-matrix multiplication A: mn flops.
Matrix-vector multiplication Ax: m(2n 1) flops ( 2mn flops for large n).
Matrix-matrix multiplication AB: mp(2n 1) flops ( 2mpn flops for large n).
Pseudo-inverses.
Pseudo-inverse of left invertible matrix A: A = (AT A)1 AT .
Pseudo-inverse of right invertible matrix A: A = AT (AAT )1 .
Complexity of forward or back substitution with triangular n n matrix: n2 flops.
Complexity of matrix factorizations.
QR factorization of m n matrix: 2mn2 flops.
LU factorization of n n matrix: (2/3)n3 flops.
A=
A11 0
0
A21 A22 0
0 A32 A33
..
..
..
.
.
.
0
0
0
0
0
0
0
0
0
..
.
0
0
0
..
.
0
0
0
..
.
0
0
0
An2,n2
0
0
An1,n2 An1,n1
0
0
An,n1 Ann
A=
I
BT
B I
is nonsingular and that the following two expressions for its inverse are correct:
I 0
B T
1
A =
+
(I + BB T )1 B I ,
0 0
I
A
=
0 0
0 I
+
I
B
(I + B T B)1
I B T
3. Now assume B has orthonormal columns. Use the result in part 2 to formulate a simple
method for solving Ax = b. What is the complexity of your method? If you know several
methods, give the most efficient one.
Answer for problem 3.
Problem 4. We have defined the pseudo-inverse of a right invertible matrix B as the matrix
B = B T (BB T )1 .
Note that B B is a symmetric matrix. It can be shown that B is the only right inverse X of B
with the property that XB is symmetric.
1. Assume A is a nonsingular n n matrix and b is an n-vector. Show that the n (n + 1)
matrix
B= A b
is right invertible and that
X=
A1 A1 by T
yT
1
AT A1 b.
1 + kA1 bk2
10