• No results found

Matrices, part 2: Matrix Multiplication

N/A
N/A
Protected

Academic year: 2021

Share "Matrices, part 2: Matrix Multiplication"

Copied!
21
0
0

Loading.... (view fulltext now)

Full text

(1)
(2)

Motivation for Definition of Matrix Multiplication

Supposev1, . . . ,vnis a basis ofV

andw1, . . . ,wmis a basis ofW.

Supposeu1, . . . ,upis a basis ofU.

Consider linear mapsT : U → V andS: V → W. Does M(ST) equal M(S)M(T)? Suppose M(S) = A and M(T) = C. For1 ≤ k ≤ p, we have (ST)uk=S n X r=1 Cr,kvr = n X r=1 Cr,kSvr = n X r=1 Cr,k m X j=1 Aj,rwj = m X j=1 n X r=1 Aj,rCr,kwj.

Thus M(ST) is the m-by-p matrix whose entry in row j, column k, is

n

X

r=1

(3)

Motivation for Definition of Matrix Multiplication

Supposev1, . . . ,vnis a basis ofV

andw1, . . . ,wmis a basis ofW.

Supposeu1, . . . ,upis a basis ofU.

Consider linear mapsT : U → V andS: V → W. Does M(ST) equal M(S)M(T)? Suppose M(S) = A and M(T) = C. For1 ≤ k ≤ p, we have (ST)uk=S n X r=1 Cr,kvr = n X r=1 Cr,kSvr = n X r=1 Cr,k m X j=1 Aj,rwj = m X j=1 n X r=1 Aj,rCr,kwj.

Thus M(ST) is the m-by-p matrix whose entry in row j, column k, is

n

X

r=1

(4)

Motivation for Definition of Matrix Multiplication

Supposev1, . . . ,vnis a basis ofV

andw1, . . . ,wmis a basis ofW.

Supposeu1, . . . ,upis a basis ofU.

Consider linear mapsT : U → V andS: V → W. Does M(ST) equal M(S)M(T)? Suppose M(S) = A and M(T) = C. For1 ≤ k ≤ p, we have (ST)uk=S n X r=1 Cr,kvr = n X r=1 Cr,kSvr = n X r=1 Cr,k m X j=1 Aj,rwj = m X j=1 n X r=1 Aj,rCr,kwj.

Thus M(ST) is the m-by-p matrix whose entry in row j, column k, is

n

X

r=1

(5)

Motivation for Definition of Matrix Multiplication

Supposev1, . . . ,vnis a basis ofV

andw1, . . . ,wmis a basis ofW.

Supposeu1, . . . ,upis a basis ofU.

Consider linear mapsT : U → V andS: V → W. Does M(ST) equal M(S)M(T)? Suppose M(S) = A and M(T) = C. For1 ≤ k ≤ p, we have (ST)uk=S n X r=1 Cr,kvr = n X r=1 Cr,kSvr = n X r=1 Cr,k m X j=1 Aj,rwj = m X j=1 n X r=1 Aj,rCr,kwj.

Thus M(ST) is the m-by-p matrix whose entry in row j, column k, is

n

X

r=1

(6)

Motivation for Definition of Matrix Multiplication

Supposev1, . . . ,vnis a basis ofV

andw1, . . . ,wmis a basis ofW.

Supposeu1, . . . ,upis a basis ofU.

Consider linear mapsT : U → V andS: V → W. Does M(ST) equal M(S)M(T)? Suppose M(S) = A and M(T) = C. For1 ≤ k ≤ p, we have (ST)uk=S n X r=1 Cr,kvr = n X r=1 Cr,kSvr = n X r=1 Cr,k m X j=1 Aj,rwj = m X j=1 n X r=1 Aj,rCr,kwj.

Thus M(ST) is the m-by-p matrix whose entry in row j, column k, is

n

X

r=1

(7)

Definition of Matrix Multiplication

Definition:matrix multiplication

SupposeA is an m-by-n matrix and C is an n-by-p matrix. Then AC is defined to be them-by-p matrix whose entry in row j, column k, is given by the following equation:

(AC)j,k = n

X

r=1

Aj,rCr,k.

(8)

Definition of Matrix Multiplication

Definition:matrix multiplication

SupposeA is an m-by-n matrix and C is an n-by-p matrix. Then AC is defined to be them-by-p matrix whose entry in row j, column k, is given by the following equation:

(AC)j,k = n

X

r=1

Aj,rCr,k.

(9)

Definition of Matrix Multiplication

Definition:matrix multiplication

SupposeA is an m-by-n matrix and C is an n-by-p matrix. Then AC is defined to be them-by-p matrix whose entry in row j, column k, is given by the following equation:

(AC)j,k = n

X

r=1

Aj,rCr,k.

(10)

Matrices and Products of Linear Maps

In the following result, the same basis ofV is used in considering T ∈ L(U, V) and S ∈ L(V, W), the same basis of W is used in

