Quarry School

College Algebra / Systems of two linear equations

Systems of two linear equations

Subject: Mathematics

All 5 lessons, in order.

The unit at a glance

  1. What solves a system

    A system of two linear equations is a pair of equations in the same two unknowns, such as x + y = 5 and 2x − y = 1.

  2. The substitution method

    When one equation already gives one unknown in terms of the other, such as y = 2x + 1, put that expression in place of y in the other equation.

  3. The elimination method

    When both equations are in the form ax + by = c, add or subtract them so that one unknown drops out.

  4. No solution, or infinitely many

    Two lines in a plane can cross once, never meet, or be the same line.

  5. Writing a system from a story

    Many problems hand you two facts about two unknown amounts: how many tickets were sold in all and how much money they brought in, or how many liters were mixed and how much salt they hold.

Rules (5)
  • What solves a system

    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.

  • The substitution method

    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.

  • The elimination method

    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.

  • No solution, or infinitely many

    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).

  • Writing a system from a story

    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.

Recipes (5)
  • What solves a system
    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.
  • The substitution method
    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.
  • The elimination method
    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.
  • No solution, or infinitely many
    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.
  • Writing a system from a story
    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.
Traps (5)
  • What solves a system

    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.

  • The substitution method

    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.

  • The elimination method

    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.

  • No solution, or infinitely many

    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.

  • Writing a system from a story

    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.

Lesson 1 of 5

What solves a system

Subject: MathematicsLeans on: Evaluating an expressionLeans on: Slope-intercept formOpen this lesson
Leans on 0Comes back in 0

1 In plain words

A system of two linear equations is a pair of equations in the same two unknowns, such as x + y = 5 and 2x − y = 1. A solution of the system is a pair (x, y) that makes both equations true at once. Each equation's solutions form a line, so a solution of the system is a point on both lines, such as the point where they cross. It is like two friends each naming the streets they could meet on: the corner on both lists is where they meet.

2 Picture it

(2, 3)−2246−2246(2, 3)−2−1123456−2246
y = −x + 5 and y = 2x − 1 meet at (2, 3).

Reminder

Reminder: Evaluating an expression, Slope-intercept form
  • Evaluating an expression. Put each number in place of its letter, then follow the order of operations: 2 · 4 + 3 · (−1) = 8 − 3 = 5.
  • Slope-intercept form. y = mx + c has slope m and crosses the y-axis at (0, c); solve an equation for y to draw it, when after simplifying its y term has a coefficient other than 0.

3 Why

The graph of a linear equation in x and y is the set of all pairs that make it true. A pair that makes two equations true lies on both graphs, and a point on both graphs makes both equations true. Two different lines cross at one point at most, so a system of two linear equations whose lines cross has exactly one solution.

4 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.

The same idea, other ways

With small numbers

Try (2, 3) in x + y = 5 and 2x − y = 1: 2 + 3 = 5 is true, and 2 · 2 − 3 = 1 is true. Both hold, so (2, 3) solves the system. Try (1, 4): 1 + 4 = 5 is true, but 2 · 1 − 4 = −2, not 1, so (1, 4) does not.

(2, 3): 2 + 3 = 5 and 4 − 3 = 1, both true

(1, 4): 1 + 4 = 5 true, 2 − 4 = −2 not 1

As a picture

Solve each equation for y: y = 5 − x and y = 2x − 1. Draw both lines. They cross at (2, 3), the one point that lies on both.

(2, 3)−2246−2246
y = −x + 5 (solid) and y = 2x − 1 (dashed) cross at (2, 3), the solution of the system.
Why a crossing is the answer

A point lies on the first line exactly when its coordinates make the first equation true, and on the second line exactly when they make the second true. So the points on both lines are exactly the pairs that make both equations true.

5 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.

6 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.

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 4

A pair that works

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

Show the steps and the answer
  1. 1+2=3, true.First equation.
  2. 3·1−2=1, true.Second equation.
Answer
Yes
Double-check 1 + 2 = 3 and 3 · 1 − 2 = 1: both equations hold.

Rung 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.

Rung 3 of 4

Read a crossing, then check

The lines y = x + 1 and y = −x + 5 are drawn and appear to cross at (2, 3). Is that the solution?

Show the steps and the answer
  1. 2+1=3, so (2, 3) is on y=x+1.Put x = 2 into the first equation.
  2. −2+5=3, so (2, 3) is on y=−x+5.Put x = 2 into the second.
Answer
Yes, (2, 3)
Double-check Both equations give y = 3 at x = 2, so the crossing read from the graph is exact.

Rung 4 of 4

Fractions

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

Show the steps and the answer
  1. 4·12+2=2+2=4, true.First equation.
  2. 2·12−2=1−2=−1, true.Second equation.
Answer
Yes
Double-check 4 · 12 + 2 = 4 and 2 · 12 − 2 = −1: both equations hold.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: (1, 4) solves x + y = 5 and 2x − y = 1 because 1 + 4 = 5.
It must make both equations true, and 2 · 1 − 4 = −2, not 1.
✓ Instead: (2, 3) solves the system.
✗ Not this: A pair read from a graph is exact.
A drawing can be off by a fraction; only the equations decide.
✓ Instead: Check the pair in both equations.

Tips and tricks

  • A solution makes both equations true.
  • On a graph: a point on both lines.
  • Always check in both equations.

7 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.

Flash cards

Say the answer out loud, then flip.

What is a solution of a system of two equations in x and y?
An ordered pair (x, y) that makes both equations true.
Where are the solutions of a system of two linear equations on a graph?
At the points the two lines share: their crossing point, every point when the two lines are the same, and none when they are distinct parallel lines.

Lesson 2 of 5

The substitution method

Subject: MathematicsLeans on: The distributive propertyLeans on: Solving a linear equationOpen this lesson
Leans on 0Comes back in 0

1 In plain words

When one equation already gives one unknown in terms of the other, such as y = 2x + 1, put that expression in place of y in the other equation. That leaves one equation in one unknown, which you know how to solve. Then put the value you found back in to get the other unknown. It is like swapping a coin for its value in change: y and 2x + 1 are worth the same, so either can stand in the equation.

2 Picture it

(2, 5)24−2246810(2, 5)−112345−2246810
y = 2x + 1 and y = −1.5x + 8 meet at (2, 5).

Reminder

Reminder: The distributive property, Solving a linear equation
  • The distributive property. a(b + c) = ab + ac, and −4(x + 3) = −4x − 12.
  • Solving a linear equation. 7x + 2 = 16: subtract 2 from both sides to get 7x = 14, then divide by 7 to get x = 2.

3 Why

Every solution of the system makes y equal to 2x + 1, so in a solution the two are the same number and either can be written in the other equation. That gives one equation in x alone, whose solutions are the x values of the system's solutions, and the first equation then gives each y. When that equation has one solution, so does the system; when x cancels, a false statement means no solution and a true one means every x works with y = 2x + 1.

4 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.

The same idea, other ways

With small numbers

y = 2x + 1 and 3x + 2y = 16. Replace y: 3x + 2(2x + 1) = 16, so 7x + 2 = 16, 7x = 14 and x = 2. Then y = 2 · 2 + 1 = 5.

3x + 2(2x + 1) = 16

7x + 2 = 16, so x = 2

y = 2 · 2 + 1 = 5

As a picture

y = 2x + 1 and y = −1.5x + 8 (the second equation solved for y) cross at (2, 5), the pair substitution finds.

(2, 5)24−2246810
y = 2x + 1 (solid) and y = −1.5x + 8 (dashed) cross at (2, 5).

5 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.

6 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.

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 4

One unknown in terms of the other

Solve x = 3y and x + y = 8.

Show the steps and the answer
  1. 3y+y=8, so 4y=8 and y=2.Replace x with 3y.
  2. x=3·2=6.Back into x = 3y.
Answer
(6, 2)
Double-check 6 = 3 · 2 and 6 + 2 = 8.

Rung 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.

Rung 3 of 4

A fraction in the expression

Solve y = 12x + 3 and x − 4y = −10.

Show the steps and the answer
  1. x−4(12x+3)=−10.Replace y.
  2. x−2x−12=−10, so −x=2 and x=−2.Distribute the −4, combine like terms and add 12.
  3. y=12·(−2)+3=2.Back into the expression for y.
Answer
(−2,2)
Double-check 2 = 12 · (−2) + 3 and −2 − 4 · 2 = −10.

Rung 4 of 4

Isolate y from a standard form

Solve 2x + y = 7 and 5x − 3y = 1.

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

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: x−4(12x+3)=x−2x+3.
The −4 multiplies both terms in the brackets: −4 · 3 = −12.
✓ Instead: x−2x−12.
✗ Not this: Stopping at x = 2 and giving 2 as the answer.
A solution of a system is a pair; the y is still owed.
✓ Instead: (2, 5).

Tips and tricks

  • Isolate an unknown with a nonzero coefficient, 1 or −1 when there is one.
  • Substitute in brackets.
  • A solution is a pair: find both unknowns.

7 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.

Flash cards

Say the answer out loud, then flip.

In y = 3x and 2x + y = 10, what does substitution give?
2x + 3x = 10, so x = 2 and y = 6.
Why write the substituted expression in brackets?
So a number in front multiplies every term of it.

Lesson 3 of 5

The elimination method

Subject: MathematicsLeans on: Least common multipleLeans on: Subtracting a negativeOpen this lesson
Leans on 0Comes back in 0

1 In plain words

When both equations are in the form ax + by = c, add or subtract them so that one unknown drops out. In 3x + 2y = 12 and 5x − 2y = 4, the 2y and the −2y cancel when you add: 8x = 16. If no unknown has opposite coefficients yet, multiply one or both equations by numbers that make them opposite first. It is like a balance scale with two loads: adding equal amounts to equal amounts keeps the balance, so the sum of two true equations is true.

2 Picture it

(2, 3)24−22468(2, 3)−112345−22468
y = −1.5x + 6 and y = 2.5x − 2 meet at (2, 3).

Reminder

Reminder: Least common multiple, Subtracting a negative
  • Least common multiple. The least common multiple of 4 and 3 is 12, the smallest positive number that both 4 and 3 divide.
  • Subtracting a negative. 3y−(−y)=3y+y=4y.

3 Why

If two equations are true for the same pair, then adding their left sides and their right sides gives another true equation for that pair, and so does multiplying an equation by a number other than 0. Choosing the multipliers so one unknown's coefficients are opposite makes that unknown cancel, which leaves one equation in the other unknown, or, when that one cancels too, a statement with no unknown such as 0 = 0 or 0 = 2. Multiplying by 0 is not allowed, because it would turn the equation into 0 = 0 and lose it. No solution is gained either: keeping one original equation beside the sum, subtracting the right multiple of it gives back the other equation's multiple, and dividing by that nonzero multiplier gives back the other equation, so the new pair of equations has the same solutions as the old.

4 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.

The same idea, other ways

With small numbers

x + y = 10 and x − y = 4. Add them: 2x = 14, so x = 7. Then 7 + y = 10, so y = 3.

(x+y)+(x−y)=10+4

2x = 14, so x = 7

7 + y = 10, so y = 3

Multiplying first

x + 2y = 7 and 3x − y = 7. Multiply the second by 2: 6x − 2y = 14. Now add: 7x = 21, so x = 3, and 3 + 2y = 7 gives y = 2.

As a picture

3x + 2y = 12 is the line y = −1.5x + 6 and 5x − 2y = 4 is y = 2.5x − 2. They cross at (2, 3), the pair elimination finds.

(2, 3)24−22468
y = −1.5x + 6 (solid) and y = 2.5x − 2 (dashed) cross at (2, 3).

5 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.

6 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.

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 4

Add

Solve x + y = 10 and x − y = 4.

Show the steps and the answer
  1. Adding gives 2x=14, so x=7.y and −y cancel.
  2. 7+y=10, so y=3.Back into the first equation.
Answer
(7, 3)
Double-check 7 + 3 = 10 and 7 − 3 = 4.

Rung 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.

Rung 3 of 4

Multiply one equation

Solve x + 2y = 7 and 3x − y = 7.

Show the steps and the answer
  1. Multiply the second equation by 2: 6x−2y=14.Now the y coefficients are 2 and −2.
  2. Add: 7x=21, so x=3.The y terms cancel.
  3. 3+2y=7, so y=2.Back into the first equation.
Answer
(3, 2)
Double-check 3 + 2 · 2 = 7 and 3 · 3 − 2 = 7.

Rung 4 of 4

Multiply both equations

Solve 3x + 4y = 10 and 2x − 3y = 1.

Show the steps and the answer
  1. Multiply the first by 3 and the second by 4: 9x+12y=30 and 8x−12y=4.12 is a common multiple of 4 and 3, so the y coefficients become 12 and −12.
  2. Add: 17x=34, so x=2.The y terms cancel.
  3. 3·2+4y=10, so 4y=4 and y=1.Back into the first original equation.
Answer
(2, 1)
Double-check 3 · 2 + 4 · 1 = 10 and 2 · 2 − 3 · 1 = 1.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Subtracting 2x − y = 1 from 2x + 3y = 13 gives 2y = 12.
3y − (−y) is 3y + y = 4y.
✓ Instead: 4y = 12, so y = 3.
✗ Not this: From 3x − y = 7, doubling gives 6x − 2y = 7.
The right side must be doubled too.
✓ Instead: 6x−2y=14.

Tips and tricks

  • Line up x, y and the numbers.
  • Make one unknown's coefficients opposite, then add.
  • Multiply every term, both sides.

7 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.

Flash cards

Say the answer out loud, then flip.

