Docsity

Midterm Exam 2 with Solution - Linear Algebra | MATH 21, Exams of Linear Algebra

Toggle sidebar
bg1
Math 21, Midterm Two Solutions (Green)
Spring 2009
Written by: Matthew Kayden Krauel
May 24, 2009
1. Let W=a11 a12
a21 a22: 2a11 −a12 = 0. Is Wa subspace of M22?
Proof. First note that 0 0
0 0is in W, and therefore Wis nonempty. Next, let b11 b12
b21 b22and c11 c12
c21 c22
be arbitrary elements in Wso that 2b11 −b12 = 0 and 2c11 −c12 = 0. Since
b11 b12
b21 b22+c11 c12
c21 c22=b11 +c11 b12 +c12
b21 +c21 b22 +c22,
and 2(b11 +c11)−(b12 −c12) = 2(b11 −b12) + 2(c11 −c12 ) = 0 + 0 = 0, we have that the sum of these two
matrices is again an element of W. Thus, Wis closed under addition. Next, for any k∈Rwe find
kb11 b12
b21 b22=kb11 kb12
kb21 kb22 .
Again, since 2(kb11)−(k b12) = k(2b11 −b12 ) = k(0) = 0, we have that Wis closed under scalar multiplication.
Therefore, Wis a subspace of M22.
2. Let W=a0+a1x+a2x2+a3x3:a0a3= 0. Is Wa subspace of P3?
Proof. Note that the polynomials 1 = 1 + 0x+ 0x2+ 0x3and x3= 0 + 0x+ 0x2+ 1x3are elements in W.
However, 1 + x3is not an element in Wsince (1)(1) = 1 6= 0. Therefore, Wis not closed under addition and
we conclude Wis not a subspace of P3.
3. Let W=x+ 3y2x+ 7y
3x+ 2y4x+ 3y:x, y ∈R.
(a) Find Aand Bin M22 such that W= Span {A, B }.
(b) Show Aand Bare linearly independent.
Proof.
(a) First note that
x+ 3y2x+ 7y
3x+ 2y4x+ 3y=x1 2
3 4+y3 7
2 3.
Therefore, since every element in Wis of the form x+ 3y2x+ 7y
3x+ 2y4x+ 3ywith x, y ∈R, we can write
any element in Was a linear combination of the two elements 1 2
3 4and 3 7
2 3. Therefore,
W= Span 1 2
3 4,3 7
2 3.
1
pf3
pf4

Partial preview of the text

Download Midterm Exam 2 with Solution - Linear Algebra | MATH 21 and more Exams Linear Algebra in PDF only on Docsity!

Math 21, Midterm Two Solutions (Green)

Spring 2009

Written by: Matthew Kayden Krauel

May 24, 2009

  1. Let W =

a 11 a 12 a 21 a 22

: 2a 11 − a 12 = 0

. Is W a subspace of M 22?

Proof. First note that

is in W , and therefore W is nonempty. Next, let

b 11 b 12 b 21 b 22

and

c 11 c 12 c 21 c 22