consideringS ∈ L(V, W) and ST ∈ L(U, W), and the same basis of U is used in consideringT ∈ L(U, V) and ST ∈ L(U, W).

The matrix of the product of linear maps

IfT ∈ L(U, V) and S ∈ L(V, W), then M(ST) = M(S)M(T).

(11)

Notation for Row and Column of Matrix

Notation: Aj,· ,A·,k

SupposeA is an m-by-n matrix.

If1 ≤ j ≤ m, then Aj,·denotes the1-by-n matrix consisting of rowj of A.

If1 ≤ k ≤ n, then A·,k denotes them-by-1 matrix consisting of

columnk of A. Example: IfA =  8 4 5 1 9 7 

, thenA2,·is row2 of A and A·,2is

column2 of A. In other words,

(12)

Notation for Row and Column of Matrix

Notation: Aj,· ,A·,k

SupposeA is an m-by-n matrix.

If1 ≤ j ≤ m, then Aj,·denotes the1-by-n matrix consisting of rowj of A.

If1 ≤ k ≤ n, then A·,k denotes them-by-1 matrix consisting of

columnk of A. Example: IfA =  8 4 5 1 9 7 

, thenA2,·is row2 of A and A·,2is

column2 of A. In other words,

(13)

Alternative Ways to Think about Matrix Multiplication

Example: 3 4   6 2  = 26  = 26.

Entry of matrix product equals row times column

SupposeA is an m-by-n matrix and C is an n-by-p matrix. Then (AC)j,k =Aj,·C·,k

(14)

Alternative Ways to Think about Matrix Multiplication

Example: 3 4   6 2  = 26  = 26.

Entry of matrix product equals row times column

SupposeA is an m-by-n matrix and C is an n-by-p matrix. Then (AC)j,k =Aj,·C·,k

(15)

Alternative Ways to Think about Matrix Multiplication

Column of matrix product equals matrix times column

SupposeA is an m-by-n matrix and C is an n-by-p matrix. Then (AC)·,k=AC·,k

for1 ≤ k ≤ p.

Row of matrix product equals row times matrix

SupposeA is an m-by-n matrix and C is an n-by-p matrix. Then (AC)j,· =Aj,·C

(16)

Alternative Ways to Think about Matrix Multiplication

Column of matrix product equals matrix times column

SupposeA is an m-by-n matrix and C is an n-by-p matrix. Then (AC)·,k=AC·,k

for1 ≤ k ≤ p.

Row of matrix product equals row times matrix

SupposeA is an m-by-n matrix and C is an n-by-p matrix. Then (AC)j,· =Aj,·C

(17)

Matrix Times a Column Vector

Linear combination of columns

SupposeA is an m-by-n matrix and c =    c1 .. . cn   is ann-by-1 matrix. ThenAc = c1A·,1+ · · · +cnA·,n.

In other words,Ac is a linear combination of the columns of A, with the scalars that multiply the columns coming fromc.

(18)

Matrix Times a Column Vector

Linear combination of columns

SupposeA is an m-by-n matrix and c =    c1 .. . cn   is ann-by-1 matrix. ThenAc = c1A·,1+ · · · +cnA·,n.

In other words,Ac is a linear combination of the columns of A, with the scalars that multiply the columns coming fromc.

(19)

Row Vector Times a Matrix

Linear combination of rows

Supposea = a1 · · · an  is a1-by-n matrix and C is an n-by-p

matrix. Then

aC = a1C1,·+ · · · +anCn,·.

In other words,aC is a linear combination of the rows of C, with the scalars that multiply the rows coming froma.

(20)

Row Vector Times a Matrix

Linear combination of rows

Supposea = a1 · · · an  is a1-by-n matrix and C is an n-by-p

matrix. Then

aC = a1C1,·+ · · · +anCn,·.

In other words,aC is a linear combination of the rows of C, with the scalars that multiply the rows coming froma.

(21)

References

Related documents

(C) The values of l(i,j) cannot be computed in either row major order or column major order of L(M,N).. Common Data Questions: 55

It has been observed that every normalized Yates quaternary complex Hadamard matrix of order 2 k have full row and column sign spectrum.. We also show that Yates quaternary

To view chained entries or to add chains, click on the chain icon in the filtering pane or right-click on the entry row in the entry list and select link from

(a) The value of a determinant is obtained by multiplying the elements of any row (or column) with the corresponding cofactors and adding the resulting products.. (b) If we multiply

In this chapter, we mainly study the general linear group GL n ( K) of invertible n ×n-matrices with entries in K = R or C and introduce some of its subgroups.. In particular,

Libra value: Libra value of a given square matrix is that constant value for the given matrix obtained by adding the all the entries of each row or column or diagonal (both leading

In order to find an A-magic labeling matrix of K r,s − e with magic value x, it suffices to find such a matrix B (having non-zero entries) so that its row sums and column sums are x..

If the final entry on the (r + 1)-st row is not invertible in Z/kZ then, using Corollary 4.2 , it can be made invertible by right-multiplying by some column matrix, because the