Answer
The solution of the given linear system of equations is $\left\{ \left( -1,6,3 \right) \right\}$.
Work Step by Step
A system of linear equations can be solved with the help of matrices. It is solved with the help of an augmented matrix.
A matrix -- which is divided into two groups divided by a vertical bar with the coefficients of the variable on one side and constants on the other side -- is called an augmented matrix.
The row indicates the constant coefficient from an equation whereas the columns indicate the coefficients of the variables. The coefficient of the missing variable is used as $0$.
The augmented matrix for the provided system of equation is written as follows:
$\left[ \begin{matrix}
3 & 1 & -1 & 0 \\
2 & 3 & -5 & 1 \\
1 & -2 & 3 & -4 \\
\end{matrix} \right]$
The Gaussian elimination method is used to solve the system of linear equations by turning the augmented matrix into row echelon form. Perform the operations as follows:
Replace ${{R}_{1}}\,\text{by}\,{{R}_{1}}-{{R}_{2}}$ to get,
$\left[ \begin{matrix}
1 & -2 & 4 & -1 \\
2 & 3 & -5 & 1 \\
1 & -2 & 3 & -4 \\
\end{matrix} \right]$
Replace ${{R}_{2}}\,\text{by}\,{{R}_{2}}-2{{R}_{1}}$ to get,
$\left[ \begin{matrix}
1 & -2 & 4 & -1 \\
0 & 7 & -13 & 3 \\
1 & -2 & 3 & -4 \\
\end{matrix} \right]$
Replace ${{R}_{3}}\,\text{by}\,{{R}_{3}}-{{R}_{1}}$ to get,
$\left[ \begin{matrix}
1 & -2 & 4 & -1 \\
0 & 7 & -13 & 3 \\
0 & 0 & -1 & -3 \\
\end{matrix} \right]$
Replace ${{R}_{2}}\,\text{by}\,\frac{1}{7}{{R}_{2}}$ and ${{R}_{3}}\,\text{by}\,-{{R}_{3}}$, to get,
$\left[ \begin{matrix}
1 & -2 & 4 & -1 \\
0 & 1 & -\frac{13}{7} & \frac{3}{7} \\
0 & 0 & 1 & 3 \\
\end{matrix} \right]$
The system of equations for the above augmented matrix is given by
$x-2y+4z=-1$ …… (I)
$y-\frac{13}{7}z=\frac{3}{7}$ …… (II)
$z=3$ …… (III)
Substitute the value of $z$ in equation (II) to get,
$\begin{align}
& y-\frac{39}{7}=\frac{3}{7} \\
& y=\frac{42}{7} \\
& y=6
\end{align}$
Substitute the value of $y,z$ in (I) to get,
$\begin{align}
& x-12+12=-1 \\
& x=-1
\end{align}$
Hence, the solution of the given linear system of equations is $\left\{ \left( -1,6,3 \right) \right\}$.