# 7.5: Systems of Linear Inequalities

**At Grade**Created by: CK-12

## Learning Objectives

- Graph linear inequalities in two variables.
- Solve systems of linear inequalities.
- Solve optimization problems.

## Introduction

In the last chapter you learned how to graph a linear inequality in two variables. To do that, you graphed the equation of the straight line on the coordinate plane. The line was solid for \begin{align*}\le\end{align*}

In this section, we’ll see how to graph two or more linear inequalities on the same coordinate plane. The inequalities are graphed separately on the same graph, and the solution for the system is the common shaded region between all the inequalities in the system. One linear inequality in two variables divides the plane into two **half-planes**. A **system** of two or more linear inequalities can divide the plane into more complex shapes.

Let’s start by solving a system of two inequalities.

## Graph a System of Two Linear Inequalities

**Example 1**

*Solve the following system:*

\begin{align*}2x + 3y & \le 18\\
x - 4y & \le 12\end{align*}

**Solution**

Solving systems of linear inequalities means graphing and finding the intersections. So we graph each inequality, and then find the intersection *regions* of the solution.

First, let’s rewrite each equation in slope-intercept form. (Remember that this form makes it easier to tell which region of the coordinate plane to shade.) Our system becomes

\begin{align*}3y \le -2x + 18 \qquad \qquad \qquad \qquad y \le - \frac{2}{3}x + 6\\
{\;} \qquad \qquad \qquad \qquad \quad \Rightarrow\!\\
-4y \le -x + 12 \qquad \qquad \qquad \qquad y \ge \frac{x}{4} - 3\end{align*}

Notice that the inequality sign in the second equation changed because we divided by a negative number!

For this first example, we’ll graph each inequality separately and then combine the results.

Here’s the graph of the first inequality:

The line is solid because the equals sign is included in the inequality. Since the inequality is **less** than or equal to, we shade **below** the line.

And here’s the graph of the second inequality:

The line is solid again because the equals sign is included in the inequality. We now shade **above** the line because \begin{align*}y\end{align*} is **greater** than or equal to.

When we combine the graphs, we see that the blue and red shaded regions overlap. The area where they overlap is the area where both inequalities are true. Thus that area (shown below in purple) is the solution of the system.

The kind of solution displayed in this example is called **unbounded**, because it continues forever in at least one direction (in this case, forever upward and to the left).

**Example 2**

There are also situations where a system of inequalities has no solution. For example, let’s solve this system.

\begin{align*}y & \le 2x - 4\\ y & > 2x + 6\end{align*}

**Solution**

We start by graphing the first line. The line will be solid because the equals sign is included in the inequality. We must shade downwards because \begin{align*}y\end{align*} is less than.

Next we graph the second line on the same coordinate axis. This line will be dashed because the equals sign is not included in the inequality. We must shade upward because \begin{align*}y\end{align*} is greater than.

It doesn’t look like the two shaded regions overlap at all. The two lines have the same slope, so we know they are parallel; that means that the regions indeed won’t ever overlap since the lines won’t ever cross. So this system of inequalities has no solution.

But a system of inequalities can sometimes have a solution even if the lines are parallel. For example, what happens if we swap the directions of the inequality signs in the system we just graphed?

To graph the system

\begin{align*}y \ge 2x - 4\!\\ y < 2x + 6\end{align*},

we draw the same lines we drew for the previous system, but we shade *upward* for the first inequality and *downward* for the second inequality. Here is the result:

You can see that this time the shaded regions overlap. The area between the two lines is the solution to the system.

## Graph a System of More Than Two Linear Inequalities

When we solve a system of just two linear inequalities, the solution is always an **unbounded** region—one that continues infinitely in at least one direction. But if we put together a system of more than two inequalities, sometimes we can get a solution that is **bounded**—a finite region with three or more sides.

Let’s look at a simple example.

**Example 3**

*Find the solution to the following system of inequalities.*

\begin{align*}3x - y & < 4\\ 4y + 9x & < 8\\ x & \ge 0\\ y & \ge 0\end{align*}

**Solution**

Let’s start by writing our inequalities in slope-intercept form.

\begin{align*}y & > 3x - 4\\ y & < - \frac{9}{4}x + 2\\ x & \ge 0\\ y & \ge 0\end{align*}

Now we can graph each line and shade appropriately. First we graph \begin{align*}y > 3x - 4\end{align*} :

Next we graph \begin{align*}y < - \frac{9}{4}x + 2\end{align*} :

Finally we graph \begin{align*}x \ge 0\end{align*} and \begin{align*}y \ge 0\end{align*}, and we’re left with the region below; this is where all four inequalities overlap.

The solution is **bounded** because there are lines on all sides of the solution region. In other words, the solution region is a bounded geometric figure, in this case a triangle.

Notice, too, that only three of the lines we graphed actually form the boundaries of the region. Sometimes when we graph multiple inequalities, it turns out that some of them don’t affect the overall solution; in this case, the solution would be the same even if we’d left out the inequality \begin{align*}y > 3x - 4\end{align*}. That’s because the solution region of the system formed by the other three inequalities is completely contained within the solution region of that fourth inequality; in other words, any solution to the other three inequalities is *automatically* a solution to that one too, so adding that inequality doesn’t narrow down the solution set at all.

But that wasn’t obvious until we actually drew the graph!

## Solve Real-World Problems Using Systems of Linear Inequalities

A lot of interesting real-world problems can be solved with systems of linear inequalities.

For example, you go to your favorite restaurant and you want to be served by your best friend who happens to work there. However, your friend only waits tables in a certain region of the restaurant. The restaurant is also known for its great views, so you want to sit in a certain area of the restaurant that offers a good view. Solving a system of linear inequalities will allow you to find the area in the restaurant where you can sit to get the best view and be served by your friend.

Often, systems of linear inequalities deal with problems where you are trying to find the best possible situation given a set of constraints. Most of these application problems fall in a category called **linear programming** problems.

**Linear programming** is the process of taking various linear inequalities relating to some situation, and finding the *best* possible value under those conditions. A typical example would be taking the limitations of materials and labor at a factory, then determining the best production levels for maximal profits under those conditions. These kinds of problems are used every day in the organization and allocation of resources. These real-life systems can have dozens or hundreds of variables, or more. In this section, we’ll only work with the simple two-variable linear case.

The general process is to:

- Graph the inequalities (called
**constraints**) to form a bounded area on the coordinate plane (called**the feasibility region**). - Figure out the coordinates of the corners (or vertices) of this feasibility region by solving the system of equations that applies to each of the intersection points.
- Test these corner points in the formula (called the
**optimization equation**) for which you're trying to find the**maximum**or**minimum**value.

**Example 4**

*If* \begin{align*}z = 2x + 5y\end{align*}, *find the maximum and minimum values of* \begin{align*}z\end{align*} *given these constraints:*

\begin{align*}2x - y & \le 12\\ 4x + 3y & \ge 0\\ x - y & \le 6\end{align*}

**Solution**

First, we need to find the solution to this system of linear inequalities by graphing and shading appropriately. To graph the inequalities, we rewrite them in slope-intercept form:

\begin{align*}y & \ge 2x - 12\\ y & \ge - \frac{4}{3}x\\ y & \ge x - 6\end{align*}

These three linear inequalities are called the **constraints**, and here is their graph:

The shaded region in the graph is called the **feasibility region**. All possible solutions to the system occur in that region; now we must try to find the maximum and minimum values of the variable \begin{align*}z\end{align*} within that region. In other words, which values of \begin{align*}x\end{align*} and \begin{align*}y\end{align*} within the feasibility region will give us the greatest and smallest overall values for the expression \begin{align*}2x + 5y\end{align*}?

Fortunately, we don’t have to test every point in the region to find that out. It just so happens that the minimum or maximum value of the optimization equation in a linear system like this will always be found at one of the vertices (the corners) of the feasibility region; we just have to figure out *which* vertices. So for each vertex—each point where two of the lines on the graph cross—we need to solve the system of just those two equations, and then find the value of \begin{align*}z\end{align*} at that point.

**The first system** consists of the equations \begin{align*}y = 2x - 12\end{align*} and \begin{align*}y = - \frac{4}{3}x\end{align*}. We can solve this system by substitution:

