Skip to content
Study Hall
Lesson 1 of 4Linear Systems
Unit 1 · Lesson 1 of 4

Solving Linear Systems by Graphing

A linear system is two linear equations considered together. Its solution is the ordered pair that makes both equations true, which is where the two lines cross on a graph. Learn to check a solution, solve by graphing, and tell when a system has one, no or infinitely many solutions.

6 min read10 practice questionsInteractiveAsk AI about this →

Key things to remember

  1. 1The solution of a linear system is the ordered pair that makes every equation true; on a graph it is the point of intersection of the lines.
  2. 2To check a possible solution, substitute it into each original equation; it must work in all of them.
  3. 3Different slopes: the lines cross once, so the system has exactly one solution.
  4. 4Same slope, different y-intercepts: parallel lines, no solution. Same slope and same y-intercept: the same line, infinitely many solutions.
  5. 5Standard form : find the intercepts (set , then ), or rearrange to when .

You and a friend want to rent a canoe. Riverside Rentals charges $15 to start plus $10 for every hour. Lakeview Rentals charges $35 to start plus $5 for every hour. Riverside is cheaper for a quick paddle, because its starting fee is lower. Lakeview is cheaper for a long day, because its hourly rate is lower. So somewhere in between there must be a number of hours where the two companies charge exactly the same amount. If is the number of hours and is the cost in dollars, Riverside's cost is and Lakeview's cost is . Finding the one value of that gives both equations the same is called solving a linear system. In this lesson you will solve systems by drawing both lines and finding where they cross. In the next two lessons you will learn algebra methods that give exact answers every time.

A linear equation in two variables is an equation like or : each variable appears only to the first power, and its graph is a straight line. A linear system is a set of two (or more) linear equations in the same variables that must be true at the same time. A solution of the system is an ordered pair that makes every equation in the system true. Every point on a line makes that line's equation true, and no other point does. So a point that satisfies both equations has to lie on both lines: it is the point of intersection, where the lines cross. A brace is often used to show that equations belong together:

Before you solve anything, learn to check. To test whether an ordered pair is a solution, substitute its coordinates into each equation, one at a time. It is a solution only if both sides match in every equation. Test in the canoe system: Riverside gives , which matches . Lakeview gives , which also matches. So is the solution: for a 4-hour trip, both companies charge $55. Now test : Riverside gives , a match, but Lakeview gives , not . The point lies on the Riverside line only, so it is not a solution of the system.

Both equations, every time
A point that works in only one equation is just a point on one of the lines. The solution of a system must make every equation true. Always check in the original equations, not in ones you rearranged, so a rearranging slip cannot hide.
Rows of red, yellow and blue rental canoes and kayaks stacked on the grass beside a lake, with a small rental shed behind them.
PhotoRental companies set prices with a starting fee plus an hourly rate, so comparing two of them is a linear system whose solution is the trip length where both cost the same.Thomson200, CC0, via Wikimedia Commons

Solving by graphing

  1. Write each equation in slope and y-intercept form , or find its two intercepts. Here is the slope (rise over run) and is the y-intercept (where the line crosses the y-axis).
  2. Graph both lines carefully on the same set of axes, using a ruler and a scale that shows where they meet.
  3. Read the coordinates of the point of intersection.
  4. Check the point by substituting it into both original equations, then state the solution as an ordered pair.

Many equations are given in standard form, , with the and terms on the same side. You can graph a standard-form line in two ways. Use the intercepts: for , set to get , so ; set to get , so . Plot and and join them. Or rearrange into : subtract from both sides to get , then divide every term by 3 to get . Both routes give the same line. The intercept method is quickest when the intercepts are whole numbers. Rearranging is better when you want the slope, for example to compare two lines.

−2−1123456−2−1123456xy(2, 3)the solutiony = 2x − 1x + y = 5Check (2, 3):2(2) − 1 = 3 ✓ and 2 + 3 = 5 ✓One solutiondifferent slopes:the lines cross onceNo solutionsame slope, differenty-intercepts: parallelInfinitely manysame slope and samey-intercept: one line
Fig 1Left: the lines y = 2x − 1 and x + y = 5 cross at (2, 3), the one solution of the system. Right: the three ways two lines can meet, with one solution, no solution, or infinitely many solutions.
VideoKhan Academy graphs two lines on the same axes and reads their point of intersection as the solution of the system.Watch on YouTube

