Quarry School

Systems of two linear equations: crash course

about 9 min to listen5 lessons11 questions to tryUnit 21 of 25

Short view. Each lesson's rule, its steps and its trap. Switch to Full for a worked example and a question to try in every lesson.Full view. Each lesson's rule, its steps, one worked example with Watch it solved, the trap, and one question to try.

1 What solves a system

about 1 minOpen the full lessonOnly this lesson

The rule

A solution of a system of two equations in x and y is an ordered pair (x, y) that makes both equations true; on a graph it is a point common to both graphs, which for two linear equations is a point the two lines share.

How

  1. Put the pair's x and y into the first equation and simplify both sides.
  2. Do the same in the second equation.
  3. The pair solves the system only when both equations come out true.
  4. To estimate a solution from a graph, read where the lines cross, then check that pair in both equations.

Worked example

Worked example

Does the pair solve the system?

Is (4, −1) a solution of the system 2x + 3y = 5 and x − y = 5? In plain words: does the pair make both equations true?

Show the steps and the answer
  1. 2·4+3·(−1)=8−3=5.Put x = 4 and y = −1 into the first equation: 5 = 5 is true.
  2. 4−(−1)=4+1=5.Put the same pair into the second equation: 5 = 5 is true.
  3. Both equations hold.A solution must make every equation of the system true.
Answer
Yes, (4, −1) solves the system.
Double-check Both left sides came out 5, the right side of each equation.

The trap

Checking only one equation. (1, 4) makes x + y = 5 true but not 2x − y = 1, so it is not a solution of the system.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

A pair that fails one equation

Is (3, 0) a solution of x + 2y = 3 and x − y = 2?

Show the steps and the answer
  1. 3+2·0=3, true.The first equation holds.
  2. 3−0=3, not 2.The second equation fails.
Answer
No
Double-check In the second equation 3 − 0 = 3, not 2, and one false equation is enough to rule the pair out.

2 The substitution method

about 1 minOpen the full lessonOnly this lesson

The rule

To solve by substitution: solve one equation for one unknown, replace that unknown in the other equation, solve for the remaining unknown, then put its value back to find the first.

If the remaining unknown cancels too, a false statement means no solution and a true one means infinitely many, as the lesson on those cases shows.

How

  1. Pick an equation and an unknown that are easy to isolate, ideally one with coefficient 1 or −1.
  2. Solve that equation for the unknown.
  3. Substitute the expression into the other equation, in brackets.
  4. Solve the one-unknown equation; if the unknown cancels, read the leftover statement: false means no solution, true means infinitely many.
  5. If a value was found, put it back into the isolated expression for the other unknown and check the pair in both original equations; if the unknown cancelled, stop at no solution for a false statement, or describe every solution with the isolated equation for a true one.

Worked example

Worked example

Substitution with a ready expression

Solve the system y = 2x + 1 and 3x + 2y = 16. In plain words: put 2x + 1 in place of y.

Show the steps and the answer
  1. 3x+2(2x+1)=16.In a solution y equals 2x + 1, so the expression can replace y.
  2. 3x+4x+2=16, so 7x=14 and x=2.Distribute, combine like terms, subtract 2 and divide by 7.
  3. y=2·2+1=5.Put x = 2 into y = 2x + 1.
Answer
(2, 5)
Double-check 5 = 2 · 2 + 1 is true, and 3 · 2 + 2 · 5 = 6 + 10 = 16 is true.

The trap

Leaving out the brackets. 3x + 2(2x + 1) is 7x + 2; written 3x + 2 · 2x + 1 it becomes 7x + 1, and the answer comes out wrong.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Isolate first

Solve x − y = 1 and 2x + 3y = 17.

Show the steps and the answer
  1. x=y+1.Solve the first equation for x.
  2. 2(y+1)+3y=17, so 5y+2=17 and y=3.Substitute and solve.
  3. x=3+1=4.Back into x = y + 1.
Answer
(4, 3)
Double-check 4 − 3 = 1 and 2 · 4 + 3 · 3 = 8 + 9 = 17.

3 The elimination method

about 2 minOpen the full lessonOnly this lesson

The rule

To solve by elimination: multiply one or both equations by nonzero numbers so one unknown's coefficients are opposites, add the equations to eliminate it, solve for the other unknown, then put that value back into an original equation in which the unknown still to be found has a coefficient other than 0.

