Math 21b Final Exam Thursday, May 15, 2003 Solutions

Similar documents
Practice Exam. 2x 1 + 4x 2 + 2x 3 = 4 x 1 + 2x 2 + 3x 3 = 1 2x 1 + 3x 2 + 4x 3 = 5

235 Final exam review questions

MA 265 FINAL EXAM Fall 2012

PRACTICE FINAL EXAM. why. If they are dependent, exhibit a linear dependence relation among them.

1. Select the unique answer (choice) for each problem. Write only the answer.

Math 315: Linear Algebra Solutions to Assignment 7

MATH 15a: Linear Algebra Practice Exam 2

MATH 1553 SAMPLE FINAL EXAM, SPRING 2018

2.3. VECTOR SPACES 25

No books, no notes, no calculators. You must show work, unless the question is a true/false, yes/no, or fill-in-the-blank question.

5.) For each of the given sets of vectors, determine whether or not the set spans R 3. Give reasons for your answers.

Math 314/ Exam 2 Blue Exam Solutions December 4, 2008 Instructor: Dr. S. Cooper. Name:

This is a closed book exam. No notes or calculators are permitted. We will drop your lowest scoring question for you.

MATH 23a, FALL 2002 THEORETICAL LINEAR ALGEBRA AND MULTIVARIABLE CALCULUS Solutions to Final Exam (in-class portion) January 22, 2003

and let s calculate the image of some vectors under the transformation T.

80 min. 65 points in total. The raw score will be normalized according to the course policy to count into the final score.

(a) If A is a 3 by 4 matrix, what does this tell us about its nullspace? Solution: dim N(A) 1, since rank(a) 3. Ax =

MATH. 20F SAMPLE FINAL (WINTER 2010)

DIAGONALIZATION. In order to see the implications of this definition, let us consider the following example Example 1. Consider the matrix

Examples True or false: 3. Let A be a 3 3 matrix. Then there is a pattern in A with precisely 4 inversions.

LINEAR ALGEBRA 1, 2012-I PARTIAL EXAM 3 SOLUTIONS TO PRACTICE PROBLEMS

Solutions to Final Exam

Q1 Q2 Q3 Q4 Tot Letr Xtra

MATH 304 Linear Algebra Lecture 23: Diagonalization. Review for Test 2.

1. What is the determinant of the following matrix? a 1 a 2 4a 3 2a 2 b 1 b 2 4b 3 2b c 1. = 4, then det

MATH 1553 PRACTICE MIDTERM 3 (VERSION B)

PRACTICE PROBLEMS FOR THE FINAL

Math 18, Linear Algebra, Lecture C00, Spring 2017 Review and Practice Problems for Final Exam

LINEAR ALGEBRA QUESTION BANK

MA 1B ANALYTIC - HOMEWORK SET 7 SOLUTIONS

Reduction to the associated homogeneous system via a particular solution

MAT Linear Algebra Collection of sample exams

MATH 31 - ADDITIONAL PRACTICE PROBLEMS FOR FINAL

Name: Final Exam MATH 3320

1. In this problem, if the statement is always true, circle T; otherwise, circle F.

(a) II and III (b) I (c) I and III (d) I and II and III (e) None are true.

MATH 20F: LINEAR ALGEBRA LECTURE B00 (T. KEMP)

Test 3, Linear Algebra

(b) If a multiple of one row of A is added to another row to produce B then det(b) =det(a).

Solutions to Review Problems for Chapter 6 ( ), 7.1

Math 323 Exam 2 Sample Problems Solution Guide October 31, 2013

33A Linear Algebra and Applications: Practice Final Exam - Solutions

2. Every linear system with the same number of equations as unknowns has a unique solution.

Warm-up. True or false? Baby proof. 2. The system of normal equations for A x = y has solutions iff A x = y has solutions

This is a closed everything exam, except for a 3x5 card with notes. Please put away all books, calculators and other portable electronic devices.

