Solve x + y + 3z = 6, 2x − y + 3z = 15, 3x + 3y + 3z = 6

Worked out line by line the way a teacher would write it.

Answer

Solutionx = 3, y = −3, z = 2

Step-by-step solution

10 steps
  1. 1 The system, with the equations numbered
    \begin{aligned}x + y + 3 z &= 6 & (1)\\ 2 x - y + 3 z &= 15 & (2)\\ 3 x + 3 y + 3 z &= 6 & (3)\end{aligned}
  2. 2 Write the augmented matrix (coefficients | constants)
    \left[\begin{array}{ccc|c} 1 & 1 & 3 & 6\\ 2 & -1 & 3 & 15\\ 3 & 3 & 3 & 6 \end{array}\right]
  3. 3 Row 2 ← Row 2 − 2 · Row 1
    \left[\begin{array}{ccc|c} 1 & 1 & 3 & 6\\ 0 & -3 & -3 & 3\\ 3 & 3 & 3 & 6 \end{array}\right]
  4. 4 Row 3 ← Row 3 − 3 · Row 1
    \left[\begin{array}{ccc|c} 1 & 1 & 3 & 6\\ 0 & -3 & -3 & 3\\ 0 & 0 & -6 & -12 \end{array}\right]
  5. 5 Divide row 2 by -3 so the pivot is 1
    \left[\begin{array}{ccc|c} 1 & 1 & 3 & 6\\ 0 & 1 & 1 & -1\\ 0 & 0 & -6 & -12 \end{array}\right]
  6. 6 Row 1 ← Row 1 − Row 2
    \left[\begin{array}{ccc|c} 1 & 0 & 2 & 7\\ 0 & 1 & 1 & -1\\ 0 & 0 & -6 & -12 \end{array}\right]
  7. 7 Divide row 3 by -6 so the pivot is 1
    \left[\begin{array}{ccc|c} 1 & 0 & 2 & 7\\ 0 & 1 & 1 & -1\\ 0 & 0 & 1 & 2 \end{array}\right]
  8. 8 Row 1 ← Row 1 − 2 · Row 3
    \left[\begin{array}{ccc|c} 1 & 0 & 0 & 3\\ 0 & 1 & 1 & -1\\ 0 & 0 & 1 & 2 \end{array}\right]
  9. 9 Row 2 ← Row 2 − Row 3
    \left[\begin{array}{ccc|c} 1 & 0 & 0 & 3\\ 0 & 1 & 0 & -3\\ 0 & 0 & 1 & 2 \end{array}\right]
  10. 10 The matrix is in reduced row-echelon form — read off the solution
    x = 3,\quad y = -3,\quad z = 2

Check by substitution

EquationLeft sideRight side
(1)66✓
(2)1515✓
(3)66✓
Open this problem in the solver

Change a number or try your own problem: the solver works it out the same way, with a graph and hint mode.