Practice Final Exam Linear Algebra

advertisement
BU CAS Mathematics 142 (Spring, 2012)
Introduction to Linear Algebra
Practice Final Exam
Linear Algebra
Thursday, May 3, 2012
You will have 120 minutes to complete the final exam. You will be permitted to use a
two-sided 8.5 in. × 11 in. sheet filled with any information you choose to include.
Your solutions must show all work and include justifications.
NAME
Problem #1
Problem #2
Problem #3
Problem #4
Problem #5
Problem #6
Problem #7
Total
10
10
10
10
20
20
20
100
Problem #8
10
Extra Credit
10
Problem 1. (10 pts.)
n a b o
Let
,
be an orthonormal basis. If a =
c
d
We know that the following are true:
a
·
c
a
c
b
d
√
3
2
b
= 0
d
= 1
= 1
Thus, we have:
ab + cd = 0
a2 + c 2 = 1
b2 + d 2 = 1
This implies that:
c = 1−
√ 3 2
2
1
= ±
2
Since we must have c + d > 0, we let c = 12 , so:
√
1
3
b+ d = 0
2
2
1
2
√
3
d = ±
2
b = ±
√
Since we want c + d > 0, we let d =
3
2
√
and b = −
3
.
2
√
and c + d >
3−1
,
2
find b, c, and d.
Problem 2. (10 pts.)




1
−2
Find two unit vectors orthogonal to both  3  and  1 .
−1
0
It is sufficient

 to find the one-dimensional space that is the orthogonal complement of
−2 o
n 1



3
1  , and then to find the two unit vectors in that space.
span
,
−1
0
Any vector in the orthogonal complement is
  
x
 y ·
z
  
x
 y ·
z
a solution to the system:

1
3  = 0
−1

−2
1  = 0
0
This underdetermined system can be rewritten in terms of a single variable x:
x + 3y − z
−2x + y
y
z
=
=
=
=
0
0
2x
x + 3y = x + 6x = 7x
Thus, if we set x = 1, the orthogonal complement is:

 

 
−2 o⊥
n 1 o
n 1
= span  2  .
span  3  ,  1 
0
7
−1
 
1 √
Since  2  = 3 6, the two unit vectors are:
7
 1  

1
√
√
−
 3√2 6   − 3√2 6 
 3 6 , 3 6 .
7
√
− 3√7 6
3 6
Problem 3. (10 pts.)
Let M be a matrix and let f (v) = M · v be a linear transformation. For each part below,
find any definition for M that satisfies the specified property of f .
(a) Find any M such that f ∈ R2 → R3 and dim(im(f )) = 1.
It is sufficient to find any matrix M ∈ R3×2
vectors. For example:

1

M= 2
3
that has two linearly dependent column

1
2 .
3


n 1 o
(b) Find any M such that f ∈ R3 → R3 and im(f ) = span  −1  .
2
It is sufficient to find any matrix M ∈ R3×3 that has three linearly dependent column
vectors in the specified span. For example:


1
1
1
M =  −1 −1 −1  .
2
2
2
  

−1 o
n 2
(c) Find any M such that (ker(f ))⊥ = span  1  ,  0  .
3
2
If g(v) = M > v, then (ker(f ))⊥ = im(g), so we can simply let:


2 −1
2 1 3
>


M = 1 0
M=
.
−1 0 2
3 2
(d) Find any M such that f is surjective but not injective. You must show that f is
surjective and provide two explicit inputs that show it is not injective.
It is sufficient to find any matrix M that maps a vector space V to a vector space W
such that dim(V ) > dim(W ) but im(f ) = W . For example, let V = R3 and W = R2 :
n 1 0 2 o
1 0 2
M=
span
,
,
= R2
0 1 3
0
1
3
Then, the following two vectors both map to the same vector:

  
   
−2
0
0
0
M  −3  =  0 
M 0 = 0 
1
0
0
0
Problem 4. (10 pts.)
Consider the following vector space:
V = {M | M ∈ R2×2 }.
Let f : V → V be a map defined by:
f (M ) = M > .
Show that f is a linear transformation (i.e., that f satisfies all the properties of a linear
transformation).
0 0
It is sufficient to show that f maps
0 0
and that it preserves scalar multiplication.
to
0 0
, that it preserves vector addition,
0 0
We have that:
>
0 0 0 0
f
=
0 0
0 0
0 0
=
0 0
We also have for any A, B ∈ R2×2 that:
f (A + B) = (A + B)>
= A> + B >
= f (A) + f (B)
Finally, we have for any A ∈ R2×2 and s ∈ R that:
f (s · A) = (s · A)>
= s · (A> )
= s · f (A)
Problem 5. (20 pts.)
Consider the following vector subspaces of R3 :




n 1 o
n −4 o
V = span  0 
W = span  1 
−2
2


 
20
0



