Graphs of Linear Inequalities

Site: Saylor Academy
Course: MA007: Algebra
Book: Graphs of Linear Inequalities
Printed by: Guest user
Date: Tuesday, 15 July 2025, 7:42 AM

Description

Introduction


Source: OpenStax, https://openstax.org/books/elementary-algebra/pages/4-7-graphs-of-linear-inequalities
Creative Commons License This work is licensed under a Creative Commons Attribution 4.0 License.

Verify Solutions to an Inequality in Two Variables

We have learned how to solve inequalities in one variable. Now, we will look at inequalities in two variables. Inequalities in two variables have many applications. If you ran a business, for example, you would want your revenue to be greater than your costs - so that your business would make a profit.

Linear Inequality

A linear inequality is an inequality that can be written in one of the following forms:

\(A x+B y>C \quad \qquad A x+B y \geq C \quad \qquad A x+B y < C \quad \qquad A x+B y \leq C \)

where \( A\) and \(B\) are not both zero.

Do you remember that an inequality with one variable had many solutions? The solution to the inequality \(x>3\) is any number greater than 3. We showed this on the number line by shading in the number line to the right of 3, and putting an open parenthesis at 3. See Figure 4.30.

The figure shows a number line extending from negative 5 to 5. A parenthesis is shown at positive 3 and an arrow extends for
Figure 4.30


Similarly, inequalities in two variables have many solutions. Any ordered pair \((x,y)\) that makes the inequality true when we substitute in the values is a solution of the inequality.

Solution of a Linear Inequality

An ordered pair \((x,y)\) is a solution of a linear inequality if the inequality is true when we substitute the values of \(x\) and \(y\).

Example 4.69

Determine whether each ordered pair is a solution to the inequality \( y > x+4\):

  1. \((0,0)\)
  2. \((1,6)\)
  3. \((2,6)\)
  4. \((−5,−15)\)
  5. \((−8,12)\)
Solution

  1. \((0,0)\) \(y>x+4\)
    Substitute \(0\) for \(x\) and \(0\) for \(y\). \(0\stackrel{?}{>} 0+4\)
    Simplify. \(0 \not{>} 4\)
    So, (0,0) is not a solution to \(y>x+4\).


  2. \((1,6)\) \(y>x+4\)
    Substitute \(1\) for \(x\) and 6 for \(y\).
    \(6\stackrel{?}{>} 1+4\)
    Simplify.

    \(6>5\)

    So, \((1,6)\) is a solution to \(y>x+4\).



  3. \((2,6)\) \(y>x+4\)
    Substitute \(2\) for \(x\) and \(6\) for \(y\). \(6\stackrel{?}{>} 2+4\)
    Simplify.

    \(6 \not{>}6\)

    So, \((2,6)\) is not a solution to \(y>x+4\).



  4. \((−5,−15)\) \( y>x+4 \)
    Substitute \(-5\) for \(x\) and \(-15\) for \(y\). \(-15\stackrel{?}{>}-5+4\)
    Simplify. \(-15 \not{>} -1\)
    So, \((−5,−15)\) is not a solution to \(y>x+4\).


  5. \((−8,12)\) \( y>x+4 \)
    Substitute \(-8\) for \(x\) and \(12\) for \(y\). \(12 \stackrel{?}{>}-8+4\)
    Simplify. \(12>-4\)
    So, \((−8,12)\) is a solution to \(y>x+4\).
Try It 4.137

Determine whether each ordered pair is a solution to the inequality \(y>x−3\):

  1. \((0,0)\)
  2. \((4,9)\)
  3. \((−2,1)\)
  4. \((−5,−3)\)
  5. \((5,1)\)
Try It 4.138

Determine whether each ordered pair is a solution to the inequality \(y<x+1\):

  1. \((0,0)\)
  2. \((8,6)\)
  3. \((−2,−1)\)
  4. \((3,4)\)
  5. \((−1,−4)\)

Recognize the Relation Between the Solutions of an Inequality and its Graph

Now, we will look at how the solutions of an inequality relate to its graph.

Let's think about the number line in Figure \(4.30\) again. The point \(x=3\) separated that number line into two parts. On one side of 3 are all the numbers less than 3. On the other side of 3 all the numbers are greater than \(3 \). See Figure 4.31.

The figure shows a number line extending from negative 5 to 5. A parenthesis is shown at positive 3 and an arrow extends fo

Figure 4.31

The solution to \(x > 3\) is the shaded part of the number line to the right of \(x=3\).

Similarly, the line \(y=x+4\) separates the plane into two regions. On one side of the line are points with \(y < x+4\). On the other side of the line are the points with \(y > x+4\). We call the line \(y=x+4\) a boundary line.

Boundary Line

The line with equation \(A x+B y=C\) is the boundary line that separates the region where \(A x+B y > C\) from the region where \(A x+B y < C\).

For an inequality in one variable, the endpoint is shown with a parenthesis or a bracket depending on whether or not a is included in the solution:

The figure shows two number lines. The number line on the left is labeled x is less than a. The number line shows a parenthes

Similarly, for an inequality in two variables, the boundary line is shown with a solid or dashed line to indicate whether or not it the line is included in the solution. This is summarized in Table 4.48

\(A x +B y < C\) \(A x +B y ≤ C\)
\(A x +B y > C\) \(A x +B y ≥ C\)
Boundary line is not included in solution. Boundary line is included in solution.
Boundary line is dashed. Boundary line is solid.

Table 4.48

Now, let's take a look at what we found in Example 4.69. We'll start by graphing the line \(y=x+4\), and then we'll plot the five points we tested. See Figure 4.32.

The graph shows the x y-coordinate plane. The x- and y-axes each run from negative 10 to 10. The line y equals x plus 4 is pl

Figure 4.32


In Example 4.69 we found that some of the points were solutions to the inequality \(y > x+4\) and some were not.

Which of the points we plotted are solutions to the inequality \(y > x+4 ?\) The points \((1,6)\) and \((-8,12)\) are solutions to the inequality \(y > x+4\). Notice that they are both on the same side of the boundary line \(y=x+4\).

The two points \((0,0)\) and \((-5,-15)\) are on the other side of the boundary line \(y=x+4\), and they are not solutions to the inequality \(y > x+4\). For those two points, \(y < x+4\).

What about the point \((2,6)\) ? Because \(6=2+4\), the point is a solution to the equation \(y=x+4\). So the point \((2,6)\) is on the boundary line.

Let's take another point on the left side of the boundary line and test whether or not it is a solution to the inequality \(y > x+4\). The point \((0,10)\) clearly looks to be to the left of the boundary line, doesn't it? Is it a solution to the inequality?

\(\begin{array}{l} y > x+4 \\ 10 > 0+4 \\ 10 > 4 \qquad \qquad \qquad \text { So, }(0,10) \text { is a solution to } y > x+4. \end{array}\)

Any point you choose on the left side of the boundary line is a solution to the inequality \(y > x+4\). All points on the left are solutions.

Similarly, all points on the right side of the boundary line, the side with \((0,0)\) and \((-5,-15)\), are not solutions to \(y > x+4\). See Figure 4.33.

The graph shows the x y-coordinate plane. The x- and y-axes each run from negative 10 to 10. The line y equals x plus 4 is pl

Figure 4.33

The graph of the inequality \(y > x+4\) is shown in Figure 4.34 below. The line \(y=x+4\) divides the plane into two regions. The shaded side shows the solutions to the inequality \(y > x+4\).

The points on the boundary line, those where \(y=x+4\), are not solutions to the inequality \(y > x+4\), so the line itself is not part of the solution. We show that by making the line dashed, not solid.

The graph shows the x y-coordinate plane. The x- and y-axes each run from negative 10 to 10. The line y equals x plus 4 is pl

Figure 4.34 The graph of the inequality \(y > x +4\).

Example 4.70

The boundary line shown is \(y=2x−1\). Write the inequality shown by the graph.

The graph shows the x y-coordinate plane. The x- and y-axes each run from negative 10 to 10. The line y equals 2 x minus 1 is

Solution

The line \( y =2 x −1\) is the boundary line. On one side of the line are the points with \( y > 2 x −1\) and on the other side of the line are the points with \( y < 2 x−1\).

Let’s test the point \(( 0 ,0 )\) and see which inequality describes its side of the boundary line.

At \(( 0 ,0 )\) , which inequality is true:

\( \begin{array}{ccc} y > 2 x-1 & \text { or } & y < 2 x-1 ? \\ y > 2 x-1 & & y < 2 x-1 \\ 0 \stackrel{?}{ > } 2 \cdot 0-1 & & 0 \stackrel{?}{ < } 2 \cdot 0-1 \\ 0 > -1 \text { True } & & 0 < -1 \text { False } \end{array} \)

Since, \(y > 2x−1\) is true, the side of the line with \(( 0 ,0 )\), is the solution. The shaded region shows the solution of the inequality \(y > 2x−1\).

Since, \(y > 2 x-1\) is true, the side of the line with \((0,0)\), is the solution. The shaded region shows the solution of the inequality \(y > 2 x-1\).

Since the boundary line is graphed with a solid line, the inequality includes the equal sign.

The graph shows the inequality \(y \geq 2 x-1\).

We could use any point as a test point, provided it is not on the line. Why did we choose \((0,0)\) ? Because it's the easiest to evaluate. You may want to pick a point on the other side of the boundary line and check that \(y < 2 x-1\).

Try It 4.139

Write the inequality shown by the graph with the boundary line \(y=−2 x+3\).

The graph shows the x y-coordinate plane. The x- and y-axes each run from negative 10 to 10. The line y equals 2 x minus 1 is


Try It 4.140

Write the inequality shown by the graph with the boundary line \(y =\frac{1}{2}x−4\).

The graph shows the x y-coordinate plane. The x- and y-axes each run from negative 10 to 10. The line y equals one half x min

Example 4.71

The boundary line shown is \(2x+3y=6\). Write the inequality shown by the graph.

The graph shows the x y-coordinate plane. The x- and y-axes each run from negative 10 to 10. The line 2 x plus 3 y equals 6 i

Solution

The line \(2 x+3 y=6\) is the boundary line. On one side of the line are the points with \(2 x+3 y > 6\) and on the other side of the line are the points with \(2 x+3 y < 6\).

Let's test the point \((0,0)\) and see which inequality describes its side of the boundary line.

At \((0,0)\), which inequality is true:

\(\begin{array}{rrr}2 x+3 y > 6 & \text { or } & 2 x+3 y < 6 ? \\ 2 x+3 y > 6 & & 2 x+3 y < 6 \\ 2(0)+3(0) \stackrel{?}{ > } 6 & &2(0)+3(0) & \stackrel{?}{ < } 6 \\ 0 > 6 \text { False } & & 0 < 6 \text { True }\end{array}\)

So the side with \((0,0)\) is the side where \(2 x+3 y < 6\).

(You may want to pick a point on the other side of the boundary line and check that \(2 x+3 y > 6\).)

Since the boundary line is graphed as a dashed line, the inequality does not include an equal sign.

The graph shows the solution to the inequality \(2 x+3 y < 6\).

Try It 4.141

Write the inequality shown by the shaded region in the graph with the boundary line \( x −4 y = 8\) .

The graph shows the x y-coordinate plane. The x- and y-axes each run from negative 10 to 10. The line 2 x plus 3 y equals 6 i


Try It 4.142

Write the inequality shown by the shaded region in the graph with the boundary line \( 3 x −y =6\) .

The graph shows the x y-coordinate plane. The x- and y-axes each run from negative 10 to 10. The line 3 x minus y equals 6 is

Graph Linear Inequalities

Now, we're ready to put all this together to graph linear inequalities.

Example 4.72

How to Graph Linear Inequalities

Graph the linear inequality \(y \geq \frac{3}{4} x-2\).

Solution

Step 1. Identify and graph the boundary line.

  • If the inequality is \(\leq\) or \(\geq\), the boundary line is solid.
  • If the inequality is \( < \) or \(>\), the boundary line is dashed.

Replace the inequality sign with an equal sign to find the boundary line.

Graph the boundary line \(y=\frac{3}{4} x-2\)
The inequality sign is \(\geq\). so we draw a solid line.

 

Graph the boundary line y=3/4x−2

Step 2. Test a point that is not on the boundary line. Is it a solution of the inequality? We'll test \((0,0)\).
Is it a solution of the inequality?
\begin{array}{l}
\text { At }(0,0) \text { , is } \begin{aligned}
y & \geq \frac{3}{4} x-2 ? \\
& 0 \geq \frac{3}{4}(0)-2 \\
0 & \geq-2
\end{aligned}\\
\text { So, }(0,0) \text { is a solution. }
\end{array}
Step 3. Shade in one side of the boundary line.
  • If the test point is a solution, shade in the side that includes the point.
  • If the test point is not a solution, shade in the opposite side.
