Algebra 1Systems of Equations and Inequalities4 of 5
Systems of Equations and Inequalities · 4

Linear Inequalities in Two Variables

An equation like y=2x+1\boundary{y} = \boundary{2x + 1} puts all your solutions on a single line of points, and now we want to see what happens on a coordinate grid when we replace the equals sign with an inequality.

1

Why an Inequality Shades a Region

We want to graph the inequality

y>2x+1\displaystyle \allowed{y} > \boundary{2x + 1}
Why an Inequality Shades a Region
Where is y>2x+1?\text{Where is }\htmlClass{lc-green}{y} > \htmlClass{lc-blue}{2x + 1}\text{?}
y=2x+1\htmlClass{lc-blue}{y} = \htmlClass{lc-blue}{2x + 1}
−2−2
22
44
22
44
xx
yy

From any point on the line y=2x+1\boundary{y} = \boundary{2x + 1}, moving straight up increases yy, so every point above the line is a solution.

Every point on the boundary line sends a ray of higher heights straight up, and together those rays fill the whole region above the line.
2

Dashed and Solid Boundary Lines

Now we need to decide whether the points sitting directly on the boundary line y=2x+1\boundary{y} = \boundary{2x + 1} count as solutions to y>2x+1\allowed{y} > \boundary{2x + 1}.

Dashed and Solid Boundary Lines
y>2x+1\htmlClass{lc-green}{y} > \htmlClass{lc-blue}{2x + 1}
(1,3)?\htmlClass{lc-blue}{(1, 3)}\text{?}
−2−2
22
44
22
44
xx
yy
Text solution
Graph the boundary line as dashed or solidPretend the inequality is y=2x+1\boundary{y} = \boundary{2x + 1} to plot the line, and make it dashed because testing (1,3)\boundary{(1, 3)} on the line doesn't work for the >> sign.
y>2x+13>2(1)+13>3(false)\displaystyle \begin{aligned} \allowed{y} &> \boundary{2x + 1} \\ \boundary{3} &> 2(\boundary{1}) + 1 \\ 3 &> 3 \quad \text{(false)} \end{aligned}
Shade above or below from the isolated y\allowed{y}Since y\allowed{y} is alone on the left and greater than 2x+1\boundary{2x + 1}, shade the entire region above the dashed line.
xx
yy
y>2x+1\htmlClass{lc-green}{y} > \htmlClass{lc-blue}{2x + 1}
xx
yy
y<2x+1\htmlClass{lc-green}{y} < \htmlClass{lc-blue}{2x + 1}
xx
yy
y≥2x+1\htmlClass{lc-green}{y} \ge \htmlClass{lc-blue}{2x + 1}
xx
yy
y≤2x+1\htmlClass{lc-green}{y} \le \htmlClass{lc-blue}{2x + 1}
3

Graphing from Standard Form with a Test Point

When yy isn't by itself on the left, we can't just read "above" or "below" off the inequality sign. We want to graph the Standard Form inequality

2x+3y\displaystyle \allowed{2x + 3y} ≤6\displaystyle \le \boundary{6}
Graphing from Standard Form with a Test Point
2x+3y≤6\htmlClass{lc-green}{2x + 3y} \le \htmlClass{lc-blue}{6}
22
44
22
44
xx
yy
Text solution
Cover up one term at a time to plot the interceptsPretend the inequality is 2x+3y=6\boundary{2x + 3y} = \boundary{6}, set x=0x = 0 and then y=0y = 0 to find where the line crosses each axis, and connect those two points with a solid line for ≤\le.
x=0:3y=6y=2→(0,2)y=0:2x=6x=3→(3,0)\displaystyle \begin{aligned} x = 0: \quad 3y &= 6 \\ y &= 2 \rightarrow \boundary{(0, 2)} \\[6pt] y = 0: \quad 2x &= 6 \\ x &= 3 \rightarrow \boundary{(3, 0)} \end{aligned}
Test (0,0)\allowed{(0, 0)} to pick the side to shadePlugging (0,0)\allowed{(0, 0)} into the inequality gives a true statement, so that entire side of the line works and we shade the side containing (0,0)\allowed{(0, 0)}.
2(0)+3(0)≤60≤6(true)\displaystyle \begin{aligned} 2(\allowed{0}) + 3(\allowed{0}) &\le 6 \\ 0 &\le 6 \quad \text{(true)} \end{aligned}

