Midterm 1 Sample Solution
Midterm 1 Sample Solution
Name:
Please answer each question in the space provided. You need to write full solutions.
Answers without justification will not be graded. Cross out anything the grader should
ignore and circle or box the final answer.
(b) Let v and w be two nonzero vectors in R4 . Then v and w are linearly independent
if only if v is not a scalar multiple of w.
Solution:
(a) True
(b) True
(c) True
(d) False
(e) False
(f) False (a linear system can never have precisely two solutions.)
Question 2. (10 pts)
Solve the following linear system
2x1 + 2x2 − 3x3 + x4 + 13x5 = 0
x + x + x + x − x = 0
1 2 3 4 5
3x1 + 3x2 − 5x3 + 14x5 = 0
6x1 + 6x2 − 2x3 + 4x4 + 16x5 = 0
Solution: use elementary row operations and keep track of how the determinant
changes. (I skip the details here. You need to show the steps on the test.)
2 1 2 1
3 0 1 1
= 20
−1 2 −2 1
−3 2 3 1
Question 4. (10 pts)
Determine whether the following matrix is nonsingular. If yes, find its inverse.
1 2 3 1
3 7 7 4
2 4 5 1
2 4 4 1
apply elementary row operations to determine whether the matrix on the left is row
equivalent to the identity matrix or not. If yes, then the resulting matrix on the
right will be the inverse.
1 0 0 0 9 −2 −9 8
0 1 0 0 −5 1 4 −3
0 0 1 0 0 0 1 −1
0 0 0 1 2 0 −2 1
So the inverse is
9 −2 −9 8
−5 1 4 −3
0 0 1 −1
2 0 −2 1
Question 5. (10 pts)
Determine whether the following are subspaces.
(a) Let P2 be the vector space of all polynomials with degree equal to or less than 2. Is
W = {p ∈ P2 | p(1) = 0}
a subspace of P2 ?
Solution:
(1) Given two polynomials p1 (x) and p2 (x) in W , that is, p1 (1) = 0 and p2 (1) =
0. We have
(p1 + p2 )(1) = p1 (1) + p2 (1) = 0.
So (p1 + p2 )(x) is in W .
(2) Given a polynomial p(x) in W , that is, p(1) = 0, and α ∈ R. We have
(αp)(1) = α · p(1) = 0.
So (αp)(x) is in W .
So W is a subspace of P2 .
α(x, y, z)
is a vector in S.
So S is a subspace of R3 .
Question 6. (10 pts)
4
5
6 lies in the linear span of the vectors
Determine whether x =
−1
1 0 1
3 4 −2
v1 = 2 , v2 = −1 and v3 = 1 .
5 2 3
This is a nonsingular matrix. (You need to show the actual work here!) So
v1 , v2 , v3 are linearly independent.
(2) Do v1 , v2 , v3 span R3 ? That is, we need to determine whether every vector in
a
R3 can be written as a linear combination of v1 , v2 , v3 . Given any vector b ,
c
consider the linear system
1 −2 1 a
2 1 0 b
3 0 1 c
1 −2 1
Since 2 1 0 is nonsingular, this linear system always have a unique solu-
3 0 1
a
tion. In other words, any vector b can be written as a linear combination of
c
v1 , v2 , v3 . So v1 , v2 , v3 span R3 .
(a) For example, since we know the dimension of R3 is 3, once we show that the
three vectors v1 , v2 , v3 are linearly independent, this forces v1 , v2 , v3 to span R3 .
In other words, in this particular question, we only need to show that v1 , v2 , v3
are linearly independent. This is enough to conclude that v1 , v2 , v3 form a basis.
(b) Yet another way, since we know the dimension of R3 is 3, once we show that the
three vectors v1 , v2 , v3 span R3 , this forces v1 , v2 , v3 to be linearly independent.
In other words, in this particular question, we only need to show that v1 , v2 , v3
span R3 . This is enough to conclude that v1 , v2 , v3 form a basis.
Question 8. (10 pts)
Let P2 be the vector space of all polynomials of degree equal to or less than 2. Determine
whether the following polynomials in P2
p1 (t) = t − 1
p2 (t) = t + 1
p3 (t) = (t − 1)2
are linearly independent or not.
(1) First method: prove that (t − 1), (t + 1) and (t − 1)2 are linearly independent
and span P2 (t).
(2) Second method: prove that (t − 1), (t + 1) and (t − 1)2 are linearly independent
and use the fact dim P2 (t) = 3.
(3) third method: prove that (t − 1), (t + 1) and (t − 1)2 span P2 (t) and use the fact
dim P2 (t) = 3.
(AB)−1 = B −1 A−1 .