The Chemistry Maths Book, Second Edition

(Grace) #1

18.3 Matrix algebra 507


Matrix multiplication


The matrix productC 1 = 1 AB(in this order, with Ato the left of B) is defined only if


the number of columns of A 1 = 1 the number of rows of B (18.25)


Then, if Ais anm 1 × 1 nmatrix with elementsa


ij

andBis ann 1 × 1 pmatrix with elements


b


ij

, the productC 1 = 1 ABis anm 1 × 1 pmatrix whose elements are


(18.26)


In the simplest case, if ais a row vector (matrix) with ncomponents a


i

and bis a


column vector (matrix) with ncomponentsb


i

, the product abis


(18.27)


The product is a number, a 11 × 11 matrix. In this case the matrix product corresponds


to the scalar producta 1
·


1 bof two (n-dimensional) vectors (see sections 16.5 and 16.10).


In the general case, the prescription (18.26) for the ijth element is the ‘scalar product’


of the ith row of Aand the jth column of B. Thus, with the relevant row and column


in boldface,


(18.28)


=


cc c c


cc c c


cc


jp

jp

i
i

11
12

11

21 22

22

1
2

......

......

...

  


c


ij

......

......

  


c


cc c c


ip

m 1 m 2 mj mp








































CAB


1
2

==


aaa a


aaa a


n

n

11
12 13

1

21 22 23

2

...

...

 


aaa


i
ii 33

...

...

 


a


in

aaa a


m
mm

1 mn
23






































bb b


bb b


11 p
12

1

21 22

......

......

b


b


j

j

1

2 22

31 32

2

1 2

p

p

n n np

bb b


bb b


......

......

  


b


b


j

nj

3


































ab=






















()aaa a


b


b


b


b


n

n

123

1

2

3


















=

=+ + ++ =



ab ab ab ab ab


nn

k

n

11 2 2 33 kk

1




cabab ab ab ab


ij i j i j i j in nj

k

n

ik

=+ + ++ =


=


11 2 2 33

1




kkj
Free download pdf