Docsity

Solutions to Math 2270-2 Final Exam: Linear Algebra - Prof. Nicholas Korevaar, Exams of Linear Algebra

Toggle sidebar
bg1
Name.........................................................................................
I.D. number................................................................................
Math 2270-2
Sample Final Exam SOLUTIONS
December 2001
This exam is closed-book and closed-note. You may not use a calculator which is capable of doing
linear algebra computations. In order to receive full or partial credit on any problem, you must show all
of your work and justify your conclusions. There are 200 points possible, and the point values for each
problem are indicated in the right-hand margin. Of course, this exam counts for 30% of your final grade
even though it is scaled to 200 points. Good Luck!
> restart:with(linalg):
1) Let
:= A
1-12
101
Then L(x)=Ax is a matrix map from R^3 to R^2.
1a) Find the four fundamental subspaces associated to the matrix A. (20 points)
:= A
1-12
101
> rref(A);
10 1
01-1
So, the row space is the span of {[1,,0,1],0,1,-1]}. The column space is the span of the first two columns
of A, and this is all of R^2. The nullspace can be obtained by backsolving the homogeneous system,
using rref(A). We see that x3=t, x2=t, x1=-t, so x=t[-1,1,1], so a nullspace basis is {[-1,1,1]} . Since
the column space is all or R^2, its orthogonal complement is the zero vector.
1b) State and verify the theorem which relates rank and nullity of A, in this particular case (5 points)
rank + nullity = #cols(A). In this case 2+1=3.
1c) Find an orthonormal basis for R^3 in which the first two vectors are a basis for the rowspace of A
and the last vector spans its nullspace. (10 points)
The rowspace and nullspace of A are already orthogonal, so I just need to Gramschmidt my rowspace
basis, and then normalize:
:= v1 [],,101
:= v2 [],,01-1
> w1:=evalm(v1)/norm(v1,2);
z2:=evalm(v2-(dotprod(v2,w1)*w1));
w2:=evalm(z2)/norm(z2,2);
pf3
pf4
pf5
pf8

Partial preview of the text

Download Solutions to Math 2270-2 Final Exam: Linear Algebra - Prof. Nicholas Korevaar and more Exams Linear Algebra in PDF only on Docsity!

Name.........................................................................................

I.D. number................................................................................

Math 2270-

Sample Final Exam SOLUTIONS

December 2001

This exam is closed-book and closed-note. You may not use a calculator which is capable of doing

linear algebra computations. In order to receive full or partial credit on any problem, you must show all

of your work and justify your conclusions. There are 200 points possible, and the point values for each

problem are indicated in the right-hand margin. Of course, this exam counts for 30% of your final grade

even though it is scaled to 200 points. Good Luck!

restart:with(linalg):

  1. Let

A :=

Then L( x )=A x is a matrix map from R ^3 to R ^2.

1a) Find the four fundamental subspaces associated to the matrix A.

(20 points)

A :=

rref(A);

So, the row space is the span of {[1,,0,1],0,1,-1]}. The column space is the span of the first two columns

of A, and this is all of R^2. The nullspace can be obtained by backsolving the homogeneous system,

using rref(A). We see that x3=t, x2=t, x1=-t, so x=t[-1,1,1], so a nullspace basis is {[-1,1,1]}. Since

the column space is all or R^2, its orthogonal complement is the zero vector.

1b) State and verify the theorem which relates rank and nullity of A, in this particular case

(5 points)

rank + nullity = #cols(A). In this case 2+1=3.

1c) Find an orthonormal basis for R^3 in which the first two vectors are a basis for the rowspace of A

and the last vector spans its nullspace.

(10 points)

The rowspace and nullspace of A are already orthogonal, so I just need to Gramschmidt my rowspace

basis, and then normalize:

v1 :=[ 1 0 1, , ]

v2 :=[ 0 1 -1, , ]

w1:=evalm(v1)/norm(v1,2);

z2:=evalm(v2-(dotprod(v2,w1)*w1));

w2:=evalm(z2)/norm(z2,2);

w1 :=

[ 1 0 1, , ] 2

z2 :=

w2 :=

So my basis is

2a) Exhibit the rotation matrix which rotates vectors in R^2 by an angle of α radians in the

counter-clockwise direction.

(5 points)

rot :=α→

cos ( α) −sin ( α)

sin ( α) cos( α)

2b) Verify that the product of an α-rotation matrix with a β-rotation matrix is an (α+β)-rotation matrix.

(10 points)

cos ( α) −sin ( α)

sin ( α) cos( α)

cos ( ) β −sin ( ) β

