0% found this document useful (0 votes)
77 views16 pages

Matrix Multiplication: Jackie Nicholas Mathematics Learning Centre University of Sydney

Matrix multiplication involves multiplying the rows of the first matrix with the columns of the second matrix. For two matrices to be multiplied, the number of columns in the first matrix must equal the number of rows in the second matrix. The product of the matrices results in a matrix with the same number of rows as the first matrix and the same number of columns as the second matrix. Order matters for matrix multiplication, as AB is not necessarily equal to BA. Properties of matrix multiplication include that multiplication is associative and distributive over addition.

Uploaded by

ROMMEL DORIN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views16 pages

Matrix Multiplication: Jackie Nicholas Mathematics Learning Centre University of Sydney

Matrix multiplication involves multiplying the rows of the first matrix with the columns of the second matrix. For two matrices to be multiplied, the number of columns in the first matrix must equal the number of rows in the second matrix. The product of the matrices results in a matrix with the same number of rows as the first matrix and the same number of columns as the second matrix. Order matters for matrix multiplication, as AB is not necessarily equal to BA. Properties of matrix multiplication include that multiplication is associative and distributive over addition.

Uploaded by

ROMMEL DORIN
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Matrix multiplication

Jackie Nicholas
Mathematics Learning Centre
University of Sydney

c
!2010 University of Sydney
Multiplying matrices

We can multiply matrices A and B together to form the product


AB provided the number of columns in A equals the number of
rows in B.
 
! " 0 −5
4 −1 3
If A = and B =  −1 −4 
1 −2 9
0 −1

then we can define AB as A has three columns and B has three


rows.
Multiplying matrices

! " ! "
4 −1 3 0 −5
If A = and B =
1 −2 9 −1 −4

then AB is not defined as A is a 2 × 3 matrix and B is a 2 × 2


matrix; the number of columns of A does not equal the number of
rows of B.

On the other hand, the product BA is defined as the number of


columns of B, 2, does equal the number of rows of A.

This tells us something very important; order matters!!

In most cases AB $= BA. Here AB is not defined whereas BA is.


How to multiply matrices

In general, if A is a m × n matrix and B is a n × p matrix, the


product AB will be a m × p matrix.

Let C = AB. It is a m × p matrix.

Recall that the entry in the ith row and jth column of C , ie the
(i , j)th entry of C , is called cij .

The entry cij is the product of the ith row of A and the jth column
of B as follows:

cij = ai1 b1j + ai2 b2j + ai3 b3j + ai4 b4j + · · · + ain bnj .
Example of multiplying matrices 1

That probably looked a bit complicated so we will go through an


example.
 
0 −5 ! "
0 −1
Let A =  −1 −4  and B =
−3 2
6 −2
A is a 3 × 2 matrix and B is a 2 × 2, so AB is defined.
 
c11 c12
If C = AB is then C =  c21 c22  is a 3 × 2 matrix.
c31 c32
Example of multiplying matrices 2

   
0 −5 ! " c11 c12
 −1 −4  × 0 −1
=  c21 c22 
−3 2
6 −2 c31 c32

For the first entry c11 we multiple the first row of A with the first
column of B as follows:
   
0 −5 ! " 0 × 0 + −5 × −3 .
 . 0 .
. × = . . 
−3 .
. . . .

ie c11 = a11 × b11 + a12 × b21 = 15 .


Example of multiplying matrices 3

   
0 −5 ! " 15 c12
 −1 −4  × 0 −1
=  c21 c22 
−3 2
6 −2 c31 c32

For the entry c12 we multiple the first row of A with the second
column of B as follows:
   
0 −5 ! " . 0 × −1 + −5 × 2
 . . −1
. × = . . 
. 2
. . . .

ie c12 = a11 × b12 + a12 × b22 = −10 .


Example of multiplying matrices 4

   
0 −5 ! " 15 −10
 −1 −4  × 0 −1
=  c21 c22 
−3 2
6 −2 c31 c32

For the entry c21 we multiple the second row of A with the first
column of B as follows:
   