Answer Keys For Math 225 Final Review Problem

Review problems for MA 54, Fall 2004.

MATH 304 Linear Algebra Lecture 34: Review for Test 2.

Linear Algebra. Rekha Santhanam. April 3, Johns Hopkins Univ. Rekha Santhanam (Johns Hopkins Univ.) Linear Algebra April 3, / 7

MATH 315 Linear Algebra Homework #1 Assigned: August 20, 2018

MATH 1120 (LINEAR ALGEBRA 1), FINAL EXAM FALL 2011 SOLUTIONS TO PRACTICE VERSION

MATH Spring 2011 Sample problems for Test 2: Solutions

Chapters 5 & 6: Theory Review: Solutions Math 308 F Spring 2015

Solutions to practice questions for the final

Math 224, Fall 2007 Exam 3 Thursday, December 6, 2007

MATH 1553, C. JANKOWSKI MIDTERM 3

MATH 240 Spring, Chapter 1: Linear Equations and Matrices

MATH 1553 PRACTICE FINAL EXAMINATION

Math 21b. Review for Final Exam

Therefore, A and B have the same characteristic polynomial and hence, the same eigenvalues.

Final Review Sheet. B = (1, 1 + 3x, 1 + x 2 ) then 2 + 3x + 6x 2

Math 24 Spring 2012 Sample Homework Solutions Week 8

EXERCISES ON DETERMINANTS, EIGENVALUES AND EIGENVECTORS. 1. Determinants

MATH 235. Final ANSWERS May 5, 2015

Cheat Sheet for MATH461

Math 312 Final Exam Jerry L. Kazdan May 5, :00 2:00

LINEAR ALGEBRA SUMMARY SHEET.

1. Diagonalize the matrix A if possible, that is, find an invertible matrix P and a diagonal

SOLUTION KEY TO THE LINEAR ALGEBRA FINAL EXAM 1 2 ( 2) ( 1) c a = 1 0

Diagonalizing Matrices

MATH 221, Spring Homework 10 Solutions

0 2 0, it is diagonal, hence diagonalizable)

Conceptual Questions for Review

1 Last time: least-squares problems

MATH 220 FINAL EXAMINATION December 13, Name ID # Section #

There are six more problems on the next two pages

ICS 6N Computational Linear Algebra Eigenvalues and Eigenvectors

Linear Algebra- Final Exam Review

Problem Set (T) If A is an m n matrix, B is an n p matrix and D is a p s matrix, then show

REVIEW FOR EXAM III SIMILARITY AND DIAGONALIZATION

No books, notes, any calculator, or electronic devices are allowed on this exam. Show all of your steps in each answer to receive a full credit.

2018 Fall 2210Q Section 013 Midterm Exam II Solution

Linear Algebra Exercises

Final Exam Practice 3, May 8, 2018 Math 21b, Spring Name:

EIGENVALUES AND EIGENVECTORS

Linear Algebra Final Exam Study Guide Solutions Fall 2012

MATH 1553-C MIDTERM EXAMINATION 3

Final Exam. Linear Algebra Summer 2011 Math S2010X (3) Corrin Clarkson. August 10th, Solutions

Remark By definition, an eigenvector must be a nonzero vector, but eigenvalue could be zero.

Question 7. Consider a linear system A x = b with 4 unknown. x = [x 1, x 2, x 3, x 4 ] T. The augmented

MATH 1553 PRACTICE MIDTERM 3 (VERSION A)

Linear Algebra Primer

TBP MATH33A Review Sheet. November 24, 2018

Linear algebra I Homework #1 due Thursday, Oct Show that the diagonals of a square are orthogonal to one another.

YORK UNIVERSITY. Faculty of Science Department of Mathematics and Statistics MATH M Test #1. July 11, 2013 Solutions

Topic 2 Quiz 2. choice C implies B and B implies C. correct-choice C implies B, but B does not imply C

I. Multiple Choice Questions (Answer any eight)

