Solveeit Logo

Question

Question: How do you solve \[x + 3y + z = 3\]; \[x + 5y + 5z = 1\]; \[2x + 6y + 3z = 8\]using matrices?...

How do you solve x+3y+z=3x + 3y + z = 3; x+5y+5z=1x + 5y + 5z = 1; 2x+6y+3z=82x + 6y + 3z = 8using matrices?

Explanation

Solution

Hint : Here in this question, we have to solve the variable xx, yy, and zz using matrices. The method of solving this type of question known as “Gauss-Jordan elimination”. First, we have to construct an augmented matrix by using the coefficients of variables and later by the row echelon form and using back substitution method we get the required solution.

Complete step-by-step answer :
The Gauss-Jordan method, also known as Gauss-Jordan elimination method is used to solve a system of linear equations and is a modified version of Gauss Elimination Method.
we have to perform 2 different process in Gauss Elimination Method i.e.,

  1. Formation of upper triangular matrix, and
  2. Back substitution
    using reduced row echelon form.
    Consider the given system of linear equations:
    x+3y+z=3x + 3y + z = 3--------(1)
    x+5y+5z=1x + 5y + 5z = 1------(2)
    2x+6y+3z=82x + 6y + 3z = 8-----(3)
    Now, write the augmented matrix of the system of linear equations
1&3&1&|&3 \\\ 1&5&5&|&1 \\\ 2&6&3&|&8 \end{array}} \right]$$ Make the pivot in the first column and the first row Now, Eliminate the first column, using row reduced echelon form $${R_2} \to {R_2} - {R_1}\;$$ and $${R_3} \to {R_3} - 2{R_1}\;$$ $$ \Rightarrow \,A = \left[ {\begin{array}{*{20}{c}} 1&3&1&|&3 \\\ 0&2&4&|&{ - 2} \\\ 0&0&1&|&2 \end{array}} \right]$$ Now, make the 2nd element of 2nd row as 1 by $${R_2} \to \dfrac{{{R_2}}}{2}$$ $$ \Rightarrow \,A = \left[ {\begin{array}{*{20}{c}} 1&3&1&|&3 \\\ 0&1&2&|&{ - 1} \\\ 0&0&1&|&2 \end{array}} \right]$$ Now using the back substituting method to get the values of variables $$x$$, $$y$$ and $$z$$. Write the three equation: $$x + 3y + z = 3$$-----(4) $$y + 2z = - 1$$------(5) $$z = 2$$----------(6) Hence, the value of $$z = 2$$ Substitute the $$z$$ value in equation (5), then $$ \Rightarrow \,\,y + 2\left( 2 \right) = - 1$$ $$ \Rightarrow \,\,y + 4 = - 1$$ $$ \Rightarrow \,\,y = - 1 - 4$$ $$ \Rightarrow \,\,y = - 5$$ Now, substitute the $$y$$ and $$z$$ value in equation (4), then $$ \Rightarrow \,\,x + 3\left( { - 5} \right) + \left( 2 \right) = 3$$ $$ \Rightarrow \,\,x - 15 + 2 = 3$$ $$ \Rightarrow \,\,x - 13 = 3$$ $$ \Rightarrow \,\,x = 3 + 13$$ $$ \Rightarrow \,\,x = 16$$ Hence, the required solution is $$\left[ {\begin{array}{*{20}{c}} x \\\ y \\\ z \end{array}} \right] = \left[ {\begin{array}{*{20}{c}} {16} \\\ { - 5} \\\ 2 \end{array}} \right]$$ **Note** : When solving this type of questions, when an augmented matrix contains the coefficients of the unknowns and the "pure" coefficients. You can manipulate the rows of this matrix (elementary row operations) to transform the coefficients and to "read", at the end, the solutions of your system. And while solving the back substitution method we take the equation from the bottom of the augmented matrix.