Solve Systems of Equations by Graphing
Determine whether an ordered pair is a solution of a system of equations
A linear equation in two variables, like , has infinitely many solutions — its graph is a line, and every point on that line is a solution. Now we will work with systems of linear equations, two or more linear equations grouped together.
We will focus our work here on systems of two linear equations in two unknowns. An example of a system of two linear equations is shown below. A brace shows that the two equations are grouped together to form a system:
To solve a system of two linear equations, we want to find the values of the variables that are solutions to both equations at once — the ordered pairs that make both equations true.
To determine whether an ordered pair is a solution to a system of two equations, we substitute the values of the variables into each equation. If the ordered pair makes both equations true, it is a solution to the system.
Example. Determine whether the ordered pair is a solution to the system : (a) , (b) .
(a) Substitute and into both equations.
The ordered pair makes the first equation true but not the second, so does not make both equations true — it is not a solution to the system.
(b) Substitute and into both equations.
The ordered pair makes both equations true, so is a solution to the system.
For the system , substitute and into and simplify.
Multiply -3 by 2 first, then add x.For the same system, substitute and into and simplify. (Compare the result to -5 — does it make the equation true?)
2 times 0 is 0, then add x, which is also 0.Solve a system of linear equations by graphing
The graph of a linear equation is a line, and every point on that line is a solution of the equation. For a system of two equations, we graph two lines on the same coordinate plane. Then we can see all the points that are solutions to each equation — and by finding what the two lines have in common, we find the solution to the system.
Two lines in the same plane must either intersect, be parallel, or be the same line, so there are three possible outcomes when we graph a system. We’ll explore all three later in this section — for now, we’ll focus on systems where the lines intersect in exactly one point.
How To: Solve a system of linear equations by graphing.
- Graph the first equation.
- Graph the second equation on the same rectangular coordinate system.
- Determine whether the lines intersect, are parallel, or are the same line.
- Identify the solution to the system. If the lines intersect, identify the point of intersection and check that it is a solution to both equations — this is the solution to the system. If the lines are parallel, the system has no solution. If the lines are the same, the system has infinitely many solutions.
Example. Solve the system by graphing:
Both equations are already in slope–intercept form:
We graph both lines on the same coordinate plane using their slopes and -intercepts.
The lines intersect at . Check the solution in both equations:
The solution is .
When equations are given in standard form, it is often more convenient to graph them using their - and -intercepts.
Example. Solve the system by graphing:
We find the - and -intercepts of each line.
The lines intersect at . Check the solution in both equations:
The solution is .
If one of the equations in a system has only one variable — like or — its graph is a vertical or horizontal line. You can still graph it on the same plane and find where it crosses the other line exactly the way we’ve been doing.
Solve the system by graphing: . After graphing both lines, what is the x-coordinate of the point where they intersect?
From the second equation, . Substitute that into the first equation and solve for y first, then find x.For the same system, what is the y-coordinate of the intersection point?
Once you know , substitute into to find y.Determine the number of solutions of a linear system
We’ve seen that two lines in a plane can intersect, be parallel, or be the same line. This means a system of two linear equations can have exactly one solution, no solution, or infinitely many solutions.
| Graph | Number of solutions |
|---|---|
| 2 intersecting lines | |
| Parallel lines | None |
| Same line | Infinitely many |
We can tell which case we’re in without graphing, just by comparing the slopes and intercepts of the two lines. Write each equation in slope–intercept form () and compare:
| Slopes | Intercepts | Type of lines | Number of solutions |
|---|---|---|---|
| Different | — | Intersecting | point |
| Same | Different | Parallel | No solution |
| Same | Same | Coincident | Infinitely many solutions |
Intersecting
One solution
Parallel
No solution
Coincident
Infinitely many solutions
A system of equations that has at least one solution is called a consistent system; a system with no solution is called an inconsistent system.
We also categorize the equations in a system as independent or dependent. If two equations are independent equations, they each have their own set of solutions; intersecting lines and parallel lines are both independent. If two equations are dependent, every solution of one equation is also a solution of the other — graphing two dependent equations gives coincident lines.
Example. Without graphing, determine the number of solutions and then classify the system of equations:
We compare the slope and intercept of each line by writing both equations in slope–intercept form. The first equation is already close to that form:
Solve the second equation for :
so , . The slopes are different, so the lines intersect. A system of equations whose graphs intersect has one solution and is consistent and independent.
Without graphing, compare the system . Solve the second equation for y. What is its slope?
Subtract 4x from both sides, then divide every term by 2.The system has two lines with the same slope but different y-intercepts. How many solutions does the system have?
Same slope with different intercepts means the lines are parallel — they never meet.Solve applications of systems of equations by graphing
We use the same problem-solving strategy for applications of systems of equations that we’ve used before, adapted to set up two equations instead of one.
How To: Use a problem-solving strategy for systems of linear equations.
- Read the problem. Make sure all the words and ideas are understood.
- Identify what we are looking for.
- Name what we are looking for. Choose variables to represent those quantities.
- Translate into a system of equations.
- Solve the system of equations — here, by graphing.
- Check the answer in the problem and make sure it makes sense.
- Answer the question with a complete sentence.
Example. Sondra is making quarts of punch from fruit juice and club soda. The number of quarts of fruit juice is times the number of quarts of club soda. How many quarts of fruit juice and how many quarts of club soda does Sondra need?
Let the number of quarts of fruit juice and the number of quarts of club soda. The total is quarts, and the fruit juice amount is times the club soda amount:
Graphing both equations (with on the horizontal axis and on the vertical axis) shows where they intersect:
The point of intersection is — that is, and . Check: the fruit juice amount, , is indeed times the club soda amount, ; and quarts total, as required. Sondra needs quarts of fruit juice and quarts of club soda.
Manny is making 12 quarts of orange juice from concentrate and water. The number of quarts of water is 3 times the number of quarts of concentrate. How many quarts of concentrate does Manny need?
Let c = quarts of concentrate and w = quarts of water. Then and .For the same orange juice mixture, how many quarts of water does Manny need?
Water is 3 times the concentrate amount you just found.Key terms
system of linear equations — two or more linear equations grouped together. solution of a system of equations — an ordered pair that makes all the equations in the system true. consistent system — a system of equations with at least one solution. inconsistent system — a system of equations with no solution. independent equations — two equations with different solutions (intersecting or parallel lines). dependent equations — two equations whose solutions are identical (coincident lines).
This section is adapted from Elementary Algebra 2e, Section 5.1: Solve Systems of Equations by Graphing by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: recreated the two-line coordinate-plane graphs (intersecting, parallel, and coincident cases, and the punch-mixture application) as accessible inline SVGs and the slope/intercept comparisons as markdown tables; omitted the Be Prepared quiz, Media links, and end-of-section exercises; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback.