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.

Section IV. Matrix Operations 237<br />

Distributing and regrouping on the v’s gives<br />

⎛<br />

⎜<br />

(1 · 4 + 1 · 5)v 1 +(1 · 6 + 1 · 7)v 2 +(1 · 8 + 1 · 9)v 3 +(1 · 2 + 1 · 3)v ⎞<br />

4<br />

⎟<br />

= ⎝(0 · 4 + 1 · 5)v 1 +(0 · 6 + 1 · 7)v 2 +(0 · 8 + 1 · 9)v 3 +(0 · 2 + 1 · 3)v 4 ⎠<br />

(1 · 4 + 0 · 5)v 1 +(1 · 6 + 0 · 7)v 2 +(1 · 8 + 0 · 9)v 3 +(1 · 2 + 0 · 3)v 4<br />

which is this matrix-vector product.<br />

⎛<br />

⎜<br />

1 · 4 + 1 · 5 1· 6 + 1 · 7 1· 8 + 1 · 9 1· 2 + 1 · 3<br />

⎞<br />

⎟<br />

= ⎝0 · 4 + 1 · 5 0· 6 + 1 · 7 0· 8 + 1 · 9 0· 2 + 1 · 3⎠<br />

1 · 4 + 0 · 5 1· 6 + 0 · 7 1· 8 + 0 · 9 1· 2 + 0 · 3<br />

B,D<br />

⎛ ⎞<br />

v 1<br />

v 2<br />

⎜ ⎟<br />

⎝v 3 ⎠<br />

v 4<br />

The matrix representing g ◦ h has the rows of G combined with the columns of<br />

H.<br />

B<br />

D<br />

2.3 Definition The matrix-multiplicative product of the m×r matrix G and the<br />

r×n matrix H is the m×n matrix P, where<br />

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

so that the i, j-th entry of the product is the dot product of the i-th row of the<br />

first matrix with the j-th column of the second.<br />

⎛<br />

⎞<br />

⎛<br />

⎞ h 1,j<br />

⎛<br />

⎞<br />

.<br />

··· h 2,j ···<br />

GH = ⎜<br />

⎝g i,1 g i,2 ··· g i,r<br />

⎟<br />

⎠ ⎜<br />

⎝<br />

⎟<br />

. ⎠ = .<br />

⎜<br />

⎝··· p i,j ··· ⎟<br />

⎠<br />

.<br />

.<br />

h r,j<br />

2.4 Example<br />

⎛<br />

⎜<br />

2 0<br />

⎞<br />

⎛<br />

( )<br />

⎟ 1 3 ⎜<br />

2 · 1 + 0 · 5 2· 3 + 0 · 7<br />

⎞ ⎛ ⎞<br />

2 6<br />

⎟ ⎜ ⎟<br />

⎝4 6⎠<br />

= ⎝4 · 1 + 6 · 5 4· 3 + 6 · 7⎠ = ⎝34 54⎠<br />

5 7<br />

8 2<br />

8 · 1 + 2 · 5 8· 3 + 2 · 7 18 38<br />

2.5 Example Some products are not defined, such as the product of a 2×3 matrix<br />

with a 2×2, because the number of columns in the first matrix must equal the<br />

number of rows in the second. But the product of two n×n matrices is always<br />

defined. Here are two 2×2’s.<br />

( )( )<br />

1 2 −1 0<br />

3 4 2 −2<br />

(<br />

=<br />

1 · (−1)+2 · 2 1· 0 + 2 · (−2)<br />

3 · (−1)+4 · 2 3· 0 + 4 · (−2)<br />

) (<br />

=<br />

3 −4<br />

5 −8<br />

)

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

Saved successfully!

Ooh no, something went wrong!