Practice 5
Practice 5
1 True/False
In this section A is an n × n matrix.
2. T F Two vectors are linearly independent if one is not a scalar multiple of the other.
5. T F If λ is an eigenvalue for A, then the eigenvectors with eigenvalue λ are scalar multiples of each
other.
False. This would mean the eigenvectors, i.e., ker(λI − A) is a line, but it could be a plane or higher
dimensional.
6. T F If A = P DP −1 , then A3 = P 3 D3 P −3 .
False. A3 = P D3 P −1 .
1
9. T F There is a linear transformation T : R2 → R2 whose image is the same as its kernel.
10. T F The set of all even degree polynomials (including 0) is a vector space.
False. It’s not closed under addition, e.g., let p(x) = x2 + x + 1 and q(x) = −x2 . Then p(x) + q(x) =
x + 1.
True. Since the size of S is the dimension of Rn , this means S is a minimal spanning set, which is
equivalent to being a basis.
True.
True, by Rank-Nullity.
2 Short Answer
16. State the definition for a subset S = {v1 , . . . , vk } of a vector space to be linearly independent.
2
20. State three things linear algebra has applications to.
This is a bit of a trick question, but in a good way, since linear algebra is so fundamental, pretty much
any 3 fields you write down will be okay. Some things we mentioned in class are engineering (solving
systems of equations), physics (linear motions, solving systems of equations), computer graphics (ani-
mating rotations), robotics (computing robot joint rotations), dynamical systems (population models),
search engines (Google pagerank), sports rankings.
Note that the dynamical systems applications include applications to almost any field—e.g., chemical
reactions, economic changes, etc.
26. Give an example of a 3 × 3 matrix with only 2 eigenvalues which is not diagonalizable.
1 1 0
0 1 0. This has two eigenvalues, 1 and 2, but you can check it does not have a basis of
0 0 2
eigenvectors. The idea here was to use the example from #2 in a 3 setting. Also note that if D
is a diagonal matrix, the diagonal entries are just the eigenvalues. More generally if A is an upper
triangular matrix, i.e.,
a b c
A = 0 d e
0 0 f
then the eigenvalues are just the diagonal entries a, d, f , and one can show that A is diagonalizable
if and only if b, c, e are all 0. A similar statement is true for lower triangular matrices, and these
statement hold true for n × n matrices in general.
3
27. Give an example of a 3 × 3 matrix with 2 eigenvalues which is diagonalizable.
3 Problems
28. Find all solutions to the following system of equations:
−2x + y + z = 1
x+z =0
x + y − 2z = −1.
which means the system has precisely one solution: (x, y, z) = (−1/3, 0, 1/3).
No, for many reasons. The most obvious one is that is does not contain the origin (i.e., the zero
vector).
1 1 −1
30. (i) Show T = 1 , −1 , 1 is a basis for R3 .
−1 1 1
1
(ii) If v = 1 , find [v]T .
−1
1
(iii) If [v]T = 1 , find v.
−1
(iv) If S is the standard basis, find the transition matrices PS←T and PT ←S .
(i) It has the right number of elements, so just check they are LI, e.g., reduce
1 1 −1 | 0
1 −1 1 | 0
−1 1 1 | 0
4
to get
1 0 0 | 0
0 1 0 | 0 .
0 0 1 | 0
1
(ii) Since v is the first element in the basis T , we have [v]T = 0.
0
3
(iii) Here v is the sum of the first two vectors in T minus the third, i.e., v = −1.
−1
1 1 −1
(iv) PT ←S = 1 −1 1 . Since PS←T = PT−1 ←S , we reduce
−1 1 1
1 1 −1 | 1 0 0
1 −1 1 | 0 1 0
−1 1 1 | 0 0 1
to get
1 0 0 | 1/2 1/2 0
0 1 0 | 1/2 0 1/2 .
0 0 1 | 0 1/2 1/2
1/2 1/2 0
Thus PS←T = 1/2 0 1/2 .
0 1/2 1/2
1 −1 1 1
−1 1 1 −1
31. Let A = .
1 −1 −1 1
−1 1 −1 −1
(i) FInd a basis for the image of A.
(ii) Find a basis for the kernel of A.
(iii) Find rank(A) and nullity(A).
5
(ii) Solving Av =0from our
row reduction above gives (x, y, z, w) with y, w free, z = 0 and x−y+w = 0,
y − w
y
so the kernel is , and we can take a basis to be
0
w
1 −1
1 , 0 .
0 0
0 1
1 2 3 4 1
2 4 1 3 1
32. Let A =
4
. Show v = is an eigenvector for A.
2 3 1 1
3 1 4 2 1
Just compute the matrix product Av and see you get v, so 10 · v is an eigenvector with eigenvalue 10.
0 0 −2
33. Let A = 0 −2 0 .
−2 0 3
(i) Find the eigenvectors and eigenvalues of A.
(ii) Diagonalize A, i.e., write A = P DP −1 for some diagonal matrix D.
See p. 465. The only thing that’s not done is explicitly writing A = P DP −1 . Here we should have
0 −1 2
P = PS←T = 1 0 0
0 2 1
and we compute
0 1 0
1
P −1 = −1 0 2 .
5
2 0 −1
6
Let S be the standard basis for R3 , and T = {v1 , v2 , v3 }. Then
1 0 0
A = [A]S = PS←T [A]T PT ←S = P 0 1 0 P −1
0 0 −1
where
1 0 1
P = PS←T = 0 1 1
−1 −1 1
and
2 −1 −1
1
P −1 = −1 2 −1 .
3
1 1 1
So we compute
1 0 0
1
A= −2 1 −2 .
3
−2 −2 1
You can double check your matrix A by verifying Av1 = v1 , Av2 = v2 and Av3 = v3 . I recommend
doing this on the exam.
with initial conditions x(0) = 2, y(0) = 1. Find explicit formulas for x(t) and y(t).
Rewrite this as
x(t + 1) 1 2 x(t)
= .
y(t + 1) 4 3 y(t)
1 2
The eigenvalues for A = are λ1 = −1 and λ2 = 5 with eigenvectors {cv1 : c 6= 0} and
4 3
1 1
{cv2 : c 6= 0}, where v1 and v2 . Let S be the standard basis and T = {v1 , v2 }. Then
−1 2
1 1
P = PS←T =
−1 2
and
1 2 −1
P −1 = .
3 1 1
−1 −1 0
Then A = P DP where D = so
0 5
(−1)t
t
5 + (−1)t
x(t) t x(0) t −1 2 1 1 1 0 2 −1 2
=A = PD P = = .
y(t) y(0) 1 3 −1 2 0 5t 1 1 1 2 · 5t − (−1)t
7
36. Suppose v is an eigenvector for an n × n matrix A with eigenvalue λ.
(i) Show cv is also an eigenvector with eigenvalue λ for any c 6= 0.
(ii) Show v is also eigenvector for A2 with eigenvalue λ2 .