Study Guide for Linear Algebra Exam 2

Solution to Final, MATH 54, Linear Algebra and Differential Equations, Fall 2014

Math 102, Winter Final Exam Review. Chapter 1. Matrices and Gaussian Elimination

Transcription:

Math 2b Final Exam Thursday, May 5, 2003 Solutions. (20 points) True or False. No justification is necessary, simply circle T or F for each statement. T F (a) If W is a subspace of R n and x is not in W, then x proj W x is not zero. Solution. True, since x cannot be written as a linear combination of vectors in W. T F (b) A linear transformation T : R n R m is completely determined by what T does to each column of the n n identity matrix. Solution. True., since T is determined by what it does to a basis and the columns of I n form a basis for R n. T F (c) If the matrix A 2 is diagonalizable, then A is diagonalizable. Solution. False. If A = 0, 0 0 then A 2 is the zero matrix which is diagonalizable. T F (d) Similar matrices have the same eigenvectors. Solution. False. If A = 2 3 2 5 then 0 2/5 /5 2 3 D = = 0 4 /5 3/5 2 5 2 is similar to A. However, v = is an eigenvector for A since Av = 2 4v, but Dv = 8

is not a multiple of v. T F (e) If A is similar to B, then A 2 is similar to B 2. Solution. True. If A = S BS, then A 2 = (S BS) 2 = S B 2 S. T F (f) Let A be a 4 4 matrix with three distinct eigenvalues. If one of the eigenspaces is two dimensional, then A is diagonalizable. Solution. True. Let λ, λ 2, λ 3 be three distinct eigenvalues of A with eigenspaces E, E 2, E 3, respectively. The minimum dimension of each eigenspace is one, and one eigenspace, say E, has dimension two. Therefore, A has an eigenbasis and is diagonalizable. T F (g) There exists a 5 5 matrix with no real eigenvalues. Solution. False. If A is characteristic polynomial, its characteristic polynomial must have degree five. Any polynomial of odd degree has at least one real root. Therefore, A must have a real eigenvalue. T F (h) An orthogonal matrix is orthogonally diagonalizable. Solution. False. The matrix [ ] / 2 / 2 / 2 / 2 is orthogonal, but not symmetric. Therefore, it is not orthogonally diagonalizable. T F (i) If W and W 2 are subspaces of a linear space V, then W W 2 is always a subspace of V. (The set W W 2 is the set of all elements in V that are in either W or W 2 or in both W and W 2.) Solution. False. If W and W 2 are two distinct one-dimensional subspaces of R 2, then their union is a pair of distinct lines through the origin, which is not a subspace of R 2. 2

T F (j) If a real matrix A has only the eigenvalues and, then A is an orthogonal matrix. Solution. False. The matrix 2 0 is not orthogonal. 2. Let {u,..., u n } be an orthonormal basis for R n, and let λ,..., λ n be any real scalars. Define A to be the n n matrix A = λ u u T + + λ n u n u T n. (a) Show that A is symmetric. (2 points) Solution. A T = (λ u u T + + λ n u n u T n ) T = λ (u u T ) T + + λ n (u n u T n ) T = λ (u T ) T u T + + λ n (u T n ) T u T n = λ u u T + + λ n u n u T n = A. (b) Show that λ,..., λ n are eigenvalues of A. (5 points) Solution. Au i = (λ u u T + + λ n u n u T n )u = λ u u T u i + + λ i u i u T i u i + + λ n u n u T n u i = λ i u i. 3. Let 3 2 4 A = 2 6 2. 4 2 3 3