The test point \((0,0)\), is a solution to \(y \geq \frac{3}{4} x-2\). So
we shade in that side.
Shade in one side of the boundary line.
Try It 4.143

Graph the linear inequality \(y \geq \frac{5}{2} x-4\).

Try It 4.144

Graph the linear inequality \(y < \frac{2}{3} x-5\).

The steps we take to graph a linear inequality are summarized here.

HOW TO

Graph a linear inequality.
  1. Step 1. Identify and graph the boundary line.
    • If the inequality is \(\leq\) or \(\geq\), the boundary line is solid.
    • If the inequality is \( < \) or \(>\), the boundary line is dashed.
  2. Step 2. Test a point that is not on the boundary line. Is it a solution of the inequality?
  3. Step 3. Shade in one side of the boundary line.
    • If the test point is a solution, shade in the side that includes the point.
    • If the test point is not a solution, shade in the opposite side.

Example 4.73

Graph the linear inequality \(y≤−4x\).

Solution

First we graph the boundary line \(x−2y=5\). The inequality is \( < \) so we draw a dashed line.

The graph shows the x y-coordinate plane. The x- and y-axes each run from negative 10 to 10. The line x minus 2 y equals 5 is

Then we test a point. We'll use \((0,0)\) again because it is easy to evaluate and it is not on the boundary line.

Is \((0,0)\) a solution of \(x-2 y < 5 ?\)

\(\begin{align} \begin{array}{r} 0-2(0) \stackrel{?}{ < }5 \\ 0-0\stackrel{?}{ < }5 \\ 0 < 5 \end{array} \end{align}\)

The point \((0, 0)\) is a solution of \(x−2y < 5\), so we shade in that side of the boundary line.

The graph shows the x y-coordinate plane. The x- and y-axes each run from negative 10 to 10. The line x minus 2 y equals 5 is
Try It 4.145

Graph the linear inequality \( 2x−3y≤6\).

Try It 4.146

Graph the linear inequality \(2x−y > 3\).

What if the boundary line goes through the origin? Then we won't be able to use \((0,0)\) as a test point. No problem-we'll just choose some other point that is not on the boundary line.

Example 4.74

Graph the linear inequality \(y≤−4x\).

Solution

First we graph the boundary line \(y=-4 x .\) It is in slope-intercept form, with \(m=-4\) and \(b=0\). The inequality is \(\leq\) so we draw a solid line.

The graph shows the x y-coordinate plane. The x- and y-axes each run from negative 10 to 10. The line s y equals negative 4 x

Now, we need a test point. We can see that the point \((1,0)\) is not on the boundary line.

Is \((1,0)\) a solution of \(y \leq-4 x ?\)

\(0\stackrel{?}{x}-4(1)\)

\(0 \nleq-4\)

The point \((1,0)\) is not a solution to \(y≤−4x\), so we shade in the opposite side of the boundary line. See Figure 4.35.


The graph shows the x y-coordinate plane. The x- and y-axes each run from negative 10 to 10. The line y equals negative 4 x i

Figure 4.35

Try It 4.147

Graph the linear inequality \(y > −3x\).

Try It 4.148

Graph the linear inequality \(y \geq −2x\).

Some linear inequalities have only one variable. They may have an x but no y, or a y but no x. In these cases, the boundary line will be either a vertical or a horizontal line. Do you remember?

\(\begin{aligned} x&=a \quad \quad \text{vertical line} \\ y&=b \quad \quad \text{horizontal line}\end{aligned} \)

Example 4.75

Graph the linear inequality \(y>3\).

Solution

First we graph the boundary line \(y=3\). It is a horizontal line. The inequality is \( > \) so we draw a dashed line.

We test the point \((0,0)\).

\( \begin{array}{l} y>3\\ 0 \ngtr 3 \end{array} \)

\((0,0)\) is not a solution to \(y > 3\).
So we shade the side that does not include \((0, 0)\).

The graph shows the x y-coordinate plane. The x- and y-axes each run from negative 10 to 10. The line y equals 3 is plotted a

Try It 4.149

Graph the linear inequality \(y < 5\).

Try It 4.150

Graph the linear inequality \(y \leq −1\).