. . ! " . .
 −1 −4  × 0 .
=  −1 × 0 + −4 × −3 . 
−3 .
. . . .

ie c21 = a21 × b11 + a22 × b21 = 12 .


Example of multiplying matrices 5

So, to multiply two matrices we systematically work out each


entry in this way, starting with the first entry.
     
0 −5 ! " c11 c12 15 − 10
 −1 −4  × 0 −1
=  c21 c22  =  12 −7 
−3 2
6 −2 c31 c32 6 − 10

Click to see how we get the other entries.


   
0 −5 ! " 15 − 10
 −1 0 −1
−4  × =  12 −7 
−3 2
6 −2 6 − 10
Example of multiplying matrices 5

So, to multiply two matrices we systematically work out each


entry in this way, starting with the first entry.
     
0 −5 ! " c11 c12 15 − 10
 −1 −4  × 0 −1
=  c21 c22  =  12 −7 
−3 2
6 −2 c31 c32 6 − 10

Click to see how we get the other entries.


   
0 −5 ! " 15 − 10
 −1 0 −1
−4  × =  12 −7 
−3 2
6 −2 6 − 10
Example of multiplying matrices 5

So, to multiply two matrices we systematically work out each


entry in this way, starting with the first entry.
     
0 −5 ! " c11 c12 15 − 10
 −1 −4  × 0 −1
=  c21 c22  =  12 −7 
−3 2
6 −2 c31 c32 6 − 10

Click to see how we get the other entries.


   
0 −5 ! " 15 − 10
 −1 0 −1
−4  × =  12 −7 
−3 2
6 −2 6 − 10
Example of multiplying matrices 5

So, to multiply two matrices we systematically work out each


entry in this way, starting with the first entry.
     
0 −5 ! " c11 c12 15 − 10
 −1 −4  × 0 −1
=  c21 c22  =  12 −7 
−3 2
6 −2 c31 c32 6 − 10

Click to see how we get the other entries.


   
0 −5 ! " 15 − 10
 −1 0 −1
−4  × =  12 −7 
−3 2
6 −2 6 − 10
Example of multiplying matrices 5

So, to multiply two matrices we systematically work out each


entry in this way, starting with the first entry.
     
0 −5 ! " c11 c12 15 − 10
 −1 −4  × 0 −1
=  c21 c22  =  12 −7 
−3 2
6 −2 c31 c32 6 − 10

Click to see how we get the other entries.


   
0 −5 ! " 15 − 10
 −1 0 −1
−4  × =  12 −7 
−3 2
6 −2 6 − 10
Example of multiplying matrices 5

So, to multiply two matrices we systematically work out each


entry in this way, starting with the first entry.
     
0 −5 ! " c11 c12 15 − 10
 −1 −4  × 0 −1
=  c21 c22  =  12 −7 
−3 2
6 −2 c31 c32 6 − 10

Click to see how we get the other entries.


   
0 −5 ! " 15 − 10
 −1 0 −1
−4  × =  12 −7 
−3 2
6 −2 6 − 10
Example of multiplying matrices 5

So, to multiply two matrices we systematically work out each


entry in this way, starting with the first entry.
     
0 −5 ! " c11 c12 15 − 10
 −1 −4  × 0 −1
=  c21 c22  =  12 −7 
−3 2
6 −2 c31 c32 6 − 10

Click to see how we get the other entries.


   
0 −5 ! " 15 − 10
 −1 0 −1
−4  × =  12 −7 
−3 2
6 −2 6 − 10
Properties of matrix multiplication

Let A, B and C be matrices of dimensions for which the following


expressions make sense, and let λ be a scalar. Then,

A(BC ) = (AB)C
A(B + C ) = AB + AC
(A + B)C = AC + BC
λ(AB) = (λA)B = A(λB)
Note also that 0A = 0 = A0

The 0 in the last property could mean the scalar zero or the
(appropriate) zero matrix. For example,
     
2 −5 0 0 2 −5 ! "
0 0
0  −1 −4  =  0 0  =  −1 −4 
0 0
6 −2 0 0 6 −2

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy