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

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

Answer

Solutioninfinitely many — the equations are dependent

Step-by-step solution

9 steps
  1. 1 The system, with the equations numbered
    \begin{aligned}2 z - x - 2 y &= 7 & (1)\\ x + y - z &= -3 & (2)\\ 2 x - y + z &= 6 & (3)\end{aligned}
  2. 2 Write the augmented matrix (coefficients | constants)
    \left[\begin{array}{ccc|c} -1 & -2 & 2 & 7\\ 1 & 1 & -1 & -3\\ 2 & -1 & 1 & 6 \end{array}\right]
  3. 3 Divide row 1 by -1 so the pivot is 1
    \left[\begin{array}{ccc|c} 1 & 2 & -2 & -7\\ 1 & 1 & -1 & -3\\ 2 & -1 & 1 & 6 \end{array}\right]
  4. 4 Row 2 ← Row 2 − Row 1
    \left[\begin{array}{ccc|c} 1 & 2 & -2 & -7\\ 0 & -1 & 1 & 4\\ 2 & -1 & 1 & 6 \end{array}\right]
  5. 5 Row 3 ← Row 3 − 2 · Row 1
    \left[\begin{array}{ccc|c} 1 & 2 & -2 & -7\\ 0 & -1 & 1 & 4\\ 0 & -5 & 5 & 20 \end{array}\right]
  6. 6 Divide row 2 by -1 so the pivot is 1
    \left[\begin{array}{ccc|c} 1 & 2 & -2 & -7\\ 0 & 1 & -1 & -4\\ 0 & -5 & 5 & 20 \end{array}\right]
  7. 7 Row 1 ← Row 1 − 2 · Row 2
    \left[\begin{array}{ccc|c} 1 & 0 & 0 & 1\\ 0 & 1 & -1 & -4\\ 0 & -5 & 5 & 20 \end{array}\right]
  8. 8 Row 3 ← Row 3 + 5 · Row 2
    \left[\begin{array}{ccc|c} 1 & 0 & 0 & 1\\ 0 & 1 & -1 & -4\\ 0 & 0 & 0 & 0 \end{array}\right]
  9. 9 Fewer pivots than unknowns: z can be anything
    x = 1,\quad y = z - 4

    Infinitely many solutions, one for every value of the free variable(s).

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.