Algebra 1Systems of Equations and Inequalities1 of 5
Systems of Equations and Inequalities · 1
Solving Systems by Graphing
We want to find a pair of numbers x and y that makes two different equations true at the same time:
x+yy=6=2x
Each of these equations has endlessly many pairs of numbers that work, and plotting all the solutions of either equation forms a straight line. When we graph both equations on the same grid, we can see all the answers to both equations at once.
Two Clues and Where Their Lines Cross
x+yy(x,y)=6=2x=?
Text solution
Plot pairs that add to 6Every pair (x,y) that makes x+y=6 true lies on the blue line.
x+y=6⟶(1,5),(2,4),(3,3),(4.5,1.5),(−1,7)
Plot pairs where y is double xEvery pair (x,y) that makes y=2x true lies on the pink line.
y=2x⟶(0,0),(1,2),(2,4),(3,6)
Find where the lines cross and checkThe two lines cross at (2,4), which makes both equations true when we plug in x=2 and y=4.
2+44=6=2(2)
So (2,4) is the solution to the system, meaning x=2 and y=4 are the only two numbers that fit both equations at the same time.
Every point on the blue line makes x+y=6 true, every point on the pink line makes y=2x true, and only the crossing point (2,4) makes both equations true at the same time.
Every point on the blue line makes the first clue true, every point on the pink line makes the second clue true, and only their crossing point makes both clues true at the same time.
1
Graphing a System in Slope-Intercept Form
Guessing points one by one is slow, so we want to graph a system directly from its equations:
yy=21x+1=−x+4
When an equation has y by itself in slope-intercept form, we can read its starting point and steepness right off the equation:
y=slope runrisemx+y-interceptb
We start at the y-intercept b on the vertical axis, then use the slope m to step to the next points.
Graphing a System in Slope-Intercept Form
Text solution
Start at 1 and rise 1, run 2For the first line, plot the y-intercept (0,1) and step up 1 and right 2 through (2,2) and (4,3).
y=21x+1⟶b=1,m=21
Start at 4 and go down 1, right 1For the second line, plot the y-intercept (0,4) and use the slope −1=1−1 to step through (1,3) directly onto (2,2).
y=−x+4⟶b=4,m=1−1
Plug (2,2) into both equationsCheck x=2 and y=2 in the original system to make sure the crossing point works in both equations.
22=21(2)+1=1+1=−(2)+4=2
So the solution to the system is (2,2).
2
Getting y by Itself First
Now suppose x and y are on the same side of the equals sign:
2x+yx−y=5=1
Before we can read the y-intercept and slope, we get y by itself in each equation so it matches y=mx+b.
Getting y by Itself First
2x+yx−y(x,y)=5=1=?
Text solution
Subtract 2x in the first equationGet y by itself so we can start at (0,5) and step down 2, right 1 through (1,3) and (2,1).
2x+yy=5=−2x+5
Subtract x and flip the signs in the second equationGet positive y by itself so we can start at (0,−1) and step up 1, right 1 through (1,0) until we hit the first line at (2,1).
x−y−yy=1=−x+1=x−1
Check (2,1) in the original equationsPlug x=2 and y=1 into the original equations before we rearranged them.
2(2)+12−1=4+1=5=1
Both original equations are true at x=2 and y=1, so the solution is (2,1).
3
Finding the Break-Even Point
When we compare two options, we want to find the break-even point where both cost the exact same amount, and see which option is cheaper before and after that point:
Arcade A: $4 entry fee plus $1 per game.
Arcade B: $0 entry fee plus $2 per game.
Finding the Break-Even Point
Text solution
Name the variables and write each cost equationLet x be the number of games and y be the total cost in dollars, starting from each arcade's entry fee.
Arcade A:yArcade B:y=1x+4=2x
Graph both lines to find where they crossPlot the blue line for Arcade A from (0,4) going up 1, right 1, and the pink line for Arcade B from (0,0) going up 2, right 1 until they meet at (4,8).
88=1(4)+4=2(4)
The crossing point (4,8) means that if you play 4 games, both arcades cost the exact same amount, $8. Before 4 games the pink line (y=2x) is lower so Arcade B is cheaper, and after 4 games the blue line (y=1x+4) is lower so Arcade A is cheaper.
4
No Solution and Infinitely Many Solutions
Not every pair of lines crosses at a single point. Let's see what happens when we graph these two systems:
yy=2x+1=2x−3andy2y−2x=x+2=4
No Solution and Infinitely Many Solutions
yy(x,y)y2y−2x(x,y)=2x+1=2x−3=?=x+2=4=?
Text solution
Compare slopes and y-intercepts in the first systemBoth lines have the same slope 2 but start at different y-intercepts, 1 and −3, so they have the same steepness, run in parallel, and never cross.
yy=2x+1=2x−3⟶No Solution
Get y by itself in the second systemAdding 2x and dividing by 2 gives y=x+2, the exact same equation as the first line, so the second line lies right on top of the first line.
2y−2x2yy=4=2x+4=x+2⟶Infinitely Many Solutions
Parallel lines never touch so no pair (x,y) works, while overlapping lines touch everywhere along the line so every point on y=x+2 is a solution.
Two lines with even slightly different slopes always cross at one point somewhere in the coordinate plane, and only when the line through (0,−3) reaches the exact same slope of 2 as y=2x+1 do the lines become parallel and never cross.
Two lines with different slopes always cross at one point somewhere, and only fail to cross when their slopes match.
5
Solving a One-Variable Equation by Graphing
We can also use a graph to solve an equation that only has x in it:
2x−1=−x+5
The equals sign asks which value of x makes the left side equal to the right side, so we can graph each side as its own line and see where they meet.
Solving a One-Variable Equation by Graphing
2x−1x=−x+5=?
Text solution
Graph each side as its own lineSet y equal to the left side and y equal to the right side, then plot both lines on the same grid.
yy=2x−1=−x+5
Read the x-coordinate where the lines crossThe lines cross at (2,3), where the x-value is 2 and both sides equal 3.
2(2)−1−(2)+5=3=3
Because the original equation only had x in it, our solution is simply x=2.
At every x, the height of the blue line is the value of 2x−1 and the height of the pink line is the value of −x+5, and at x=2 both lines reach the same height of 3.
Each line's height gives one side of the equation, and the two sides match only where the lines cross.
6
When Lines Cross Between Grid Lines
So far, whenever two lines have crossed at a single point, that point has been on the corner of a grid square. Now let's graph this system:
yy=2x+1=−x+3
When Lines Cross Between Grid Lines
yy=2x+1=−x+3
y
x
0
Text solution
Graph both lines and estimate the crossingPlot y=2x+1 through (0,1) and (1,3), and y=−x+3 through (0,3) and (1,2); they cross between the grid lines at roughly (0.7,2.3).
x≈0.7,y≈2.3
Test the estimate in both equationsPlugging (0.7,2.3) into both equations shows that it works in the bottom equation but misses slightly in the top equation.
2.32.3=−0.7+3=2.3=2(0.7)+1=1.4+1=2.4
Our estimate (0.7,2.3) is close, but it is not exact. At the crossing point, the two expressions for y must be equal:
2x+1=−x+3⟶3x=2⟶x=32
Then
y=−32+3=231
So the exact crossing point is (32,231).
x
y
0
y=2x+1
y=−x+3
x≈0.7
y≈2.3
(32,231)
Key concepts
To solve a system by graphing, get y by itself in each equation so it matches y=mx+b (for example, turning 2x+y=5 into y=−2x+5). Then start each line at its y-intercept b on the vertical axis and step out the slope m=runrise.
How the two lines meet tells you the solution right away:
Different slopes
(like y=21x+1 and y=−x+4): the lines cross at a single point (2,2), which you can check in both original equations.
Same slope, different y-intercepts
(like y=2x+1 and y=2x−3): the lines are parallel and never cross, giving No Solution.
Same line
(like y=x+2 and 2y−2x=4): the lines lie right on top of each other and touch everywhere, giving Infinitely Many Solutions.
Make sure your answer matches what the question asked for. A system with one solution needs the coordinate pair (x,y). A cost comparison needs the break-even point (4,8) and which line is lower before and after it. And an equation with only x, like 2x−1=−x+5 graphed as y=2x−1 and y=−x+5, just needs the x-coordinate x=2 where the two heights match. Finally, if the lines cross between grid lines (like y=2x+1 and y=−x+3 crossing near (0.7,2.3) instead of the exact (32,231)), reading this grid by eye gives an estimate, and algebra can give the exact answer.
7
Practice
1
Solve the system by graphing: y=31x+2 and y=−x+6.
Be careful not to swap rise and run by going up 3 and right 1, which graphs y=3x+2 and gives the wrong crossing point (1,5).
Both equations are already in y=mx+b form. Where does each line start on the vertical axis, and how many grid squares do you rise and run from there?
Start the first line at (0,2) and use the slope 31 to go up 1 and right 3 to (3,3) (be careful not to swap rise and run by going up 3 and right 1, which graphs y=3x+2 and gives the wrong crossing point (1,5)). Start the second line at (0,6) and use the slope −1=1−1 to step down 1, right 1 through (1,5) and (2,4) onto (3,3). Checking in both equations gives 3=31(3)+2 and 3=−(3)+6, so the solution is (3,3).
2
Solve the system by graphing: 3x+y=4 and x−y=4.
Don't forget to flip the signs on −y=−x+4, or you will graph y=−x+4 and get the wrong crossing point (0,4), which fails 0−4=4.
Get y by itself in both equations first, and watch the minus sign in front of y in the second equation.
Subtracting 3x in the first equation gives y=−3x+4. In the second equation, subtracting x gives −y=−x+4, and flipping every sign gives y=x−4 (don't forget to flip the signs on −y=−x+4, or you will graph y=−x+4 and get the wrong crossing point (0,4), which fails 0−4=4). Graphing y=−3x+4 from (0,4) going down 3, right 1 and y=x−4 from (0,−4) going up 1, right 1 shows the lines cross at (2,−2).
3
Solve the system by graphing: y=−2x+3 and y=−2x−1.
Compare the slope in front of x and the starting y-intercept in both equations as you plot them.
Both lines have the same slope −2, but the first starts at (0,3) and the second starts at (0,−1) (don't jump to "Infinitely Many Solutions" just because the −2x parts match, since different y-intercepts keep the lines separated). Because the lines are parallel and never cross, the answer is No Solution.
4
Solve the system by graphing: y=2x−3 and 2y−4x=−6.
Get y by itself in the second equation before you start plotting points.
In the second equation, add 4x to both sides to get 2y=4x−6, then divide every term by 2 to get y=2x−3 (be careful to divide the −6 by 2 as well; leaving it as y=2x−6 makes the lines look parallel and leads to the wrong answer "No Solution"). Since both equations graph the exact same line through (0,−3) with slope 2, every point on that line works and the answer is Infinitely Many Solutions.
5
Gym A charges a $6 entry fee plus $2 per visit. Gym B has a $0 entry fee and charges $4 per visit. Let x be the number of visits and y be the total cost in dollars. Write and graph the system to find the crossing point, explain what it means, and state when each gym is the better deal.
For each gym, which number is the starting y-intercept at 0 visits, and which number is the slope added for each visit x?
The system is y=2x+6 for Gym A and y=4x for Gym B. Graphing y=2x+6 from (0,6) going up 2, right 1 and y=4x from (0,0) going up 4, right 1 shows they cross at (3,12), which means at 3 visits both gyms cost the exact same amount, $12. Look at which line is lower on the graph rather than just picking the smaller per-visit rate (Gym A's $2 per-visit rate is smaller, but its $6 entry fee keeps its line higher at first): Gym B is cheaper before 3 visits, and Gym A is cheaper after 3 visits.
6
Solve the equation 3x−2=−x+6 by graphing each side as a line.
Don't write (2,4) or 4 as your final answer: there was no y in the original equation, and 4 is just the value both sides equal when x is 2.
Graph y=3x−2 and y=−x+6 on the same grid, then check which variable the original equation asked for.
Graphing the left side y=3x−2 from (0,−2) going up 3, right 1 and the right side y=−x+6 from (0,6) going down 1, right 1 gives a crossing point of (2,4). Don't write (2,4) or 4 as your final answer: there was no y in the original equation, and 4 is just the value both sides equal when x is 2. The solution is x=2.
7
Graph the system y=2x−1 and y=−x+3, estimate the crossing point to the nearest tenth, and check your estimate in both equations to show whether it is exact.
After reading the approximate (x,y) coordinates between the grid lines, make sure you test them in both equations, not just one.
Graphing y=2x−1 through (0,−1) and (1,1) and y=−x+3 through (0,3) and (1,2) shows the lines cross between the grid lines at roughly (1.3,1.7). In y=−x+3, plugging in the estimate gives 1.7=−1.3+3, which works (don't stop after checking just that one equation and claim (1.3,1.7) is exact). Checking the other equation y=2x−1 gives 2(1.3)−1=1.6=1.7, showing that (1.3,1.7) is a close estimate but not exact.