Skip to main content

Section 2.5 Linear Inequalities in Two Variables

Subsection Graphs of Inequalities in Two Variables

Definition 2.44.

A solution to an inequality in two variables is an ordered pair of numbers that satisfies the inequality.

Example 2.45.

Find a solution to the inequality \(x + y \ge 10,000\) for \(x = 2000\)

Solution

For \(x = 2000\text{,}\) we have

\begin{equation*} 2000 + y \ge 10,000~~~~~~\text{or}~~~~~~>y \ge 8000 \end{equation*}

You can check that any value of \(y\) greater than or equal to 8000 provides a solution when \(x=2000\text{.}\) For example, \((2000, 9000)\) is a solution because \(2000 + 9000 \gt 10,000\text{.}\)

We can gain some insight into the nature of the solutions if we rewrite the inequality as

\begin{gather*} y \ge − x + 10,000 \end{gather*}

This inequality says that for each \(x\)-value, we must choose points with \(y\)-values greater than or equal to \(-x + 10,000\text{.}\) As we saw in the Example above, when \(x = 2000\text{,}\) the solutions have \(y\)-values greater than or equal to 8000. Solutions for \(x = 2000\text{,}\) \(x = 6000\text{,}\) and \(x = 11,000\) are shown in the figure. Do you see a pattern emerging?

linear inequality
linear inequality in two variables

The graph of the inequality must show all the points whose coordinates are solutions. We found some solutions to the inequality \(x + y \ge 10,000\) in the Example above by choosing a value for \(x\) and solving for \(y\text{.}\) A more efficient way to find all the solutions of the inequality is to start with the graph of the corresponding equation

\begin{gather*} y = -x + 10,000 \end{gather*}
linear inequality, 2 variables

The graph is a straight line with slope \(-1\text{.}\) Any point above this line has a \(y\)-coordinate greater than \(~-x + 10,000~\) and hence satisfies the inequality. Thus, the graph of the inequality includes all the points on or above the line \(~y = -x + 10,000~\text{,}\) as shown by the shaded region in the figure. Of course, the shaded points are also solutions to the original inequality, \(~x + y \ge 10,000~\text{.}\)

For example, the point \((-1000, ~12,000)\) is a solution, because

\begin{gather*} -1000 + 12,000 \ge 10,000 \end{gather*}

On the other hand, the point \((5000, 4000)\) does not lie in the shaded region because its coordinates do not satisfy the inequality.

Subsection Linear Inequalities

A linear inequality can be written in the form

\begin{gather*} ax + by + c \le 0 \qquad\text{ or }\qquad ax + by + c \ge 0 \end{gather*}

The solutions consist of the line \(ax + by + c = 0\) and a half-plane on one side of that line. We shade the half-plane to show that all its points are included in the solution set. To decide which side of the line to shade, we can solve the inequality for \(y\) in terms of \(x\text{.}\) If we obtain

\begin{gather*} y \ge mx + b \qquad(\text{ or } y \gt mx + b) \end{gather*}

then we shade the half-plane above the line. If the inequality is equivalent to

\begin{gather*} y \le mx + b \qquad(\text{ or } y \lt mx + b) \end{gather*}

then we shade the half-plane below the line.

Example 2.47.

Graph \(4x - 3y \ge 12\)

Solution

We solve the inequality for \(y\text{.}\)

\begin{align*} 4x - 3y \amp\ge 12 \amp \amp \blert{\text{Subtract}~ 4x~ \text{from both sides.}}\\ -3y\amp\ge -4x + 12 \amp \amp \blert{\text{Divide both sides by}~ -3.}\\ y\amp\le \frac{4}{3}x-4 \end{align*}

We graph the corresponding line

\begin{gather*} y = \frac{4}{3}x-4 \end{gather*}

with \(y\)-intercept is \(-4\) and slope \(m=\dfrac{4}{3}\text{.}\) Finally, we shade the half-plane below the line. The completed graph is shown below.

linear inequality in two variables
Caution 2.48.

Be careful when isolating \(y\text{.}\) We must remember to reverse the direction of the inequality whenever we multiply or divide by a negative number. For example, the inequality

\begin{gather*} -2y \alert{\gt} 6x-8 \end{gather*}

is equivalent to

\begin{gather*} y \alert{\lt} {-3x}+4 \end{gather*}

An inequality that uses \(\gt\) or \(\lt\) instead of \(\ge\) or \(\le\) is called strict. The graph of a strict inequality includes only the half-plane and not the line. In that case we use a dashed line for the graph of the equation \(ax + by + c = 0\) to show that it is not part of the solution.