One solution, no solution or infinitely many

Two straight lines in the same plane can meet in only three ways, and comparing their slopes and y-intercepts tells you which one you have before you draw anything. If the slopes are different, the lines cross at exactly one point, so the system has one solution. If the slopes are the same but the y-intercepts are different, the lines are parallel: they never meet, so the system has no solution. If the slopes and the y-intercepts are both the same, the two equations describe the same line (the lines are called coincident), so every point on that line is a solution and there are infinitely many solutions. A system with at least one solution is called consistent; a system with no solution is inconsistent. One special case: a vertical line such as has no slope you can compare, so think about the picture instead. Two different vertical lines are parallel, and a vertical line always crosses a non-vertical line exactly once.

Slopesy-interceptsGraphNumber of solutions
DifferentSame or differentLines cross onceExactly one
SameDifferentParallel lines, never meetNone
SameSameOne line drawn twice (coincident)Infinitely many
Comparing two non-vertical lines written as y = mx + b
Loading interactive…
Enter two lines in slope and y-intercept form or standard form, or drag them by their points, and watch where they cross. Try parallel lines and the same line twice.

The limits of graphing

Graphing shows you the whole situation at a glance, but reading a point off a graph is only as exact as your drawing. Solve and by graphing, and the lines seem to cross near . Check it: in the first equation , which works, but in the second , not . The exact solution is , which no hand-drawn graph can show precisely. Graphing technology (a graphing calculator or graphing software) can locate the crossing to several decimal places, but it still gives a rounded decimal. When a solution is not a pair of whole numbers, or the numbers are too large to fit on a grid, use substitution or elimination instead.

Use graphing to estimate and to see
Even when you solve with algebra, a quick sketch tells you roughly where the answer should be and whether the system has one, no or infinitely many solutions. If your algebra gives but the sketch shows the lines crossing near , look for an error.

Worked examples

Reveal one step at a time and try to beat it to the next line.

Example 1
Is a solution of the system and ?
Example 2
Solve by graphing: and .
Example 3
Canoe rental: Riverside charges dollars and Lakeview charges dollars for hours. Use a table of values and a graph to find when the costs are equal, and say which company is cheaper for a 2-hour trip and for a 6-hour trip.
Example 4
Without graphing, state how many solutions each system has. (a) and . (b) and .

Where marks get lost

  • Checking a point in only one equation. makes true, but it fails , so it is not the solution of the system.
  • Treating the constant in standard form as the y-intercept. For the y-intercept is (set : ), not .
  • Dividing only some terms by a negative when rearranging. becomes , and dividing every term by gives , not .
  • Mixing up the two special cases: parallel lines (same slope, different intercepts) have no solution; the same line written twice has infinitely many.
  • Reporting a point read off a hand-drawn graph, such as , as exact. Check it in both equations; if it does not work exactly, it is only an estimate.

Flashcards 9

Linear system
Solution of a linear system
Point of intersection
How to check a solution
+ 5 more

Practice

1
Which ordered pair is the solution of the system and ?
2
How many solutions does the system and have?
3
The lines and cross at one point. What is the y-coordinate of that point?
4
What is the y-intercept of the line ?
5
What is the point of intersection of the vertical line and the horizontal line ? Write it as an ordered pair.
6
Put the steps for solving a linear system by graphing in order.
  1. 1Graph both lines on the same set of axes
  2. 2Check the point in both original equations, then state the solution
  3. 3Read the coordinates of the point where the lines cross
  4. 4Rewrite each equation in the form y = mx + b, or find its intercepts
7
Match each system to its number of solutions.
y = 2x + 1 and y = 2x − 3
y = 2x + 1 and y = −2x + 1
y = 2x + 1 and 4x − 2y = −2
8
Two gym memberships are graphed with = number of visits and = total cost in dollars. The lines cross at . What does this point tell you?
9
Which statement about the point and the system and is true?
10
On a hand-drawn graph, the lines and seem to cross at . Which statement is correct?

Spot a mistake on this page? Let us know