Docsity

Linear Algebra Exam Answer Key: Vectors, Matrices, Inverses, Exams of Linear Algebra

Toggle sidebar
bg1
Answer Key for Exam #1
1. The lengths of
1
1
1
0
1
and
1
1
1
2
1
are √12+ 12+ 12+ 02+ 12=√4 = 2 and √12+ 12+ 12+ 22+ 12=
√8 = 2√2 respectively. The dot product of the vectors is 1 + 1 + 1 + 0 + 1 = 4, so the angle θbetween them
satisfies cos θ=4
2·2√2=1
√2. Therefore θ=π
4, or 45◦.
2. We use elimination on an augmented matrix. First two steps: subtract the first row from the second, and
three times the first row from the third. Next two steps: multiply the second row by −1, and then add twice
the second row to the third. This gives
1 4 5 3
128 −5
382 −45
−→
1 4 5 3
0−2 3 −8
0−4−13 −54
−→
1 4 5 3
0 2 −3 8
0 0 −19 −38
.
The third equation gives x3= 2. Then the second equation becomes 2x2−6 = 8 or x2−3 = 4, so x2= 7.
Finally the first equation becomes x1+ 28 + 10 = 3, so x1=−35.
3(a) Step 1: subtract twice the first row of Afrom the others. Step 2: subtract twice the new second row
from the new third row. This gives
A=
2 1 2
4 4 5
4 6 9
−→
2 1 2
0 2 1
0 4 5
−→
2 1 2
0 2 1
0 0 3
=U.
Step 1 puts 2’s in the second and third rows of column 1 of L, and step 2 puts a 2 in the third row of column
2 of L, so L=
1 0 0
2 1 0
2 2 1
and A=LU.
3(b) We may now solve A~x =
6
18
18
in two steps. First we solve L~y =~
b, which in this case is
1 0 0
2 1 0
2 2 1
y1
y2
y3
=
6
18
18
,
and we get y1= 6; 12 + y2= 18, so y2= 6; and 12 + 12 + y3= 18, so y3=−6. Then we solve U~x =~y,
which in this case is
2 1 2
0 2 1
0 0 3
x1
x2
x3
=
6
6
−6
.
Here we have x3=−2; 2x2−2 = 6 so x2= 4; and 2x1+ 4 −4 = 6 so x1= 3.
3(c) We have to reduce [L I] to £I L−1¤by row operations, which is not too hard:
100 100
210 010
221 001
−→
100 100
010 −2 1 0
021 −2 0 1
−→
1 0 0 1 0 0
0 1 0 −2 1 0
0 0 1 2 −2 1
.
pf3
pf4

Partial preview of the text

Download Linear Algebra Exam Answer Key: Vectors, Matrices, Inverses and more Exams Linear Algebra in PDF only on Docsity!

Answer Key for Exam #

  1. The lengths of

and

are

12 + 1^2 + 1^2 + 0^2 + 1^2 =

4 = 2 and

12 + 1^2 + 1^2 + 2^2 + 1^2 =

2 respectively. The dot product of the vectors is 1 + 1 + 1 + 0 + 1 = 4, so the angle θ between them

satisfies cos θ =

. Therefore θ = π 4 , or 45◦.

  1. We use elimination on an augmented matrix. First two steps: subtract the first row from the second, and three times the first row from the third. Next two steps: multiply the second row by −1, and then add twice the second row to the third. This gives

 

The third equation gives x 3 = 2. Then the second equation becomes 2x 2 − 6 = 8 or x 2 − 3 = 4, so x 2 = 7. Finally the first equation becomes x 1 + 28 + 10 = 3, so x 1 = −35.

3(a) Step 1: subtract twice the first row of A from the others. Step 2: subtract twice the new second row from the new third row. This gives

A =

 = U.

Step 1 puts 2’s in the second and third rows of column 1 of L, and step 2 puts a 2 in the third row of column

2 of L, so L =

 (^) and A = LU.

3(b) We may now solve A~x =

 (^) in two steps. First we solve L~y = ~b, which in this case is

y 1 y 2 y 3

and we get y 1 = 6; 12 + y 2 = 18, so y 2 = 6; and 12 + 12 + y 3 = 18, so y 3 = −6. Then we solve U~x = ~y, which in this case is (^) 

x 1 x 2 x 3

Here we have x 3 = −2; 2x 2 − 2 = 6 so x 2 = 4; and 2x 1 + 4 − 4 = 6 so x 1 = 3.

