Find solution of equation by using the gaussian elimination method.
2x+3y+z=2
-x+2y+2z=1
x-y-2z=-1
The augmented matrix for the set of equations is:
"\\begin{bmatrix}\n 2 & 3 & 1 & 2 \\\\\n -1 & 2 & 2 & 1 \\\\\n 1 & -1 & -2 & -1\n\\end{bmatrix}"
Rearranging the rows:
"\\begin{bmatrix}\n 1 & -1 & -2 & -1 \\\\\n 2 & 3 & 1 & 2 \\\\\n -1 & 2 & 2 & 1\n\\end{bmatrix}"
Multiply the first row by -2 and add it to the second row:
"\\begin{bmatrix}\n 1 & -1 & -2 & -1 \\\\\n 0 & 5 & 5 & 4 \\\\\n -1 & 2 & 2 & 1\n\\end{bmatrix}"
Add the first row to the third row:
"\\begin{bmatrix}\n 1 & -1 & -2 & -1 \\\\\n 0 & 5 & 5 & 4 \\\\\n 0 & 1 & 0 & 0\n\\end{bmatrix}"
The third row translates to:
"y=0"
Therefore, the second row translates to:
"5z=4"
"z=4\/5"
The first row then translates to:
"x-2(4\/5)=-1"
"x-8\/5=-1"
"x=-1+8\/5"
"x=3\/5"
Comments
Leave a comment