The value of 2x+3y2x + 3y stays below 6\boundary{6} everywhere on one side of the line 2x+3y=6\boundary{2x + 3y} = \boundary{6} and stays above 6\boundary{6} everywhere on the other side, only equaling 6\boundary{6} right on the line.

The boundary line splits the grid into a side where every point works and a side where no point works.
4

When a Negative yy-Term Flips the Shading

Now change that plus sign to a minus sign. We want to graph

2x−3y<6\displaystyle \allowed{2x - 3y} < \boundary{6}
When a Negative y-Term Flips the Shading
2x−3y<6\htmlClass{lc-green}{2x - 3y} < \htmlClass{lc-blue}{6}
Does < mean shade below?\text{Does }{<}\text{ mean shade below?}
−2−2
22
44
22
xx
yy
−2−2
Text solution
Plot the intercepts and draw a dashed boundary lineSetting x=0x = 0 and then y=0y = 0 in 2x−3y=6\boundary{2x - 3y} = \boundary{6} gives the two intercepts, which we connect with a dashed line for the << sign.
x=0:−3y=6y=−2→(0,−2)y=0:2x=6x=3→(3,0)\displaystyle \begin{aligned} x = 0: \quad -3y &= 6 \\ y &= -2 \rightarrow \boundary{(0, -2)} \\[6pt] y = 0: \quad 2x &= 6 \\ x &= 3 \rightarrow \boundary{(3, 0)} \end{aligned}
Test (0,0)\allowed{(0, 0)} to shade the true sideEven though the original inequality has a << sign, (0,0)\allowed{(0, 0)} sits above the line and makes the inequality true, so we shade above the line.
2(0)−3(0)<60<6(true)\displaystyle \begin{aligned} 2(\allowed{0}) - 3(\allowed{0}) &< 6 \\ 0 &< 6 \quad \text{(true)} \end{aligned}
Or isolate y\allowed{y} on the leftSolving for y\allowed{y} means dividing by −3-3, which flips << to >> and confirms that the shading goes above the line.
2x−3y<6−3y<−2x+6y>23x−2\displaystyle \begin{aligned} \allowed{2x - 3y} &< \boundary{6} \\ -3y &< -2x + 6 \\ \allowed{y} &> \boundary{\tfrac{2}{3}x - 2} \end{aligned}

Starting on the boundary line and moving straight up keeps xx fixed and increases yy. This makes −3y-3y smaller, so 2x−3y2x - 3y becomes less than 6\boundary{6}.

Because y is subtracted, moving up makes you subtract more and pulls the total down.
5

Horizontal and Vertical Inequalities

Sometimes an inequality on an (x,y)(x, y) grid only has one variable. We want to graph