In x + y = 13 and x − y = 5, what does adding the equations give?
2x = 18, so x = 9 and y = 4.
What must you never multiply an equation by in elimination?
0, because it turns the equation into 0 = 0 and loses it.

Lesson 4 of 5

No solution, or infinitely many

Subject: MathematicsLeans on: Slope-intercept formLeans on: Parallel linesOpen this lesson
Leans on 1Comes back in 0

1 In plain words

Two lines in a plane can cross once, never meet, or be the same line. Parallel lines never meet, so their system has no solution: it is inconsistent. Two equations for the same line share every point, so the system has infinitely many solutions: it is dependent. Algebra shows which: if both unknowns cancel and a false statement such as 0 = 2 is left, there is no solution; if 0 = 0 is left, there are infinitely many. It is like two train tracks: side by side they never meet, and laid one on the other they meet everywhere.

2 Picture it

−2246−224−2−1123456−2−11234
Parallel lines y = −0.5x + 2 and y = −0.5x + 1.5: no solution.

Reminder

Reminder: Slope-intercept form, Parallel lines
  • Slope-intercept form. Solve for y: 4x − 2y = 6 gives −2y = −4x + 6, then y = 2x − 3.
  • Parallel lines. Two different lines with the same slope never meet.

3 Why

Adding multiples of true equations gives true equations, so if a solution existed, 0 = 2 would be true, which it is not; there is no solution. When the sum is 0 = 0, one equation is a nonzero multiple of the other, so the two describe the same line, and every point of that line, infinitely many pairs, solves the system.

4 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).

The same idea, other ways

As a picture

2x + 4y = 8 is y = −0.5x + 2 and x + 2y = 3 is y = −0.5x + 1.5. Same slope, different y-intercepts: parallel lines, no solution.

−2246−224
y = −0.5x + 2 and y = −0.5x + 1.5 are parallel: the system has no solution.
With elimination

Multiply x + 2y = 3 by −2: −2x − 4y = −6. Add it to 2x + 4y = 8: 0 = 2, which is false, so no pair works. For x − y = 2 and 3x − 3y = 6, multiplying the first by −3 and adding gives 0 = 0: every solution of one equation solves the other.

5 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.

6 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.

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 4

Parallel by slopes

How many solutions has y = 3x + 1 and y = 3x − 4?

Show the steps and the answer
  1. Both slopes are 3.Read m from y = mx + c.
  2. The intercepts differ: 1 and −4.Equal slopes, different intercepts: parallel lines.
Answer
No solution
Double-check Setting 3x + 1 = 3x − 4 gives 1 = −4, which is false.

Rung 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.

Rung 3 of 4

Elimination gives a false statement

Solve x + y = 5 and 2x + 2y = 12.

Show the steps and the answer
  1. Multiply the first by −2: −2x−2y=−10.Make the coefficients opposite.
  2. Add: 0=2.The x and y terms cancel and the right sides add to −10 + 12 = 2, so 0 = 2, which is false.
Answer
No solution
Double-check x + y would have to be 5 and also 12 ÷ 2 = 6 at once, which cannot happen.

Rung 4 of 4

The same line in two forms

How many solutions has 4x − 2y = 6 and y = 2x − 3?

Show the steps and the answer
  1. Solve the first for y: −2y=−4x+6, so y=2x−3.Subtract 4x, then divide every term by −2.
  2. Both equations are y=2x−3.Same slope and same intercept.
Answer
Infinitely many: (x, 2x − 3)
Double-check For any x, putting y = 2x − 3 into 4x − 2y = 6 gives 4x − 2(2x − 3) = 6, so every point of the line satisfies both equations.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: x − y = 2 and 3x − 3y = 6 give 0 = 0, so x = 0.
0 = 0 says nothing about x; it is true for every pair on the line.
✓ Instead: Infinitely many solutions, (x, x − 2).
✗ Not this: Writing the answer to a dependent system as 'all real numbers'.
Only the pairs on the line work: (0, 0) does not solve x − y = 2.
✓ Instead: (x, x − 2) for every real x.

Tips and tricks

  • False statement: no solution.
  • 0 = 0: infinitely many, the points of the line.
  • Equal slopes: no crossing point, unless the lines are the same.

7 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.

Flash cards

Say the answer out loud, then flip.

Elimination leaves 0 = 5. How many solutions has the system?
None: the lines are parallel.
Elimination leaves 0 = 0. How many solutions has the system?
Infinitely many: the two equations describe the same line.

Lesson 5 of 5

Writing a system from a story

Subject: MathematicsLeans on: Percent of an amountLeans on: SubstitutionOpen this lesson
Leans on 1Comes back in 0