Subsection Using a Test Point

A second method for graphing inequalities does not require us to solve for \(y\text{.}\) Once we have graphed the boundary line, we can decide which half-plane to shade by using a test point. The test point can be any point that is not on the boundary line itself.

Example 2.51.

Graph the solutions of the inequality \(~~3x - 2y\lt 6\)

Solution

First, we graph the line \(3x - 2y = 6\text{,}\) as shown below. We will use the intercept method. The intercepts are \((2, 0)\) and \((0, -3)\text{,}\) so we sketch the boundary line through those points.

Next, we choose a test point. Because \((0, 0)\) does not lie on the line, we choose it as our test point. We substitute the coordinates of the test point into the inequality to obtain

\begin{equation*} 3(\alert{0}) - 2(\alert{0}) \lt 6 \end{equation*}

Because this is a true statement, \((0, 0)\) is a solution of the inequality. Since all the solutions lie on the same side of the boundary line, we shade the half-plane that contains the test point. In this example, the boundary line is a dashed line because the original inequality was strict.

strict linear inequality in two variables

Here is a summary of our test point method for graphing inequalities.

To Graph an Inequality Using a Test Point:.
  1. Graph the corresponding equation to obtain the boundary line.

  2. Choose a test point that does not lie on the boundary line.

  3. Substitute the coordinates of the test point into the inequality.

    1. If the resulting statement is true, shade the half-plane that includes the test point.

    2. If the resulting statement is false, shade the half-plane that does not include the test point.

    If the inequality is strict, make the boundary line a dashed line.

We can choose any point for the test point as long as it does not lie on the boundary line. We chose \((0, 0)\) in Example 2.51 because the coordinates are easy to substitute into the inequality. If the test point is a solution, we shade the half-plane including that point. If the test point is not a solution, we shade the other half-plane. For example, suppose we had chosen \((5, 0)\) as the test point in Example 2.51. When we substitute its coordinates into the inequality, we find

\begin{gather*} 3(\alert{5}) - 2(\blert{0}) \lt 6 \end{gather*}

which is a false statement. Thus, \((5, 0)\) is not a solution to the inequality, so the solutions must lie on the other side of the boundary line. Note that using \((5, 0)\) as the test point gives us the same solutions we found in Example 2.51.

Caution 2.53.

We cannot choose a test point that lies on the boundary line. In Practice 3 above, we cannot use \((0, 0)\) as a test point, because it lies on the line \(y =\dfrac{-3}{2}x\text{.}\) In this case, we should choose some other point, such as \((0, 1)\) or \((1, 2)\text{.}\)

Recall that the equation of a vertical line has the form

\begin{gather*} x=k \end{gather*}

where \(k\) is a constant, and a horizontal line has an equation of the form

\begin{gather*} y=k \end{gather*}

Similarly, the inequality \(x\ge k\) may represent the inequality in two variables

\begin{gather*} x+0y\ge k \end{gather*}

Its graph is then a region in the plane.

Example 2.54.

Graph \(~~x\ge 2~~\) in the plane.

Solution

First, we graph the equation \(x = 2\text{;}\) its graph is a vertical line. Because the origin does not lie on this line, we can use it as a test point. Substitute \(0\) for \(x\) (there is no \(y\)) into the inequality to obtain

\begin{gather*} 0\ge 2 \end{gather*}

Since this is a false statement, we shade the half-plane that does not contain the origin. We see in the figure below that the graph of the inequality contains all points whose \(x\)-coordinates are greater than or equal to \(2\text{.}\)

graph of x greater or equal to 2 in the plane

Subsection Systems of Inequalities

Some applications are best described by a system of two or more inequalities. The solutions to a system of inequalities include all points that are solutions to each inequality in the system. The graph of the system is the intersection of the shaded regions for each inequality in the system. For example, the figure at right shows the solutions of the system

\begin{gather*} y \gt x \qquad\text{ and }\qquad y \gt 2 \end{gather*}
system of two inequalities
Example 2.56.

Laura is a finicky eater, and she dislikes most foods that are high in calcium. Her morning cereal satisfies some of her calcium requirements, but she needs an additional 500 milligrams of calcium, which she will get from a combination of broccoli, at 160 milligrams per serving, and zucchini, at 30 milligrams per serving. Draw a graph representing the possible combinations of broccoli and zucchini that fulfill Laura’s calcium requirements.