y\displaystyle \allowed{y} ≥−2andx<4\displaystyle \ge \boundary{-2} \quad \text{and} \quad \allowed{x} < \boundary{4}
Horizontal and Vertical Inequalities
y≥−2\htmlClass{lc-green}{y} \ge \htmlClass{lc-blue}{-2}
−2−2
22
44
66
22
xx
yy
−2−2
−4−4
Text solution
Draw a horizontal boundary and shade up for y≥−2\allowed{y} \ge \boundary{-2}All points where y=−2\boundary{y} = \boundary{-2} form a flat horizontal line at height −2\boundary{-2}, drawn solid with larger yy-values shaded straight up.
y\displaystyle \allowed{y} ≥−2\displaystyle \ge \boundary{-2}
Draw a vertical boundary and shade left for x<4\allowed{x} < \boundary{4}All points where x=4\boundary{x} = \boundary{4} form a vertical line through 4\boundary{4} on the xx-axis, drawn dashed with smaller xx-values (3,2,1,0,…\allowed{3, 2, 1, 0, \dots}) shaded to the left.
x<4\displaystyle \allowed{x} < \boundary{4}
22
22
xx
yy
y=−2\htmlClass{lc-blue}{y} = \htmlClass{lc-blue}{-2}
y≥−2\htmlClass{lc-green}{y} \ge \htmlClass{lc-blue}{-2}
22
22
xx
yy
x=4\htmlClass{lc-blue}{x} = \htmlClass{lc-blue}{4}
x<4\htmlClass{lc-green}{x} < \htmlClass{lc-blue}{4}
22
22
xx
yy
y=−2\htmlClass{lc-blue}{y} = \htmlClass{lc-blue}{-2}
y≥−2\htmlClass{lc-green}{y} \ge \htmlClass{lc-blue}{-2}
22
22
xx
yy
x=4\htmlClass{lc-blue}{x} = \htmlClass{lc-blue}{4}
x<4\htmlClass{lc-green}{x} < \htmlClass{lc-blue}{4}
6

Writing an Inequality from a Graph

Now let's reverse the question: given this shaded graph, we want to write the inequality that produces it.

11
22
33
44
55
−1−1
11
22
44
xx
yy
(0,3)\htmlClass{lc-blue}{(0, 3)}
(2,2)\htmlClass{lc-blue}{(2, 2)}
Writing an Inequality from a Graph
b\displaystyle \boundary{b} =  ?m\displaystyle = \;?\qquad \slope{m} =  ?\displaystyle = \;?
y    ?    mx+b\displaystyle \allowed{y} \;\;?\;\; \boundary{\slope{m}x + b}
Text solution
Write the boundary line in slope-intercept formThe line crosses the yy-axis at (0,3)\boundary{(0, 3)} and goes down 1\slope{1} and right 22 to reach (2,2)\boundary{(2, 2)}, giving b=3\boundary{b} = \boundary{3} and m=−12\slope{m} = \slope{-\frac{1}{2}} in y=mx+b\boundary{y} = \boundary{\slope{m}x + b}.
y\displaystyle \boundary{y} =−12x+3\displaystyle = \boundary{\slope{-\tfrac{1}{2}}x + 3}
Swap == for the matching inequality signStarting on the line, the shading goes straight down (<<) and the dashed line means there is no equals bar.
y<−12x+3\displaystyle \allowed{y} < \boundary{\slope{-\tfrac{1}{2}}x + 3}
Check with (0,0)\allowed{(0, 0)} inside the shaded regionSince (0,0)\allowed{(0, 0)} lies in the shaded region, plugging it in must give a true statement.
0<−12(0)+30<3(true)\displaystyle \begin{aligned} \allowed{0} &< \slope{-\tfrac{1}{2}}(\allowed{0}) + 3 \\ 0 &< 3 \quad \text{(true)} \end{aligned}
7

Modeling a Budget with an Inequality

To see why we need a whole region of solutions, suppose tacos cost $2\$2 each, burritos cost $4\$4 each, and you have $20\$20 to spend. Let xx count tacos and yy count burritos, both in nonnegative whole numbers. We want to write and graph the inequality for every combination you can afford.

