
# 3.8: Linear Inequalities (Two Variables)


Learning Objectives

• Identify and check solutions to linear inequalities with two variables.
• Graph solution sets of linear inequalities with two variables.

## Solutions to Linear Inequalities

We know that a linear equation with two variables has infinitely many ordered pair solutions that form a line when graphed. A linear inequality with two variables, on the other hand, has a solution set consisting of a region that defines half of the plane.

Linear Equation Linear Inequality
$$y=\frac{3}{2}x+3$$ $$y\leq \frac{3}{2}x+3$$

Figure 3.8.1

Figure 3.8.2

Table 3.8.1

For the inequality, the line defines one boundary of the region that is shaded. This indicates that any ordered pair that is in the shaded region, including the boundary line, will satisfy the inequality. To see that this is the case, choose a few test points and substitute them into the inequality.

 $$\color{Cerulean}{Test\:point}$$ $$y\leq\frac{3}{2}x+3$$ $$(0,0)$$ \begin{aligned} 0&\leq \frac{3}{2}(0)+3 \\ 0&\leq 3 \quad\color{Cerulean}{\checkmark} \end{aligned} $$(2,1)$$ \begin{aligned} 1&\leq \frac{3}{2}(2)+3 \\ 1&\leq 3+3 \\ 1&\leq 6\quad\color{Cerulean}{\checkmark}\end{aligned} $$(-2,-1)$$ \begin{aligned} -1&\leq\frac{3}{2}(-2)+3 \\ -1&\leq -3+3 \\ -1&\leq 0\quad\color{Cerulean}{\checkmark} \end{aligned}

Table 3.8.2

Also, we can see that ordered pairs outside the shaded region do not solve the linear inequality.

$$\begin{array} {c|c} {\underline{\color{Cerulean}{Test\:point}}}&{\underline{y\leq\frac{3}{2}x+3}}\\{(-2,3)} &{3\leq\frac{3}{2}(-2)+3}\\{}&{3\leq -3+3}\\{}&{3\leq 0\quad\color{red}{x}} \end{array}$$

The graph of the solution set to a linear inequality is always a region. However, the boundary may not always be included in that set. In the previous example, the line was part of the solution set because of the “or equal to” part of the inclusive inequality $$≤$$. If we have a strict inequality $$<$$, we would then use a dashed line to indicate that those points are not included in the solution set.

Non-Inclusive Boundary Inclusive Boundary
$$y<\frac{3}{2}x+3$$ $$y\leq \frac{3}{2}x+3$$

Figure 8.3.3

Figure 8.3.4

Table 3.8.3

Consider the point $$(0, 3)$$ on the boundary; this ordered pair satisfies the linear equation. It is the “or equal to” part of the inclusive inequality that makes it part of the solution set.

$$\begin{array}{c|c}{\underline{y<\frac{3}{2}x+3}}&{\underline{y\leq \frac{3}{2}x+3}}\\{3<\frac{3}{2}(0)+3}&{3\leq\frac{3}{2}(0)+3}\\{3<0+3}&{3\leq 0+3}\\{3<3\quad\color{red}{x}}&{3\leq 3\quad\color{Cerulean}{\checkmark}} \end{array}$$

So far, we have seen examples of inequalities that were “less than.” Now consider the following graphs with the same boundary:

Greater Than (Above) Less Than (Below)
$$y\geq \frac{3}{2}x+3$$ $$y\leq \frac{3}{2}x+3$$

Figure 8.3.5

Figure 3.8.6

Table 3.8.4

Given the graphs above, what might we expect if we use the origin $$(0, 0)$$ as a test point?

$$\begin{array}{c|c}{\underline{y\geq\frac{3}{2}x+3}}&{\underline{y\leq\frac{3}{2}x+3}}\\{0\geq\frac{3}{2}(0)+3}&{0\leq\frac{3}{2}(0)+3}\\{0\geq 0+3}&{0\leq0+3}\\{0\geq 3\quad\color{red}{x}}&{0\leq 3\quad\color{Cerulean}{\checkmark}} \end{array}$$

Exercise $$\PageIndex{1}$$

Which of the ordered pairs $$(−2, −1), (0, 0), (−2, 8), (2, 1),$$ and $$(4, 2)$$ solve the inequality $$y>−\frac{1}{2}x+2$$?

$$(−2, 8)$$ and $$(4, 2)$$

## Graphing Solutions to Linear Inequalities