(a) Find an eigenbasis for A. [Hint: One of the eigenvalues of A is 7.] (4 points) Solution. Since the characteristic polynomial of A is det(λi A) = λ 3 2λ 2 + 2λ + 98 = (λ 7) 2 (λ + 2), the eigenvalues of A are λ = 7 and λ 2 = 2. The kernel of the matrix λ I A has a basis /2 v = 0, v 2 = 0. The kernel of the matrix λ 2 I A has a basis v 3 = /2. Thus, is an eigenbasis for A. /2 v = 0, v 2 = 0, v 3 = /2 (b) Orthogonally diagonalize A (5 points) Solution. If we apply the Gram-Schmidt orthogonalization process to v, v 2, we find that / 2 / 8 u = 0 /, u 2 = 4/ 8 2 / 8 is an orthnormal basis for E 7. Similarly, E 2 has orthonormal basis 2/3 u 3 = /3. 2/3 4

Thus, A = P DP T, where 7 0 0 / 2 / 8 2/3 D = 0 7 0 and P = 0 4/ 8 /3 0 0 2 / 2 /. 8 2/3 4. (a) Let A be an m n matrix such that A T A is invertible. Show that the columns of A are linearly independent. Be careful, A may not be a square matrix. (5 points) Solution. If c a + + c n a n = 0, we must show c = = c n = 0. However, 0 = A T 0 = A T (c a + + c n a n ) = c A T a + + c n A T a n and A T a,..., A T a n are exactly the columns of A T A. Since A T A is invertible, these vectors are linearly independent. Therefore, c = = c n = 0. (b) Show that the matrix a a 2 B = b b 2 c c 2 is invertible if and only if a, b, and c are distinct real numbers. You do not need to use part (a) to solve this problem. (4 points) Solution. a a 2 det(b) = det b b 2 c c 2 a a 2 = det 0 b a b 2 a 2 0 c a c 2 a 2 = (b a)(c 2 a 2 ) (c a)(b 2 a 2 ) = (b a)(c a)(c b). This determinant is nonzero if and only if a, b, and c are distinct real numbers. 5

5. We wish to find the function y = c x + c 2 cos ( πx ) 2 that best fits the following data using least-squares. x 0 2 3 y 0 2 2 4 (a) Write the matrix equation that must be solved. (4 points) Solution. Ax = b, where 0 0 A = 0 2, b = 2 2, x = c. c 2 3 0 4 (b) Find the least-squares solution and write the corresponding function f(x). (4 points) Solution. We must solve the normal equations A T Ax = A T b. However, x = (A T A) A T 4/3 b =. /3 Thus, f(x) = 4 3 x + ( πx ) 3 cos. 2 6. Consider the dynamical system where dx dt = Ax, 3 2 A = 6

(a) Find the solution of dx/dt = Ax with the initial condition x(0) =. Be sure to state your solution in terms of real numbers and real functions and not the complex exponential function. (5 points) Solution. The characteristic polynomial of A is det(λi A) = λ 2 + 4λ + 5 and has roots λ = 2 ± i. For the eigenvalue λ = 2 + i, we can find an eigenvector i v + iw = = + i. 0 Therefore, the solution to our dynamical system is x(t) = e 2t cos t sin t S S x sin t cos t 0 = e 2t cos t + sin t, cos t where S =. 0 (b) Sketch the graph of the trajectory for a solution of dx/dt = Ax. (2 points) Solution. The trajectory spirals in beginning at the point (, ). (c) In the redwood forests of northern California dusky-footed wood rats provide up to 80% of the diet of the spotted owl, the main predator of the wood rat. Denote the owl and wood rat populations at time k by x k = [O k, R k ] T, where O k is the number of owls in the region and R k is the number of rats (measured in thousands). Suppose that the owl and rat population evolve according to the discrete dynamical system O k+ = 0.5O k + 0.4R k R k+ = po k +.R k, 7

