We want to write the following system
As a matrix. To do that, we just take the coefficients and plug them in the same order in a matrix. Our system can be rewritten as:
Now, to solve this, we can use the gaussian elimination. It consists of adding, multiplying, and changing the order of the rows, until we have an identity matrix on the left side.
Let's start by subtracting the second row from the third row, and subtracting 2 times the second row from the first row.
Multiplying the first row by (- 1), we have:
Adding the first row to the third row, we have:
Multiplying the last row by 1/9:
Now, subtracting the third row from the second row, and subtracting 5 times the third row from the first row, we have:
Dividing the first row by 3:
Subtracting the twice the first row from the second row:
And finally, permuting the first and the second row
And this is our answer.