Solve the following system of linear equations, using matrix method
x−y+2z=7,3x+4y−5z=−5,2x−y+3z=12
The given system can be written as Ax =B, where
A=⎡⎢⎣1−1234−52−13⎤⎥⎦,X=⎡⎢⎣xyz⎤⎥⎦ and B=⎡⎢⎣7−512⎤⎥⎦
Here, |A|=⎡⎢⎣1−1234−52−13⎤⎥⎦=1(12−5−(−1))(9+10)+2(−3−8)
=7+19−22=4≠0
Thus, A is non-singular, Therefore, its inverse exists.
Therefore, the given system is consistent and has a unique solution given by X=A−1B.
Cofactors of A are
A11=12−5=7,A12=−(9+10)=−19,A13=−3−8=−11A21=−(−3+2)=1,A22=3−4=−1,A23=−(−1+2)=−1A31=5−8=−3,A32=−(−5−6)=11,A33=4+3=7
adj(A)=⎡⎢⎣7−19−111−1−1−3117⎤⎥⎦T=⎡⎢⎣71−3−19−111−11−17⎤⎥⎦
∴ A−1=1|A|(adj A)=14⎡⎢⎣71−3−19−111−11−17⎤⎥⎦
Now, X=A−1B⇒⎡⎢⎣xyz⎤⎥⎦=14⎡⎢⎣71−3−19−111−11−17⎤⎥⎦⎡⎢⎣7−512⎤⎥⎦=14⎡⎢⎣49−5−36−133+5+132−77+5+84⎤⎥⎦
⇒⎡⎢⎣xyz⎤⎥⎦=14⎡⎢⎣8412⎤⎥⎦=⎡⎢⎣213⎤⎥⎦
Hence, x=2, y=1 and z=3