where p > 0 is a parameter to be specified. If p = 0.04, the eigenvalues of the matrix for the matrix of the dynamical system are λ =.02 and λ 2 = 0.58. The eigenvectors for λ and λ 2 are v = 0 3 5 and v 2 =, respectively. What is the long-term monthly growth (or decay) rate of the owl and wood rat populations. Be specific and carefully justify your conclusion. (4 points) Solution. Any initial population vector x 0 can be written as x 0 = c v + c 2 v 2. For k 0, x k = A k x 0 = c (.02) k v + c 2 (0.58) k v 2, and (0.58) k 0 very quickly as k gets large. Thus, x k c (.02) k 0 3 for sufficiently large k, and the owl and wood rat populations grow at a rate of approximately 2% per month. cos θ 7. (a) Let u = be a unit vector in R sin θ 2. Give a 2 2 matrix R θ which represents reflection along the line spanned by u. (4 points) Solution. The reflection of any vector v along the line spanned by u is given by R θ (v) = 2 proj u v v = 2(u v)u v. To find the matrix of this transformation, we compute [ 2 cos R θ (e ) = 2(u e )u e = 2 ] θ cos 2θ = 2 sin θ cos θ sin 2θ and R θ (e 2 ) = 2(u e 2 )u e 2 = 2 sin θ cos θ sin 2θ 2 sin 2 =. θ cos 2θ 8

Therefore, the matrix of our transformation is cos 2θ sin 2θ. sin 2θ cos 2θ (b) Let cos θ cos θ2 u = and u sin θ 2 = sin θ 2 be two unit vectors in R 2. Show that the composition matrix R θ2 R θ is a counterclockwise rotation by some angle. What is this angle in terms of θ and θ 2? (4 points) Solution. Since cos 2θ2 sin 2θ R θ2 R θ = 2 cos 2θ sin 2θ sin 2θ 2 cos 2θ 2 sin 2θ cos 2θ cos 2θ cos 2θ = + sin 2θ 2 sin 2θ cos 2θ 2 sin 2θ sin 2θ 2 cos 2θ (cos 2θ 2 sin 2θ sin 2θ 2 cos 2θ ) cos 2θ cos 2θ + sin 2θ 2 sin 2θ cos 2(θ2 θ = ) sin 2(θ 2 θ ), sin 2(θ 2 θ ) cos 2(θ 2 θ ) we have a counterclockwise rotation by 2(θ 2 θ ). (c) Now consider an arbitrary orthogonal n n matrix A. Show that det(a) = ±. If det(a) = +, we call A a rotation. If det(a) =, we call A a reflection. Show that the product of any two reflections is a rotation. This part does not require any complicated calculations. (2 points) Solution. Since A is orthogonal, A T A = I. Thus, = det(a T A) = det(a T ) det(a) = (det(a)) 2, and det(a) = ±. If A is a reflection, then det(a) = and det(a 2 ) = (det(a)) 2 =. Hence, A 2 is a rotation. 8. The trace of a n n matrix is the sum of its diagonal elements. 9

(a) Show that the trace of F G is equal to the trace of GF for two n n matrices F and G. (4 points) Solution. If C = F G, then the diagonal elements of C are c ii = and the trace of F G is n f ik g ki k= n c ii = i= n n f ik g ki i= k= Similarly, if D = GF, the trace of D is n n n d kk = g ki f ik. Since k= k= i= n c ii = i= n n n n f ik g ki = g ki f ik = i= k= k= i= k= n d kk, the trace of F G is equal to the trace of GF. (b) If A and B are similar matrices, show that the trace of A is equal to the trace of B. (4 points) Solution. If B = S AS, then Tr(B) = Tr(S AS) = Tr(S SA) = Tr(A). 9. Let U be the subspace of R 4 defined by the equations 2x +x 2 +x 3 +x 4 = 0 x x 2 +x 3 x 4 = 0, and let V be the subspace of R 4 defined by the equations x +x 2 +2x 3 2x 4 = 0 x +2x 2 +2x 4 = 0. 0