Solutions to linear inequalities are a shaded half-plane, bounded by a solid line or a dashed line. This boundary is either included in the solution or not, depending on the given inequality. If we are given a strict inequality, we use a dashed line to indicate that the boundary is not included. If we are given an inclusive inequality, we use a solid line to indicate that it is included. The steps for graphing the solution set for an inequality with two variables are outlined in the following example.

Example $$\PageIndex{1}$$

Graph the solution set:

$$y>−3x+1$$.

Solution:

Step 1: Graph the boundary line. In this case, graph a dashed line $$y=−3x+1$$ because of the strict inequality. By inspection, we see that the slope is $$m=−3=−\frac{3}{1}=\frac{rise}{run}$$ and the $$y$$-intercept is $$(0, 1)$$.

Figure 3.8.7

Step 2: Test a point not on the boundary. A common test point is the origin $$(0, 0)$$. The test point helps us determine which half of the plane to shade.

$$\begin{array}{c|c} {\underline{\color{Cerulean}{Test\:point}}}&{\underline{y>-3x+1}}\\{(0,0)}&{0>-3(0)+1}\\{}&{0>1\quad\color{red}{x}} \end{array}$$

Step 3: Shade the region containing the solutions. Since the test point $$(0, 0)$$ was not a solution, it does not lie in the region containing all the ordered pair solutions. Therefore, shade the half of the plane that does not contain this test point. In this case, shade above the boundary line.

Figure 3.8.8

Consider the problem of shading above or below the boundary line when the inequality is in slope-intercept form. If $$y>mx+b$$, then shade above the line. If $$y<mx+b$$, then shade below the line. Use this with caution; sometimes the boundary is given in standard form, in which case these rules do not apply.

Example $$\PageIndex{2}$$

Graph the solution set:

$$2x−5y≥−10$$.

Solution:

Here the boundary is defined by the line $$2x−5y=−10$$. Since the inequality is inclusive, we graph the boundary using a solid line. In this case, graph the boundary line using intercepts.

\begin{array}{c|c} {\underline{\color{Cerulean}{To\:find\:the\:x-intercept,\:set\:y=0.}}}&{\underline{\color{Cerulean}{To\:find\:the\:y-intercept,\:set\:x=0.}}} \\ {\begin{aligned} 2x-5y&=-10 \\ 2x-5(\color{OliveGreen}{0}\color{black}{)}&=-10 \\ 2x&=-10 \\ x&=-5 \end{aligned}}&{\begin{aligned} 2x-5y&=-10 \\ 2(\color{OliveGreen}{0}\color{black}{)-5y}&=-10 \\ -5y&=-10 \\ y&=2 \end{aligned}} \\ {x-intercept:\:(-5,0)}&{y-intercept:\:(0,2)} \end{array}

Figure 3.8.9

Next, test a point; this helps decide which region to shade.

$$\begin{array} {c|c} {\underline{\color{Cerulean}{Test\:point}}}&{\underline{2x-5y\geq -10}}\\{(0,0)}&{2(0)-5(0)\geq -10} \\ {}&{0\geq -10\quad\color{Cerulean}{\checkmark}} \end{array}$$

Since the test point is in the solution set, shade the half of the plane that contains it.

Figure 3.8.10

In this example, notice that the solution set consists of all the ordered pairs below the boundary line. This may be counterintuitive because of the original $$≥$$ in the inequality. This illustrates that it is a best practice to actually test a point. Solve for $$y$$ and you see that the shading is correct.

\begin{aligned} 2x-5y&\geq -10 \\ 2x-5y\color{Cerulean}{-2x}&\geq -10\color{Cerulean}{-2x} \\ -5y&\geq -2x-10 \\ \frac{-5y}{\color{Cerulean}{-5}}&\color{OliveGreen}{\leq}\color{black}{\frac{-2x-10}{\color{Cerulean}{-5}}}\quad\color{Cerulean}{Reverse\:the\:inequality.} \\ y&\leq \frac{2}{5}x+2 \end{aligned}

In slope-intercept form, you can see that the region below the boundary line should be shaded. An alternate approach is to first express the boundary in slope-intercept form, graph it, and then shade the appropriate region.

Example $$\PageIndex{3}$$

Graph the solution set:

$$y<2$$.

Solution:

First, graph the boundary line $$y=2$$ with a dashed line because of the strict inequality.

Figure 3.8.11

Now, test a point.

$$\begin{array}{c|c}{\underline{\color{Cerulean}{Test\:point}}}&{\underline{y<2}}\\{(0,0)}&{0<2\quad\color{Cerulean}{\checkmark}} \end{array}$$

