



















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




















C Coonntteennttss
i
i m
m s
s a
a n
n d
d O
b
b j
j e
e c
c t
t i
i v
v e
e s
s
22 .. 11 IInnttrroodduuccttiioonn
22 .. 22 MMaattrriixx aallggeebbrraa
y
y p
p e
e s
s o
o f
f m
m a
a t
t r
r i
i c
c e
e s
s
22 .. 22 .. 22 MMaattrriixx ooppeerraattiioonn
22 .. 22 .. 33 TThhee mmuullttiipplliiccaattiivvee iinnvveerrssee ooff aa mmaattrriixx
a
a t
t r
r i
i x
x A
p
p p
p l
l i
i c
c a
a t
t i
i o
o n
n
o
o l
l v
v i
i n
n g
g s
s y
y s
s t
t e
e m
m s
s o
o f
f l
l i
i n
n e
e a
a r
r e
e q
q u
u a
a t
t i
i o
o n
n s
s
22 .. 33 .. 22 WWoorrdd pprroobblleemmss
22 .. 33 .. 33 MMaarrkkoovv CChhaaiinnss
f
f t
t e
e r
r r
r e
e a
a d
d i
i n
n g
g t
t h
h i
i s
s c
c h
h a
a p
p t
t e
e r
r s
s t
t u
u d
d e
e n
n t
t s
s w
w i
i l
l l
l b
b e
e a
a b
b l
l e
e t
t o
o :
d
d e
e f
f i
i n
n e
e t
t h
h e
e d
d i
i f
f f
f e
e r
r e
e n
n t
t t
t y
y p
p e
e s
s o
o f
f m
m a
a t
t r
r i
i c
c e
e s
s
e
e x
x p
p l
l a
a i
i n
n h
h o
o w
w t
t o
o s
s o
o l
l v
v e
e a
a s
s y
y s
s t
t e
e m
m s
s o
o f
f l
l i
i n
n e
e a
a r
r e
e q
q u
u a
a t
t i
i o
o n
n s
s
u
u n
n d
d e
e r
r s
s t
t a
a n
n d
d t
t h
h e
e c
c o
o n
n c
c e
e p
p t
t o
o f
f M
a
a r
r k
k o
o v
v c
c h
h a
a i
i n
n
r
r e
e v
v i
i t
t y
y i
i n
n m
m a
a t
t h
h e
e m
m a
a t
t i
i c
c a
a l
l s
s t
t a
a t
t e
e m
m e
e n
n t
t s
s i
i s
s a
a c
c h
h i
i e
e v
v e
e d
d t
t h
h r
r o
o u
u g
g h
h t
t h
h e
e u
u s
s e
e o
o f
f s
s y
y m
m b
b o
o l
l s
s .
h
h e
e p
p r
r i
i c
c e
e
p paaiidd ffoorr bbrreevviittyy,, ooff ccoouurrssee,, iiss tthhee eeffffoorrtt ssppeenntt iinn lleeaarrnniinngg tthhee mmeeaanniinngg ooff tthhee ssyymmbbooll..
I Inn tthhiiss uunniitt wwee sshhaallll lleeaarrnn tthhee ssyymmbboollss ffoorr mmaattrriicceess,, aanndd aappppllyy tthheemm iinn tthhee ssttaatteemmeenntt aanndd
s soolluuttiioonn ooff iinnppuutt--oouuttppuutt pprroobblleemmss aanndd ootthheerr pprroobblleemm iinnvvoollvviinngg lliinneeaarr ssyysstteemmss
l
l g
g e
e b
b r
r a
a i
i s
s a
a p
p a
a r
r t
t o
o f
f m
m a
a t
t h
h e
e m
m a
a t
t i
i c
c s
s ,
w
w h
h i
i c
c h
h d
d e
e a
a l
l s
s w
w i
i t
t h
h o
o p
p e
e r
r a
a t
t i
i o
o n
n s
s (
x
x ,
m
m a
a t
t r
r i
i x
x i
i s
s a
a r
r e
e c
c t
t a
a n
n g
g u
u l
l a
a r
r a
a r
r r
r a
a y
y o
o f
f r
r e
e a
a l
l n
n u
u m
m b
b e
e r
r s
s a
a r
r r
r a
a n
n g
g e
e d
d i
i n
n m
m r
r o
o w
w s
s &
n
n c
c o
o l
l u
u m
m n
n s
s .
t
t i
i s
s
s
s y
y m
m b
b o
o l
l i
i z
z e
e d
d b
b y
y a
a b
b o
o l
l d
d f
f a
a c
c e
e c
c a
a p
p i
i t
t a
a l
l l
l e
e t
t t
t e
e r
r e
e n
n c
c l
l o
o s
s e
e d
d b
b y
y a
a b
b r
r a
a c
c k
k e
e t
t o
o r
r p
p a
a r
r e
e n
n t
t h
h e
e s
s e
e s
s .
e egg..
m m mn
n
n
a a a
a a a
a a a
1 2
21 22 2
11 12 1
iinn wwhhiicchh aa jjjj
aarree rreeaall nnuummbbeerrss
a
a c
c h
h n
n u
u m
m b
b e
e r
r a
a p
p p
p e
e a
a r
r i
i n
n g
g i
i n
n t
t h
h e
e a
a r
r r
r a
a y
y i
i s
s s
s a
a i
i d
d t
t o
o b
b e
e a
a n
n e
e l
l e
e m
m e
e n
n t
t o
o r
r c
c o
o m
m p
p o
o n
n e
e n
n t
t o
o f
f t
t h
h e
e m
m a
a t
t r
r i
i x
x .
E Elleemmeenntt ooff aa mmaattrriixx aarree ddeessiiggnnaatteedd uussiinngg aa lloowweerr ccaassee ffoorrmm ooff tthhee ssaammee lleetttteerr uusseedd ttoo
s
s y
y m
m b
b o
o l
l i
i z
z e
e t
t h
h e
e m
m a
a t
t r
r i
i x
x i
i t
t s
s e
e l
l f
f .
h
h e
e s
s e
e l
l e
e t
t t
t e
e r
r s
s a
a r
r e
e s
s u
u b
b s
s c
c r
r i
i p
p t
t e
e d
d a
a s
s a
a
i
i j
j,
t
t o
o g
g i
i v
v e
e t
t h
h e
e r
r o
o w
w &
c
c o
o l
l u
u m
m n
n
l
l o
o c
c a
a t
t i
i o
o n
n o
o f
f t
t h
h e
e e
e l
l e
e m
m e
e n
n t
t w
w i
i t
t h
h i
i n
n t
t h
h e
e a
a r
r r
r a
a y
y .
h
h e
e f
f i
i r
r s
s t
t s
s u
u b
b s
s c
c r
r i
i p
p t
t a
a l
l w
w a
a y
y s
s r
r e
e f
f e
e r
r s
s t
t o
o t
t h
h e
e r
r a
a w
w
l looccaattiioonn ooff tthhee eelleemmeenntt;; tthhee sseeccoonndd ssuubbssccrriipptt aallwwaayyss rreeffeerrss ttoo iittss ccoolluummnn llooccaattiioonn.. TThhuuss,,
c coommppoonneenntt aa iijj
iiss tthhee ccoommppoonneenntt llooccaatteedd aatt tthhee iinntteerrsseeccttiioonn ooff tthhee ii
tthh
rraaww aanndd jj
tthh
ccoolluummnn..
T Thhee nnuummbbeerr ooff rroowwss ((mm)) && tthhee nnuummbbeerr ooff ccoolluummnnss ((nn)) ooff tthhee aarrrraayy ggiivvee iittss oorrddeerr oorr iittss
d
d i
i m
m e
e n
n s
s i
i o
o n
n ,
x
x n
n (
r
r e
e a
a d
d s
s “
b
b y
y “
n
n ”
g
g .
h
h e
e f
f o
o l
l l
l o
o w
w i
i n
n g
g a
a r
r e
e e
e x
x a
a m
m p
p l
l e
e s
s o
o f
f m
m a
a t
t r
r i
i c
c e
e s
s
e
e l
l e
e m
m e
e n
n t
t a
a
1
1 2
t
t h
h i
i s
s i
i s
s 3
x
x 2
m
m a
a t
t r
r i
i x
x a
a
2
2 1
44 22 aa 3322
h
h i
i s
s i
i s
s a
a 4
x
x 4
m
m a
a t
t r
r i
i x
x
l
l e
e m
m e
e n
n t
t X
3344
4
4 2
22 .. 22 .. 11 TTyyppeess ooff MMaattrriicceess
h
h e
e r
r e
e a
a r
r e
e d
d e
e f
f e
e r
r e
e n
n t
t t
t y
y p
p e
e s
s o
o f
f m
m a
a t
t r
r i
i c
c e
e s
s .
h
h e
e s
s e
e a
a r
r e
e :
e
e c
c t
t o
o r
r m
m a
a t
t r
r i
i x
x :
i
i s
s a
a m
m a
a t
t r
r i
i x
x ,
w
w h
h i
i c
c h
h c
c o
o n
n s
s i
i s
s t
t s
s o
o f
f j
j u
u s
s t
t o
o n
n e
e r
r o
o w
w o
o r
r j
j u
u s
s t
t o
o n
n e
e c
c o
o l
l u
u m
m n
n .
t
t i
i s
s a
a n
n
m m xx 11 oorr 11 xx nn mmaattrriixx..
a
a t
t r
r i
i x
x o
o p
p e
e r
r a
a t
t i
i o
o n
n s
s (
d
d d
d i
i t
t i
i o
o n
n ,
u
u b
b t
t r
r a
a c
c t
t i
i o
o n
n ,
u
u l
l t
t i
i p
p l
l i
i c
c a
a t
t i
i o
o n
n )
a
a t
t r
r i
i x
x A
d
d d
d i
i t
t i
i o
o n
n /
u
u b
b t
t r
r a
a c
c t
t i
i o
o n
n
T Twwoo mmaattrriicceess ooff tthhee ssaammee ddiimmeennssiioonn aarree ssaaiidd ttoo bbee CCOONNFFOORRMMAABBLLEE FFOORR AADDDDIITTIIOONN..
A Addddiinngg ccoorrrreessppoonnddiinngg eelleemmeennttss ffrroomm tthhee ttwwoo mmaattrriicceess && eenntteerriinngg tthhee rreessuulltt iinn tthhee ssaammee
r
r a
a w
w
c
c o
o l
l u
u m
m n
n p
p o
o s
s i
i t
t i
i o
o n
n o
o f
f a
a n
n e
e w
w m
m a
a t
t r
r i
i x
x p
p e
e r
r f
f o
o r
r m
m t
t h
h e
e a
a d
d d
d i
i t
t i
i o
o n
n .
f
f A
a
a r
r e
e t
t w
w o
o m
m a
a t
t r
r i
i c
c e
e s
s ,
e
e a
a c
c h
h o
o f
f s
s i
i t
t e
e m
m x
x n
n ,
t
t h
h e
e n
n t
t h
h e
e s
s u
u m
m o
o f
f A
i
i s
s t
t h
h e
e m
m x
x n
n m
m a
a t
t r
r i
i x
x
C C wwhhoossee eelleemmeennttss aarree::
iijj
== aa iijj
++bb iijj
ffoorr ii == 11 ,, 22 - ---------------mm CC 1111
== aa 1111
++ bb 1111
j j == 11 ,, 22 - -----------------nn CC 2222
== aa 2222
++ bb 2222
1
1 2
a
a
1
1 2
b
b
1
1 2
2 e
e t
t c
c
e egg.. 11 33 77 99 88 1122
e egg.. – – 22 77 22 88 77 TThheessee ttwwoo mmaattrriicceess aarreenn’’tt
44 66 99 ++ 66 44 == ccoonnffoorrmmaabbllee ffoorr aaddddiittiioonn
b
b e
e c
c a
a u
u s
s e
e t
t h
h e
e y
y a
a r
r e
e n
n ’
t
t o
o f
f t
t h
h e
e
s saammee ddiimmeennssiioonn..
L Laawwss ooff mmaattrriixx aaddddiittiioonn
T Thhee ooppeerraattiioonn ooff aaddddiinngg ttwwoo mmaattrriicceess tthhaatt aarree ccoonnffoorrmmaabbllee ffoorr aaddddiittiioonn hhaass tthheessee ttwwoo
b
b a
a s
s i
i c
c p
p r
r o
o p
p e
e r
r t
t i
i e
e s
s .
h
h e
e c
c o
o m
m m
m u
u t
t a
a t
t i
i v
v e
e l
l a
a w
w o
o f
f m
m a
a t
t r
r i
i x
x a
a d
d d
d i
i t
t i
i o
o n
n
t
t h
h e
e a
a s
s s
s o
o c
c i
i a
a t
t i
i v
v e
e l
l a
a w
w o
o f
f m
m a
a t
t r
r i
i x
x a
a d
d d
d i
i t
t i
i o
o n
n
→ → TThhee llaawwss ooff mmaattrriixx aaddddiittiioonn aarree aapppplliiccaabbllee ttoo llaawwss ooff mmaattrriixx ssuubbttrraaccttiioonn,, ggiivveenn
t thhaatt tthhee ttwwoo mmaattrriicceess aarree ccoonnffoorrmmaabbllee ffoorr ssuubbttrraaccttiioonn AA – – BB == AA ++ ((--BB))
e egg..AA== 11 22 BB == 00 11
a
a t
t r
r i
i x
x M
u
u l
l t
t i
i p
p l
l i
i c
c a
a t
t i
i o
o n
n
a
a )
y
y a
a c
c o
o n
n s
s t
t a
a n
n t
t (
s
s c
c a
a l
l a
a r
r m
m u
u l
l t
t i
i p
p l
l i
i c
c a
a t
t i
i o
o n
n )
m
m a
a t
t r
r i
i x
x c
c a
a n
n b
b e
e m
m u
u l
l t
t i
i p
p l
l i
i e
e d
d b
b y
y a
a c
c o
o n
n s
s t
t a
a n
n t
t b
b y
y m
m u
u l
l t
t i
i p
p l
l y
y i
i n
n g
g e
e a
a c
c h
h c
c o
o m
m p
p o
o n
n e
e n
n t
t i
i n
n t
t h
h e
e m
m a
a t
t r
r i
i x
x
b byy aa ccoonnssttaanntt.. TThhee rreessuulltt iiss aa nneeww mmaattrriixx ooff tthhee ssaammee ddiimmeennssiioonn aass tthhee oorriiggiinnaall mmaattrriixx..
I Iff KK iiss aannyy rreeaall nnuummbbeerr && AA iiss aann MM xx nn mmaattrriixx,, tthheenn tthhee pprroodduucctt KKAA iiss ddeeffiinneedd ttoo bbee tthhee
m maattrriixx wwhhoossee ccoommppoonneennttss aarree ggiivveenn bbyy KK ttiimmeess tthhee ccoorrrreessppoonnddiinngg ccoommppoonneenntt ooff AA;; ii..ee..
a
a i
i j
j (
m
m x
x n
n )
e egg.. IIff XX == 66 55 77 tthheenn 22 XX == (( 22 xx 66 )) (( 22 xx 55 )) (( 22 xx 77 ))
a
a w
w s
s o
o f
f s
s c
c a
a l
l a
a r
r m
m u
u l
l t
t i
i p
p l
l i
i c
c a
a t
t i
i o
o n
n
T Thhee ooppeerraattiioonn ooff mmuullttiippllyyiinngg aa mmaattrriixx bbyy aa ccoonnssttaanntt ((aa ssccaallaarr)) hhaass tthhee ffoolllloowwiinngg bbaassiicc
p prrooppeerrttiieess.. IIff XX && YY aarree rreeaall nnuummbbeerrss && AA && BB aarree mm xx nn mmaattrriicceess,, ccoonnffoorrmmaabbllee ffoorr
a
a d
d d
d i
i t
t i
i o
o n
n ,
t
t h
h e
e n
n
L Laawwss ooff ssccaallaarr mmuullttiipplliiccaattiioonn
e
e g
g .
i
i v
v e
e n
n m
m a
a t
t r
r i
i c
c e
e s
s A
a
a n
n d
d t
t w
w o
o r
r e
e a
a l
l n
n u
u m
m b
b e
e r
r s
s X
T Thheerreeffoorree iitt iiss ttrruuee tthhaatt ((XX ++ YY)) AA iiss eeqquuaall wwiitthh XXAA ++ YYAA
P Prrooooff::
m
m e
e a
a n
n s
s a
a d
d d
d m
m a
a t
t r
r i
i x
x A
a
a n
n d
d B
f
f i
i r
r s
s t
t a
a n
n d
d t
t h
h e
e n
n m
m u
u l
l t
t i
i p
p l
l y
y t
t h
h e
e r
r e
e s
s u
u l
l t
t b
b y
y a
a c
c o
o n
n s
s t
t a
a n
n t
t X
i
i v
v e
e n
n c
c o
o n
n s
s t
t a
a n
n t
t n
n u
u m
m b
b e
e r
r X
m
m a
a t
t r
r i
i c
c e
e s
s A
a
a n
n d
d B
t
t h
h e
e n
n t
t h
h e
e r
r e
e s
s u
u l
l t
t o
o f
f X
w
w i
i l
l l
l b
b e
e
→ → XXAA ++ XXBB mmeeaannss mmuullttiippllyy mmaattrriicceess AA aanndd BB bbyy aa ccoonnssttaanntt nnuummbbeerr XX iinnddeeppeennddeennttllyy
t thheenn aadddd tthhee rreessuullttss
T Thheenn AAdddd XXAA wwiitthh XXBB
i
i .
e
e .
T Thheerreeffoorree iitt iiss ttrruuee tthhaatt XX ((AA ++ BB)) iiss eeqquuiivvaalleenntt wwiitthh XXAA ++ XXBB
P Prrooooff::
m
m e
e a
a n
n s
s m
m u
u l
l t
t i
i p
p l
l y
y t
t h
h e
e s
s e
e c
c o
o n
n d
d c
c o
o n
n s
s t
t a
a n
n t
t n
n u
u m
m b
b e
e r
r Y
w
w i
i t
t h
h m
m a
a t
t r
r i
i x
x A
f
f i
i r
r s
s t
t a
a n
n d
d t
t h
h e
e n
n
m muullttiippllyy tthhee ffiirrsstt ccoonnssttaanntt nnuummbbeerr XX wwiitthh tthhee rreessuulltt..
→ → XXYY ((AA)) mmeeaannss mmuullttiippllyy tthhee ttwwoo ccoonnssttaanntt rreeaall nnuummbbeerrss XX aanndd YY ffiirrsstt aanndd mmuullttiippllyy
t
t h
h e
e r
r e
e s
s u
u l
l t
t b
b y
y m
m a
a t
t r
r i
i x
x A
T Thheerreeffoorree iitt iiss aallssoo ttrruuee tthhaatt XX ((YYAA)) == XXYY ((AA)) ooff ccoolluummnnss iinn BB
b
b )
a
a t
t r
r i
i x
x b
b y
y m
m a
a t
t r
r i
i x
x m
m u
u l
l t
t i
i p
p l
l i
i c
c a
a t
t i
i o
o n
n
I Iff AA && BB aarree ttwwoo mmaattrriicceess,, tthhee pprroodduucctt AABB iiss ddeeffiinneedd iiff aanndd oonnllyy iiff tthhee nnuummbbeerr ooff
C Coolluummnnss iinn AA iiss eeqquuaall ttoo tthhee nnuummbbeerr ooff rroowwss iinn BB,, ii..ee.. iiff AA iiss aann mm xx nn mmaattrriixx,, BB sshhoouulldd
b
b e
e a
a n
n n
n x
x b
b .
i
i n
n d
d B
00 88 66 99 77 22 xx 33
33 xx 22
x
x 2
x
x 3
r
r e
e s
s u
u l
l t
t 3
x
x 3
m
m a
a t
t r
r i
i x
x
c coonnffoorrmmaabbllee
x
x 2
x
x 6
x
x 3
x
x 9
x
x 4
x
x 7
( ( 00 xx 22 )) ++ (( 88 xx 66 )) (( 00 xx 33 )) ++ (( 88 ++ 99 )) (( 00 xx 44 )) ++ (( 88 xx 77 ))
x
x 2
x
x 6
x
x 3
x
x 9
x
x 4
x
x 7
p
p e
e c
c i
i a
a l
l p
p r
r o
o p
p e
e r
r t
t i
i e
e s
s o
o f
f m
m a
a t
t r
r i
i x
x a
a p
p p
p l
l i
i c
c a
a t
t i
i o
o n
n
11 TThhee aassssoocciiaattiivvee && ddiissttrriibbuuttiivvee llaawwss ooff oorrddiinnaarryy aallggeebbrraa aappppllyy ttoo mmaattrriixx mmuullttiipplliiccaattiioonn..
i
i v
v e
e n
n t
t h
h r
r e
e e
e m
m a
a t
t r
r i
i c
c e
e s
s A
w
w h
h i
i c
c h
h a
a r
r e
e c
c o
o n
n f
f o
o r
r m
m a
a b
b l
l e
e f
f o
o r
r m
m u
u l
l t
t i
i p
p l
l i
i c
c a
a t
t i
i o
o n
n ,
i
i .
s
s s
s o
o c
c i
i a
a t
t i
i v
v e
e l
l a
a w
w ,
n
n o
o t
t C
i
i i
i .
i
i s
s t
t r
r i
i b
b u
u t
t i
i v
v e
e p
p r
r o
o p
p e
e r
r t
t y
y
i
i i
i i
i .
i
i s
s t
t r
r i
i b
b u
u t
t i
i v
v e
e p
p r
r o
o p
p e
e r
r t
t y
y
22 oonn tthhee ootthheerr hhaanndd,, tthhee ccoommmmuuttaattiivvee llaaww ooff mmuullttiipplliiccaattiioonn ddooeessnn’’tt aappppllyy ttoo mmaattrriixx
m
m u
u l
l t
t i
i p
p l
l i
i c
c a
a t
t i
i o
o n
n .
o
o r
r a
a n
n y
y t
t w
w o
o r
r e
e a
a l
l n
n u
u m
m b
b e
e r
r s
s X
t
t h
h e
e p
p r
r o
o d
d u
u c
c t
t X
i
i s
s a
a l
l w
w a
a y
y s
s i
i d
d e
e n
n t
t i
i c
c a
a l
l t
t o
o
t
t h
h e
e p
p r
r o
o d
d u
u c
c t
t Y
u
u t
t f
f o
o r
r t
t w
w o
o m
m a
a t
t r
r i
i c
c e
e s
s A
i
i t
t i
i s
s n
n o
o t
t g
g e
e n
n e
e r
r a
a l
l l
l y
y t
t r
r u
u e
e t
t h
h a
a t
t A
e
e q
q u
u a
a l
l s
s B
i
i n
n t
t h
h e
e p
p r
r o
o d
d u
u c
c t
t A
w
w e
e s
s a
a y
y t
t h
h a
a t
t B
i
i s
s p
p r
r e
e m
m u
u l
l t
t i
i p
p l
l i
i e
e d
d b
b y
y A
t
t h
h a
a t
t A
i
i s
s p
p o
o s
s t
t m
m u
u l
l t
t i
i p
p l
l i
i e
e d
d b
b y
y
33 IInn mmaannyy iinnssttaanncceess ffoorr ttwwoo mmaattrriicceess,, AA && BB,, tthhee pprroodduucctt AABB mmaayy bbee ddeeffiinneedd wwhhiillee tthhee
p
p r
r o
o d
d u
u c
c t
t B
i
i s
s n
n o
o t
t d
d e
e f
f i
i n
n e
e d
d o
o r
r v
v i
i c
c e
e v
v e
e r
r s
s a
a .
n
n s
s o
o m
m e
e s
s p
p e
e c
c i
i a
a l
l c
c a
a s
s e
e s
s ,
d
d o
o e
e s
s e
e q
q u
u a
a l
l B
n
n s
s u
u c
c h
h s
s p
p e
e c
c i
i a
a l
l c
c a
a s
s e
e s
s A
a
a r
r e
e s
s a
a i
i d
d t
t o
o b
b e
e
o
o m
m m
m u
u t
t e
e .
22 xx 22 22 xx 22
c
c a
a n
n b
b e
e z
z e
e r
r o
o e
e v
v e
e n
n t
t h
h o
o u
u g
g h
h n
n e
e i
i t
t h
h e
e r
r o
o f
f t
t h
h e
e t
t w
w o
o m
m a
a t
t r
r i
i c
c e
e s
s t
t h
h e
e m
m s
s e
e l
l v
v e
e s
s i
i s
s z
z e
e r
r o
o :
w
w e
e c
c a
a n
n ’
t
t
c coonncclluuddee ffrroomm tthhee rreessuulltt AABB == 00 tthhaatt aatt lleeaasstt oonnee ooff tthhee mmaattrriicceess AA oorr BB iiss aa zzeerroo mmaattrriixx
e
e v
v e
e n
n i
i f
f A
h
h u
u s
s t
t h
h e
e c
c a
a n
n c
c e
e l
l l
l a
a t
t i
i o
o n
n l
l a
a w
w d
d o
o e
e s
s n
n ’
t
t h
h o
o l
l d
d ,
i
i n
n g
g e
e n
n e
e r
r a
a l
l ,
i
i n
n m
m a
a t
t r
r i
i x
x
m muullttiipplliiccaattiioonn
e egg.. AA == 11 33 BB == 44 33 CC == 11 66
b
b u
u t
t B
22 .. 22 .. 33 TThhee mmuullttiipplliiccaattiivvee iinnvveerrssee ooff aa mmaattrriixx
f
f A
i
i s
s a
a s
s q
q u
u a
a r
r e
e m
m a
a t
t r
r i
i x
x o
o f
f o
o r
r d
d e
e r
r n
n ,
t
t h
h e
e n
n a
a s
s q
q u
u a
a r
r e
e m
m a
a t
t r
r i
i x
x o
o f
f i
i t
t s
s i
i n
n v
v e
e r
r s
s e
e (
o
o f
f t
t h
h e
e s
s a
a m
m e
e
o
o r
r d
d e
e r
r n
n i
i s
s s
s a
a i
i d
d t
t o
o b
b e
e t
t h
h e
e i
i n
n v
v e
e r
r s
s e
e o
o f
f A
i
i f
f a
a n
n d
d o
o n
n l
l y
y i
i f
f A
x
x A
x
x A
y
y p
p e
e 1
n
n y
y p
p a
a i
i r
r o
o f
f r
r o
o w
w s
s i
i n
n a
a m
m a
a t
t r
r i
i x
x m
m a
a y
y b
b e
e i
i n
n t
t e
e r
r c
c h
h a
a n
n g
g e
e d
d /
x
x c
c h
h a
a n
n g
g e
e o
o p
p e
e r
r a
a t
t i
i o
o n
n s
s
y
y p
p e
e 2
a
a r
r o
o w
w c
c a
a n
n b
b e
e m
m u
u l
l t
t i
i p
p l
l i
i e
e d
d b
b y
y a
a n
n y
y n
n o
o n
n
z
z e
e r
r o
o r
r e
e a
a l
l n
n u
u m
m b
b e
e r
r /
u
u l
l t
t i
i p
p l
l e
e o
o p
p e
e r
r a
a t
t i
i o
o n
n
T Tyyppee 33 :: aa mmuullttiippllee ooff aannyy rrooww ccaann bbee aaddddeedd ttoo aannyy ootthheerr rrooww.. // AAdddd AA--mmuullttiippllee ooppeerraattiioonn
n
n s
s h
h o
o r
r t
t t
t h
h e
e o
o p
p e
e r
r a
a t
t i
i o
o n
n c
c a
a n
n b
b e
e e
e x
x p
p r
r e
e s
s s
s e
e d
d a
a s
s
n
n t
t e
e r
r c
c h
h a
a n
n g
g i
i n
n g
g r
r o
o w
w s
s
h
h e
e m
m u
u l
l t
t i
i p
p l
l i
i c
c a
a t
t i
i o
o n
n o
o f
f a
a n
n y
y r
r o
o w
w b
b y
y a
a n
n o
o n
n
z
z e
e r
r o
o n
n u
u m
m b
b e
e r
r .
33 .. TThhee aaddddiittiioonn // ssuubbttrraaccttiioonn ooff ((aa mmuullttiippllee ooff)) oonnee rrooww ttoo //ffrroomm aannootthheerr rrooww
e egg.. 11 .. AA == 44 33 22 BB == - - 22 66 77 iinntteerrcchhaannggiinngg
u
u l
l t
t i
i p
p l
l y
y i
i n
n g
g t
t h
h e
e f
f i
i r
r s
s t
t
m
m u
u l
l t
t i
i p
p l
l y
y i
i n
n g
g t
t h
h e
e 1
sstt
r
r o
o w
w
n
n d
d
r rooww.. TThhiiss ccaassee tthheerree
i
i s
s n
n o
o c
c h
h a
a r
r g
g e
e t
t o
o t
t h
h e
e
f
f i
i r
r s
s t
t r
r o
o w
w .
T Thheeoorreemm oonn rrooww ooppeerraattiioonnss
r
r o
o w
w o
o p
p e
e r
r a
a t
t i
i o
o n
n p
p e
e r
r f
f o
o r
r m
m e
e d
d o
o n
n p
p r
r o
o d
d u
u c
c t
t o
o f
f t
t w
w o
o m
m a
a t
t r
r i
i c
c e
e s
s i
i s
s e
e q
q u
u i
i v
v a
a l
l e
e n
n t
t t
t o
o r
r o
o w
w o
o p
p e
e r
r a
a t
t i
i o
o n
n
p
p e
e r
r f
f o
o r
r m
m e
e d
d o
o n
n t
t h
h e
e p
p r
r e
e f
f a
a c
c t
t o
o r
r m
m a
a t
t r
r i
i x
x .
P Prree ffaaccttoorr ppoosstt ffaaccttoorr pprroodduucctt
a
a t
t r
r i
i x
x m
m a
a t
t r
r i
i x
x m
m a
a t
t r
r i
i x
x
e egg.. AA == 11 22 33 BB == 11 22 CC == 99 1133
x
x 3
x
x 2
x
x 2
n
n t
t e
e r
r c
c h
h a
a n
n g
g e
e r
r o
o w
w 1
w
w i
i t
t h
h r
r o
o w
w
a
a s
s i
i c
c p
p r
r o
o c
c e
e d
d u
u r
r e
e s
s t
t o
o f
f i
i n
n d
d t
t h
h e
e i
i n
n v
v e
e r
r s
s e
e o
o f
f a
a s
s q
q u
u a
a r
r e
e m
m a
a t
t r
r i
i x
x
11 .. TToo sseett oonneess ffiirrsstt iinn aa ccoolluummnn && nneexxtt zzeerrooss ((wwiitthh iinn aa ggiivveenn ccoolluummnn))
22 .. TToo sseett zzeerrooss ffiirrsstt iinn aa mmaattrriixx && nneexxtt oonneess..
O Onneess ffiirrsstt mmeetthhoodd
i
i n
n d
d t
t h
h e
e i
i n
n v
v e
e r
r s
s e
e o
o f
f t
t h
h e
e f
f o
o l
l l
l o
o w
w i
i n
n g
g m
m a
a t
t r
r i
i x
x
a auuggmmeenntt AA 33 22 11 00
w wiitthh tthhee ssaammee ddiimmeennssiioonn 11 11 00 11
i iddeennttiittyy mmaattrriixx ffiirrsstt
I Inntteerrcchhaannggee rroowwss ((rrooww 11 wwiitthh rrooww 22 ))
u
u l
l t
t i
i p
p l
l y
y R
1
1 b
b y
y
a
a d
d d
d t
t o
o R
2
2
i
i .
e
e .
o
o c
c h
h a
a n
n g
g e
e t
t o
o R
11
u
u l
l t
t i
i p
p l
l y
y R
2
2 b
b y
y
2
u
u l
l t
t i
i p
p l
l y
y R
22 b
b y
y
a
a d
d d
d t
t o
o R
n
n e
e s
s f
f i
i r
r s
s t
t :
t
t r
r y
y t
t o
o s
s e
e t
t o
o n
n e
e s
s f
f i
i r
r s
s t
t i
i n
n a
a c
c o
o l
l u
u m
m n
n a
a n
n d
d t
t h
h e
e n
n
11 00 11 - - 22 zzeerrooss ooff tthhee ssaammee ccoolluummnn.. GGooeess ffrroomm lleefftt ttoo rriigghhtt
i
i n
n d
d t
t h
h e
e i
i n
n v
v e
e r
r s
s e
e o
o f
f t
t h
h e
e c
c o
o e
e f
f f
f i
i c
c i
i e
e n
n t
t m
m a
a t
t r
r i
i x
x
u
u l
l t
t i
i p
p l
l y
y t
t h
h e
e i
i n
n v
v e
e r
r s
s e
e o
o f
f c
c o
o e
e f
f f
f i
i c
c i
i e
e n
n t
t m
m a
a t
t r
r i
i x
x w
w i
i t
t h
h t
t h
h e
e v
v e
e c
c t
t o
o r
r o
o f
f c
c o
o n
n s
s t
t a
a n
n t
t ,
a
a n
n d
d t
t h
h e
e
r reessuullttiinngg vvaalluueess aarree tthhee vvaalluueess ooff tthhee uunnkknnoowwnn mmaattrriixx..
e egg.. 22 XX ++ 33 YY == 44 GGiivveenn tthhiiss ssyysstteemm ooff lliinneeaarr eeqquuaattiioonn aappppllyyiinngg
X X ++ 22 YY == 22 iinnvveerrssee mmeetthhoodd wwee ccaann ffiinndd tthhee uunnkknnoowwnn vvaalluueess..
t
t e
e p
p 1
h
h a
a n
n g
g e
e i
i t
t i
i n
n t
t o
o m
m a
a t
t r
r i
i x
x f
f o
o r
r m
m
s
s i
i n
n g
g c
c o
o e
e f
f f
f i
i c
c i
i e
e n
n t
t c
c o
o n
n s
s t
t r
r u
u c
c t
t o
o n
n e
e m
m a
a t
t r
r i
i x
x i
i .
e
e .
c
c o
o e
e f
f f
f i
i c
c i
i e
e n
n t
t m
m a
a t
t r
r i
i x
x
11 33 == CCooeeffffiicciieenntt mmaattrriixx
m
m a
a t
t r
r i
i x
x w
w h
h i
i c
c h
h h
h a
a s
s o
o n
n e
e c
c o
o l
l u
u m
m n
n )
v
v e
e c
c t
t o
o r
r o
o f
f u
u n
n k
k n
n o
o w
w n
n
s
s i
i n
n g
g t
t h
h e
e c
c o
o n
n s
s t
t a
a n
n t
t v
v a
a l
l u
u e
e s
s a
a g
g a
a i
i n
n c
c o
o n
n s
s t
t r
r u
u c
c t
t v
v e
e c
c t
t o
o r
r o
o f
f c
c o
o n
n s
s t
t a
a n
n t
t
v
v e
e c
c t
t o
o r
r o
o f
f c
c o
o n
n s
s t
t a
a n
n t
t
t
t e
e p
p 2
i
i n
n d
d i
i n
n v
v e
e r
r s
s e
e o
o f
f t
t h
h e
e c
c o
o e
e f
f f
f i
i c
c i
i e
e n
n t
t m
m a
a t
t r
r i
i x
x
N Nooww wwee aarree ffaammiilliiaarr hhooww ttoo ffiinndd aann iinnvveerrssee ffoorr aannyy ssqquuaarree mmaattrriixx.. AAssssuummiinngg oonnccee ffiirrsstt
m meetthhoodd ffiinndd tthhee iinnvveerrssee ffoorr mmaattrriixx 22 33
I Ittss iinnvveerrssee bbeeccoommee 22 - - 33
S Stteepp 33 .. MMuullttiippllyy tthhee ccooeeffffiicciieenntt iinnvveerrssee wwiitthh tthhee vveeccttoorr ooff ccoonnssttaanntt
T Thheerreeffoorree tthhee rreessuullttiinngg mmaattrriixx tthhaatt iiss 22 iiss
T Thhee vvaalluuee ffoorr tthhee uunnkknnoowwnn vvaarriiaabblleess ii..ee.. XX == 22
h
h e
e n
n X
a
a n
n d
d Y
t
t h
h a
a t
t i
i s
s u
u n
n i
i q
q u
u e
e s
s o
o l
l u
u t
t i
i o
o n
n
i
i m
m i
i t
t a
a t
t i
i o
o n
n s
s o
o f
f i
i n
n v
v e
e r
r s
s e
e m
m e
e t
t h
h o
o d
d
n
n a
a d
d d
d i
i t
t i
i o
o n
n t
t o
o a
a p
p p
p l
l y
y t
t h
h e
e m
m e
e t
t h
h o
o d
d t
t h
h e
e c
c o
o e
e f
f f
f i
i c
c i
i e
e n
n t
t m
m a
a t
t r
r i
i x
x n
n e
e e
e d
d s
s t
t o
o h
h a
a v
v e
e a
a n
n i
i n
n v
v e
e r
r s
s e
e
t
t d
d o
o e
e s
s n
n ’
t
t d
d i
i f
f f
f e
e r
r e
e n
n t
t i
i a
a t
t e
e b
b e
e t
t w
w e
e e
e n
n n
n o
o s
s o
o l
l u
u t
t i
i o
o n
n a
a n
n d
d i
i n
n f
f i
i n
n i
i t
t e
e s
s o
o l
l u
u t
t i
i o
o n
n c
c a
a s
s e
e s
s .
a
a u
u s
s i
i a
a n
n m
m e
e t
t h
h o
o d
d
I Itt iiss ddeevveellooppeedd bbyy aa mmaatthheemmaattiicciiaann KKaarrll FF.. GGaauussss (( 11777777 - - 11885555 )).. IItt hheellppss ttoo ssoollvvee ssyysstteemmss
o off lliinneeaarr eeqquuaattiioonnss wwiitthh ddiiffffeerreenntt ssoolluuttiioonn aapppprrooaacchheess ii..ee.. uunniiqquuee ssoolluuttiioonn,, NNoo ssoolluuttiioonn
a
a n
n d
d i
i n
n f
f i
i n
n i
i t
t e
e s
s o
o l
l u
u t
t i
i o
o n
n c
c a
a s
s e
e s
s .
“ “nn”” bbyy ““nn”” ssyysstteemmss
S Stteepp:: 11 .. CChhaannggee tthhee ssyysstteemm ooff lliinneeaarr eeqquuaattiioonn iinnttoo aa mmaattrriixx ffoorrmm
u
u g
g u
u m
m e
e n
n t
t t
t h
h e
e c
c o
o e
e f
f f
f i
i c
c i
i e
e n
n t
t m
m a
a t
t r
r i
i x
x w
w i
i t
t h
h t
t h
h e
e v
v e
e c
c t
t o
o r
r o
o f
f c
c o
o n
n s
s t
t a
a n
n t
t .
h
h a
a n
n g
g e
e t
t h
h e
e c
c o
o e
e f
f f
f i
i c
c i
i e
e n
n t
t m
m a
a t
t r
r i
i x
x i
i n
n t
t o
o i
i d
d e
e n
n t
t i
i t
t y
y f
f o
o r
r m
m b
b y
y a
a p
p p
p l
l y
y i
i n
n g
g e
e l
l e
e m
m e
e n
n t
t a
a r
r y
y r
r o
o w
w
o oppeerraattiioonn aanndd aappppllyy tthhee ssaammee oonn tthhee vveeccttoorr ooff ccoonnssttaanntt..
44 .. TThhee rreessuullttiinngg vvaalluueess ooff tthhee vveeccttoorr ooff ccoonnssttaanntt wwiillll bbee tthhee ssoolluuttiioonn oorr tthhee vvaalluuee ooff
t
t h
h e
e u
u n
n k
k n
n o
o w
w n
n
x
x a
a m
m p
p l
l e
e :
t
t e
e p
p 1
h
h a
a n
n g
g e
e i
i t
t i
i n
n t
t o
o m
m a
a t
t r
r i
i x
x f
f o
o r
r m
m
h
h e
e r
r e
e f
f o
o r
r e
e X
a
a n
n d
d Y
x
x a
a m
m p
p l
l e
e 2
t
t e
e p
p
t
t e
e p
p
u
u l
l t
t i
i p
p l
l y
y R
o
o w
w
b
b y
y
a
a d
d d
d t
t h
h e
e r
r e
e s
s u
u l
l t
t t
t o
o r
r a
a w
w
1
2
h
h e
e n
n e
e x
x t
t s
s t
t e
e p
p i
i s
s c
c h
h a
a n
n g
g i
i n
n g
g t
t h
h e
e p
p r
r i
i m
m a
a r
r y
y d
d i
i a
a g
g o
o n
n a
a l
l e
e n
n t
t r
r y
y i
i n
n t
t h
h e
e 2
nndd
r
r o
o w
w t
t o
o 1
u
u t
t t
t h
h e
e r
r e
e i
i s
s n
n o
o
p
p o
o s
s s
s i
i b
b l
l e
e o
o p
p e
e r
r a
a t
t i
i o
o n
n t
t h
h a
a t
t c
c a
a n
n e
e n
n a
a b
b l
l e
e y
y o
o u
u t
t o
o c
c h
h a
a n
n g
g e
e i
i t
t i
i n
n t
t o
o n
n u
u m
m b
b e
e r
r 1
T Thheerreeffoorree tthhee iimmpplliiccaattiioonn iiss tthhaatt yyoouu ccaann’’tt ggoo ffuurrtthheerr bbuutt wwee ccaann oobbsseerrvvee ssoommeetthhiinngg ffrroomm
t thhee rreessuulltt.. AAnndd iitt iiss iimmppllyyiinngg aann iinnffiinniittee ssoolluuttiioonn ccaassee
E Exxaammppllee 33 .. XX ++ YY == 55
t
t e
e p
p 1
t
t e
e p
p 2
C Chhaannggee tthhee eenncciirrcclleedd nnuummbbeerr aabboovvee iinn ttoo zzeerroo
u
u l
l t
t i
i p
p l
l y
y t
t h
h e
e f
f i
i r
r s
s t
t r
r o
o w
w b
b y
y
a
a d
d d
d t
t h
h e
e r
r e
e s
s u
u l
l t
t t
t o
o t
t h
h e
e 2
nndd
r
r o
o w
w .
00 == 44 wwhhiicchh iinnddiiccaatteess nnoo ssoolluuttiioonn
h
h e
e r
r e
e i
i s
s n
n o
o p
p o
o s
s s
s i
i b
b l
l e
e o
o p
p e
e r
r a
a t
t i
i o
o n
n t
t h
h a
a t
t w
w e
e c
c a
a n
n a
a p
p p
p l
l y
y i
i n
n o
o r
r d
d e
e r
r t
t o
o c
c h
h a
a n
n g
g e
e t
t h
h e
e p
p r
r i
i m
m a
a r
r y
y d
d i
i a
a g
g o
o n
n a
a l
l
e
e n
n t
t r
r y
y i
i n
n t
t h
h e
e 2
n
n d
d
c
c o
o l
l u
u m
m n
n w
w i
i t
t h
h o
o u
u t
t a
a f
f f
f e
e c
c t
t i
i n
n g
g t
t h
h e
e f
f i
i r
r s
s t
t c
c o
o l
l u
u m
m n
n s
s t
t r
r u
u c
c t
t u
u r
r e
e .
h
h e
e r
r e
e f
f o
o r
r e
e s
s t
t o
o p
p t
t h
h e
e r
r e
e ,
b buutt hheerree wwee ccaann oobbsseerrvvee ssoommeetthhiinngg ii..ee.. iitt iiss nnoo ssoolluuttiioonn ccaassee..
T Thheerreeffoorree,, GGaauussssiiaann mmeetthhoodd mmaakkeess aa ddiissttiinnccttiioonn bbeettwweeeenn NNoo ssoolluuttiioonn && iinnffiinniittee ssoolluuttiioonn
u
u n
n l
l i
i k
k e
e t
t h
h e
e i
i n
n v
v e
e r
r s
s e
e m
m e
e t
t h
h o
o d
d .
u
u m
m m
m a
a r
r i
i z
z i
i n
n g
g o
o u
u r
r r
r e
e s
s u
u l
l t
t s
s f
f o
o r
r s
s o
o l
l v
v i
i n
n g
g a
a n
n “
n
n ”
b
b y
y “
n
n ”
s
s y
y s
s t
t e
e m
m ,
w
w e
e s
s t
t a
a r
r t
t w
w i
i t
t h
h t
t h
h e
e m
m a
a t
t r
r i
i x
x .
( (AA//BB)),, && aatttteemmpptt ttoo ttrraannssffoorrmm iitt iinnttoo tthhee mmaattrriixx ((II//CC)) oonnee ooff tthhee tthhrreeee tthhiinnggss wwiillll rreessuulltt..
11 .. aann ““nn”” bbyy ““nn”” mmaattrriixx wwiitthh tthhee uunniiqquuee ssoolluuttiioonn..
e
e g
g .
r
r o
o w
w t
t h
h a
a t
t i
i s
s a
a l
l l
l z
z e
e r
r o
o s
s e
e x
x c
c e
e p
p t
t i
i n
n t
t h
h e
e c
c o
o n
n s
s t
t a
a n
n t
t c
c o
o l
l u
u m
m n
n ,
i
i n
n d
d i
i c
c a
a t
t i
i n
n g
g t
t h
h a
a t
t t
t h
h e
e r
r e
e a
a r
r e
e n
n o
o
s
s o
o l
l u
u t
t i
i o
o n
n s
s ,
e egg.. 11 00 00 33
m
m a
a t
t r
r i
i x
x i
i n
n a
a f
f o
o r
r m
m d
d i
i f
f f
f e
e r
r e
e n
n t
t f
f r
r o
o m
m (
i
i n
n d
d i
i c
c a
a t
t i
i n
n g
g t
t h
h a
a t
t t
t h
h e
e r
r e
e a
a r
r e
e a
a n
n u
u n
n l
l i
i m
m i
i t
t e
e d
d
n
n u
u m
m b
b e
e r
r o
o f
f s
s o
o l
l u
u t
t i
i o
o n
n s
s .
o
o t
t e
e t
t h
h a
a t
t ,
f
f o
o r
r a
a n
n n
n b
b y
y n
n s
s y
y s
s t
t e
e m
m ,
t
t h
h i
i s
s c
c a
a s
s e
e o
o c
c c
c u
u r
r s
s w
w h
h e
e n
n t
t h
h e
e r
r e
e i
i s
s a
a r
r o
o w
w
w wiitthh aallll zzeerrooss,, iinncclluuddiinngg tthhee ccoonnssttaanntt ccoolluummnn..
E Egg.. 11 00 22 55
b
b y
y n
n l
l i
i n
n e
e a
a r
r s
s y
y s
s t
t e
e m
m s
s
T Thhee mm xx nn lliinneeaarr ssyysstteemmss aarree tthhoossee ssyysstteemmss wwhheerree tthhee nnuummbbeerr ooff rroowwss ((mm)) aanndd nnuummbbeerr ooff
c coolluummnnss ((nn)) aarree uunneeqquuaall oorr iitt iiss tthhee ccaassee wwhheerree tthhee nnuummbbeerr ooff eeqquuaattiioonnss ((mm)) && tthhee
n
n u
u m
m b
b e
e r
r o
o f
f v
v a
a r
r i
i a
a b
b l
l e
e s
s (
n
n )
a
a r
r e
e u
u n
n e
e q
q u
u a
a l
l .
n
n d
d i
i t
t m
m a
a y
y a
a p
p p
p e
e a
a r
r a
a s
s m
m >
n
n o
o r
r m
m <
n
n .