Docsity

Linear Transformations and Matrices: Properties and Solutions, Exams of Calculus

Toggle sidebar
bg1
Math 51 — Spring 2009 — Exam II Solutions
Problem 1. (10 pts.) Let Lbe a linear transformation from
R
nto
R
k. Each of the
statements about Lbelow is either always true (“T”), or always false (“F”), or sometimes
true and sometimes false, depending on the situation (“MAYBE”). For each part, decide
which, and justify your answer completely.
Each part is 5 points: 2 for a correct answer, 3 more for correct justification.
Note: if the answer is “MAYBE,” complete justification must include two examples — one
where the statement holds true, and another where it is false. If the answer is “TRUE” or
“FALSE,” a proper justification cannot be done by giving a single example — only by giving
a proof.
a) If vectors v1,v2,...,vmare linearly independent, then the vectors
L(v1),L(v2),...,L(vm) are linearly independent as well.
T F MAYBE
As noted above, we must give two examples: one where this statement holds, and one where
it does not. There are many possibilities for each.
•Suppose n=kand L=Idn, the identity transformation; then L(v1) = v1,L(v2) = v2,
. . .,L(vm) = vmfor any choice of vectors. So if we assume v1,v2,...,vmare linearly
independent, then certainly L(v1),L(v2),...,L(vm) are independent as well.
•If we take Lto be the zero transformation (L(v) = 0for all v), then L(v1) = · · · =
L(vm) = 0, and so in this case L(v1),...,L(vm) are linearly dependent.
b) If vectors v1,v2,...,vmare linearly dependent, then the vectors
L(v1),L(v2),...,L(vm) are linearly dependent as well.
T F MAYBE
Since v1,...,vmare linearly dependent, we may find scalars c1, . . . , cm, not all equal to 0,
such that c1v1+· · · +cmvm=0. But then 0=L(0) = c1L(v1) + · · · +cmL(vm), since Lis
a linear transformation, and so L(v1),...,L(vm) are linearly dependent (because not all ci
are equal to 0).
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Linear Transformations and Matrices: Properties and Solutions and more Exams Calculus in PDF only on Docsity!

Math 51 — Spring 2009 — Exam II Solutions

Problem 1. (10 pts.) Let L be a linear transformation from Rn^ to Rk. Each of the statements about L below is either always true (“T”), or always false (“F”), or sometimes true and sometimes false, depending on the situation (“MAYBE”). For each part, decide which, and justify your answer completely.

Each part is 5 points: 2 for a correct answer, 3 more for correct justification. Note: if the answer is “MAYBE,” complete justification must include two examples — one where the statement holds true, and another where it is false. If the answer is “TRUE” or “FALSE,” a proper justification cannot be done by giving a single example — only by giving a proof.

a) If vectors v 1 , v 2 ,... , vm are linearly independent, then the vectors L(v 1 ), L(v 2 ),... , L(vm) are linearly independent as well.

T F MAYBE

As noted above, we must give two examples: one where this statement holds, and one where it does not. There are many possibilities for each.

  • Suppose n = k and L = Idn, the identity transformation; then L(v 1 ) = v 1 , L(v 2 ) = v 2 , .. ., L(vm) = vm for any choice of vectors. So if we assume v 1 , v 2 ,... , vm are linearly independent, then certainly L(v 1 ), L(v 2 ),... , L(vm) are independent as well.
  • If we take L to be the zero transformation (L(v) = 0 for all v), then L(v 1 ) = · · · = L(vm) = 0 , and so in this case L(v 1 ),... , L(vm) are linearly dependent.

b) If vectors v 1 , v 2 ,... , vm are linearly dependent, then the vectors L(v 1 ), L(v 2 ),... , L(vm) are linearly dependent as well.

T F MAYBE

Since v 1 ,... , vm are linearly dependent, we may find scalars c 1 ,... , cm, not all equal to 0, such that c 1 v 1 + · · · + cmvm = 0. But then 0 = L( 0 ) = c 1 L(v 1 ) + · · · + cmL(vm), since L is a linear transformation, and so L(v 1 ),... , L(vm) are linearly dependent (because not all ci are equal to 0).

Problem 2. (12 pts.) a) Complete the following sentence to make a true statement: A linear transformation L : Rn^ → Rm^ is invertible if and only if

(4 points) Choose your favorite one; they’re all equivalent (but be careful to note the dis- tinction between the function L and its matrix — these are different objects):

-... L is both one-to-one and onto. -... n = m and L is onto. -... n = m and L is one-to-one. -... the matrix of L with respect to the standard basis (that is, the matrix A such that L(x) = Ax for all x in Rn) has reduced row echelon form equal to In. -... the matrix of L is square and has rank n. -... the matrix of L is square and has linearly independent columns. -... the matrix of L is square and has linearly independent rows. -... the matrix of L is square and has nonzero determinant.

  • and so on... For parts (b) and (c), suppose
  • S is the linear transformation given by multiplication by the matrix A =

, and

  • T is the linear transformation given by multiplication by the matrix B =

[

]

b) Is it possible to define the composition S◦T? If so, is it invertible? Explain completely.

