


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Answer Key for Exam #
and
are
4 = 2 and
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◦.
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
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
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
and
so you might guess that A−^1 =
, and once guessed this is easy to check:
Alternatively we can use row operations to reduce [A I] to
. 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 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
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
Perhaps the simplest example is u = 1 = w, v = 0 = x, in which case
(^) and A^2 =
(^) and A^3 =