Docsity

Midterm Exam 3 - Linear Algebra | MATH 2270, Exams of Linear Algebra

Toggle sidebar
bg1
Math 2270-1 Midterm 3, March 27, 2009
Solutions
Problem 1 (20 points).Consider the vectors
u=
1
1
1
1
,v=
−1
1
1
1
in R4. Find
a) their lengths kukand kvk;
b) the angle θbetween uand v.
Solution: We have
kuk=√12+ 12+ 12+ 12=√4 = 2
and
kvk=p(−1)2+ 12+ 12+ 12=√4 = 2.
Moreover,
cos θ=u·v
kukkvk=1
4(1(−1) + 12+ 12+ 12) = 1
2.
Hence, the angle θis 60 degrees.
Problem 2 (20 points).Consider the linear transformation from R3
into R3given by the matrix
A=1
3
2−2 1
1 2 2
2 1 x
.
Find
a) xsuch that this matrix is orthogonal;
b) in this case, find A−1.
Solution: The third column has to be orthogonal to the first one.
Hence
2 + 2 + 2x= 0
and x=−2. Clearly, now third column is also orthogonal to the second
one, since (−2) + 2 ·2 + (−2) = 0. Moreover, the lengths of all three
columns are equal to 1 and the matrix is orthogonal.
1
pf3

Partial preview of the text

Download Midterm Exam 3 - Linear Algebra | MATH 2270 and more Exams Linear Algebra in PDF only on Docsity!

Math 2270-1 Midterm 3, March 27, 2009

Solutions

Problem 1 (20 points). Consider the vectors

u =

, v =

in R

4

. Find

a) their lengths ‖u‖ and ‖v‖;

b) the angle θ between u and v.

Solution: We have

‖u‖ =

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

and

‖v‖ =

(−1)^2 + 1^2 + 1^2 + 1^2 =

Moreover,

cos θ =

u · v

‖u‖‖v‖

2

  • 1

2

  • 1

2 ) =

Hence, the angle θ is 60 degrees.

Problem 2 (20 points). Consider the linear transformation from R

3

into R

3 given by the matrix

A =

2 1 x

Find

a) x such that this matrix is orthogonal;

b) in this case, find A

− 1 .

Solution: The third column has to be orthogonal to the first one.

Hence

2 + 2 + 2x = 0

and x = −2. Clearly, now third column is also orthogonal to the second

one, since (−2) + 2 · 2 + (−2) = 0. Moreover, the lengths of all three

columns are equal to 1 and the matrix is orthogonal.

1

2

Since the inverse of an orthogonal matrix is equal to its transpose,

we have

A

− 1

Problem 3 (20 points). Find the matrix A of the orthogonal projection

onto the line in R

4 spanned by the vector

u =

Solution: We have

A = uu

T

[

]

Problem 4 (20 points). Find the determinant ∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣

1 − 1 − 1 1

1 1 − 1 − 1

1 1 1 1

1 − 1 1 − 1

using Gauss elimination.

Solution: By subtracting the first row from second, third and fourth

we get (^) ∣

∣ ∣ ∣ ∣ ∣ ∣ ∣ 1 − 1 − 1 1

1 1 − 1 − 1

1 1 1 1

1 − 1 1 − 1

Now, by subtracting second row from the third one, we get

∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣ 1 − 1 − 1 1

1 1 − 1 − 1

1 1 1 1

1 − 1 1 − 1

finally, by subtracting the third row from the fourth one, we get ∣ ∣ ∣ ∣ ∣ ∣ ∣ ∣

1 − 1 − 1 1

1 1 − 1 − 1

1 1 1 1

1 − 1 1 − 1