Modeling a Budget with an Inequality
x tacosx\text{ tacos}
$2 each\$2\text{ each}
y burritosy\text{ burritos}
$4 each\$4\text{ each}
$20\$20
What can you buy?\text{What can you buy?}
Text solution
Set the total cost to $20\$20 or lessMultiply each item by its price and use ≤20\le \boundary{20} since you don't have to spend all $20\$20.
2x+4y\displaystyle \allowed{2x + 4y} ≤20\displaystyle \le \boundary{20}
Graph the boundary in the first quadrantSince you can't buy a negative number of tacos or burritos, plot the intercepts (0,5)\boundary{(0, 5)} and (10,0)\boundary{(10, 0)} on the positive axes, connect them with a solid line, and shade the triangle below it.
x=0:4y=20→(0,5)y=0:2x=20→(10,0)\displaystyle \begin{aligned} x = 0: \quad 4y &= 20 \rightarrow \boundary{(0, 5)} \\ y = 0: \quad 2x &= 20 \rightarrow \boundary{(10, 0)} \end{aligned}
Interpret points inside, on, and outside the regionFor nonnegative whole-number quantities, points below the line leave change, points on the line spend the full $20\$20, and points above the line go over the $20\$20 budget.
Inside at (2,2):2(2)+4(2)=12≤20(affordable, $8 left over)On the line at (6,2):2(6)+4(2)=20≤20(affordable, uses all $20)Outside at (8,4):2(8)+4(4)=32≰20(not affordable)\displaystyle \begin{aligned} &\text{Inside at } \allowed{(2, 2)}: \\ &\qquad 2(\allowed{2}) + 4(\allowed{2}) = 12 \le 20 \\ &\qquad \text{(affordable, } \leftover{\$8} \text{ left over)} \\[6pt] &\text{On the line at } \boundary{(6, 2)}: \\ &\qquad 2(\boundary{6}) + 4(\boundary{2}) = 20 \le 20 \\ &\qquad \text{(affordable, uses all } \$20\text{)} \\[6pt] &\text{Outside at } \rejected{(8, 4)}: \\ &\qquad 2(\rejected{8}) + 4(\rejected{4}) = 32 \not\le 20 \\ &\qquad \text{(not affordable)} \end{aligned}

Key concepts

Every two-variable linear inequality comes down to two choices: how to draw the boundary line and which side to shade. Signs without an equals bar (<< or >>) always get a dashed line because points on the line make both sides equal, while signs with an equals bar (≤\le or ≥\ge) get a solid line.

How you find the line and pick the shading depends on how the inequality is written:

When y\allowed{y} is already alone on the left (y>2x+1\allowed{y} > \boundary{2x + 1})

Don't bother with a test point. Graph y=2x+1\boundary{y} = \boundary{2x + 1} using its yy-intercept and slope, then shade straight up for >> or ≥\ge and straight down for << or ≤\le. Do the same thing in reverse when reading a graph: write the boundary line as y=mx+b\boundary{y} = \boundary{\slope{m}x + b} first, then replace == with <<, >>, ≤\le, or ≥\ge based on whether the line is dashed or solid and whether the shading goes down or up from the line.

When xx and yy are together on the same side in Standard Form (2x+3y≤6\allowed{2x + 3y} \le \boundary{6} or 2x−3y<6\allowed{2x - 3y} < \boundary{6})

Don't trust the inequality sign for "above" or "below," because a subtracted yy-term like −3y-3y flips which direction makes the left side smaller. Instead, cover up one term at a time to plot the intercepts (0,y)\boundary{(0, y)} and (x,0)\boundary{(x, 0)}. If both intercepts are (0,0)\boundary{(0, 0)}, find another point on the line. Then test (0,0)(0, 0) if it is off the line. If it makes the inequality true, shade its side. If false, shade the other side. When the boundary passes through (0,0)\boundary{(0, 0)}, test another point that is off the line, such as (1,0)(1, 0) or (0,1)(0, 1).

When only one variable appears (y≥−2\allowed{y} \ge \boundary{-2} or x<4\allowed{x} < \boundary{4})

y=−2\boundary{y} = \boundary{-2} is a flat horizontal line shaded up or down, while x=4\boundary{x} = \boundary{4} is a vertical line shaded left for smaller xx-values or right for larger xx-values.

8

Practice

1

Graph the inequality y>−2x+3y > -2x + 3 on a coordinate grid.

Since yy is already alone on the left, plot the yy-intercept and use the slope −2\slope{-2} to find another point. Then what do the >> sign and the isolated yy tell you about the boundary line and the shading?

Start at (0,3)\boundary{(0, 3)} and go down 2\slope{2}, right 11 to (1,1)\boundary{(1, 1)}. Because the inequality has a >> sign with no equals bar, connect them with a dashed line. Watch out: Don't let the negative slope −2\slope{-2} trick you into shading down, and don't draw a solid line. With y\allowed{y} alone on the left, >> always shades straight up from a dashed line. Draw a dashed boundary line through (0,3)\boundary{(0, 3)} and (1,1)\boundary{(1, 1)} with slope −2\slope{-2}, and shade the entire region above the line.
2

