06.09.2021 Views

Linear Algebra, Theory And Applications, 2012a

Linear Algebra, Theory And Applications, 2012a

Linear Algebra, Theory And Applications, 2012a

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.1. MATRICES 45<br />

1 2<br />

3 4<br />

Write the matrix which is associated with this directed graph and find the number of ways<br />

to go from 2 to 4 in three steps.<br />

Here you need to use a 4×4 matrix. The one you need is<br />

⎛<br />

⎞<br />

0 1 1 0<br />

⎜ 1 0 0 0<br />

⎟<br />

⎝ 1 1 0 1 ⎠<br />

0 1 0 1<br />

Then to find the answer, you just need to multiply this matrix by itself three times and look<br />

at the entry in the second row and fourth column.<br />

⎛<br />

⎞3<br />

⎛<br />

⎞<br />

0 1 1 0 1 3 2 1<br />

⎜ 1 0 0 0<br />

⎟<br />

⎝ 1 1 0 1 ⎠ = ⎜ 2 1 0 1<br />

⎟<br />

⎝ 3 3 1 2 ⎠<br />

0 1 0 1 1 2 1 1<br />

Thereisexactlyonewaytogofrom2to4inthreesteps.<br />

How many ways would there be of going from 2 to 4 in five steps?<br />

⎛<br />

⎞5<br />

⎛<br />

⎞<br />

0 1 1 0 5 9 5 4<br />

⎜ 1 0 0 0<br />

⎟<br />

⎝ 1 1 0 1 ⎠ = ⎜ 5 4 1 3<br />

⎟<br />

⎝ 9 10 4 6 ⎠<br />

0 1 0 1 4 6 3 3<br />

There are three ways. Note there are 10 ways to go from 3 to 2 in five steps.<br />

This is an interesting application of the concept of the ij th entry of the product matrices.<br />

2.1.3 Properties Of Matrix Multiplication<br />

As pointed out above, sometimes it is possible to multiply matrices in one order but not<br />

in the other order. What if it makes sense to multiply them in either order? Will they be<br />

equal then?<br />

Example 2.1.14 Compare<br />

(<br />

1 2<br />

3 4<br />

The first product is (<br />

1 2<br />

3 4<br />

the second product is ( 0 1<br />

1 0<br />

)(<br />

0 1<br />

1 0<br />

)(<br />

0 1<br />

1 0<br />

)( 1 2<br />

3 4<br />

)<br />

and<br />

)<br />

=<br />

)<br />

=<br />

(<br />

0 1<br />

1 0<br />

(<br />

2 1<br />

4 3<br />

( 3 4<br />

1 2<br />

)<br />

,<br />

)(<br />

1 2<br />

3 4<br />

and you see these are not equal. Therefore, you cannot conclude that AB = BA for matrix<br />

multiplication. However, there are some properties which do hold.<br />

)<br />

,<br />

)<br />

.

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

Saved successfully!

Ooh no, something went wrong!