Solve the system of equations
7 3x + 2y + 4z =
7 2x + y + z =
2 x + 3y + 5z =
using Gauss elimination with pivoting. Store the multipliers and also write the
pivoting vector.
Expert's answer
Answer on Question #46677 – Math – Algorithms | Quantitative Methods
Solve the system of equations
73x+2y+4z=72x+y+z=2x+3y+5z=
using Gauss elimination with pivoting. Store the multipliers and also write the pivoting vector.
Solution.
⎩⎨⎧3x+2y+4z=72x+y+z=7x+3y+5z=2
- Swap Row 1 and Row 3. After this step we have:
⎩⎨⎧x+3y+5z=22x+y+z=73x+2y+4z=7
- Multiply the first equation by −2 and add the result to the second equation. The result is:
⎩⎨⎧x+3y+5z=2−5y−9z=33x+2y+4z=7
- Multiply the first equation by −3 and add the result to the third equation. The result is:
⎩⎨⎧x+3y+5z=2−5y−9z=3−7−11z=1
- Multiply the second equation by −57 and add the result to the third equation. The result is:
⎩⎨⎧x+3y+5z=2−5y−9z=358z=−516
- Solve for z.
z=−2
- Solve for y.
−5y−9z=3→y=3
- solve for x by substituting y=3 and z=−2 into the first equation.