be arbitrary elements in W so that 2b 11 − b 12 = 0 and 2c 11 − c 12 = 0. Since ( b 11 b 12 b 21 b 22

c 11 c 12 c 21 c 22

b 11 + c 11 b 12 + c 12 b 21 + c 21 b 22 + c 22

and 2(b 11 + c 11 ) − (b 12 − c 12 ) = 2(b 11 − b 12 ) + 2(c 11 − c 12 ) = 0 + 0 = 0, we have that the sum of these two matrices is again an element of W. Thus, W is closed under addition. Next, for any k ∈ R we find

k

b 11 b 12 b 21 b 22

kb 11 kb 12 kb 21 kb 22

Again, since 2(kb 11 )−(kb 12 ) = k(2b 11 −b 12 ) = k(0) = 0, we have that W is closed under scalar multiplication. Therefore, W is a subspace of M 22.

  1. Let W =

a 0 + a 1 x + a 2 x^2 + a 3 x^3 : a 0 a 3 = 0

. Is W a subspace of P 3?

Proof. Note that the polynomials 1 = 1 + 0x + 0x^2 + 0x^3 and x^3 = 0 + 0x + 0x^2 + 1x^3 are elements in W. However, 1 + x^3 is not an element in W since (1)(1) = 1 6 = 0. Therefore, W is not closed under addition and we conclude W is not a subspace of P 3.

  1. Let W =

x + 3y 2 x + 7y 3 x + 2y 4 x + 3y

: x, y ∈ R

(a) Find A and B in M 22 such that W = Span {A, B}.

(b) Show A and B are linearly independent.

Proof.

(a) First note that (^) ( x + 3y 2 x + 7y 3 x + 2y 4 x + 3y

= x

  • y

Therefore, since every element in W is of the form

x + 3y 2 x + 7y 3 x + 2y 4 x + 3y

with x, y ∈ R, we can write

any element in W as a linear combination of the two elements

and

. Therefore,

W = Span

(b) Recall

and

are linearly independent if, and only if, the only solution to

a

  • b

a + 3b 2 a + 7b 3 a + 2b 4 a + 3b

is when a = b = 0. In other words, only a = b = 0 satisfy the equations a + 3b = 0, 2a + 7b = 0, 3 a + 2b = 0, and 4a + 3b = 0. Placing these equations into a homogeneous augmented matrix and putting into row-reduced echelon form, we find    

−rref−→

Therefore, the unique solution to the above system of equations is a = b = 0, showing that the two matrices above are linearly independent. (Another Approach: Suppose

and

are linearly dependent. Then there would exist a scalar c ∈ R such that (^) ( 1 2 3 4

= c

3 c 7 c 2 c 3 c

By comparing the 1, 1-entries, we must have 1 = 3c, or c = 1/3. However, comparing the 1, 2-entries, 2 = 7c, we must also have c = 7/2. Since 1/ 3 6 = 7/2, we find there cannot exist such a c. Therefore, the two matrices must be linearly independent, as desired.)

  1. Suppose A, B, and C are 4 × 4 matrices with det(A) = 5, det(B) = −2, and null(C) =

. Find

the following determinants and briefly explain your reasoning.

(a) det(B^2 A)

(b) det(ABC)

(c) det(AT^ B−^1 )

(d) det(2A)

Proof.

(a) Since for any square matrices P and Q we have det(P Q) = det(P ) det(Q), we find det(B^2 A) = det(BBA) = det(B) det(B) det(A) = (−2)(−2)(5) = 20.

(b) First, note that since null(C) 6 = 0, C is not invertible, and therefore, det(C) = 0. Moreover, since for any square matrices P and Q we have det(P Q) = det(P ) det(Q), we find det(ABC) = det(A) det(B) det(C) = (5)(−2)(0) = 0.

(c) Since for any square matrix Q we have det(QT^ ) = det(Q) and det(Q−^1 ) = (det(Q))−^1 = 1/ det(Q) and for any square matrices P and Q we have det(P Q) = det(P ) det(Q), we find det(AT^ B−^1 ) = det(AT^ ) det(B−^1 ) = det(A)(1/ det(B)) = 5/(−2) = − 5 /2.

(d) Finally, since multiplying a row of a matrix by a scalar multiplies the determinant of that matrix by that same scalar, we have the multiplying A by 2 multiplies 4 rows by 2 and therefore, det(2A) = (2)(2)(2)(2) det(A) = 2^4 det(A) = 2^4 (5) = (16)(5) = 80.

In other words,

T 23 (5/2)T 13 (−2)T 12 (−1)B =

so that

det(B) = (det T 12 (−1))−^1 (det T 13 (−2))−^1 (det T 23 (5/2))−^1 det

using properties of the determinant. Finally, since det Tij (c) = 1 and the determinant of an upper triangular matrix is the product of its diagonal entries, we have

det(B) = (1)(1)(1) det

  1. Let f 1 = 1 − 2 x, f 2 = 1 + x + 3x^2 , f 3 = 1 − x^2. Is {f 1 , f 2 , f 3 } a linearly independent sequence of vectors in P 2?

Proof. Recall f 1 , f 2 , and f 3 are linearly independent, if and only if, the only solution to the equation af 1 + bf 2 + cf 3 = 0 is a = b = c = 0. Note, however, that this is equivalent to

af 1 + bf 2 + cf 3 = a(1 − 2 x) + b(1 + x + 3x^2 ) + c(1 − x^2 ) = (a + b + c) + (− 2 a + b)x + (3b − c)x^2 = 0.

Equating the left and right sides of the last equality above produces the equations a + b + c = 0, − 2 a + b = 0, and 3b − c = 0. Placing these equations into a homogeneous augmented matrix and putting into row-reduced echelon form, we find (^) 

 (^) −rref−→

Therefore, this system of equations has the unique solution a = b = c = 0, showing that f 1 , f 2 , and f 3 are in fact linearly independent.

  1. Let m 1 =

, m 2 =

, m 3 =

, m 4 =

. Show m 1 ∈ Span {m 2 , m 3 , m 4 } and

find the coefficients a, b, and c such that m 1 = am 2 + bm 3 + cm 4.

Proof. To show m 1 ∈ Span {m 2 , m 3 , m 4 } it suffices to find the coefficients a, b, and c such that m 1 = am 2 + bm 3 + cm 4 as this will show m 1 is a linear combination of m 2 , m 3 , and m 4. To find a, b, and c we note that we want a, b, and c such that

am 2 + bm 3 + cm 4 =

a 2 a 3 a 0

0 b 0 −b

2 c c 2 c 3 c

a + 2c 2 a + b + c 3 a + 2c −b + 3c

In other words, we need a, b, and c such that a + 2c = 1, 2a + b + c = 1, 3a + 2c = 0, and −b + 3c = 1. Placing these equations into an augmented matrix and putting in row-reduced echelon form, we find    

rref −−→

That is, a = − 1 / 2 , b = 5/4, and c = 3/4.