15
You are in a spaceship positioned at
and a signal transmitter is positioned at 0 .
−30
0
(a) Suppose the transmitter’s signal beam only travels in two opposite directions along V .
What is the shortest distance your spaceship must travel to intercept the signal beam?
The closest interception point is the projection of the ship’s position onto V . First, we find
the unit vector that spans V :
 1 
√
 5 
u =  0 .
−2
√
5
Next, we project the spaceship’s position onto spanu using the formula (u · v) · u:
 1  
  √1 


√
20
16
5
5




p = ( 0  ·  15 ) ·  0  =  0  .
−2
−2
√
√
−30
−32
5
5
Finally, the distance is



 

4
16
20
√
√

15  −  0  =  15  = 245 = 7 5
2
−32
−30
(b) Suppose the transmitter is also rotating around the axis collinear with W . What is
the shortest distance your spaceship must travel to reach a position at which it can
intercept the signal beam?
Because the transmitter is rotating, the beam sweeps around and covers a plane that is
perpendicular to the axis of rotation. The
 closest
 interception point is the projection of the
1
ship’s position onto W ⊥ . We have that  0  is orthogonal to W . We find another vector
−2


1
orthogonal to W and  0 :
−2
−4x + y + 2z = 0
x − 2z = 0
1
z =
x
2
y = 3x
Let x = 2. Thus, we want to project the spaceship’s position onto the image of:


1 2
M =  0 6 .
−2 1
The projection is then:


20
p = M · (M > · M )−1 · M > ·  15 
−30


20
1
41 0
= M·
· M > ·  15 
·
0 5
205
−30


4280
1 
3000 
=
·
205
−6060


20
As in part (a), the distance is  15  −
−30

1
205



4280
−0.9
·  3000  ≈  0.4 .
−6060
−0.4
Problem 6. (20 pts.)
You are given the following data points:
−1
2
0
1
,
,
.
1
3
Find a polynomial of the form f (x) = ax + b that is the least squares best fit for this data.
Hint: use the formula for computing a projection onto the image of a matrix.
We are looking for an approximate solution to the overdetermined system:


 
−1 1 2
 0 1  a =  1 .
b
1 1
3


2
We project  1  onto the image of the matrix above:
3



>   

 
> 
3/2
2
−1 1 −1
−1 1
−1 1
−1 1
 0 1 ·  0 1   0 1 
·  0 1   1  =  2 .
1 1
1 1
1 1
1 1
5/2
3




2
3/2
Now, if we replace  1  with its projection  2 , the system is no longer overdetermined:
3
5/2




−1 1 3/2
 0 1  a =  2 .
b
1 1
5/2
The approximate solution is then:
1
f (x) = x + 2.
2
Problem 7. (20 pts.)
Suppose that vectors in R2 represent population quantities in two locations, f represents a
change in the quantities over the course of one year if the economy is doing well, g represents
a change in the quantities over the course of one year if the economy is not doing well, and
w is the initial state:
f (v) =
2 1
4 2
·v
g(v) =
0.1 0.2
0.4 0.3
·v
w=
100
200
If the population state is initially w, find the population state after 100 years of a good
economy and 202 years of a poor economy.
1 1
1
1
1
1
. Notice that this is
Notice that for
,f
= 4·
and g
= 2·
2
2
2
2
2
1
also true for any scalar multiple of
(we demonstrate only the case for f below):
2
1
2 1
1
f (s ·
) =
· (s ·
)
2
4 2
2
2 1
1
= s·(
·
)
4 2
2
1
= s · (4 ·
)
2
Thus, after 100 years of a good economy and 202 of a poor economy, we have:
1 202 100 100
100
200
−202
4 ·
·
= 2 ·2
·
200
200
2
100
200
−202
= 2 ·2
·
200
100
= 2−2 ·
200
25
=
50
1
Technically, 4 is an eigenvalue of f with eigenvector
and 21 is an eigenvalue of g with
2
1
eigenvector
. However, it is only necessary to realize that f and g behave like scalar
2
n 1 o
multiplies on the space span
.
2
Problem 8. (10 extra credit pts.)
Consider the following set of linear transformations:
1 0 T = {f | f : R → R , f is a linear transformation, f
=
}.
−1
0
2
2
We introduce the following definitions; let f, g ∈ T and s ∈ R:
0
O = h where h(v) =
0
f ⊕ g = h where h(v) = f (v) + g(v)
s ⊗ f = h where h(v) = s · f (v)
(a) Show that with the additive identity O, vector addition operation ⊕, and scalar multiplication operation ⊗ defined above, T is a vector space (it is sufficient to show that
the appropriate membership and closure properties are satisfied).
(b) Show that φ : T → R2 is a linear transformation if it is defined as:
1 φ(f ) = f
.
−1
Download