(4 points) S ◦ T is defined, since an output of T has the same number of components (two) as an input of S. However, it is not invertible, which we can see in two different ways.

Here is an elegant solution: note that T, being a linear transformation from R^3 to R^2 , cannot be one-to-one, since B is a matrix that must have a nontrivial null space (it has more columns than rows). Therefore the composition S ◦ T cannot be one-to-one, so it is not invertible.

Explicit solution: the matrix of S ◦ T is AB =

[

]

 (^) ; it’s

not invertible since the second row is a multiple of the third (so its determinant is 0).

c) Is it possible to define the composition T◦S? If so, is it invertible? Explain completely.

(4 points) T ◦ S is defined, since an output of S has the same number of components (three) as an input of T. The matrix of T ◦ S is the product

BA =

[

]

[

]

This matrix has non-zero determinant and is therefore invertible; thus, T ◦ S is invertible.

Problem 4. (12 pts.) Let A be an n×k matrix, where k ≤ n, whose columns are mutually orthogonal unit vectors in Rn; that is,

A =

v 1 ... vk

 (^) , where

vi · vj = 0 for all i 6 = j, and ‖vi‖ = 1 for all i

a) Show that the product AT^ A is the identity matrix, and find the size of that identity matrix.

(3 points)

AT^ A =

— vT 1 — — vT 2 — .. . — vTk —

v∣ 1 v 2 · · · vk ∣

v 1 · v 1 v 1 · v 2 · · · v 1 · vk v 2 · v 1 v 2 · v 2... v 2 · vk .. . vk · v 1 vk · v 2 · · · vk · vk

= Ik

The size of the identity matrix is k × k.

b) Let b =

[

1 2 · · · n

]T

. Use the matrices A, AT^ , and the vector b to write a solution to the system Ax = b, or show that the system does not have solutions.

(3 points) We first note that both the matrix A and the vector b have n rows; thus, it makes sense to define the linear system Ax = b, where the unknowns vector x is taken to have k components.

There can be only one solution to this system; to see this, we multiply both sides of Ax = b

by AT^ to obtain AT^ Ax = AT^ b. But by part (a), AT^ Ax = Ikx = x, so x = AT^ b.

As seen in Levandosky Chapter 9, such a solution exists if and only if b lies in the column space of A.

Notes: The most common misconception was to draw a connection between the existence of a solution and the question of A’s invertibility, and thus also to the size of the matrix A. But note that A need not be a square matrix for there to be a solution to this system; thus, the non-existence of A−^1 does not preclude a solution.

c) Give an example of such a matrix A (i.e., whose columns are mutually orthogonal unit vectors), but for which the product AAT^ is not the identity matrix.

(3 points) Many answers are possible. For example, let A =

[

]

. Then since A has only one

column vector and it’s a unit vector, it certainly satisfies the description required. We have that

AAT^ =

[

]

[

]

[

]

is not the identity matrix.

Notes: It’s impossible to give such an example if k = n. So we should consider a nonsquare matrix with more rows than columns. (And please compute AAT^ to verify your answer; don’t just write a matrix and let the grader verify its value for you.)

d) Suppose k < n; explain why the formula det(AT^ A) = det(AT^ ) det(A) fails for such a matrix A.

(3 points) Since k < n, A and AT^ are not square matrices; thus, their determinants are not defined. Therefore the equation does not hold because the right hand side is undefined.

Notes: To simply say “det(AT^ A) = det(AT^ ) det(A) fails because A and AT^ are not square matrices” didn’t receive any credit, because it’s already clear from k < n that they are not square matrices. The crux is explaining why the equation does not hold in this case.

Furthermore, the fact that A and AT^ are not square matrices does not mean their deter- minants are zero. When one says that a determinant is zero, that implies the determinant exists and is equal to zero. In the case of a non-square matrix, all one can say is something like “cannot find deteterminant” or “does not exist.”

c) What is the matrix of P with respect to the standard basis of R^3? (You may leave your answer as a product of matrices and their inverses, without calculating, but you must explicitly write the entries of the matrices that make up the parts of your product(s) or inverse(s).)

(4 points) There are two ways to solve this part. The first is by the formula for orthogonal projection onto a line; make a unit vector u in the direction of v 1 :

u =

v 1 ‖v 1 ‖

√^1 3 √^1 3 √^1 3

Then P(x) = (x · u)u, so

A =

P(e 1 ) P(e 2 ) P(e 3 )

(e 1 · u)u (e 2 · u)u (e 3 · u)u

u 1 u u 2 u u 3 u

u^21 u 1 u 2 u 1 u 3 u 1 u 2 u^22 u 2 u 3 u 1 u 3 u 2 u 3 u^23

1 3

1 3

1 3 1 3

1 3

1 3 1 3

1 3

1 3

The second way is by using part (b) and a change of basis:

A = CBC−^1 = C[P ]BC−^1 =

− 1

Notes: As the problem statement said, leaving your answer in this form was sufficient for full credit, but if you calculated C−^1 incorrectly and used it in your answer, you lost a point.

Problem 6. (10 pts.)

a) Complete the following sentence: λ is defined to be an eigenvalue of the matrix A if