sin ( ) β cos( ) β

cos( α) cos( ) β −sin( α) sin( ) β −cos ( α) sin( ) β −sin( α) cos( ) β

sin( α) cos( ) β +cos( α) sin( ) β cos( α) cos( ) β −sin( α) sin( ) β

By trig addition angle formulas we recognize this last matrix as

cos ( α +β) −sin ( α +β)

sin ( α +β) cos( α +β)

  1. Let T be the linear map from the complex plane to the complex plane, defined by

T( ) z =( 1 + i z )

We can consider the complex numbers as a real vector space of dimension 2, with basis β={1,i}. Find

the matrix for T with respect to this basis, and explain what T does geometrically.

5 ( v − 1 ) + =

2 10 ( u + 2 )

2 50

( v − 1 )

2

( u + 2 )

2 1

  1. Let

C :=

5a) Find the inverse of C using elementary row operations.

(15 points)

rref(%);

So the inverse matrix is

5b) Find the inverse of C using the adjoint formula.

(15 points)

cof( C ):=

adj(C):=transpose(cof(C));

adj( C ) :=

We calculate that det(C)=2-2-1=-1, so the inverse is given by

detC:=-1:

(1/detC)*adj(C);

detC :=-

6a) Define what it means for a transformation (function) T:V-->W between vector spaces to be a linear

transformation.

(4 points)

I) T(u+v)=T(u)+T(v) for all u,v in V

II) T(cu)=cT(u) for all u in V, c in R.

6b) Define what it means for a set β={ v 1, v 2,... v n} to be a basis for a vector space V.

(3 points)

β is a basis for V if it is linearly independent and spans V.

6c) For a linear map T as in part (6a), define the kernel of T.

(3 points)

The kernel of T is the set of all vectors in V which satisfy T(v)=0.

6d) Let β={ v 1, v 2,... v n} be a basis for V T::V-->V be linear. Explain what the matrix for T with

respect to β is, and what it does.

(5 points)

The matrix for T with respect to β is the matrix B which has the property that B times the β -coordinates

of a vector v in V equals the β -coordinates of T(v), for all v in V. The jth column of B is just the

coordinates of T( v j), with respect to T. (So that’s one way to compute it.)

  1. Let

A :=

7a) Let

β:=

(Note these are the columns of your matrix C from #5.) Let T(x)=Ax, a matrix map from R^3 to R^3.

Thus A is the matrix of T with respect to the standard basis of R^3. Find the matrix of T with respect to

the β basis.

(15 points)

(10 points)

Method 1: Use the E-coordinates for v

Method 2: Use β -coordinates

  1. True-False. Four points each (2 points for answer, two points for justification.)

(40 points)

8i) Let A be an n by n matrix. Then if Ax=Ay it follows that x=y.

FALSE: would only be true if A was non-singular

8i) If A and B are n by n matrices, then

( A + B ) =

2 A + +

2 2 A B B

2

FALSE: would only be true if AB=BA

8iii) If A is any matrix with (real entries) then the product

B = A

T A

has only real eigenvalues, and is in fact similar to a diagonal matrix.

True: note that B is symmetric so the spectral theorem implies the claims.

8iv) Every set of five orthonormal vectors in R ^5 is automatically a basis for R ^5.

TRUE: orthonormal vectors are automatically linearly independent, and 5 independent vectors

automatically span a 5-dimensional space

8v) The number of linearly independent eigenvectors of a matrix is always greater than or equal to the

number of distinct eigenvalues.

TRUE: each eigenspace is at least one-dimensional, and the union of eigenspace bases is still linearly

independent.

8vi) If the rows of a 4 by 6 matrix are linearly dependent then the nullspace is at least three dimensional.

TRUE: rows dependent so row rank is at most 3. Since row rank plus nullity equals 6 this means nullity

is at least 3

8vii) A diagonalizable n by n matrix must always have n distinct eigenvalues.

FALSE; e.g. the identity matrix

8viii) The equation

2 x + + =

2 5 x y 3 y

2 1

defines an ellipse.

FALSE. The matrix and eigenvalues of the quadratic form are

A:=matrix(2,2,[2,5/2,5/2,3]);

Evals:=eigenvals(A);

A :=

Evals := + ,

Since theevals have opposite sign, what we really have is a hyperbola!

8ix) If A and B are orthogonal matrices then so is AB.

TRUE: use the fact that the transpose of AB is B transpose time A transpose.

8x) If A is a square matrix and A^2 is singular, then so is A.

TRUE: if det(A^2)=0, then this also equals (det(A))^2 by multiplicative determinant property, so

det(A)=0.