Chapter 8 ยท Systems of linear equations
Graphing Systems: Solve, Count Solutions, Fix Errors
Graph two lines to solve a system, decide whether it has one solution, none or infinitely many, and learn how to find and fix mistakes in graphed work.
You can already test whether an ordered pair is a solution of a system of equations, a set of two equations that share the same variables, here and . A solution of the system is an ordered pair that makes both equations true. In this lesson, and stand for real numbers, and you will find solutions yourself by drawing graphs.
The graph of an equation is the set of all points whose coordinates make the equation true. Each equation in the systems here is a linear equation, which means its graph is a straight line. So a point that lies on both lines makes both equations true, and a point that misses one of the lines makes that line's equation false. Solving a system is the same job as finding the points its two lines share.
On every graph in this lesson, the horizontal axis shows and the vertical axis shows . Both are plain numbers rather than measurements, and each grid square is 1 unit wide and 1 unit tall.
Key concept
Shared points are the solutions
For a system of two linear equations in and , the solutions are exactly the points that lie on both lines. Count the shared points to count the solutions.
- The lines cross at one point: exactly one solution.
- The lines are parallel, meaning different lines in the same plane that never meet: no solution.
- Both equations give the same line: infinitely many solutions, one for every point on that line.
A drawing only suggests which case you have. Exact coordinates and the equations themselves prove it.
To solve a system by graphing, work through four steps.
- For each equation, choose two different values of and calculate exactly. You now have two exact points on each line.
- Plot each pair of points and draw the straight line through them. Two different points fix exactly one straight line.
- Look for the point where the two lines cross and read its coordinates.
- Check: in both original equations, the ones the problem gives you, replace and with those coordinates. The point is a solution exactly when both equations come out true.
Step 4 is not optional. A crossing can look as if it sits on a grid point when it is slightly off, and you can draw a line through a wrong point without noticing. The check uses the equations themselves, so it does not depend on the drawing. In this lesson, every crossing sits exactly on a grid point, a point where two grid lines meet.
Worked example
Example 1: One crossing point
Solve the system and by graphing.
Find two exact points for y = x + 1. Choose x = 0 and x = 4, and calculate y each time. Each pair makes the equation true, so the graph of this equation, Line A, passes through (0, 1) and (4, 5).
Do the same for y = -x + 5. Its graph, Line B, passes through (0, 5) and (4, 1).
Plot the four points and draw each line through its two points, as in the figure below. Two points are enough, because two different points fix exactly one straight line. The horizontal axis shows x, the vertical axis shows y, and each grid square is 1 unit. The lines cross at the grid point (2, 3).
Check (2, 3) in the first original equation by replacing x with 2 and y with 3. Both sides equal 3, so the equation is true.
Check (2, 3) in the second original equation. Both sides equal 3 again, so (2, 3) is a solution. The lines are different, because at x = 0 one has y = 1 and the other has y = 5. Two different straight lines share at most one point, so (2, 3) is the only solution.
Answer
The solution of the system is , which means and .
Example 1 had exactly one solution, but not every system does. Solutions are shared points, so the number of solutions of a system is the number of points its two lines share. Two straight lines in the same plane share exactly one point, no point, or all of their points.
A drawing can suggest which of these you have, but it shows only part of each line, so let the equations confirm it. Two terms name what the equations can show. A contradiction is an equation that is false for every value of its variable, so it has no solutions. An identity is an equation that is true for every permitted value of its variable. In this lesson, every real number is a permitted value of .
Worked example
Example 2: Lines that never meet
How many solutions does the system and have? Decide by graphing.
Find two exact points for y = 2x + 4 using x = 0 and x = 2. Its graph, Line A, passes through (0, 4) and (2, 8).
Use the same x-values for y = 2x. Its graph, Line B, passes through (0, 0) and (2, 4).
Plot the points and draw both lines, as in the figure below. The horizontal axis shows x, the vertical axis shows y, and each grid square is 1 unit. At x = 0 and again at x = 2, the point on Line A is exactly 4 units above the point on Line B, so the lines look parallel.
Confirm it with the equations. A shared point would have one x-value and one y-value, so the two expressions for y would have to be equal: 2x + 4 = 2x. Subtract 2x from both sides. Subtracting the same quantity from both sides keeps the same solutions.
The statement 4 = 0 is false whatever x is, so the equation 2x + 4 = 2x is a contradiction and no value of x gives a shared point. Line A and Line B are different lines that never meet, so they are parallel.
Answer
The system has no solution, because the lines and are parallel and share no point.
Worked example
Example 3: The same line twice
How many solutions does the system and have? Decide by graphing.
Find two exact points for y = -x + 3 using x = 0 and x = 3. Its graph passes through (0, 3) and (3, 0).
Use the same x-values in 2x + 2y = 6. When x = 0, the equation becomes 2y = 6, and dividing both sides by 2 gives y = 3. When x = 3, it becomes 6 + 2y = 6. Subtracting 6 from both sides gives 2y = 0, and dividing both sides by 2 gives y = 0. Dividing by 2 is allowed because 2 is not zero. This graph also passes through (0, 3) and (3, 0).
Two different points fix exactly one straight line. Both graphs are straight lines through (0, 3) and (3, 0), so they are the same line. If you drew the second line, it would lie exactly on top of the first.
Confirm it with the equations. Divide both sides of 2x + 2y = 6 by 2, which is not zero, then subtract x from both sides. Doing each operation to both sides keeps the same solutions. Since 3 - x equals -x + 3 for every value of x, the second equation says the same thing as the first.
So a shared point needs -x + 3 to equal -x + 3. Add x to both sides, which keeps the same solutions. The result, 3 = 3, is true whatever x is. The equation is an identity, so every value of x gives a point on both lines.
Test one point on the line and one point off it. The point (1, 2) is on the line and makes both original equations true. The point (0, 0) is off the line and makes both false, because -(0) + 3 is 3, not 0, and 2(0) + 2(0) is 0, not 6.
Answer
The system has infinitely many solutions: every point on the line is a solution, and no point off that line is.
| What the graph shows | Number of solutions | What proves it |
|---|---|---|
The lines cross at one point (Example 1) | Exactly one | The crossing point makes both original equations true, and two different lines share at most one point |
The lines are parallel (Example 2) | None | Asking for a shared point leads to a contradiction, such as |
The lines are the same line (Example 3) | Infinitely many | Asking for a shared point leads to an identity, such as , so every point on the line works |
The same check helps you find an error in graphed work. If an answer fails in either original equation, it is not a solution, so something went wrong. The usual places to look are a point that was calculated or plotted wrong, a crossing point that was read wrong, or a picture that was trusted too far, as in the warning above. Test each plotted point in its own equation to find the wrong one. Then fix the line, read the crossing again, and check it.
Worked example
Example 4: Find and fix the error
Kai solves the system and by graphing. For , Kai plots and . For , Kai plots and . Kai's two lines cross at , so Kai answers . Find the error and correct it.
Check Kai's answer in both original equations. In y = x + 3 it works, because 3 + 3 is 6. In y = -2x it fails, because -2 times 3 is -6, not 6. A solution must make both equations true, so (3, 6) is not a solution.
Find the wrong line by testing each plotted point in its own equation. Kai's points for y = x + 3 are correct, because 0 + 3 is 3 and 1 + 3 is 4. For y = -2x, the point (0, 0) is correct, but (1, 2) is not: when x = 1, y must be -2. Kai dropped the negative sign.
Correct the graph. The line for y = -2x passes through (0, 0) and (1, -2), so it goes down as you move right. Kai's line went up. In the figure below, Line A is y = x + 3, Line B is the corrected line for y = -2x, and Line C is Kai's mistaken line.
Read the new crossing point. The horizontal axis shows x, the vertical axis shows y, and each grid square is 1 unit. Line A and Line B cross at Point D, which is at (-1, 2). Point E, at (3, 6), is where Line A meets Kai's mistaken Line C.
Check (-1, 2) in both original equations. Both are true, so (-1, 2) is a solution. Line A and Line B are different straight lines, so they share no other point and it is the only solution.
Answer
Kai's error was plotting instead of for . The correct solution of the system is .
Takeaway: The solutions of a system of two linear equations are the points its two lines share. Graph each line from exact points, then count the shared points: one crossing point means exactly one solution, parallel lines mean no solution, and the same line twice means infinitely many solutions. A drawing only suggests the answer, so let the equations confirm it. When an answer fails the check in the original equations, test each plotted point to find the error. Every crossing in this lesson sat exactly on a grid point. Next, you will estimate the solution when two lines cross between grid lines.