Solution
  • Step 1:.

    Number of servings of broccoli: \(\quad x\)

    Number of servings of zucchini: \(\quad y\)

  • Step 2:.

    To get enough calcium, Laura must choose \(x\) and \(y\) so that

    \begin{equation*} 160x + 30y \ge 500 \end{equation*}

    It makes no sense to consider negative values of \(x\) or of \(y\text{,}\) since Laura cannot eat a negative number of servings. Thus, we have two more inequalities to satisfy:

    \begin{equation*} x \ge 0 ~~~\text{ and }~~~y \ge 0 \end{equation*}
  • Step 3:.

    We graph all three inequalities on the same axes. The inequalities \(x\ge 0\) and \(y \ge 0\) restrict the solutions to lie in the first quadrant. The solutions common to all three inequalities are shown at right.

    system of three inequalities
  • Step 4:.

    Laura can choose any combination of broccoli and zucchini represented by points in the shaded region. For example, the point \((3, 1)\) is a solution to the system of inequalities, so Laura could choose to eat \(3\) servings of broccoli and \(1\) serving of zucchini.

system of inequalities

To describe the solutions of a system of inequalities, it is useful to locate the vertices, or corner points, of the boundary.

Example 2.58.

Graph the solution set of the system below and find the coordinates of its vertices.

\begin{align*} x - y - 2 \amp\le 0\\ x + 2y - 6 \amp\le 0\\ x \ge 0, ~~~~~y \amp\le 0 \end{align*}
Solution

The last two inequalities, \(x\ge 0\) and \(y\ge 0\text{,}\) restrict the solutions to the first quadrant. We graph the line \(x-y-2 = 0\text{,}\) and use the test point \((0, 0)\) to shade the half-plane including the origin. Finally we graph the line \(x - 2y - 6 = 0\) and again use the test point \((0, 0)\) to shade the half-plane below the line. The intersection of the shaded regions is shown at right.

system of four inequalities

To find the coordinates of the vertices \(A\text{,}\) \(B\text{,}\) \(C\text{,}\) and \(D\text{,}\) we solve simultaneously the equations of the two lines that intersect at each vertex. Thus,

For \(A\text{,}\) we solve the system

\begin{align*} x \amp= 0\\ y\amp =0 \end{align*}

to find \((0, 0)\)

For \(B\text{,}\) we solve the system

\begin{align*} x \amp= 0\\ x + 2y \amp= 6 \end{align*}

to find \((0, 3)\)

For \(C\text{,}\) we solve the system

\begin{align*} x + 2y \amp= 6\\ x -y \amp= 2 \end{align*}

to find \(\left(\dfrac{10}{3},\dfrac{4}{3} \right)\)

For \(D\text{,}\) we solve the system

\begin{align*} y \amp= 0\\ x -y \amp= 2 \end{align*}

to find \(\left(2,0 \right)\)

The vertices are the points \((0, 0)\text{,}\) \((0, 3)\text{,}\) \(\left(\dfrac{10}{3},\dfrac{4}{3} \right)\text{,}\) and \((2, 0)\text{.}\)

Exercises Problem Set 2.5

Warm Up
1.

Ivana owns two hotels, that earn annual profits of \(x\) and \(y\) dollars, respectively. She would like her total annual profit from the two hotels to be (exactly) $10,000.

  1. Fill in the table with some possible values for \(x\) and \(y\text{,}\) in thousands of dollars. (Note that it is possible for one of the hotels to sustain a loss, or negative profit.)

    \(x\) \(\qquad\) \(\qquad\) \(\qquad\) \(\qquad\)
    \(y\) \(\qquad\) \(\qquad\) \(\qquad\) \(\qquad\)
    grid
  2. Plot the ordered pairs from your table on the grid.

  3. Write an equation that describes this problem.

  4. Graph all solutions of the equation.

2.

Now suppose that Ivana would like her profit to be greater than $10,000.

  1. List four pairs of values for \(x\) and \(y\) that achieve this goal.

    \(x\) \(\qquad\) \(\qquad\) \(\qquad\) \(\qquad\)
    \(y\) \(\qquad\) \(\qquad\) \(\qquad\) \(\qquad\)
  2. Plot the four points on the grid in Problem 1.

  3. Write an inequality for \(x\) and \(y\) that describes this situation.

  4. Shade in the region that contains all solutions of the inequality. Note that all the solutions of the inequality lie on one side of the line.

3.
  1. Explain how the graph of the equation \(x + y = 10,000\) in Problem 1 is different from the graph of the inequality \(x + y \gt 10,000\) in Problem 2.

  2. Describe the graph of the inequality \(x + y\ge 10,000\text{.}\)

4.

Graph the solutions of the inequality