In this case, shade the region that contains the test point.

Figure 3.8.12

Exercise $$\PageIndex{2}$$

Graph the solution set:

$$5x−y≤10$$.

Figure 3.8.13

## Key Takeaways

• Linear inequalities with two variables have infinitely many ordered pair solutions, which can be graphed by shading in the appropriate half of a rectangular coordinate plane.
• To graph the solution set of a linear inequality with two variables, first graph the boundary with a dashed or solid line depending on the inequality. If given a strict inequality, use a dashed line for the boundary. If given an inclusive inequality, use a solid line. Next, choose a test point not on the boundary. If the test point solves the inequality, then shade the region that contains it; otherwise, shade the opposite side.
• When graphing the solution sets of linear inequalities, it is a good practice to test values in and out of the solution set as a check.

Exercise $$\PageIndex{3}$$ Solutions to Linear Inequalities (Two Variables)

Is the ordered pair a solution to the given inequality?

1. $$y<5x+1$$; $$(0,0)$$
2. $$y>−\frac{1}{2}x−4$$; $$(0, −2)$$
3. $$y≤\frac{2}{3}x+1$$; $$(6, 5)$$
4. $$y≥−\frac{1}{3}x−5$$; $$(−3, −8)$$
5. $$y<\frac{1}{5}x-\frac{1}{3}$$; $$(-\frac{1}{2},-1)$$
6. $$4x-3y\leq 2$$; $$(-2,-1)$$
7. $$-x+4y>7$$; $$(0, 0)$$
8. $$7x−3y<21$$; $$(5,-3)$$
9. $$y>−5$$; $$(−3, −1)$$
10. $$x≤0$$; $$(0, 7)$$

1. Yes

3. Yes

5. Yes

7. No

9. Yes

Exercise $$\PageIndex{4}$$ Graphing Solutions to Linear Inequalities

Graph the solution set.

1. $$y<−3x+3$$
2. $$y<−\frac{2}{3}x+4$$
3. $$y≥−\frac{1}{2}x$$
4. $$y≥\frac{4}{5}x−8$$
5. $$y≤8x−7$$
6. $$y>−5x+3$$
7. $$y>−x+4$$
8. $$y>x−2$$
9. $$y≥−1$$
10. $$y<−3$$
11. $$x<2$$
12. $$x≥2$$
13. $$y≤\frac{3}{4}x−\frac{1}{2}$$
14. $$y>−\frac{3}{2}x+\frac{5}{2}$$
15. $$−2x+3y>6$$
16. $$7x−2y>14$$
17. $$5x−y<10$$
18. $$x-y<0$$
19. $$3x−2y≥0$$
20. $$x−5y≤0$$
21. $$−x+2y≤−4$$
22. $$−x+2y≤3$$
23. $$2x−3y≥−1$$
24. $$5x−4y<−3$$
25. $$\frac{1}{2}x-\frac{1}{3}y<1$$
26. $$\frac{1}{2}x-\frac{1}{10}y\geq\frac{1}{2}$$
27. $$x≥−2y$$
28. $$x<2y+3$$
29. $$3x−y+2>0$$
30. $$3−y−2x<0$$
31. $$−4x≤12−3y$$
32. $$5x≤−4y−12$$
33. Write an inequality that describes all points in the upper half-plane above the $$x$$-axis.
34. Write an inequality that describes all points in the lower half-plane below the $$x$$-axis.
35. Write an inequality that describes all points in the half-plane left of the $$y$$-axis.
36. Write an inequality that describes all points in the half-plane right of the $$y$$-axis.
37. Write an inequality that describes all ordered pairs whose $$y$$-coordinates are at least $$2$$.
38. Write an inequality that describes all ordered pairs whose $$x$$-coordinate is at most $$5$$.

1.

Figure 3.8.14

3.

Figure 3.8.15

5.

Figure 3.8.16

7.

Figure 3.8.17

9.

Figure 3.8.18

11.

Figure 3.8.19

13.

Figure 3.8.20

15.

Figure 3.8.21

17.

Figure 3.8.22

19.

Figure 3.8.23

21.

Figure 3.8.24

23.

Figure 3.8.25

25.

Figure 3.8.26

27.

Figure 3.8.27

29.

Figure 3.8.28

31.

Figure 3.8.29

33. $$y>0$$

35. $$x<0$$

37. $$y≥2$$