06.09.2021 Views

Linear Algebra, 2020a

Linear Algebra, 2020a

Linear Algebra, 2020a

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

240 Chapter Three. Maps Between Spaces<br />

over the rows of H — the definition treats left differently than right. So we may<br />

reasonably suspect that GH can be unequal to HG.<br />

2.9 Example Matrix multiplication is not commutative.<br />

( )( ) ( ) ( )( )<br />

1 2 5 6 19 22 5 6 1 2<br />

=<br />

3 4 7 8 43 50 7 8 3 4<br />

(<br />

=<br />

23 34<br />

31 46<br />

)<br />

2.10 Example Commutativity can fail more dramatically:<br />

( )( ) ( )<br />

5 6 1 2 0 23 34 0<br />

=<br />

7 8 3 4 0 31 46 0<br />

while<br />

( )( )<br />

1 2 0 5 6<br />

3 4 0 7 8<br />

isn’t even defined.<br />

2.11 Remark The fact that matrix multiplication is not commutative can seem<br />

odd at first, perhaps because most mathematical operations in prior courses are<br />

commutative. But matrix multiplication represents function composition and<br />

function composition is not commutative: if f(x) =2x and g(x) =x + 1 then<br />

g ◦ f(x) =2x + 1 while f ◦ g(x) =2(x + 1) =2x + 2.<br />

Except for the lack of commutativity, matrix multiplication is algebraically<br />

well-behaved. The next result gives some nice properties and more are in<br />

Exercise 25 and Exercise 26.<br />

2.12 Theorem If F, G, and H are matrices, and the matrix products are defined,<br />

then the product is associative (FG)H = F(GH) and distributes over matrix<br />

addition F(G + H) =FG + FH and (G + H)F = GF + HF.<br />

Proof Associativity holds because matrix multiplication represents function<br />

composition, which is associative: the maps (f ◦ g) ◦ h and f ◦ (g ◦ h) are equal<br />

as both send ⃗v to f(g(h(⃗v))).<br />

Distributivity is similar. For instance, the first one goes f ◦ (g + h)(⃗v) =<br />

f ( (g + h)(⃗v) ) = f ( g(⃗v)+h(⃗v) ) = f(g(⃗v)) + f(h(⃗v)) = f ◦ g(⃗v)+f ◦ h(⃗v) (the<br />

third equality uses the linearity of f). Right-distributivity goes the same way.<br />

QED<br />

2.13 Remark We could instead prove that result by slogging through indices. For

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!