\begin{gather*} 3x-y\ge -2 \end{gather*}
  1. Write the equation \(3x- y = -2\) in slope-intercept form

  2. Use the slope-intercept method to graph the line.

    \(b=\)

    \(m=\dfrac{\Delta y}{\Delta x}= \)

  3. Use a test point to locate the solutions of the inequality. We can use any point for a test point, as long as it does not lie on the line! We'll use \((1, -4)\text{.}\) Plot this point on your graph. Use algebra to decide whether \((1, -4)\) is a solution of the inequality \(3x - y \le -2.\)

  4. Which side of the line includes all the solutions of the inequality? Shade that side of the line.

  5. Can you suggest an easier test point instead of \((1, -4)\text{?}\)

Skills Practice

For Problems 5–14, graph the inequality.

5.

\(y \gt 2x + 4\)

6.

\(y\gt \dfrac{4}{3}x \)

7.

\(y \lt 9 - 3x\)

8.

\(2x + 5y \ge 10\)

9.

\(x + 4y \ge -6\)

10.

\(x \gt 2y - 5\)

11.

\(y \lt \dfrac{1}{2}x \)

12.

\(0 \ge x + 3y \)

13.

\(x \ge -3\)

14.

\(-1 \lt y \le 4 \)

For Problems 15 and 16, graph the system of inequalities.

15.

\(y \gt 2 \text{,}\) \(\quad x \ge -2\)

16.

\(y\le -x\text{,}\) \(\quad y\lt 2\)

For Problems 17 and 18:

  1. Graph the system of inequalities

  2. Find the coordinates of the vertices

17.

\(\begin{aligned}[t] 2x + 3y - 6 \lt 0 \\ x\ge 0, ~ y\ge 0 \end{aligned}\)

18.

\(\begin{aligned}[t] 3x + 2y \lt 6 \\ x\ge 0, ~ y\ge 0 \end{aligned}\)

Graph each system of inequalities.

19.

\(\begin{aligned}[t] x+y\amp \le 6 \\ x+y\amp \ge 4 \end{aligned}\)

20.

\(\begin{aligned}[t] 2x-y\amp \le 4 \\ x+2y\amp \gt 6 \end{aligned}\)

Graph each system of inequalities and find the coordinates of the vertices.

21.

\(\begin{aligned}[t] 5y - 3x \le 15 \\ x+ y \le 11 \\ x\ge 0, ~ y\ge 0 \end{aligned}\)

22.

\(\begin{aligned}[t] 2y \le x \hphantom{0000}\\ 2x \le y+12 \\ x\ge 0, ~ y\ge 0 \end{aligned}\)

23.

\(\begin{aligned}[t] x + y \ge 3 \hphantom{000} \\ 2y \le x+8 \hphantom{00}\\ 2y + 3x \le 24 \\ x\ge 0, ~ y\ge 0 \end{aligned}\)

24.

\(\begin{aligned}[t] 3y - x \ge 3 \hphantom{00} \\ y - 4x \ge -10\\ y - 2 \le x \hphantom{000}\\ x\ge 0, ~ y\ge 0 \end{aligned}\)

Applications

For Problems 25–28, graph the set of solutions to the problem. For each system, \(x\ge 0\) and \(y\ge 0\text{.}\)

25.

Vassilis plans to invest at most $10,000 in two banks. One bank pays 6% annual interest and the other pays 5% annual interest. Vassilis wants at least $540 total annual interest from his two investments. Write a system of four inequalities for the amount Vassilis can invest in the two accounts, and graph the system.

26.

Jeannette has 180 acres of farmland for growing wheat or soy. She can get a profit of $36 per acre for wheat and $24 per acre for soy. She wants to have a profit of at least $5400 from her crops. Write a system of four inequalities for the number of acres she can use for each crop, and graph the solutions.

27.

Gary’s pancake recipe includes corn meal and whole wheat flour. Corn meal has 2.4 grams of linoleic acid and 2.5 milligrams of niacin per cup. Whole wheat flour has 0.8 grams of linoleic acid and 5 milligrams of niacin per cup. These two ingredients should not exceed 3 cups total. The mixture should provide at least 3.2 grams of linoleic acid and at least 10 milligrams of niacin. Write a system of five inequalities for the amount of corn meal and the amount of whole wheat flour Gary can use, and graph the solutions.

28.

Cho and his brother go into business making comic book costumes. They need 1 hour of cutting and 2 hours of sewing to make a Batman costume. They need 2 hours of cutting and 1 hour of sewing to make a Wonder Woman costume. They have available at most 10 hours per day for cutting and at most 8 hours per day for sewing. They must make at least one costume each day to stay in business. Write a system of five inequalities for the number of each type of costume Cho can make, and graph the solutions.