Skip to content
Tutorials Center
My learning

Topics

Lesson 16 of 37 ยท Systems of Equations

Solving Systems of Equations by Graphing

Learn what a system of linear equations is, how to solve one by graphing and checking the intersection point, and what parallel and identical lines mean.

Sometimes one equation is not enough. Two phone plans, two runners, two ticket prices: each situation gives its own equation, and the question is where they meet. A system of equations is a set of two or more equations with the same variables. A solution of a system is an ordered pair that makes every equation true at the same time.

What a solution looks like

Consider the system:

Text
y = 2x - 1
y = -x + 5

Is (2, 3) a solution? Check both:

  • y = 2x - 1: 2(2) - 1 = 3. True.
  • y = -x + 5: -2 + 5 = 3. True.

It works in both, so (2, 3) is the solution. Is (1, 1) a solution? In the first: 2(1) - 1 = 1, true. In the second: -1 + 5 = 4, not 1. False. A point must satisfy both equations.

On a graph, each equation is a line. A point on a line is a solution of that equation, so a point on both lines is a solution of the system: the intersection point.

Solving by graphing

  1. Write each equation in y = mx + b form.
  2. Graph both lines (plot the y-intercept, use the slope).
  3. Find where they cross.
  4. Check the point in both original equations.

Example 1. Solve y = 2x - 1 and y = -x + 5. Graph: the first line has intercept -1 and slope 2, the second intercept 5 and slope -1. They cross at (2, 3).

Python Graph a system and mark the intersection

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Three possible outcomes

Picture Slopes and intercepts Number of solutions Name
Lines cross once Different slopes Exactly one Consistent, independent
Parallel lines Same slope, different intercepts None Inconsistent
Same line Same slope and intercept Infinitely many Consistent, dependent

Example 2 (no solution). y = 3x + 1 and y = 3x - 4. Same slope 3, different intercepts: parallel. No point is on both lines.

Example 3 (infinitely many). y = 2x + 3 and 2y = 4x + 6. Dividing the second by 2 gives y = 2x + 3, the same line. Every point of the line is a solution.

Python Classify a system from its slopes

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The function finds the crossing algebraically by setting mโ‚x + bโ‚ = mโ‚‚x + bโ‚‚. You will learn that method in the next lessons.

Limits of graphing

Graphing is quick and visual, but it can be imprecise. If lines cross at (1/3, 7/5), you would struggle to read the point from a hand-drawn graph. Use graphing to understand a system and to estimate, and use algebra (substitution, elimination) for exact answers. Always check an estimated solution in both equations.

A real situation

Two bike rental shops. Shop A: 10 dollars plus 4 dollars per hour. Shop B: 4 dollars plus 6 dollars per hour. With h hours: A = 10 + 4h, B = 4 + 6h. Plot both and look for the crossing. The lines meet at h = 3, where each costs 22 dollars. Shop B is cheaper for fewer than 3 hours; Shop A is cheaper after that.

Python Find where two shops cost the same

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Common mistakes

  1. Estimating without checking. Always substitute into both equations.
  2. Plotting from a wrong intercept. Write y = mx + b first.
  3. Reporting only x. The solution is a pair (x, y).
  4. Assuming every system has one solution.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Is (3, 1) a solution of y = x - 2 and y = 2x - 5?

    1 = 3 - 2 is true, and 1 = 2(3) - 5 = 1 is true.
  2. 2. What does it mean if two lines in a system are parallel?

    Parallel lines never meet, so no point satisfies both equations.
  3. 3. How many solutions does y = 4x + 2, y = 4x + 2 have?

    They are the same line, so every point on it is a solution.
  4. 4. The lines y = x + 1 and y = -x + 7 cross at which point?

    x + 1 = -x + 7 gives x = 3 and y = 4. Check: 4 = -3 + 7.

Summary

  • A system's solution is an ordered pair that satisfies all its equations.
  • Graphically, it is the intersection point of the lines.
  • Different slopes: one solution; same slope, different intercepts: none; same line: infinitely many.
  • Graphing gives estimates; check them, and use algebra for exact answers.

Next: Systems by Substitution