Solve the following equations using Gauss elimination and Gauss Jordon.
2x + 7y + z = 14
x + 3y - z = 2
x + 7y + 12z = 45
Solution.
"2x + 7y + z = 14" ;
"x + 3y - z = 2" ;
"x + 7y + 12z = 45;"
"\\begin{bmatrix}\n 2 & 7&1&14 \\\\\n 1 & 3&-1&2\\\\\n1&7&12&45\n\\end{bmatrix}"
Find the pivot in the 1st column and swap the 2nd and the 1st rows
"\\begin{bmatrix}\n 1& 3&-1&2 \\\\\n 2 & 7&1&14\\\\\n1&7&12&45\n\\end{bmatrix}"
Eliminate the 1st column
"\\begin{bmatrix}\n 1& 3&-1&2 \\\\\n 0 & 1&3&10\\\\\n0&4&13&43\n\\end{bmatrix}"
Find the pivot in the 2nd column in the 2nd row
"\\begin{bmatrix}\n 1& 3&-1&2 \\\\\n 0 & 1&3&10\\\\\n0&4&13&43\n\\end{bmatrix}"
Eliminate the 2nd column
"\\begin{bmatrix}\n 1& 0&-10&-2 8\\\\\n 0 & 1&3&10\\\\\n0&0&1&3\n\\end{bmatrix}"
Find the pivot in the 3rd column in the 3rd row
"\\begin{bmatrix}\n 1& 0&-10&-2 8\\\\\n 0 & 1&3&10\\\\\n0&0&1&3\n\\end{bmatrix}"
Eliminate the 3rd column
"\\begin{bmatrix}\n 1& 0&0&2 \\\\\n 0 & 1&0&1\\\\\n0&0&1&3\n\\end{bmatrix}"
Solution set:
"x = 2;\n\ny = 1;\nz = 3."
Answer: "x = 2;\n\ny = 1;\nz = 3."
Comments
Leave a comment