MATH 235 SPRING 2 EXAM SOLUTIONS () (6 points) a) Show that the reduced row echelon form of the augmented matrix of the system x + + 2x 4 + x 5 = 3 x x 3 + x 4 + x 5 = 2 2x + 2x 3 2x 4 x 5 = 3 is. Use at most six elementary row operations. (Partial credit will be given if you use more). Clearly write in words each elementary row operation you use. Solution: 2 3 2. Subtract row from row 2 2. Add twice row to row 3 2 2 2 3 2 3 2 2 2 3 3. Multiply row 2 by ( ) 2 3 4. Subtract row 2 from row 5. Subtract twice row 2 from row 3 2 2 2 3 2 6. Subtract row 3 from row b) Find the general solution of the system. Solution: From the reduced row echelon form of the system, we can see that x 3 and x 4 are the free variables. Letting x 3 = s and x 4 = t, we have the general solution: x s t + x 3 x 4 = s t + s t x 5 for all s, t R.
2 (2) (6 points) Let A be a 5 3 matrix (5 rows and 3 columns), b, c, d three vectors in R 5 and x = x, with variables x,, x 3. You are told that the matrix x 3 equation A x = b has a unique solution. Carefully justify using complete sentences your answers to the following questions. (a) What is the row reduced echelon form of A? Solution: Since the matrix equation A x = b has a unique solution, the matrix A must have rank equal to the number of columns. Thus rref(a) =. In particular, since the rank of A is 3, there is at most one solution to any system of the form A x = v. (b) What can you say about the number of solutions of the system A x =? Solution: The system is consistent, and has the unique solution given by the zero vector in R 3. (c) You are given the additional information that the system A x = c is consistent. What can you say about the number of solutions of the system A x = b + c. Solution: Suppose that x b and x c are the unique solutions to the systems A x = b and that A x = c respectively. Then A( x b + x c ) = A x b + A x c = b + c and so there is one unique solution to the system A x = b + c. (d) What can you say about the number of solutions of the system A x = d? Solution: Since the rank of A is 3, there is at most one solution to the problem.
(3) (8 points) You can solve parts b and c below even without solving part a. 3 a) Let L be the line in R 2 through the origin and v =. Recall that the 2 reflection Ref L : R 2 R 2 is the linear transformation given by the formula 2( x v) () Ref L ( x) = v x, ( v v) where x v is the dot product of x and v. Use the above formula to find the matrix A of Ref L, so that Ref L ( x) = A x, for all vectors x in R 2. Credit will not be given for an answer which does not derive the entries of A from equation () above. Solution: We compute 2( x v) Ref L ( x) = v x ( v v) [ ] [ x 3 2 [ [ ] 2] 3 x = [ [ 3 3 2] 2] 2] = 2(3x [ [ ] + 2 ) 3 x 9 + 4 2] = 6x [ [ ] + 4 3 x 3 2] = [ ] [ ] 8x + 2 x 3 2x + 8 = [ ] 5x + 2 3 2x 5 = [ ] 5 2 x. 3 2 5 [ ] 5 2 Thus A =. 3 2 5 3
4 b) Let θ be the angle from the x -axis in R 2 to the line L in part a. Denote by T : R 2 R 2 the rotation of the plane an angle θ counterclockwise about the origin. Note that T maps the x -axis onto L and the -axis onto the line perpendicular to L. Use geometric considerations, justified via both sketches and complete sentences, in order to compute the following: Solution: Consider the following sketch: e 2 L T LRef L L e ) cos θ i) Ref L (T = sin θ Solution: The transformation T sends the vector e = to the cos θ vector T (e ) =. Since T (e sin θ ) is parallel to line L, its reflection across L is T (e ). ) sin θ ii) Ref L (T = cos θ Solution: The transformation T sends the vector e 2 = to the vector T (e 2 ) =. Since T (e sin θ cos θ 2 ) is perpendicular to L, its reflection across L is T (e 2 ). c) Let B be the ( matrix ) of T in part b. Use your work in part b to prove the equality AB = 3 2 3. 2 3 Solution: We know that the first column of the matrix AB = Ref L (T (e )) and that the second column of AB = Ref L (T (e 2 )). Since θ is the angle between the x -axis and the line L, we have cos θ = 3 3 and sin θ = 2 3, which verifies the equality.
w x (4) (6 points) Find all matrices M = y z 2, i.e., which satisfy 3 (2) AM = MA. Follow the following three steps. that commute with the matrix A = 5 a) Translate the equation (2) to a system of linear equations that the variables w, x, y, and z should satisfy, in order for M and A to commute. Solution: We write out explicitly the equation AM = M A: [ ] [ ] [ ] [ ] 2 w x w x 2 = 3 y z y z 3 [ ] [ ] 2y 2z w + 3x = w + 3y x + 3z z 2y + 3z 2y = x 2z = 2w + 3x 2y = x x 2y = w + 3y = z 2z = 2w + 3x 2w + 3x 2z = w + 3y = z w + 3y z = x + 3z = 2y + 3z Here we discarded the fourth equation: after cancelling 3z it reduces to the first one. w b) Find the general solution x y of the system in part a. z Solution: At this point you can follow one of two routes. Method : Gauss Elimination The system we want to solve is homogeneous and has coefficient matrix 2 2 3 2 3 Swapping the first and third rows we obtain 3 2 3 2 3 3 6 2 2 3 2 Here the first operation is R 2 R 2 2R. For the second step we observe that R 2 and R 3 are multiples (if you prefer, R 2 R 3 2, R 3 R 3 R 2 ). Then the general solution is w = t 3s x = 2s y = s z = t, s, t R..
6 w x y z = s Method 2 You can solve the system 3 2 + t x 2y = 2w + 3x 2z = w + 3y z =, s, t R by hand. First we observe that the second equation can be eliminated: if x = 2y and w = z 3y, then 2w + 3x z = 6z 6y + 6y 2z =. Thus we have to solve x 2y = w + 3y z =. Note: We did the same two operations as in the row-reduction above! There are many (five) ways to choose two of the variables as independent (Gauss elimination would have made this choice for you!). One popular choice was to take w and y as parameters, so x = 2y and z = w + 3y, that is: w = t x = 2r, r, t R, y = r z = t + 3r that is, w x y z = r 2 3 + t, t, r R. Note: Method and Method 2 give the same set of solutions! c) Find the general form of a matrix M, which commutes with A. Solution: Here we just copy our result in matrix form. That is, [ ] [ ] w x t 3s 2s M = = = y z s t [ ] [ ] 3 2 = s + t, s, t R. If you did not use Gauss elimination but followed Method 2, you result would look like [ ] [ ] w x t 2r M = = = [ = t y ] + r z [ 2 3 r t + 3r ] = ti 2 + ra, t, r R. Observe: Our general solution is a linear combination of two natural candidates: the
identity matrix I 2 and the matrix A itself! It is clear that both I 2 and A commute with A, and so does any linear combination of theirs. Interestingly, this gives us all matrices commuting with A. But then, since A 2 = AA commutes with A (why?), A 2 must be a linear combination of I 2 and A. Consequently, any power A n, n 2 is a combination of I 2 and A. 7
8 (5) (a) (7 points) Let A = 2 3 2 Answer: Row reduce (A I) = 2 2. Compute A. Show all your work. 2 3 2. Hence, A = 2 2 2 2 3. (b) (9 points) Determine which of the following linear transformations T from R 2 to R 2 are invertible. Give a reason, if it is not invertible. If the inverse exists describe it geometrically. (i) T is the rotation of R 2 45 degrees counterclockwise. Answer: T is invertible. Its inverse is the rotation of the plane 45 degrees clockwise. (ii) T is the reflection of R 2 with respect to a line L through the origin and a non-zero vector u = (u, u 2 ). Answer: T is invertible. T is its own inverse, T = T. (iii) T is the projection of R 2 onto the line L in part 5(b)ii. Answer: T is not invertible. A function T : R 2 R 2 is invertible, if the equation T ( x) = y has a unique solution x, for every y R 2. If y does not belong to the line L, the equation does not have any solution. If y belongs to L, the equation has infinitely many solutions (all vectors on the line through y orthogonal to L).
(6) (8 points) a) Let T : R 5 R 3 be the linear transformation T ( x) = A x, where A = 2 3 2 4 2 2 2 7 2 You are given that A is row equivalent to the matrix B = 2 3 4. You do not need to verify this fact. Find a basis for the kernel of T. In other words, find a set of vectors which span ker(t ) and which is linearly independent. Explain why the set you found spans ker(t ) and why it is linearly independent. Solution: Let (x,, x 3, x 4, x 5 ) be the coordinates for R 5. Then by just solving the corresponding linear system equal to zero, one gets as general solution ( 2,,,, )+x 4 ( 3,, 4,, ). So, these two vectors span the kernel. They are linearly independent because clearly one is not scalar multiple of the other. 9. b) Let L be the line in R 3 spanned by the vector v := 2. Denote by L the set of all vectors x in R 3 that are orthogonal to L (i.e., to v). So L consists of all vectors x = x, such that the dot product v x = is zero. Show that x 3 L is a subspace of R 3 by stating the three properties defining a subspace and verifying that L satisfies each of them. Solution: One checks the three properties. Let x, y be orthogonal to v and let t be a number, then (i) zero vector is there because v =. (ii) the sum is there because v ( x + y) = v x + v y = + =. (iii) scalar multiplication is there because v (t x) = t( v x) =.