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.
You need first
1 What solves a system
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
- Put the pair's x and y into the first equation and simplify both sides.
- Do the same in the second equation.
- The pair solves the system only when both equations come out true.
- 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
- .Put x = 4 and y = −1 into the first equation: 5 = 5 is true.
- .Put the same pair into the second equation: 5 = 5 is true.
- Both equations hold.A solution must make every equation of the system true.
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
- , true.The first equation holds.
- , not 2.The second equation fails.
2 The substitution method
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
- Pick an equation and an unknown that are easy to isolate, ideally one with coefficient 1 or −1.
- Solve that equation for the unknown.
- Substitute the expression into the other equation, in brackets.
- Solve the one-unknown equation; if the unknown cancels, read the leftover statement: false means no solution, true means infinitely many.
- 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
- .In a solution y equals 2x + 1, so the expression can replace y.
- , so and .Distribute, combine like terms, subtract 2 and divide by 7.
- .Put x = 2 into y = 2x + 1.
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
- .Solve the first equation for x.
- , so and .Substitute and solve.
- .Back into x = y + 1.
3 The elimination method
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 , 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
- 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.
- 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.
- Add the equations; that unknown cancels. If the other unknown cancels too, read the leftover statement: false means no solution, true means infinitely many.
- 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
- , so .2y and −2y are opposites, so adding removes y.
- .Divide both sides by 8.
- , so and .Put x = 2 into the first equation: 6 + 2y = 12; subtracting 6 gives 2y = 6, and dividing by 2 gives y = 3.
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
- Subtract the second from the first: , so .The 2x terms are equal, so subtracting removes x; 3y − (−y) = 4y.
- , so .Back into the second equation.
4 No solution, or infinitely many
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 ), or infinitely many solutions (the same line: elimination leaves , and the solutions are the pairs (x, y) on that line).
How
- Solve by substitution or elimination as usual.
- If both unknowns drop out and a false statement is left, write: no solution.
- 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.
- 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
- Multiply the first equation by −3: .This makes the x coefficients opposite.
- Add to the second: .Both unknowns cancel and a true statement is left.
- The equations describe the same line, .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.
- The solutions are all pairs .Every point on the line solves both equations.
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
- , so .Substitute and distribute.
- , a true statement with no x.Both unknowns are gone and the statement is true.
5 Writing a system from a story
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
- Name the two unknowns and their units.
- Write an equation for each fact given.
- Solve the system by substitution or elimination.
- 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
- Let a be the adult tickets and c the child tickets: .The tickets add to 150.
- ,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.
- .Solve the count equation for c by subtracting a from both sides.
- ,400, so ,400 and ,400.Substitute for c, distribute the 7 and combine 12a − 7a.
- , so .Subtract 1,050 from both sides, then divide by 5.
- .Back into c = 150 − a.
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
- , with x liters of 10% and y liters of 30%.The liters add to 20.
- .The salt adds to 5 liters.
- , so and ; .Substitute and solve.
6 Quick checks for the whole unit
Quick check 1 of 6
Is (3, 1) a solution of x + y = 4 and x − y = 2?
Show the steps and the answer
Quick check 2 of 6
Solve y = x + 1 and x + y = 7.
Show the steps and the answer
Quick check 3 of 6
Solve x + y = 8 and x − y = 2.
Show the steps and the answer
Quick check 4 of 6
How many solutions has y = 5x − 2 and y = 5x + 7?
Show the steps and the answer
Quick check 5 of 6
Elimination leaves 0 = 0. What does that mean?
Show the steps and the answer
Quick check 6 of 6
Two numbers add to 20 and differ by 4. What are they?