MATH BOSS

All lessons

How to solve two equations with two unknowns?

The solution is a pair that fits both equations, and in the drawing it is the crossing point.

Grades 8 to 9 · Free. No sign-up. No ads. Nothing is collected.

Watch it live in 3D

A live lesson where things move and you can try. Lesson page with the outline

Example

x+y=10x−y=2

Answer: x=6,y=4

Try it yourself: 2x+y=7x−y=2

Why do I need this?

2 pens and a notebook cost 7 shekels. A pen and a notebook cost 4. What is each price?

2x+y=7x+y=4

The idea

Two equations are about the same unknowns, and the solution fits both.

(x,y)=(3,1)

Step by step

  1. A pen and a notebook

    x is the price of a pen and y of a notebook.

    2x+y=7
    x+y=4
    xxy7xy4
  2. Subtracting the equations

    Subtract the second equation from the first: one more pen, and 3 shekels more.

    (2x+y)−(x+y)=7−4
    x=3
    3xy7xy4
  3. Find y

    Put the pen price into one equation to get the notebook price.

    3+y=4
    y=1
    3?4
  4. The crossing point

    Each equation is a straight line, and the solution is where the lines meet.

    (x,y)=(3,1)
    −11234562468(3, 1)2x+y=7x+y=4

More cases and examples

  1. Substitution

    If y already equals something, swap it into the other equation.

    3x+(2x+1)=11
    x=2,y=5
  2. Parallel lines

    Parallel lines never meet, so there is no solution.

    y=x+1
    y=x+3
    −11234562468

The rule

The solution fits both

When to use it: Two straight-line equations with two unknowns.

2x+y=7,x+y=4⇒(3,1)
  • xthe price of a pen
  • ythe price of a notebook

Watch out: The two lines are parallel (no solution) or the same line (endless solutions).

Common mistakes

  • Wrong
    x=3
    Right
    (x,y)=(3,1)

    A solution of a system is a pair: we must find y too.

  • Wrong
    2x+y−x+y=3⇒x+2y=3
    Right
    2x+y−(x+y)=x=3

    The minus applies to everything in the parentheses, y too.

  • Wrong
    (x,y)=(2.9,1.1)
    Right
    (x,y)=(3,1)

    A drawing only estimates, so we test the numbers in both equations.

How to study this topic

  1. Read the idea first
  2. Then go through the steps, covering each result before you read it
  3. Then learn the rule
  4. Finally, check the common slips
Watch it live in 3D

A live lesson where things move and you can try. Lesson page with the outline

Related lessons