Docsity

Unauthorized Assistance - Matrix Methods - Solved Exam, Exams of Mathematical Methods

Toggle sidebar
bg1
APPM 3310: Matrix Methods — Exam #2 Solutions — November 5, 2010
Problem 1. (30 points) Consider the matrix F=
1 2 −1 1
2 4 6 3
0 0 −8 0
(a) (10 pts) Find a basis for the kernel of F. Show all work.
(b) (10 pts) Is the range of F a point, a line, a plane or all of R3? Justify your answer.
(c) (10 pts) Find a basis for the cokernel of F. Show all work.
Solution:
(a) We solve Fx=0,
1 2 −1 1 0
2 4 6 3 0
0 0 −8 0 0
→
1 2 −1 1 0
0 0 8 1 0
0 0 −8 0 0
→
1 2 −1 1 0
0 0 8 1 0
0 0 0 1 0
⇒
x+ 2y−z+w= 0
8z+w= 0
w= 0
(free variable) y=y
so,
x
y
z
w
=
−2y
y
0
0
⇒ker(F) = span
−2
1
0
0
(b) Note that rank(F) = 3 and so by the Fundamental Theorem of Linear Algebra we have that
dim(range(F)) = 3 and so the range is all of R3.
(c) Note that rank(F) = 3 and Fis 3 ×4 so by the Fundamental Theorem of Linear Algebra we
have dim(coker(F)) = 3 −3 = 0 and so coker(F) = {0}.
Problem 2. (40 points) Show all work.
(a) (10 pts) Suppose Fis 10×10 positive definite matrix. Show that Fhas positive determinant.
(b) (10 pts) Suppose Mis 6 ×6 positive definite matrix. Show that the trace of Mis positive.
(c) (Section 001) (10 pts) Let Bbe a positive definite n×nmatrix, show that hx,yi=xTBy
defines an inner product for any x,y∈Rn.
(c) (Section 002) (10 pts) Does hu,vi=u1v1−2u2v1−2u1v2+ 5u2v2define an inner product
in R2. Why or why not?
(d) (10 pts) True or False: kwk≤kvk+kv+wk. Justify your answer for the general case.
Solution:
(a) Since F is positive definite we can write F=LDLTwhere Lis special lower triangular and
Dis a diagonal matrix with positive diagonal terms. Now, det(F) = det(L) det(D) det(LT) =
det(D) = d11d22 ·· ·d10,10 >0. So Fhas a positive determinant.
(b) Note that Mpositive definite implies xTMx>0 for any x6=0, so we have mii =eT
iMei>0
for i= 1,...,6, and so tr(M) = m11 +· ·· +m66 >0, thus Mhas positive trace.
(c) This is an inner product:
Symmetry: Note that xTByis a scalar so hx,yi=xTBy= (xTBy)T=yTBx=hy,xi
pf3

Partial preview of the text

Download Unauthorized Assistance - Matrix Methods - Solved Exam and more Exams Mathematical Methods in PDF only on Docsity!

APPM 3310: Matrix Methods — Exam #2 Solutions — November 5, 2010

Problem 1. (30 points) Consider the matrix F =

(a) (10 pts) Find a basis for the kernel of F. Show all work. (b) (10 pts) Is the range of F a point, a line, a plane or all of R^3? Justify your answer. (c) (10 pts) Find a basis for the cokernel of F. Show all work.

Solution:

(a) We solve F x = 0 ,

x + 2y − z + w = 0 8 z + w = 0 w = 0 (free variable) y = y so, (^) 

  

x y z w

− 2 y y 0 0

 ⇒^ ker(F^ ) = span

(b) Note that rank(F ) = 3 and so by the Fundamental Theorem of Linear Algebra we have that dim(range(F )) = 3 and so the range is all of R^3.

(c) Note that rank(F ) = 3 and F is 3 × 4 so by the Fundamental Theorem of Linear Algebra we have dim(coker(F )) = 3 − 3 = 0 and so coker(F ) = { 0 }.

Problem 2. (40 points) Show all work.

(a) (10 pts) Suppose F is 10×10 positive definite matrix. Show that F has positive determinant. (b) (10 pts) Suppose M is 6 × 6 positive definite matrix. Show that the trace of M is positive. (c) (Section 001) (10 pts) Let B be a positive definite n × n matrix, show that 〈x, y〉 = xT^ By defines an inner product for any x, y ∈ Rn. (c) (Section 002) (10 pts) Does 〈u, v〉 = u 1 v 1 − 2 u 2 v 1 − 2 u 1 v 2 + 5u 2 v 2 define an inner product in R^2. Why or why not? (d) (10 pts) True or False: ‖w‖ ≤ ‖v‖ + ‖v + w‖. Justify your answer for the general case.

Solution:

(a) Since F is positive definite we can write F = LDLT^ where L is special lower triangular and D is a diagonal matrix with positive diagonal terms. Now, det(F ) = det(L) det(D) det(LT^ ) = det(D) = d 11 d 22 · · · d 10 , 10 > 0. So F has a positive determinant.

(b) Note that M positive definite implies xT^ M x > 0 for any x 6 = 0 , so we have mii = eTi M ei > 0 for i = 1,... , 6, and so tr(M ) = m 11 + · · · + m 66 > 0, thus M has positive trace.

(c) This is an inner product:

Symmetry: Note that xT^ By is a scalar so 〈x, y〉 = xT^ By = (xT^ By)T^ = yT^ Bx = 〈y, x〉

Bilinearity: Note,

〈c 1 x 1 + c 2 x 2 , y〉 = (x 1 + c 2 x 2 )T^ By = (c 1 xT 1 + c 2 xT 2 )By = c 1 xT 1 By + c 2 xT 2 By = c 1 〈x 1 , y〉 + c 2 〈x 2 , y〉

thus the inner product is linear and this, combined with symmetry, implies the inner product is bilinear.

Positivity: Note that 〈x, x〉 = xT^ Bx ≥ 0 for x ≥ 0 with xT^ Bx = 0 if and only if x = 0 since B is positive definite.

(c)Yes. 〈u, v〉 = uT^ Kv,

where K =

. K is positive definite, so 〈u, v〉 is an inner product.

(d) True. ‖w‖ = ‖w + v + (−v)‖ ≤ ‖w + v‖ + ‖ − v‖ = ‖w + v‖ + ‖v‖.

Problem 3. (30 points) P =

x y z

 (^) ∈ R^3 : x − y − 2 z = 0

is a plane in R^3.

(a) Find an orthonormal basis of P.

(b) Find the point in P that is closest to b =

 (^) and the distance using the methods

and techniques of this class only.

Solution: (a) Solving the equation yields that

x = t

 (^) + l

 (^) , t, l, ∈ R,

which implies

is a basis of P.

Applying the Gram-Schmidt process,

v 1 =

v 2 =

Normalizing each vector yields an orthonormal basis  

(b) Every point in the plane can be written as Ac where A =

 (^) and c =

c 1 c 2

. The

squared distance is of the form ‖Ac − b‖^2 = cT^ Kc − 2 xT^ f + C where K = AT^ A =