Docsity

Vectors - Linear Algebra - Solved Exam, Exams of Linear Algebra

Toggle sidebar
bg1
Answer Key for Exam #1
1. The vectors
3
0
4
1
1
3
and
1
1
1
4
4
1
each have have length 6:
p32+ 02+ 42+ 12+ +12+ 32= 6 = p12+ 12+ 12+ 42+ 42+ 12.
Their dot product is 3 + 0 + 4 + 4 + 4 + 3 = 18, so the angle θbetween them satisfies cosθ=18
6·6=1
2.
Therefore θ=π
3, or 60◦.
2. We use elimination on an augmented matrix. First two steps: subtract twice 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
five times the second row to the third. This gives
1 2 3 10
2 3 1 7
3 1 2 19
−→
1 2 3 10
0−1−5−13
0−5−7−11
−→
1 2 3 10
0 1 5 13
0 0 18 54
.
The third equation gives x3= 3. Then the second equation becomes x2+ 15 = 13, so x2=−2. Finally the
first equation becomes x1−4 + 9 = 10, so x1= 5.
3. The inverse of ³2 3
3 4 ´is
1
2·4−3·3µ4−3
−3 2 =µ−4 3
3−2,
and the inverse of ³3 4
4 5 ´is
1
3·5−4·4µ5−4
−4 3 =µ−5 4
4−3,
so you might guess that A−1=
−4 0 0 3
0−5 4 0
0 4 −3 0
3 0 0 −2
, and once guessed this is easy to check. Alternatively
we can use row operations to reduce [A I] to £I A−1¤. I’ll try to avoid fractions: subtract the first row
from the fourth, and the second row from the third to get
2003 1000
0340 0100
0450 0010
3004 0001
−→
2 0 0 3 1 0 0 0
0 3 4 0 0 1 0 0
0 1 1 0 0 −110
1 0 0 1 −1 0 0 1
.
Next, subtract twice the fourth row from the first, and three times the third row from the second:
2 0 0 3 1 0 0 0
0 3 4 0 0 1 0 0
0 1 1 0 0 −110
1 0 0 1 −1 0 0 1
−→
0 0 0 1 3 0 0 −2
0 0 1 0 0 4 −3 0
0 1 1 0 0 −1 1 0
1 0 0 1 −1 0 0 1
.
Now subtract the second row from the third and the first row from the fourth:
0 0 0 1 3 0 0 −2
0 0 1 0 0 4 −3 0
0110 0−1 1 0
1001 −1 0 0 1
−→
0 0 0 1 3 0 0 −2
0 0 1 0 0 4 −3 0
0 1 0 0 0 −5 4 0
1 0 0 0 −4 0 0 3
.
pf3
pf4

Partial preview of the text

Download Vectors - Linear Algebra - Solved Exam and more Exams Linear Algebra in PDF only on Docsity!

Answer Key for Exam #

  1. The vectors

and

each have have length 6:

32 + 0^2 + 4^2 + 1^2 + +1^2 + 3^2 = 6 =

12 + 1^2 + 1^2 + 4^2 + 4^2 + 1^2.

Their dot product is 3 + 0 + 4 + 4 + 4 + 3 = 18, so the angle θ between them satisfies cos θ =

Therefore θ = π 3 , or 60◦.

  1. We use elimination on an augmented matrix. First two steps: subtract twice 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 five times the second row to the third. This gives  

The third equation gives x 3 = 3. Then the second equation becomes x 2 + 15 = 13, so x 2 = −2. Finally the first equation becomes x 1 − 4 + 9 = 10, so x 1 = 5.

  1. The inverse of

2 3 3 4

is 1 2 · 4 − 3 · 3

and the inverse of

3 4 4 5

is 1 3 · 5 − 4 · 4

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 A−^1

]

. I’ll try to avoid fractions: subtract the first row from the fourth, and the second row from the third to get   

Next, subtract twice the fourth row from the first, and three times the third row from the second:   

Now subtract the second row from the third and the first row from the fourth:   

If we now switch the first and fourth rows, and also the second and third rows, we get A−^1 as before.

4(a) Step 1: subtract the first row of A from all the others. Step 2: subtract twice the second row from the third, and three times the second row from the fourth. Step 3: subtract three times the third row from the fourth. This gives

A =

 =^ U.

Step 1 puts 1’s in the second through fourth rows of column 1 of L; step 2 puts 2 and 3 respectively in the third and fourth rows of column 2; and step 3 puts a 3 in the fourth row and third column of L, so

L =

,^ U^ =^ LT^ , and^ A^ =^ LU^ =^ LLT^.

4(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 y 4

and we get y 1 = 1; 1 + y 2 = 8, so y 2 = 7; 1 + 14 + y 3 = 27, so y 3 = 12; and 1 + 21 + 36 + y 4 = 64 so y 4 = 6. Finally we solve U~x = ~y, which in this case is

  

x 1 x 2 x 3 x 4

Here we have x 4 = 6; x 3 + 18 = 12 so x 3 = −6; x 2 − 12 + 18 = 7 so x 2 = 1; x 1 + 1 − 6 + 6 = 1 so x 1 = 0.

4(c) Here we have to reduce [L I] to

[

I L−^1

]

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

So L−^1 =

, and U −^1 =

LT^

L−^1

)T

so U −^1 =

which implies that a^2 + b^2 = a^2 + c^2 , ac + bd = ab + cd and c^2 + d^2 = b^2 + d^2. The first and third of these equations tell us that b^2 = c^2 , so b = ±c. We can rewrite the second equation as

0 = ac + bd − ab − cd = a(c − b) + d(b − c) = (a − d)(c − b),

so either b = c or a = d. There are then two possibilities to satisfy all the equations: either b = c; or a = d and b = −c. If b = c then A is symmetric, in which case it is obvious that AAT^ = AT^ A since both sides equal A^2. If a = d and b = −c then A looks like

( a −c c a

This would be a rotation matrix if a^2 + c^2 = 1, but a^2 + c^2 won’t be 1 in general. However, it will equal some nonnegative number, which we might as well call r^2 for some nonnegative r. Then we have

( (^) a r

( (^) c r

so ( ar , cr ) is a point on the unit circle, and therefore there is an angle θ such that ar = cos θ and cr = sin θ. Then (^) ( a −c c a

= r

cos θ − sin θ sin θ cos θ

where r =

a^2 + c^2 , cos θ = a r

, and sin θ = c r

Therefore A is a multiple of a rotation matrix.

Scores: The median and mean were both 88.

Score Frequency Score Frequency Score Frequency 98 1 91 2 85 2 95 2 89 1 83 2 94 1 88 3 78 1 93 2 87 1 76 1 92 2 86 1 75 1