Solve x + y = 5, x − y = 1

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

Answer

Solutionx = 3, y = 2

Step-by-step solution

9 steps
  1. 1 The system, with the equations numbered
    \begin{aligned}x + y &= 5 & (1)\\ x - y &= 1 & (2)\end{aligned}
  2. 2 Solve equation (1) for x
    x + y = 5
  3. 3 Subtract y from both sides
    x = 5 - y

    Move the constant terms to the right.

  4. 4 Substitute x = 5 - y into equation (2)
    - y + 5 - y = 1

    Now there is a single equation in y.

  5. 5 Combine like terms
    5 - 2 y = 1
  6. 6 Subtract 5 from both sides
    - 2 y = -4

    Move the constant terms to the right.

  7. 7 Divide both sides by -2
    y = \frac{-4}{-2}
  8. 8 Simplify
    y = 2
  9. 9 Back-substitute y = 2 to find x
    x = 5 - 2 = 3

Check by substitution

EquationLeft sideRight side
(1)55✓
(2)11✓
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.