The system of equations are
\
Write the equations into matrix form
, where
is coefficient matrix,
is variable matrix and
is constant matrix.
\

Inverse of a
matrix :
.
Here
and
.




Multiply
by
to solve the system.
.



.
The solutions of system of equation
and
.