(a) Find a basis for U V, where U V is the set of vectors in R 4 that are in both U and V. (4 points) Solution. The subspace U V is the set of all solutions to the system 2x +x 2 +x 3 +x 4 = 0 x x 2 +x 3 x 4 = 0 x +x 2 +2x 3 2x 4 = 0 x +2x 2 +2x 4 = 0. The reduced row echelon form of the matrix of this system is 0 0 2/3 0 0 2/3 0 0, 0 0 0 0 and a basis for the kernel of this matrix is given by 2/3 2 2/3 or 2 3 3 (b) Find a basis for (U V ). (4 points) Solution. A basis for (U V ) can be found by computing where ker(a T ) = image(a), 2 A = 2 3. 3 The reduced row echelon form of A T is [ 3/2 3/2 ]. Therefore, 3/2 3/2 0, 0, 0 0 0 0

is a basis for (U V ). 0. You only need to do Problem 0 or Problem. Credit will be given for only one of these two problems. Circle Problem 0 on the first page if you wish this problem to be graded. (a) Solve the equation x 3x + 2x = 0, if x(0) = and x (0) =. (4 points) Solution. The characteristic equation of x 3x + 2x = 0 is Thus, the general solution is r 2 3r + 2 = (r 2)(r ) = 0. x(t) = c e 2t + c 2 e t. Since x (t) = 2c e 2t + c 2 e t we can apply the initial conditions x(0) = and x (0) = to obtain the system c + c 2 = 2c + c 2 =. Solving this system, we find that c = 2 and c 2 = 3; therefore, the solution that we are seeking is x(t) = 2e 2t + 3e t. (b) Consider the heat equation u t = 2 u x 2. Show that u(x, t) = b n e n2t sin nx is a solution satisfying the boundary conditions u(0, t) = u(π, t) = 0 for n =, 2, 3,..., where b n is an arbitrary constant. (3 points) 2

Solution. The function u(x, t) = b n e n2t sin nx satisfies the boundary conditions, since To show that u also satisfies we only need to observe that u(0, t) = b n e n2t sin 0 = 0 u(π, t) = b n e n2t sin nπ = 0. u t = 2 u x 2, u t = n 2 b n e n2t sin nx 2 u x 2 = n 2 b n e n2t sin nx. (c) Using the initial condition, u(x, 0) = f(x) = 80 sin 3 x = 60 sin x 20 sin 3x. solve the heat equation u t = 2 u x 2 with boundary conditions u(0, t) = u(π, t) = 0. (3 points) Solution. By the principle of superposition, u(x, t) = b n e n2t sin nx n= is a solution to u t = 2 u x 2 with boundary conditions u(0, t) = u(π, t) = 0. Applying the initial condition u(x, 0) = 60 sin x 20 sin 3x, we know that u(x, 0) = b n sin nx = 60 sin x 20 sin 3x. n= 3

Thus, b = 60 and b 3 = 20 with all other constants vanishing. Therefore, our solution is u(x, t) = 60e t sin x 20e 9t sin 3x.. You only need to do Problem 0 or Problem. Credit will be given for only one of these two problems. Circle Problem on the first page if you wish this problem to be graded. Consider the Markov chain whose transition matrix is 0 0 0 P = /2 0 /2 0 0 /2 0 /2. 0 0 /3 2/3 (a) What is the canonical form of the matrix P where Q is transient transient and R is transient absorbing states. (3 points) Solution. 0 /2 0 /2 /2 0 /2 0 0 /3 2/3 0. 0 0 0 (b) What is the expected number of times the system will visit state 4 given it starts from state 2? Write out the N matrix. (3 points) Solution. and /2 0 I Q = /2 /2 0 /3 /3 2 2 3 N = (I Q) 2 4 6. 2 4 9 4

(c) If the system starts in state 3, what is the expected number of times in states 2, 3, and 4 before absorption? (2 points) Solution. If the system starts in state 3, then the expected number of times it visits state, 2, 3 before absorption is 2, 4, 9. (d) Write the B matrix, the probability of absorption, where B = NR. Explain the meaning of the B matrix. (2 points) Solution. 2 2 3 /2 B = 2 4 6 0 2 4 9 0 The probability of absorption is one starting from any state. 5