\begin{align*}- \frac{4}{3}x &= 2x - 12 \Rightarrow -4x = 6x - 36 \Rightarrow -10x = -36 \Rightarrow x = 3.6\\ y &= 2x - 12 \Rightarrow y = 2(3.6) - 12 \Rightarrow y = - 4.8\end{align*} The lines intersect at the point (3.6, -4.8).

**The second system** consists of the equations \begin{align*}y = 2x - 12\end{align*} and \begin{align*}y = x - 6\end{align*}. Solving this system by substitution:

\begin{align*}x - 6 &= 2x - 12 \Rightarrow 6 = x \Rightarrow x = 6\\ y &= x - 6 \Rightarrow y = 6 - 6 \Rightarrow y = 6\end{align*} The lines intersect at the point (6, 6).

**The third system** consists of the equations \begin{align*}y = - \frac{4}{3}x\end{align*} and \begin{align*}y = x - 6\end{align*}. Solving this system by substitution:

\begin{align*}x - 6 &= - \frac{4}{3}x \Rightarrow 3x - 18 = -4x \Rightarrow 7x = 18 \Rightarrow x = 2.57\\ y &= x - 6 \Rightarrow y = 2.57 - 6 \Rightarrow y = -3.43\end{align*} The lines intersect at the point (2.57, -3.43).

So now we have three different points that might give us the maximum and minimum values for \begin{align*}z\end{align*}. To find out which ones actually do give the maximum and minimum values, we can plug the points into the optimization equation \begin{align*}z = 2x + 5y\end{align*}.

When we plug in (3.6, -4.8), we get \begin{align*}z = 2(3.6) +5(-4.8) = -16.8\end{align*}.

When we plug in (6, 0), we get \begin{align*}z = 2(6) + 5(0) = 12\end{align*}.

When we plug in (2.57, -3.43), we get \begin{align*}z = 2(2.57) + 5(-3.43) = -12.01\end{align*}.

So we can see that **the point (6, 0) gives us the maximum possible value for \begin{align*}z\end{align*} and the point (3.6, –4.8) gives us the minimum value.**

In the previous example, we learned how to apply the method of linear programming in the abstract. In the next example, we’ll look at a real-life application.

**Example 5**

*You have $10,000 to invest, and three different funds to choose from. The municipal bond fund has a 5% return, the local bank's CDs have a 7% return, and a high-risk account has an expected 10% return. To minimize risk, you decide not to invest any more than $1,000 in the high-risk account. For tax reasons, you need to invest at least three times as much in the municipal bonds as in the bank CDs. What’s the best way to distribute your money given these constraints?*

**Solution**

Let’s define our variables:

\begin{align*}x\end{align*} is the amount of money invested in the municipal bond at 5% return

\begin{align*}y\end{align*} is the amount of money invested in the bank’s CD at 7% return

\begin{align*}10000 - x - y\end{align*} is the amount of money invested in the high-risk account at 10% return

\begin{align*}z\end{align*} is the total interest returned from all the investments, so \begin{align*}z = .05x + .07y + .1(10000 - x - y)\end{align*} or \begin{align*}z = 1000 - 0.05x - 0.03y\end{align*}. This is the amount that we are trying to maximize. Our goal is to find the values of \begin{align*}x\end{align*} and \begin{align*}y\end{align*} that maximizes the value of \begin{align*}z\end{align*}.

Now, let’s write inequalities for the *constraints*:

You decide not to invest more than $1000 in the high-risk account—that means:

\begin{align*}10000 - x - y \le 1000\end{align*}

You need to invest at least three times as much in the municipal bonds as in the bank CDs—that means:

\begin{align*}3y \le x\end{align*} Also, you can’t invest less than zero dollars in each account, so:

\begin{align*}x & \ge 0\\ y & \ge 0\\ 10000 - x - y & \ge 0\end{align*}

To summarize, we must maximize the expression \begin{align*}z = 1000 - .05x - .03y\end{align*} using the constraints:

\begin{align*}& 10000 - x - y \le 1000 && && y \ge 9000 - x\\ & 3y \le x && && y \le \frac{x}{3}\\ & x \ge 0 && \text{Or in slope-intercept form:} && x \ge 0\\ & y \ge 0 && && y \ge 0\\ & 10000 - x - y \ge 0 && && y \le 10000 - x\end{align*}

**Step 1:** Find the solution region to the set of inequalities by graphing each line and shading appropriately. The following figure shows the overlapping region:

The purple region is the feasibility region where all the possible solutions can occur.

**Step 2:** Next we need to find the corner points of the feasibility region. Notice that there are four corners. To find their coordinates, we must pair up the relevant equations and solve each resulting system.

*System 1:*

\begin{align*}y = \frac{x}{3}\!\\ y = 10000 - x\end{align*}

Substitute the first equation into the second equation:

\begin{align*}\frac{x}{3} &= 10000 - x \Rightarrow x = 30000 - 3x \Rightarrow 4x = 30000 \Rightarrow x = 7500\\ y &= \frac{x}{3} \Rightarrow y = \frac{7500}{3} \Rightarrow y = 2500\end{align*}

The intersection point is (7500, 2500).

*System 2:*

\begin{align*}y = \frac{x}{3}\!\\ y = 9000 - x\end{align*}

Substitute the first equation into the second equation:

\begin{align*}\frac{x}{3} &= 9000 - x \Rightarrow x = 27000 - 3x \Rightarrow 4x = 27000 \Rightarrow x = 6750\\ y &= \frac{x}{3} \Rightarrow y = \frac{6750}{3} \Rightarrow y = 2250\end{align*}

The intersection point is (6750, 2250).

*System 3:*

\begin{align*}y = 0\!\\ y = 10000 - x\end{align*}.

The intersection point is (10000, 0).

*System 4:*

\begin{align*}y = 0\!\\ y = 9000 - x\end{align*}.

The intersection point is (9000, 0).

**Step 3:** In order to find the maximum value for \begin{align*}z\end{align*}, we need to plug all the intersection points into the equation for \begin{align*}z\end{align*} and find which one yields the largest number.

(7500, 2500): \begin{align*}z = 1000 - 0.05(7500) - 0.03(2500) = 550\end{align*}

(6750, 2250): \begin{align*}z = 1000 - 0.05(6750) - 0.03(2250) = 595\end{align*}

(10000, 0): \begin{align*}z = 1000 - 0.05(10000) - 0.03(0) = 500\end{align*}

(9000, 0): \begin{align*}z = 1000 - 0.05(9000) - 0.03(0) = 550\end{align*}

The maximum return on the investment of $595 occurs at the point (6750, 2250). This means that:

**$6,750 is invested in the municipal bonds.**

**$2,250 is invested in the bank CDs.**

**$1,000 is invested in the high-risk account.**

Graphing calculators can be very useful for problems that involve this many inequalities. The video at http://www.youtube.com/watch?v=__wAxkYmhvY shows a real-world linear programming problem worked through in detail on a graphing calculator, although the methods used there can also be used for pencil-and paper solving.

## Review Questions

- Consider the system \begin{align*}y < 3x - 5\!\\ y > 3x - 5\end{align*}. Is it consistent or inconsistent? Why?
- Consider the system \begin{align*}y \le 2x + 3\!\\ y \ge 2x + 3\end{align*}. Is it consistent or inconsistent? Why?
- Consider the system \begin{align*}y \le -x + 1\!\\ y > -x + 1\end{align*}. Is it consistent or inconsistent? Why?
- In example 3 in this lesson, we solved a system of four inequalities and saw that one of the inequalities, \begin{align*}y > 3x - 4\end{align*}, didn’t affect the solution set of the system.
- What would happen if we changed that inequality to \begin{align*}y < 3x - 4\end{align*}?
- What’s another inequality that we could add to the original system without changing it? Show how by sketching a graph of that inequality along with the rest of the system.
- What’s another inequality that we could add to the original system to make it inconsistent? Show how by sketching a graph of that inequality along with the rest of the system.

- Recall the compound inequalities in one variable that we worked with back in chapter 6. Compound inequalities with “and” are simply systems like the ones we are working with here, except with one variable instead of two.
- Graph the inequality \begin{align*}x > 3\end{align*} in two dimensions. What’s another inequality that could be combined with it to make an inconsistent system?
- Graph the inequality \begin{align*}x \le 4\end{align*} on a number line. What two-dimensional system would have a graph that looks just like this one?