Graph the inequality 3x+4y≤123x + 4y \le 12 on a coordinate grid.

xx and yy are together on the left: cover up one term at a time in 3x+4y=12\boundary{3x + 4y} = \boundary{12} to find the intercepts, then test one easy point off the line.

Set x=0x = 0 to get 4y=12→y=34y = 12 \rightarrow y = 3, giving (0,3)\boundary{(0, 3)}. Set y=0y = 0 to get 3x=12→x=43x = 12 \rightarrow x = 4, giving (4,0)\boundary{(4, 0)}. Watch out: Don't swap the coordinates into (3,0)(3, 0) and (0,4)(0, 4), which gives the wrong boundary line 4x+3y=124x + 3y = 12. Test (0,0)\allowed{(0, 0)}: 3(0)+4(0)≤123(\allowed{0}) + 4(\allowed{0}) \le 12 gives 0≤120 \le 12, which is true. Plot the intercepts (0,3)\boundary{(0, 3)} and (4,0)\boundary{(4, 0)}, connect them with a solid boundary line, and shade the side containing (0,0)\allowed{(0, 0)} (below the line) since 3(0)+4(0)≤123(\allowed{0}) + 4(\allowed{0}) \le 12 is true.
3

Graph the inequality 3x−2y<63x - 2y < 6 on a coordinate grid.

Watch the minus sign on −2y-2y: after finding the intercepts of 3x−2y=6\boundary{3x - 2y} = \boundary{6}, test (0,0)(0, 0) (or isolate yy) before choosing which side to shade.