(5 points) Choose any of the following; they’re all equivalent (as long as we assume A is n × n):

-... det(λIn − A) = 0. -... rank(λIn − A) < n. -... there exists a nonzero vector v ∈ Rn^ such that λv = Av.

Notes: The most common mistake in answers to this question was to give a condition such as Av = λv without stipulating that v 6 = 0. This distinction is crucial, since every scalar λ is a solution to A 0 = λ 0.

b) Let

A =

where ∗ denotes an entry of the matrix A that is not known to us. Assuming that

is an eigenvector of the matrix A, find the corresponding eigenvalue.

(5 points) We know the equation

A

 (^) = λ

must hold. It follows that 12 = 2λ, by considering the middle entry. Consequently λ = 6.

For easy reference, A =

0 a 3 0 0 2

c) Suppose a = 2; show that A is not diagonalizable. (Same hint as part (b).)

(4 points) 1 is an eigenvalue of the matrix A; the corresponding eigenvectors are the nonzero vectors satisfying

(1 · I 3 − A)v =

 (^) v = 0.

The vectors satisfying this equation are precisely those v in span(

[

]T

). Since

span(

[

]T

) is 1-dimensional, any two eigenvectors corresponding to the eigenvalue 1 are linearly dependent on each other.

2 is an eigenvalue of the matrix A; the corresponding eigenvectors are the nonzero vectors satisfying

(2 · I 3 − A)w =

 (^) w = 0.

The vectors satisfying this equation are precisely those w in span(

[

]T

). Since

span(

[

]T

) is 1-dimensional, any two eigenvectors corresponding to the eigenvalue 2 are linearly dependent on each other.

If {u 1 , u 2 , u 3 } is a set of eigenvectors of A, then at least two of the ui must correspond to the same eigenvalue, be it 1 or 2. These two vectors must be linearly dependent on each other, from which it follows that {u 1 , u 2 , u 3 } is linearly dependent, and therefore not a basis of R^3. Since A does not allow us to find an eigenbasis, A is not diagonalizable.

Notes: Failure to compute the eigenvectors correctly was the most common error. Another common family of errors stemmed from a misunderstanding about the number of different eigenvectors a matrix admits. A matrix for which we can find an eigenvectora^ v admits infinitely many eigenvectors since any nonzero multiple of v is an eigenvector. One way or another, this question is concerned with finding the biggest possible set of linearly indepen- dent eigenvectors, which is a finite set.

aIf we know complex numbers, this is any matrix; if not, it is any matrix with an eigenvalue, which includes all matrices in this question.

Problem 8. (12 pts.) Let Q(x, y, z) = x^2 + z^2 + 2xy + 6yz be a quadratic form on R^3.

a) Write the symmetric matrix A associated to the quadratic form Q.

(3 points) (^) 

b) Determine the definiteness of Q; use any method you like, but justify your answer.

(3 points) The easiest approach is to find two different points so that the values of Q at those points differ in signs. For example:

Q(1, 0 , 0) = 1 > 0 Q(1, − 1 , 0) = − 7 < 0.

Hence Q is indefinite.

Note: Some solutions just computed the determinant of A, which is −10, and claimed that since det A is negative, Q must be indefinite. This is always true for a 2 × 2 matrix, but for a 3 × 3 matrix this is not necessarily correct. (A 3 × 3 matrix corresponding to a negative definite Q would have three negative eigenvalues and thus have a negative determinant.)

But there’s a way around this obstacle in this case: you can make use of the additional fact that tr(A) is positive, and argue that (i) the eigenvalues of A cannot all be negative (for otherwise tr(A) would be negative); while on the other hand, (ii) the eigenvalues cannot all be positive (for otherwise det(A) would be positive). With this extended argument, you’d then be able to conclude that Q must be indefinite.

Problem 9. (10 pts.) Let f (x, y) = x^3 + xy + 1. a) Find an equation that defines the level set of f containing the point (x, y) = (1, −1). On the set of axes below, sketch this level set. (Be sure to label your axes.)

(5 points) At the point (1, −1), f (1, −1) = 1 − 1 + 1 = 1. So the level set of f at level 1 contains the point (1, −1). The defining equation is

f (x, y) = x^3 + xy + 1 = 1,

which implies

0 = x^3 + xy = x(x^2 + y), so that x = 0 or x^2 + y = 0.

Hence the level set containing (1, −1) consists of the line x = 0 and the parabola y = −x^2.

Notes: Many responses missed the case x = 0. They often claimed that y = −x^3 /x = −x^2 , and failed to realize that this is true only when x 6 = 0.

b) Find an equation for the plane in R^3 tangent to the graph of z = f (x, y) at the point (0, 0 , 1).

(5 points) The equation for the required plane is given by

z = f (0, 0) + fx(0, 0)(x − 0) + fy(0, 0)(y − 0),

where f (0, 0) = 1 since we are told that the graph of z = f (x, y) contains the point (0, 0 , 1), and fx(0, 0) = (3x^2 + y)

(0,0)

= 0 and fy(0, 0) = x

(0,0)

Hence the equation for the plane is z = 1.