Find the solution region of the following systems of inequalities.

- \begin{align*}x - y < -6\!\\ 2y \ge 3x + 17\end{align*}
- \begin{align*}4y - 5x < 8\!\\ -5x \ge 16 - 8y\end{align*}
- \begin{align*}5x - y \ge 5\!\\ 2y - x \ge -10\end{align*}
- \begin{align*}5x + 2y \ge -25\!\\ 3x - 2y \le 17\!\\ x - 6y \ge 27\end{align*}
- \begin{align*}2x - 3y \le 21\!\\ x + 4y \le 6\!\\ 3x + y \ge -4\end{align*}
- \begin{align*}12x - 7y < 120\!\\ 7x - 8y \ge 36\!\\ 5x + y \ge 12\end{align*}

Solve the following linear programming problems.

- Given the following constraints, find the maximum and minimum values of \begin{align*}z = -x + 5y\end{align*}: \begin{align*}x + 3y \le 0\!\\ x - y \ge 0\!\\ 3x - 7y \le 16\end{align*}
- Santa Claus is assigning elves to work an eight-hour shift making toy trucks. Apprentice elves draw a wage of five candy canes per hour worked, but can only make four trucks an hour. Senior elves can make six trucks an hour and are paid eight candy canes per hour. There’s only room for nine elves in the truck shop, and due to a candy-makers’ strike, Santa Claus can only pay out 480 candy canes for the whole 8-hour shift.
- How many senior elves and how many apprentice elves should work this shift to maximize the number of trucks that get made?
- How many trucks will be made?
- Just before the shift begins, the apprentice elves demand a wage increase; they insist on being paid seven candy canes an hour. Now how many apprentice elves and how many senior elves should Santa assign to this shift?
- How many trucks will now get made, and how many candy canes will Santa have left over?

- In Adrian’s Furniture Shop, Adrian assembles both bookcases and TV cabinets. Each type of furniture takes her about the same time to assemble. She figures she has time to make at most 18 pieces of furniture by this Saturday. The materials for each bookcase cost her $20 and the materials for each TV stand costs her $45. She has $600 to spend on materials. Adrian makes a profit of $60 on each bookcase and a profit of $100 on each TV stand.
- Set up a system of inequalities. What \begin{align*}x-\end{align*} and \begin{align*}y-\end{align*}values do you get for the point where Adrian’s profit is maximized? Does this solution make sense in the real world?
- What two possible real-world \begin{align*}x-\end{align*}values and what two possible real-world \begin{align*}y-\end{align*}values would be closest to the values in that solution?
- With two choices each for \begin{align*}x\end{align*} and \begin{align*}y\end{align*}, there are four possible combinations of \begin{align*}x-\end{align*} and \begin{align*}y-\end{align*}values. Of those four combinations, which ones actually fall within the feasibility region of the problem?
- Which one of those feasible combinations seems like it would generate the most profit? Test out each one to confirm your guess. How much profit will Adrian make with that combination?
- Based on Adrian’s previous sales figures, she doesn’t think she can sell more than 8 TV stands. Now how many of each piece of furniture should she make, and what will her profit be?
- Suppose Adrian is confident she can sell all the furniture she can make, but she doesn’t have room to display more than 7 bookcases in her shop. Now how many of each piece of furniture should she make, and what will her profit be?

- Here’s a “linear programming” problem on a line instead of a plane: Given the constraints \begin{align*}x \le 5\end{align*} and \begin{align*}x \ge -2\end{align*}, maximize the value of \begin{align*}y\end{align*} where \begin{align*}y = x + 3\end{align*}.

## Texas Instruments Resources

*In the CK-12 Texas Instruments Algebra I FlexBook, there are graphing calculator activities designed to supplement the objectives for some of the lessons in this chapter. See http://www.ck12.org/flexr/chapter/9617.*

### Notes/Highlights Having trouble? Report an issue.

Color | Highlighted Text | Notes | |
---|---|---|---|

Show More |