3(c) We have to reduce [L I] to

[

I L−^1

]

by row operations, which is not too hard:  

Finding U −^1 is a little more work because not all the pivots are 1. I’ll try to avoid fractions:  

Therefore L−^1 =

 (^) and U −^1 = 1 12

3(d) Since A = LU and L and U are both invertible, we have A−^1 = (LU )−^1 = U −^1 L−^1. Therefore

A−^1 =

  1. We have ( 1 2 3 4

and

so you might guess that A−^1 =

, and once guessed this is easy to check:

 =^ I.

Alternatively we can use row operations to reduce [A I] to

[

I A−^1

]

. I’ll try to avoid fractions: subtract three times the first row from the second, and multiply the fourth row by 5 to get   

Next add the second row to the first, and subtract 7 times the third row from the fourth:   

The last key step is to add three times the fourth row to the third. Let’s also multiply the first row by 2 and the second row by −1:   

If this is going to equal

0 0 0 0

then we must have

(iii) a^3 + bc(2a + d) = 0 d^3 + bc(a + 2d) = 0

(iv) b(a^2 + ad + d^2 + bc) = 0 c(a^2 + ad + d^2 + bc) = 0

The analysis of these is similar to that of (i) and (ii), but somewhat harder. If (iv) holds we must have either a^2 + ad + d^2 + bc = 0 or both b = 0 and c = 0. If b and c are both zero then (iii) implies a^3 = 0 = d^3 , so

that a and d are both zero also. In this case we certainly have A^2 =

0 0 0 0

since we have A =

0 0 0 0

The harder case is a^2 + ad + d^2 + bc = 0. We could rewrite this as a^2 + 2ad + d^2 = ad − bc, when it says that the determinant is the square of the trace. But we could also rewrite it as −bc = a^2 + ad + d^2 and substitute it into one of the equations in (iii). This gives

a^3 = −bc(2a + d) = (a^2 + ad + d^2 )(2a + d) = 2a^3 + 3a^2 d + 3ad^2 + d^3 , or a^3 + 3a^2 d + 3ad^2 + d^3 = 0.

But this is equivalent to (a + d)^3 = 0, which can only mean that a + d = 0. So the trace of A must be zero, and above we had that the determinant was the square of the trace, so it must be zero too. The discussion

of A^2 then implies that A^2 =

0 0 0 0

. Alternatively, once we know that a + d = 0 then we can simplify the

equation a^2 + ad + d^2 + bc by using d = −a; it becomes a^2 − a^2 + a^2 + bc = 0, which is just a^2 + bc = 0. Since d = −a we also have d^2 + bc = 0, so both of the equations in (i) are satisfied, as are both of the equations

in (ii) since a + d = 0. Thus we have again that A^2 =

0 0 0 0

There are a couple of other ways to do this which involve less brute force. If A^3 =

0 0 0 0

then A can’t

be invertible—if it was we could hit this equation with A−^1 three times and get I =

0 0 0 0

, which is a

contradiction. If A is 2 × 2 and not invertible then the second row of A must be a multiple of the first, so

A =

ac ad bc bd

( (^) a b

( c d ) for some a, b, c, d. Then

A^2 =

a b

( c d )

a b

( c d ) =

a b

(ac + bd)( c d ) = (ac + bd)A.

Therefore A^3 = (ac + bd)A^2 = (ac + bd)^2 A. Now if A^3 =

0 0 0 0

then either ac + bd = 0 or A =

0 0 0 0

, and

in either case we have A^2 =

0 0 0 0

. The key equation A^2 = (ac + bd)A could also have been obtained from

something we proved in class once: if A is 2 × 2, then A^2 = (tr A)A − (det A)I, where det A denotes the determinant of A (zero in this case) and tr A denotes the trace of A (which is ac + bd in this case).

6(b) There are lots of 3 × 3 matrices A that work. To construct one large family of examples consider

A =

( (^0) u 0 v 0 w 0 x 0

. Then

A^2 =

uv 0 uw 0 uv + wx 0 vx 0 wx

 (^) and A^3 =

0 u^2 v + uwx 0 v(uv + wx) 0 w(uv + wx) 0 uvx + wx^2

 (^) = (uv + wx)A.

If u, v, w, x are any four numbers such that uv + wx = 0 but at least one of uv, uw, vx, wx is not zero, then

A^3 =

 6 = A^2.

Perhaps the simplest example is u = 1 = w, v = 0 = x, in which case

A =

 (^) and A^2 =

 (^) and A^3 =