1 In plain words

Many problems hand you two facts about two unknown amounts: how many tickets were sold in all and how much money they brought in, or how many liters were mixed and how much salt they hold. Name the two unknowns, write one equation for each fact, and solve the system. It is like two clues in a puzzle: either clue alone fits many answers, and when the two clues are independent and agree, only one answer fits both.

2 Picture it

(60, 2,100)10305070903601080180025203240(60, 2,100)10305070903601080180025203240
Break-even: cost C = 1,200 + 15x (solid) meets revenue R = 35x (dashed) at (60, 2,100).

Reminder

Reminder: Percent of an amount, Substitution
  • Percent of an amount. 25% of 20 liters is 0.25 · 20 = 5 liters.
  • Substitution. Solve one equation for one unknown and put the expression into the other.

3 Why

Each fact is a statement that the unknown amounts must make true, so each becomes an equation. With both equations written as ax + by = c in the same order of unknowns, when neither pair of coefficients (a, b) is a multiple of the other (so the lines are not parallel), two facts about two unknowns give a system with exactly one solution, and that pair is the only one consistent with both facts. It still has to make sense in the story: a count of tickets or coins must be a whole number that is not negative, so a fractional count means the facts cannot all be true.

4 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.

The same idea, other ways

With small numbers

Two numbers add to 30 and differ by 8. Let them be x and y with x > y: x + y = 30 and x − y = 8. Adding gives 2x = 38, so x = 19 and y = 11.

x + y = 30

x−y=8

x = 19, y = 11

As a table

For tickets, a table keeps the facts straight: one row for adults, one for children, a column for how many and a column for the money. The how-many column gives one equation and the money column the other.

adult: a tickets at $12, money 12a

child: c tickets at $7, money 7c

count: a + c; money: 12a + 7c

5 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.

6 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.

Ladder: from easy to exam-hard

Try each rung before you open its steps.

Rung 1 of 4

Sum and difference

Two numbers add to 30 and the larger is 8 more than the smaller. Find them.

Show the steps and the answer
  1. x+y=30 and x−y=8, with x the larger.The numbers add to 30, and the larger minus the smaller is 8.
  2. Adding: 2x=38, so x=19 and y=11.Adding cancels y and gives 2x = 38; then x = 19 in x + y = 30 gives y = 11.
Answer
19 and 11
Double-check 19 + 11 = 30 and 19 − 11 = 8.

Rung 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.

Rung 3 of 4

Break-even

A stall's cost is C = 1,200 + 15x dollars for x items, and its revenue is R = 35x dollars. How many items must it sell to break even, and what are cost and revenue there?

Show the steps and the answer
  1. Break even means C = R: 1,200+15x=35x.At break-even the revenue covers the cost exactly, so the two expressions are equal.
  2. 1,200=20x, so x=60.Subtract 15x and divide by 20.
  3. R=35·60=2,100.Revenue at 60 items.
Answer
60 items, with cost and revenue both $2,100
Double-check C = 1,200 + 15 · 60 = 1,200 + 900 = 2,100 = R.

Rung 4 of 4

Coins

A jar holds 40 coins, all dimes and quarters, worth $7.00. How many of each?

Show the steps and the answer
  1. Let d be the number of dimes and q the number of quarters: d+q=40 and 0.10d+0.25q=7.00.The coins add to 40, and a dime is worth $0.10 and a quarter $0.25, so their values add to $7.00.
  2. d=40−q, so 4−0.10q+0.25q=7,0.15q=3 and q=20.Substitute and solve.
  3. d=40−20=20.Back into d = 40 − q.
Answer
20 dimes and 20 quarters
Double-check 20 + 20 = 40 coins, and 2.00 + 5.00 = 7.00 dollars.

Counterexamples

What it is not, and the tempting wrong moves.

✗ Not this: Tickets: a + c = 1,400 and 12a + 7c = 150.
The count and the money are swapped: 150 is the number of tickets and $1,400 the money.
✓ Instead: a + c = 150 and 12a + 7c = 1,400.
✗ Not this: Mixture: 10x + 30y = 25.
The salt equation must count salt: 10% of x liters is 0.10x liters, and the total salt is 0.25 · 20 = 5 liters.
✓ Instead: 0.10x + 0.30y = 5.

Tips and tricks

  • Name each unknown with its unit.
  • One fact, one equation.
  • Check the answer against the story's words.

7 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.

Flash cards

Say the answer out loud, then flip.

40 coins, dimes d and quarters q: what is the count equation?
d + q = 40.
What does break-even mean for cost C and revenue R?
C = R: the revenue covers the cost exactly.