Académique Documents
Professionnel Documents
Culture Documents
InverseofaMatrix
InverseofaMatrix
Pleasereadour IntroductiontoMatrices first.
ReciprocalofaNumber
TheInverseofaMatrixisthesameideabutwewriteitA1
Whenwemultiplyanumberbyitsreciprocalweget1
8(1/8 )=1
WhenwemultiplyaMatrixbyitsInversewegettheIdentityMatrix(whichis
like"1"forMatrices):
AA1=I
Samethingwhentheinversecomesfirst:
(1/8 )8=1
A1A=I
Identity Matrix
Wejustmentionedthe"IdentityMatrix".Itisthematrixequivalentofthenumber"1":
https://www.mathsisfun.com/algebra/matrixinverse.html
1/9
11/29/2016
InverseofaMatrix
Wejustmentionedthe"IdentityMatrix".Itisthematrixequivalentofthenumber"1":
A3x3IdentityMatrix
Itis"square"(hassamenumberofrowsascolumns),
Ithas1sonthediagonaland0severywhereelse.
It'ssymbolisthecapitalletterI.
TheIdentityMatrixcanbe22insize,or33,44,etc...
Definition
Hereisthedefinition:
TheInverseofAisA1onlywhen:
AA1=A1A=I
SometimesthereisnoInverseatall.
2x2 Matrix
OK,howdowecalculatetheInverse?
Well,fora2x2MatrixtheInverseis:
Inotherwords:swapthepositionsofaandd,putnegativesinfrontofbandc,anddivide
everythingbythe determinant (adbc).
Letustryanexample:
https://www.mathsisfun.com/algebra/matrixinverse.html
2/9
11/29/2016
InverseofaMatrix
Howdoweknowthisistherightanswer?
Rememberitmustbetruethat:AA1=I
So,letuschecktoseewhathappenswhenwe multiplythematrix byitsinverse:
And,hey!,weendupwiththeIdentityMatrix!Soitmustberight.
Itshouldalsobetruethat:A1A=I
Whydon'tyouhaveagoatmultiplyingthese?SeeifyoualsogettheIdentityMatrix:
Imaginewecan'tdividebynumbers...
https://www.mathsisfun.com/algebra/matrixinverse.html
3/9
11/29/2016
InverseofaMatrix
...andsomeoneasks"HowdoIshare10appleswith2people?"
Butwecantakethereciprocalof2(whichis0.5),soweanswer:
100.5=5
Theyget5appleseach.
ThesamethingcanbedonewithMatrices:
SayweknowMatrixAandB,andwanttofindMatrixX:
XA=B
ItwouldbenicetodividebothsidesbyA(togetX=B/A),butrememberwecan't
divide.
ButwhatifwemultiplybothsidesbyA1?
XAA1=BA1
AndweknowthatAA1=I,so:
XI=BA1
WecanremoveI(forthesamereasonwecanremove"1"from1x=abfornumbers):
X=BA1
Andwehaveouranswer(assumingwecancalculateA1)
Inthatexamplewewereverycarefultogetthemultiplicationscorrect,becausewithMatricesthe
orderofmultiplicationmatters.ABisalmostneverequaltoBA.
4/9
11/29/2016
InverseofaMatrix
Theytookthetrainbackat$3.50perchildand$3.60peradult
foratotalof$135.20.
Howmanychildren,andhowmanyadults?
First,letussetupthematrices(becarefultogettherowsandcolumnscorrect!):
Thisisjustliketheexampleabove:
XA=B
Sotosolveitweneedtheinverseof"A":
Nowwehavetheinversewecansolveusing:
X=BA1
Therewere16childrenand22adults!
https://www.mathsisfun.com/algebra/matrixinverse.html
5/9
11/29/2016
InverseofaMatrix
Theansweralmostappearslikemagic.Butitisbasedongoodmathematics.
Calculationslikethat(butusingmuchlargermatrices)helpEngineersdesignbuildings,
areusedinvideogamesandcomputeranimationstomakethingslook3dimensional,
andmanyotherplaces.
Itisalsoawaytosolve SystemsofLinearEquations .
Thecalculationsaredonebycomputer,butthepeoplemustunderstandtheformulas.
Order is Important
Saythatwearetryingtofind"X"inthiscase:
AX=B
Thisisdifferenttotheexampleabove!XisnowafterA.
WithMatricestheorderofmultiplicationusuallychangestheanswer.Donotassumethat
AB=BA,itisalmostnevertrue.
Sohowdowesolvethisone?Usingthesamemethod,butputA1infront:
A1AX=A1B
AndweknowthatA1A=I,so:
IX=A1B
WecanremoveI:
X=A1B
Andwehaveouranswer(assumingwecancalculateA1)
Whydon'twetryourbusandtrainexample,butwiththedatasetupthatwayaround.
Itcanbedonethatway,butwemustbecarefulhowwesetitup.
https://www.mathsisfun.com/algebra/matrixinverse.html
6/9
11/29/2016
InverseofaMatrix
ThisiswhatitlookslikeasAX=B:
Itlookssoneat!IthinkIpreferitlikethis.
Alsonotehowtherowsandcolumnsareswappedover("Transposed")
comparedtothepreviousexample.
Tosolveitweneedtheinverseof"A":
ItisliketheInversewegotbefore,but
Transposed(rowsandcolumnsswappedover).
Nowwecansolveusing:
X=A1B
Sameanswer:16childrenand22adults.
So,Matricesarepowerfulthings,buttheydoneedtobesetupcorrectly!
https://www.mathsisfun.com/algebra/matrixinverse.html
7/9
11/29/2016
InverseofaMatrix
2424?Thatequals0,and1/0isundefined.
Wecannotgoanyfurther!ThisMatrixhasnoInverse.
SuchaMatrixiscalled"Singular",whichonlyhappenswhenthedeterminantiszero.
Anditmakessense...lookatthenumbers:thesecondrowisjustdoublethefirstrow,anddoes
notaddanynewinformation.
Andthedeterminantletsusknowthisfact.
(Imagineinourbusandtrainexamplethatthepricesonthetrainwereallexactly50%higherthan
thebus:sonowwecan'tfigureoutanydifferencesbetweenadultsandchildren.Thereneedstobe
somethingtosetthemapart.)
Bigger Matrices
Theinverseofa2x2iseasy...comparedtolargermatrices(suchasa3x3,4x4,etc).
Forthoselargermatricestherearethreemainmethodstoworkouttheinverse:
InverseofaMatrixusingElementaryRowOperations(GaussJordan)
InverseofaMatrixusingMinors,CofactorsandAdjugate
Useacomputer(suchastheMatrixCalculator)
Conclusion
TheInverseofAisA1onlywhenAA1=A1A=I
TofindtheInverseofa2x2Matrix:swapthepositionsofaandd,put
negativesinfrontofbandc,anddivideeverythingbythedeterminant(ad
bc).
SometimesthereisnoInverseatall
Question1Question2Question3Question4Question5
Question6Question7Question8
https://www.mathsisfun.com/algebra/matrixinverse.html
8/9
11/29/2016
InverseofaMatrix
Search::Index::About::Contact::Contribute::CiteThisPage::Privacy
Copyright2014MathsIsFun.com
https://www.mathsisfun.com/algebra/matrixinverse.html
9/9