06.09.2021 Views

Linear Algebra, 2020a

Linear Algebra, 2020a

Linear Algebra, 2020a

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.

Section IV. Matrix Operations 239<br />

Above the arrows, the maps show that the two ways of going from V to X,<br />

straight over via the composition or else in two steps by way of W, have the<br />

same effect<br />

⃗v g◦h<br />

↦−→ g(h(⃗v)) ⃗v h<br />

↦−→ h(⃗v)<br />

g<br />

↦−→ g(h(⃗v))<br />

(this is just the definition of composition). Below the arrows, the matrices<br />

indicate that multiplying GH into the column vector Rep B (⃗v) has the same<br />

effect as multiplying the column vector first by H and then multiplying the<br />

result by G.<br />

Rep B,D (g ◦ h) =GH<br />

Rep C,D (g) Rep B,C (h) =GH<br />

As mentioned in Example 2.5, because the number of columns on the left<br />

does not equal the number of rows on the right, the product as here of a 2×3<br />

matrix with a 2×2 matrix is not defined.<br />

(<br />

)( )<br />

−1 2 0 0 0<br />

0 10 1.1 0 2<br />

The definition requires that the sizes match because we want that the underlying<br />

function composition is possible.<br />

dimension n space<br />

h<br />

−→ dimension r space<br />

g<br />

−→ dimension m space<br />

(∗)<br />

Thus, matrix product combines the m×r matrix G with the r×n matrix F to<br />

yield the m×n result GF. Briefly: m×r times r×n equals m×n.<br />

2.8 Remark The order of the dimensions can be confusing. In ‘m×r times r×<br />

n equals m×n’ the number written first is m. But m appears last in the map<br />

dimension description line (∗) above, and the other dimensions also appear in<br />

reverse. The explanation is that while h is done first, followed by g, we write<br />

the composition as g ◦ h, with g on the left (arising from the notation g(h(⃗v))).<br />

That carries over to matrices, so that g ◦ h is represented by GH.<br />

We can get insight into matrix-matrix product operation by studying how<br />

the entries combine. For instance, an alternative way to understand why we<br />

require above that the sizes match is that the row of the left-hand matrix must<br />

have the same number of entries as the column of the right-hand matrix, or else<br />

some entry will be left without a matching entry from the other matrix.<br />

Another aspect of the combinatorics of matrix multiplication, in the sum<br />

defining the i, j entry, is brought out here by the boxing the equal subscripts.<br />

p i,j = g i, 1 h 1 ,j + g i, 2 h 2 ,j + ···+ g i, r h r ,j<br />

The highlighted subscripts on the g’s are column indices while those on the h’s<br />

are for rows. That is, the summation takes place over the columns of G but

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

Saved successfully!

Ooh no, something went wrong!