Set x=0x = 0 to get −2y=6→y=−3-2y = 6 \rightarrow y = -3 at (0,−3)\boundary{(0, -3)} (don't drop the negative sign to get (0,3)(0, 3)), and set y=0y = 0 to get 3x=6→x=23x = 6 \rightarrow x = 2 at (2,0)\boundary{(2, 0)}. Connect them with a dashed line for <<. Watch out: Don't look at the << sign and automatically shade below the line. Because yy is subtracted, testing (0,0)\allowed{(0, 0)} above the line gives 0<60 < 6 (true), and solving for y\allowed{y} flips << to >>. Plot the intercepts (0,−3)\boundary{(0, -3)} and (2,0)\boundary{(2, 0)}, connect them with a dashed boundary line, and shade the side containing (0,0)\allowed{(0, 0)} (above the line) since 3(0)−2(0)<63(\allowed{0}) - 2(\allowed{0}) < 6 is true (or in slope-intercept form, y>32x−3\allowed{y} > \boundary{\frac{3}{2}x - 3}).
4

Graph the inequality 2x+y≥02x + y \ge 0 on a coordinate grid.

Plot the boundary line 2x+y=0\boundary{2x + y} = \boundary{0} first. Why doesn't testing (0,0)(0, 0) pick a side here, and what point can you test instead?

When x=0x = 0, y=0y = 0, giving (0,0)\boundary{(0, 0)}; when x=1x = 1, 2(1)+y=0→y=−22(1) + y = 0 \rightarrow y = -2, giving (1,−2)\boundary{(1, -2)}. Connect them with a solid line for ≥\ge. Watch out: Don't plug in (0,0)\boundary{(0, 0)}, see 0≥00 \ge 0 (true), and guess a side. Because the line passes right through (0,0)\boundary{(0, 0)}, that point isn't on either side of the line. Pick a point off the line like (1,0)\allowed{(1, 0)} instead. Draw a solid boundary line through (0,0)\boundary{(0, 0)} and (1,−2)\boundary{(1, -2)}. Since (0,0)\boundary{(0, 0)} is on the line, test (1,0)\allowed{(1, 0)}: 2(1)+0≥02(\allowed{1}) + \allowed{0} \ge 0 is true, so shade the side containing (1,0)\allowed{(1, 0)} (above and to the right of the line).
5

Graph the inequality x<−3x < -3 on an (x,y)(x, y) coordinate grid.

Where on the grid do all points with an xx-coordinate of −3-3 line up, and which direction has xx-values smaller than −3-3?

Find −3\boundary{-3} on the xx-axis and draw the line where xx is always −3\boundary{-3}. Watch out: Don't draw a horizontal line at y=−3y = -3 and shade below it, and don't shade to the right where x=−2,−1,0x = \rejected{-2, -1, 0} are larger than −3\boundary{-3}. Draw a dashed vertical line at x=−3\boundary{x} = \boundary{-3} and shade the entire region to the left of the line.
6

A coordinate grid shows a solid boundary line passing through (0,−1)(0, -1) and (3,1)(3, 1), with the region above the line shaded. Write the inequality shown by the graph.

Find the yy-intercept b\boundary{b} and the slope m\slope{m} between (0,−1)\boundary{(0, -1)} and (3,1)\boundary{(3, 1)} to write y=mx+b\boundary{y} = \boundary{\slope{m}x + b}, then swap == for the symbol that matches "above" and "solid."

The line crosses the yy-axis at (0,−1)\boundary{(0, -1)}, so b=−1\boundary{b} = \boundary{-1}. From (0,−1)\boundary{(0, -1)} to (3,1)\boundary{(3, 1)}, the line goes up 2\slope{2} and right 33, so m=23\slope{m} = \slope{\frac{2}{3}}. Watch out: Don't flip rise over run into 32\frac{3}{2} (which gives y≥32x−1y \ge \frac{3}{2}x - 1), and don't forget the equals bar for the solid boundary line. Since the shading is above a solid line, replace == with ≥\ge: y≥23x−1\allowed{y} \ge \boundary{\slope{\frac{2}{3}}x - 1}
7

Notebooks cost $3\$3 each (xx) and pens cost $2\$2 each (yy). You have $18\$18 to spend. Write an inequality for the combinations you can afford, describe its graph in the first quadrant, and tell whether (2,4)(2, 4), (4,3)(4, 3), and (5,3)(5, 3) are affordable combinations.

Set the total cost of xx notebooks and yy pens to be $18\$18 or less, find the intercepts where x=0x = 0 and y=0y = 0, and compare each pair's cost against $18\$18.

Buying xx notebooks at $3\$3 and yy pens at $2\$2 within an $18\$18 budget gives 3x+2y≤18\allowed{3x + 2y} \le \boundary{18}, with intercepts (0,9)\boundary{(0, 9)} and (6,0)\boundary{(6, 0)}. Plug each combination into 3x+2y3x + 2y:
For (2,4)\allowed{(2, 4)}: 3(2)+2(4)=14≤183(\allowed{2}) + 2(\allowed{4}) = 14 \le 18.
For (4,3)\boundary{(4, 3)}: 3(4)+2(3)=18≤183(\boundary{4}) + 2(\boundary{3}) = 18 \le 18. Watch out: Don't mark (4,3)\boundary{(4, 3)} as unaffordable just because it sits on the boundary line. Because the solid line is ≤18\le \boundary{18}, spending all $18\$18 still works.
For (5,3)\rejected{(5, 3)}: 3(5)+2(3)=21≰183(\rejected{5}) + 2(\rejected{3}) = 21 \not\le 18.
The inequality is 3x+2y≤18\allowed{3x + 2y} \le \boundary{18}. In the first quadrant, its graph is a solid line from (0,9)\boundary{(0, 9)} to (6,0)\boundary{(6, 0)} with the triangular region below it shaded. Only whole-number grid points in the shaded triangle, including its edges, represent purchases. (2,4)\allowed{(2, 4)} costs $14\$14 (inside the shaded region, affordable with change left over), (4,3)\boundary{(4, 3)} costs $18\$18 (on the solid line, affordable using the full $18\$18), and (5,3)\rejected{(5, 3)} costs $21\$21 (outside the shaded region, not affordable).