Math 416, Spring 2010 Matrix multiplication; subspaces February 2, 2010 MATRIX MULTIPLICATION; SUBSPACES. 1. Announcements

Similar documents
Answers in blue. If you have questions or spot an error, let me know. 1. Find all matrices that commute with A =. 4 3

Math 21b: Linear Algebra Spring 2018

Dot Products, Transposes, and Orthogonal Projections

Math 416, Spring 2010 More on Algebraic and Geometric Properties January 21, 2010 MORE ON ALGEBRAIC AND GEOMETRIC PROPERTIES

Math 416, Spring 2010 Gram-Schmidt, the QR-factorization, Orthogonal Matrices March 4, 2010 GRAM-SCHMIDT, THE QR-FACTORIZATION, ORTHOGONAL MATRICES

is Use at most six elementary row operations. (Partial

S09 MTH 371 Linear Algebra NEW PRACTICE QUIZ 4, SOLUTIONS Prof. G.Todorov February 15, 2009 Please, justify your answers.

Announcements Wednesday, October 04

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

We see that this is a linear system with 3 equations in 3 unknowns. equation is A x = b, where

Math 217 Midterm 1. Winter Solutions. Question Points Score Total: 100

MATH 221: SOLUTIONS TO SELECTED HOMEWORK PROBLEMS

Math 416, Spring 2010 Coordinate systems and Change of Basis February 16, 2010 COORDINATE SYSTEMS AND CHANGE OF BASIS. 1.

Announcements Monday, September 18

Math 220 F11 Lecture Notes

Spring 2015 Midterm 1 03/04/15 Lecturer: Jesse Gell-Redman

Math 110 Answers for Homework 6

Eigenspaces. (c) Find the algebraic multiplicity and the geometric multiplicity for the eigenvaules of A.

Announcements Monday, October 02

Linear Algebra (MATH ) Spring 2011 Final Exam Practice Problem Solutions

Designing Information Devices and Systems I Spring 2019 Lecture Notes Note 6

2. (10 pts) How many vectors are in the null space of the matrix A = 0 1 1? (i). Zero. (iv). Three. (ii). One. (v).

18.06 Problem Set 3 Due Wednesday, 27 February 2008 at 4 pm in

Chapter SSM: Linear Algebra. 5. Find all x such that A x = , so that x 1 = x 2 = 0.

Math 110, Spring 2015: Midterm Solutions

Linear Algebra, Summer 2011, pt. 2

Math 54 HW 4 solutions

Chapter 2. Matrix Arithmetic. Chapter 2

This lecture is a review for the exam. The majority of the exam is on what we ve learned about rectangular matrices.

Math 31 Lesson Plan. Day 5: Intro to Groups. Elizabeth Gillaspy. September 28, 2011

x y + z = 3 2y z = 1 4x + y = 0

Announcements Wednesday, October 10

MAT2342 : Introduction to Applied Linear Algebra Mike Newman, fall Projections. introduction

3x + 2y 2z w = 3 x + y + z + 2w = 5 3y 3z 3w = 0. 2x + y z = 0 x + 2y + 4z = 3 2y + 6z = 4. 5x + 6y + 2z = 28 4x + 4y + z = 20 2x + 3y + z = 13

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

We could express the left side as a sum of vectors and obtain the Vector Form of a Linear System: a 12 a x n. a m2

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

Math 33A Discussion Notes

Choose three of: Choose three of: Choose three of:

MATH240: Linear Algebra Exam #1 solutions 6/12/2015 Page 1

irst we need to know that there are many ways to indicate multiplication; for example the product of 5 and 7 can be written in a variety of ways:

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 Mathematics for Agriculture II

MODULE 8 Topics: Null space, range, column space, row space and rank of a matrix

MTH Linear Algebra. Study Guide. Dr. Tony Yee Department of Mathematics and Information Technology The Hong Kong Institute of Education

Math 21b. Review for Final Exam

Math 123, Week 5: Linear Independence, Basis, and Matrix Spaces. Section 1: Linear Independence

Announcements Monday, October 29

Evaluating Determinants by Row Reduction

MATH 2210Q MIDTERM EXAM I PRACTICE PROBLEMS

Announcements Wednesday, September 27

Section 4.5. Matrix Inverses

Linear Algebra March 16, 2019

BASIC NOTIONS. x + y = 1 3, 3x 5y + z = A + 3B,C + 2D, DC are not defined. A + C =

1 Last time: multiplying vectors matrices

1 Review of the dot product

MTH 362: Advanced Engineering Mathematics

Math 24 Spring 2012 Questions (mostly) from the Textbook

Matrix-Vector Products and the Matrix Equation Ax = b

Announcements Wednesday, November 01

EXERCISE SET 5.1. = (kx + kx + k, ky + ky + k ) = (kx + kx + 1, ky + ky + 1) = ((k + )x + 1, (k + )y + 1)

Assignment 1 Math 5341 Linear Algebra Review. Give complete answers to each of the following questions. Show all of your work.

MAT 2037 LINEAR ALGEBRA I web:

Announcements Wednesday, September 05

22A-2 SUMMER 2014 LECTURE 5

Tues Feb Vector spaces and subspaces. Announcements: Warm-up Exercise:

Matrix Arithmetic. a 11 a. A + B = + a m1 a mn. + b. a 11 + b 11 a 1n + b 1n = a m1. b m1 b mn. and scalar multiplication for matrices via.

Announcements Wednesday, October 25

1 Last time: inverses

Chapter 2 Subspaces of R n and Their Dimensions

Lecture 1 Systems of Linear Equations and Matrices

22A-2 SUMMER 2014 LECTURE Agenda

Math 320, spring 2011 before the first midterm

Lecture Summaries for Linear Algebra M51A

Row Space, Column Space, and Nullspace

MATH 15a: Linear Algebra Practice Exam 2

Problem 1: (3 points) Recall that the dot product of two vectors in R 3 is

Math 4A Notes. Written by Victoria Kala Last updated June 11, 2017

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

Spring 2014 Midterm 1 02/26/14 Lecturer: Jesus Martinez Garcia

Math 1B03/1ZC3 - Tutorial 2. Jan. 21st/24th, 2014

Linear Algebra Highlights

Announcements Monday, November 13

OHSx XM511 Linear Algebra: Solutions to Online True/False Exercises

I = i 0,

Math 103, Summer 2006 Determinants July 25, 2006 DETERMINANTS. 1. Some Motivation

Chapter 6. Orthogonality

Math 3C Lecture 20. John Douglas Moore

Math 360 Linear Algebra Fall Class Notes. a a a a a a. a a a

Math 416, Spring 2010 The algebra of determinants March 16, 2010 THE ALGEBRA OF DETERMINANTS. 1. Determinants

Inverses of Square Matrices

Math 313 Chapter 5 Review

Announcements September 19

Activity: Derive a matrix from input-output pairs

Vector Spaces, Orthogonality, and Linear Least Squares

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

The value of a problem is not so much coming up with the answer as in the ideas and attempted ideas it forces on the would be solver I.N.

Math 308 Discussion Problems #4 Chapter 4 (after 4.3)

EXAM 2 REVIEW DAVID SEAL

Chapter 2 Notes, Linear Algebra 5e Lay

Transcription:

Math 416, Spring 010 Matrix multiplication; subspaces February, 010 MATRIX MULTIPLICATION; SUBSPACES 1 Announcements Office hours on Wednesday are cancelled because Andy will be out of town If you email Andy on Tuesday by 7pm, he ll make sure he responds by Wednesday morning He might not have internet access after Wednesday morning, though, so make sure your emails get sent by Tuesday night Also, we have a quiz in class on Thursday Matrix Multiplication We have seen in previous classes that one can define certain kinds of matrix multiplication: the dot product of two vectors, the product of n m matrix on the left of a m 1 column vector Today we ll introduce the mother of these multiplications 1 Composing linear operators Suppose we have a r p matrix A corresponding to an operator T A and a p c matrix B corresponding to T B Notice that since T B : R c R p and T A : R p R r, the composition T A T B is a function from R c to R r Indeed, T A T B is a linear operator from R c to R r We can see that it satisfies the first property of a linear operator by the equations (T A T B ( v + w = T A (T B ( v + w = T A (T B ( v + T B ( w = T A (T B ( v + T A (T B ( w = (T A T B v + (T A T B w where the second equality holds because T B is a linear operator and the third equality holds because T A is a linear operator Similarly we have (T A T B (k v = T A (T B (k v = T A (kt B ( v = k(t A (T B ( v = k(t A T B v Now that we know T A T B is a linear operator, we ask: what is the matrix corresponding to T A T B? T A R r R p R c T B T A T B = T C acs@mathuiucedu http://wwwmathuiucedu/ acs/w10/math416 Page 1 of 6

Math 416, Spring 010 Matrix multiplication; subspaces February, 010 We know that the matrix should be given by applying T A T B to the standard basis vectors e i Hence we get that the matrix associated to T A T B is AB e 1 AB e AB e c If we define b i to be B e i (in other words, b i is the ith column of the matrix B, then this expression simply becomes A b 1 A b A b c Definition 1 If A is an r p matrix and B is a p c matrix, then there is a r c matrix AB defined as AB := Ab1 A b c, where b i is the ith column of the matrix B Notice that the matrix/vector products are well defined: A has p columns and each of the b i have p entries Since we can compute the product of a matrix with a vector using dot products, this means that Example Let Then we have whereas the entry in ith row, jth column of AB = the ith entry of A b j BA = AB = A = ( 1 3 4 5 6 = the dot product of ith row of A with b j and B = ( 1 1 + 3 + 3 5 1 + 4 + 3 6 4 1 + 5 3 + 6 5 4 + 5 4 + 6 6 1 1 + 4 1 + 5 1 3 + 6 3 1 + 4 4 3 + 4 5 3 3 + 4 6 5 1 + 6 4 5 + 6 5 5 3 + 6 6 1 3 4 5 6 = = ( 8 49 64 9 1 15 19 6 33 9 40 51 Notice that these two matrices aren t just unequal, they don t even have the same dimension! Let s work through a specific geometric example of linear operators and see how matrix multiplication can be interpretted through these geometric actions Example In your last homework assignment, you showed that the linear operator Rot : R R which rotates vectors through 45 in the counterclockwise direction is given by the matrix ( ( cos(45 sin(45 sin(45 cos(45 = Consider the linear operator Ref : R R which reflects across the line y = 0 (ie, the x-axis This operator has matrix form ( 1 0 0 1 acs@mathuiucedu http://wwwmathuiucedu/ acs/w10/math416 Page of 6

Math 416, Spring 010 Matrix multiplication; subspaces February, 010 Now if we draw the action of the operators Rot Ref and Ref Rot on the standard basis { e 1, e }, they will tell us the matrix forms for ( ( ( 1 0 0 1 and ( 1 0 0 1 We show the action of the operator Rot Ref in Figure 1, and the action of the operator Ref Rot in Figure The green vector tracks the images of e 1 and the red vector tracks the images of e before any action after reflection after rotation Figure 1 before any action after rotation after reflection Figure Notice that since the images of e 1 and e are different for the two operators, the given operators are not the same Without using the algebraic definition of matrix multiplication, one can use these pictures to write the matrix products which result from these two compositions Try it out to convince yourself that the different orders of composition really do produce different matrices Notice: The last few examples illustrates a property that matrix multiplication does not have: commutativity That is to say, if you select random matrices A and B so that both AB and BA are defined, then it is likely the case that AB BA Aside from this, though, matrix multiplication has all the properties you would like it to have acs@mathuiucedu http://wwwmathuiucedu/ acs/w10/math416 Page 3 of 6

Math 416, Spring 010 Matrix multiplication; subspaces February, 010 Theorem 1 Matrix multiplication is associative and distributive, which means A(BC = (ABC for matrices A, B and C which make the given products defined, and A(B + C = AB + AC and (B + CA = BA + CA for matrices A, B and C which make the given products defined Matrix multiplication shows that a matrix and its inverse have a particular product: Theorem Suppose that T : R n R n is an invertible linear operator, and let A be the corresponding n n matrix Then we have AA 1 = A 1 A = I n Proof You ll establish these equalities in your homework 3 Subspaces Last class period we defined the kernel of an r c matrix A: ker(a = { x R c : A x = 0 } Today we ll start by showing that ker(a has some nice properties: 0 is an element of ker(a; if x 1 and x are elements of ker(a, then x 1 + x is an element of ker(a; and if x is an element of ker(a, then for any scalar k we have k x is an element of ker(a Proof Actually, you ve already proven all of these statements in an earlier homework assignment But just for review, here s how the proofs work The first statement comes from the fact that A 0 = 0 For the second statement, notice that A( x 1 + x = A x 1 + A x = 0 + 0 = 0 So x 1 + x is in the kernel of A The last statement is proved similarly: A(k x = k(a x = k 0 = 0 There is another collection of vectors associated to a vector A which are very important: the set of all vectors which are in the image of A In set notation, the image of A is written im(a = { b R r : there exists x R c so that A x = b } Theorem 31 For any matrix A, the image of A is the span of the column vectors of A Proof To see this, choose a vector in the image of A, say b Since b is an element of the image of A, there must be a vector x = x 1 x c so that A x = b But recall that A x = A x 1 x c = x 1 v1 + + x c vc, acs@mathuiucedu http://wwwmathuiucedu/ acs/w10/math416 Page 4 of 6

Math 416, Spring 010 Matrix multiplication; subspaces February, 010 where here v i is the ith column of A Hence we have b written as a linear combination of the columns of A as desired, and so b is in the span of the columns of A These steps can be reversed to show that an element in the span of the column vectors is in the image of A The image of a matrix satisfies conditions analogous to those which we saw in the kernel Theorem 3 For an n m matrix A, 0 is an element of im(a; if b 1 and b are elements of im(a, then b 1 + b is an element of im(a; and if b is an element of im(a, then for any scalar k we have k b is an element of im(a Proof To see that 0 is in the image, we must find a vector x so that A x = 0 But of course A 0 = 0, and so we can choose x = 0 Now suppose b 1 and b are elements in the image of A To show that b 1 + b is in the image of A, we need to find a vector x so that A x = b 1 + b Since b 1 and b are in the image of A, this means there exist inputs x 1 and x so that A x 1 = b 1 and A x = b Hence we have A( x 1 + x = A x 1 + A x = b 1 + b, and so we know the sum b 1 + b is in the image of A You can imagine that a similar proof shows the last condition With this terminology, we now have a handful of ways for expressing when a matrix A represents an invertible linear operator Theorem 33 For an n n matrix, the following statements are equivalent; that is, if one of them is true, then all of them are true, and if one is false, then all are false: A is an invertible matrix rref(a = I n A has rank n For any b R n, the system A x = b has a unique solution ker(a = { 0 } im(a = R n Proof We ve already seen these statements, with the exception of the last statement We ll show that im(a = R n is equivalent to the statement that rank(a = n Suppose, then, that im(a = R n Suppose, for the sake of contradiction, that rank(a < n In the last homework assignment you showed that this implies the existence of some b R n so that A x = b has no solutions This would force b im(a, contradicting the assumption that im(a = R n Hence we must conclude that rank(a = n Conversely, suppose that rank(a = n Since A is an n n matrix, a previous theorem tells us that for any b R n, there is a vector x R n with the property that A x = b This is precisely what it means for b to be an element of im(a Since b was arbitrary, this means that im(a must contain all vectors in R n acs@mathuiucedu http://wwwmathuiucedu/ acs/w10/math416 Page 5 of 6

Math 416, Spring 010 Matrix multiplication; subspaces February, 010 The three conditions we have seen in ker(a and im(a endow these sets with special properties which are useful in linear algebra Essentially these properties give ker(a and im(a some stability, in that one can t leave either collection through additions and scalar multiplication We ll be interested in these kinds of stable collections of vectors for the rest of the course Definition 31 A collection of vectors W R n is called a subspace if 0 is an element of W; whenever w 1 and w are elements of W, then w 1 + w are elements of W whenever w is an element of W and k is a scalar, then k w is an element of W Example Suppose that { v 1,, v c } is a collection of vectors in R r Then the span of these vectors is a subspace You can prove this bare-handed, or you can recall that im v 1 v c = span { v 1,, v c } Since we ve already seen that the image of a matrix is a subspace, this means that the given span is also a subspace Non-example The following shaded regions are not subspaces, because they each fail (at least one condition necessary to be a subspace One non-subspace Another non-subspace Figure 3 acs@mathuiucedu http://wwwmathuiucedu/ acs/w10/math416 Page 6 of 6