If one equation already gives an unknown's value, such as x=2, put that value into the other equation instead. If both unknowns cancel, the leftover statement is read as in the lesson on those cases.

How

  1. Write both equations as ax + by = c, with like terms lined up; if one has only one unknown, such as 2x = 4, solve it first and put that value into the other equation; if the other equation then has no unknown left, a true statement means the other coordinate can be any number (infinitely many solutions) and a false one means no solution.
  2. Choose an unknown to eliminate, with coefficients a and b, both not 0. Multiplying the first equation by b and the second by −a always works, making the coefficients ab and −ab; with whole-number coefficients their least common multiple keeps the numbers small, such as 12 for 4 and 6, below their product 24.
  3. Add the equations; that unknown cancels. If the other unknown cancels too, read the leftover statement: false means no solution, true means infinitely many.
  4. If one unknown is left, solve for it, put it back into an original equation and check the pair in both original equations; if both cancelled, stop at no solution for a false statement, or describe every solution with either original equation for a true one.

Worked example

Worked example

Opposite coefficients ready

Solve 3x + 2y = 12 and 5x − 2y = 4 by elimination. In plain words: add the equations so the y terms cancel.

Show the steps and the answer
  1. (3x+2y)+(5x−2y)=12+4, so 8x=16.2y and −2y are opposites, so adding removes y.
  2. x=2.Divide both sides by 8.
  3. 3·2+2y=12, so 2y=6 and y=3.Put x = 2 into the first equation: 6 + 2y = 12; subtracting 6 gives 2y = 6, and dividing by 2 gives y = 3.
Answer
(2, 3)
Double-check 3 · 2 + 2 · 3 = 12 and 5 · 2 − 2 · 3 = 10 − 6 = 4.

The trap

Multiplying only one side of an equation. To use 2(3x − y) = 2 · 7 you must double every term on both sides: 6x − 2y = 14, not 6x − 2y = 7.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Subtract

Solve 2x + 3y = 13 and 2x − y = 1.

Show the steps and the answer
  1. Subtract the second from the first: 4y=12, so y=3.The 2x terms are equal, so subtracting removes x; 3y − (−y) = 4y.
  2. 2x−3=1, so x=2.Back into the second equation.
Answer
(2, 3)
Double-check 2 · 2 + 3 · 3 = 13 and 2 · 2 − 3 = 1.

4 No solution, or infinitely many

about 2 minOpen the full lessonOnly this lesson

The rule

A system of two linear equations has exactly one solution (the lines cross), no solution (parallel lines: elimination leaves a false statement such as 0=2), or infinitely many solutions (the same line: elimination leaves 0=0, and the solutions are the pairs (x, y) on that line).

How

  1. Solve by substitution or elimination as usual.
  2. If both unknowns drop out and a false statement is left, write: no solution.
  3. If both drop out and a true statement such as 0 = 0 is left, write the solutions as the points of the line: solve one equation for y and write (x, that expression), or for a vertical line x = a, write (a, y) for every real y.
  4. To predict without solving, write each equation that has a y term as y = mx + c: different slopes give one solution; equal slopes and different intercepts give none; equal slopes and equal intercepts give infinitely many. Two vertical lines x = a and x = b are the same line when a = b (infinitely many solutions) and parallel when a ≠ b (no solution), and a vertical line meets any line with a slope once.

Worked example

Worked example

A dependent system

Solve x − y = 2 and 3x − 3y = 6. In plain words: decide whether the lines cross, are parallel or are the same.

Show the steps and the answer
  1. Multiply the first equation by −3: −3x+3y=−6.This makes the x coefficients opposite.
  2. Add to the second: 0=0.Both unknowns cancel and a true statement is left.
  3. The equations describe the same line, y=x−2.The second equation is 3 times the first, and solving x − y = 2 for y (subtract x, then multiply by −1) gives y = x − 2.
  4. The solutions are all pairs (x,x−2).Every point on the line solves both equations.
Answer
Infinitely many solutions: (x, x − 2) for every real x.
Double-check For any x, x − (x − 2) = 2 and 3x − 3(x − 2) = 6, so every pair (x, x − 2) solves both equations; (0, −2) and (5, 3) are two of them.

