Vous êtes sur la page 1sur 7

12/3/2014

HowtoMultiplyMatrices

HowtoMultiplyMatrices
AMatrixisanarrayofnumbers:

AMatrix
(Thisonehas2Rowsand3Columns)
Tomultiplyamatrixbyasinglenumberiseasy:

Thesearethecalculations:
24=8

20=0

21=2 29=18
Wecallthenumber("2"inthiscase)ascalar,sothisiscalled"scalar

multiplication".

Multiplying a Matrix by Another Matrix


Buttomultiplyamatrixbyanothermatrixweneedtodothe" dotproduct "ofrows
andcolumns...whatdoesthatmean?Letusseewithanexample:
Toworkouttheanswerforthe1strowand1stcolumn:

http://www.mathsisfun.com/algebra/matrixmultiplying.html

1/7

12/3/2014

HowtoMultiplyMatrices

The"DotProduct"iswherewemultiplymatchingmembers,then
sumup:

(1,2,3)(7,9,11)=17+29+311=58
Wematchthe1stmembers(1and7),multiplythem,likewiseforthe
2ndmembers(2and9)andthe3rdmembers(3and11),andfinally
sumthemup.

Wanttoseeanotherexample?Hereitisforthe1strowand2ndcolumn:

(1,2,3)(8,10,12)=18+210+312=64
Wecandothesamethingforthe2ndrowand1stcolumn:

(4,5,6)(7,9,11)=47+59+611=139
Andforthe2ndrowand2ndcolumn:

(4,5,6)(8,10,12)=48+510+612=154
Andweget:

http://www.mathsisfun.com/algebra/matrixmultiplying.html

2/7

12/3/2014

HowtoMultiplyMatrices

DONE!

Why Do It This Way?


Thismayseemanoddandcomplicatedwayofmultiplying,butitisnecessary!
Icangiveyouareallifeexampletoillustratewhywemultiplymatricesinthisway.

Example:Thelocalshopsells3typesofpies.
Beefpiescost$3each
Chickenpiescost$4each
Vegetablepiescost$2each
Andthisishowmanytheysoldin4days:

Nowthinkaboutthis...thevalueofsalesforMondayiscalculatedthisway:

Beefpievalue+Chickenpievalue+Vegetablepie
value
$313+$48+$26=$83
Soitis,infact,the"dotproduct"ofpricesandhowmanyweresold:

($3,$4,$2)(13,8,6)=$313+$48+$26=$83
Wematchthepricetohowmanysold,multiplyeach,thensumtheresult.
http://www.mathsisfun.com/algebra/matrixmultiplying.html

3/7

12/3/2014

HowtoMultiplyMatrices

Inotherwords:
ThesalesforMondaywere:Beefpies:$313=$39,Chickenpies:
$48=$32,andVegetablepies:$26=$12.Togetherthatis$39+
$32+$12=$83
AndforTueday:$39+$47+$24=$63
AndforWednesday:$37+$44+$20=$37
AndforThursday:$315+$46+$23=$75
Soitisimportanttomatcheachpricetoeachquantity.

Nowyouknowwhyweusethe"dotproduct".

AndhereisthefullresultinMatrixform:

Theysold$83worthofpiesonMonday,$63onTuesday,etc.
(Youcanputthosevaluesintothe MatrixCalculator toseeiftheywork.)

Rows and Columns


Toshowhowmanyrowsandcolumnsamatrixhasweoftenwriterowscolumns.

Example:Thismatrixis23(2rowsby3columns):
http://www.mathsisfun.com/algebra/matrixmultiplying.html

4/7

12/3/2014

HowtoMultiplyMatrices

Whenwedomultiplication:

Thenumberofcolumnsofthe1stmatrixmustequalthenumberof
rowsofthe2ndmatrix.
Andtheresultwillhavethesamenumberofrowsasthe1stmatrix,
andthesamenumberofcolumnsasthe2ndmatrix.

Example:

Inthatexamplewemultiplieda13matrixbya34matrix(notethe3sare
thesame),andtheresultwasa14matrix.

InGeneral:
Tomultiplyanmnmatrixbyannpmatrix,thensmustbethesame,
andtheresultisanmpmatrix.

Order of Multiplication
Inarithmeticweareusedto:

http://www.mathsisfun.com/algebra/matrixmultiplying.html

5/7

12/3/2014

HowtoMultiplyMatrices

35=53
(The CommutativeLaw ofMultiplication)
Butthisisnotgenerallytrueformatrices(matrixmultiplicationisnotcommutative):

ABBA
Whenwechangetheorderofmultiplication,theansweris(usually)different.

Example:
Seehowchangingtheorderaffectsthismultiplication:

Identity Matrix
The"IdentityMatrix"isthematrixequivalentofthenumber"1":

A3x3IdentityMatrix
Itis"square"(hassamenumberofrowsascolumns),
Ithas1sonthediagonaland0severywhereelse.
ItssymbolisthecapitalletterI.
Itisaspecialmatrix,becausewhenwemultiplybyit,theoriginalisunchanged:

http://www.mathsisfun.com/algebra/matrixmultiplying.html

6/7

12/3/2014

HowtoMultiplyMatrices

AI=A
IA=A

Question1Question2Question3Question4
Question5Question6Question7Question8
Question9Question10Question11Question12

Search::Index::About::Contact::Contribute::CiteThisPage::Privacy
Copyright2014MathsIsFun.com

http://www.mathsisfun.com/algebra/matrixmultiplying.html

7/7

Vous aimerez peut-être aussi