The trap

Calling 0 = 0 'no solution' because x vanished. A true statement means every point of the line works; only a false statement such as 0 = 2 means no solution.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

Substitution leaves a true statement

Solve 6x − 2y = 4 and y = 3x − 2.

Show the steps and the answer
  1. 6x−2(3x−2)=4, so 6x−6x+4=4.Substitute and distribute.
  2. 4=4, a true statement with no x.Both unknowns are gone and the statement is true.
Answer
Infinitely many: (x, 3x − 2)
Double-check For any x, putting y = 3x − 2 into the first equation gives 6x − 2(3x − 2) = 4, so every point of the second line satisfies the first; (1, 1) is one.

5 Writing a system from a story

about 2 minOpen the full lessonOnly this lesson

The rule

To solve a story problem with two unknowns: name the unknowns with their units, write one equation for each fact, solve the system, and check the answer against the story's words.

How

  1. Name the two unknowns and their units.
  2. Write an equation for each fact given.
  3. Solve the system by substitution or elimination.
  4. Answer in the story's words, with units, and check both facts.

Worked example

Worked example

Tickets

A theater sold 150 tickets for $1,400. Adult tickets cost $12 and child tickets $7. How many of each were sold? In plain words: one equation for the number of tickets and one for the money.

Show the steps and the answer
  1. Let a be the adult tickets and c the child tickets: a+c=150.The tickets add to 150.
  2. 12a+7c=1,400.a adult tickets at $12 bring in 12a dollars and c child tickets at $7 bring in 7c dollars, and together they bring in $1,400.
  3. c=150−a.Solve the count equation for c by subtracting a from both sides.
  4. 12a+7(150−a)=1,400, so 12a+1,050−7a=1,400 and 5a+1,050=1,400.Substitute for c, distribute the 7 and combine 12a − 7a.
  5. 5a=350, so a=70.Subtract 1,050 from both sides, then divide by 5.
  6. c=150−70=80.Back into c = 150 − a.
Answer
70 adult tickets and 80 child tickets
Double-check 70 + 80 = 150 tickets, and 12 · 70 + 7 · 80 = 840 + 560 = 1,400 dollars.

The trap

Mixing units. In the coin problem, 0.10d + 0.25q = 7 counts dollars; writing 10d + 25q = 7 mixes cents with dollars. Write both sides in the same unit: 10d + 25q = 700 cents works too.

Quick check

Try it before you open its steps. It is question 2 of 4 in the full lesson, where they run from easy to exam-hard.

Try it · level 2 of 4

A mixture

How many liters of a 10% salt solution and of a 30% salt solution make 20 liters of a 25% solution? The percents are by volume, and the volumes add when mixed.

Show the steps and the answer
  1. x+y=20, with x liters of 10% and y liters of 30%.The liters add to 20.
  2. 0.10x+0.30y=0.25·20=5.The salt adds to 5 liters.
  3. x=20−y, so 2−0.1y+0.3y=5,0.2y=3 and y=15; x=5.Substitute and solve.
Answer
5 L of the 10% solution and 15 L of the 30% solution
Double-check 5 + 15 = 20 L, and 0.5 + 4.5 = 5 L of salt, 25% of 20 L.

6 Quick checks for the whole unit

6 questions

Quick check 1 of 6

Is (3, 1) a solution of x + y = 4 and x − y = 2?

Show the steps and the answer
Answer
Yes: 3 + 1 = 4 and 3 − 1 = 2.

Quick check 2 of 6

Solve y = x + 1 and x + y = 7.

Show the steps and the answer
Answer
(3, 4): x + x + 1 = 7 gives x = 3.

Quick check 3 of 6

Solve x + y = 8 and x − y = 2.

Show the steps and the answer
Answer
(5, 3): adding gives 2x = 10.

Quick check 4 of 6

How many solutions has y = 5x − 2 and y = 5x + 7?

Show the steps and the answer
Answer
None: the lines are parallel, with the same slope 5 and different intercepts.

Quick check 5 of 6

Elimination leaves 0 = 0. What does that mean?

Show the steps and the answer
Answer
The equations describe the same line: infinitely many solutions.

Quick check 6 of 6

Two numbers add to 20 and differ by 4. What are they?

Show the steps and the answer
Answer
12 and 8.