# 7.3 Linear Inequalities in Two or More Variables

In the systems of equations section, we looked at a company that produces a basic and premium version of its product, and we determined how many of each item they should produce to fully utilize all staffed hours. In some cases, though, it might not make the most sense for the company to utilize all the staffed hours; if the premium product has high demand and a high price, it might make more sense for the company to make as many of those, even if some staff hours go unused. In this case, the company might be most interested in what combinations of basic and premium product production are possible. For that, we need linear inequalities.

A linear equation in two variables is an equation like $f(x) = 2x + 1$, which is sometimes written without function notation as $y = 2x + 1$. Recall that the graph of this equation is a line, formed by all the points $(x, y)$ that satisfy the equation. A linear inequality in two variables is similar, but involves an inequality. Some examples:

$y < 2x + 1$

$y > 4x - 1$

$y \leq\frac{2}{3}x + 4$

$y\geq5 - 2x$

Linear inequalities can also be written with both variables on the same side of the equation, like $2x - 3y < 4$. The solution set to a linear inequality will be all the points $(x, y)$ that satisfy the inequality. Notice that the line $y = 2x + 1$ divides the coordinate plane into two halves; on one half $y < 2x + 1$, and on the other $y > 2x + 1$. The solution set to a linear inequality will be a half plane, and to show the solution set we shade the part of the coordinate plane where the points lie in the solution set.

### To graph the solution to a linear inequality

1. If necessary, rewrite the linear inequality into a form convenient for graphing, like slope-intercept form.
2. Graph the corresponding linear equation.
a. For a strict inequality (< or >), draw a dashed line to show that the points on the line are not part of the solution
b. For an inequality that includes the equal sign (≤ or ≥), draw a solid line to show that the points on the line are part of the solution.
3. Choose a test point, not on the line.
a. Substitute the test point into the inequality
b. If the inequality is true at the test point, shade the half plane on the side including the test point
c. If the inequality is not true at the test point, shade the half plane on the side that doesn’t include the test point.

#### Example 7.3 A

Graph the solution to $y<2x+1$. Answer:

Since this is a strict inequality, we will graph $y = 2x + 1$ as a dashed line. Now we choose a test point not on the line. Usually picking a point where one coordinate is zero will make things easier. Let’s use $(3, 0)$.

Substituting $(3, 0)$ into the inequality, we get

\begin{align*} 0 &< 2(3) + 1\\ 0 &< 7\\ \end{align*}

This is a true statement, so we will shade the side of plane that includes $(3, 0)$ #### Example 7.3 B

Graph the solution to $x\geq2y+4$

This is not written in a form we are used to use for graphing, so we might solve it for $y$ first.

\begin{align*} x&\geq2y + 4 &{\textrm{Subtract 2y from both sides}}\\ x - 2y&\geq4 &{\textrm{Subtract x from both sides}}\\ -2y&\geq4 - x &{\textrm{Divide by -2, reversing the order of the inequality}}\\ y&\leq-2 + \frac{1}{2}x \end{align*}

Since this inequality includes the equals sign, we will graph $y = -2 + \frac{1}{2}x$ as a solid line. Now we choose a test point not on the line. $(0, 0)$ is a convenient choice. Substituting $(0, 0)$ into the inequality, we get

\begin{align*} 0 &\leq-2+\frac{1}{2}(0)\\ 0&\leq-2\\ \end{align*}

This is a false statement, so we shade the half of the plane that does not include $(0, 0)$. #### Give It Some Thought

1. Graph the solution to $y\geq-\frac{1}{2}x + 1$

#### Example 7.3 C

A store sells peanuts for $4/pound and cashews for$8/pound, and plans to sell a new mixed-nut blend in a jar. What combinations of peanuts and cashews are possible, if they want the mix to cost $6 or less? We start by defining our variables: $p$: The number of pounds of peanuts in 1 pound of mix $c$: The number of pounds of cashews in 1 pound of mix The cost of one pound of mix will be $4p + 8c$, so all the mixes costing$6 or less will satisfy the inequality $4p + 8c\leq6$.

We can graph the equation $4p + 8c = 6$ fairly easily by finding the intercepts:
When $p = 0$,

\begin{align*} 4(0) + 8c &= 6\\ 8c &= 6\\ c &=\frac{6}{8}\\ &=\frac{3}{4}\\ \end{align*}

So the point $(0, \frac{3}{4})$ is on the line.

When $c = 0$, $4p =6$, so $p=\frac{6}{4}=\frac{3}{2}$, giving the point $(\frac{3}{2}, 0)$.

Notice the test point $(0, 0)$ will satisfy the inequality, so we will shade the side of the line including the origin. Because of the context, only values in the first quadrant are reasonable. The graph shows all the possible combinations the store could use, including 1 pound of peanuts with 1/4 pound of cashews, or 1/2 a pound of each.

## Systems of Linear Inequalities

In the systems of equations chapter, we looked for solutions to a system of linear equations – a point that would satisfy all the equations in the system. Likewise, we can consider a system of linear inequalities. The solution to a system of linear inequalities is the set of points that satisfy all the inequalities in the system.

With a single linear inequality, we can show the solution set graphically. Likewise, with a system of linear inequalities we show the solution set graphically. We find it by looking for where the regions indicated by the individual linear inequalities overlap.

#### Example 7.3 D

Graph the solution to the system of linear inequalities

\begin{align*} y &\leq x + 2\\ y &\geq 1 - x\\ \end{align*}

If we graph the solution set to each inequality individually, we get the two solutions sets shown here.  Graphing these solution sets on the same axes reveals the solution to the system of inequalities as the region where the two overlap.

The solution set, where the regions overlap: The solution set, drawn alone: #### Give it Some Thought

2. Graph the solution to the system of linear inequalities

\begin{align*} y &\leq 3 - 2x\\ y &\geq \frac{1}{2}x + 1\\ \end{align*}

The following question is similar to a problem we solved using systems in the systems chapter.

#### Example 7.3 E

A company produces a basic and premium version of its product. The basic version requires 20 minutes of assembly and 15 minutes of painting. The premium version requires 30 minutes of assembly and 30 minutes of painting. If the company has staffing for 3,900 minutes of assembly and 3,300 minutes of painting each week. How many items can then produce within the limits of their staffing?

Notice this problem is different than the question we asked in the first section, since we are no longer concerned about fully utilizing staffing, we are only interested in what is possible. As before, we’ll define

$b$: The number of basic products made
$p$: The number of premium products made.

Just as we created equations in the first section, we can now create inequalities, since we know the hours used in production needs to be less than or equal to the hours available. This leads to two inequalities:

\begin{align*} 20b + 30p &\leq 3900\\ 15b + 30p &\leq 3300\\ \end{align*}

Graphing these inequalities gives us the solution set. Since it isn’t reasonable to consider negative numbers of items, we can further restrict the solutions to the first quadrant. This could also be represented by adding the inequalities $b\geq0$ and $p\geq0$.

In the solution set we can see the solution to the system of equations we solved in the previous section: 120 basic products and 50 premium products. The solution set shows that if the company is willing to not fully utilize the staffing, there are many other possible combinations of products they could produce.

The techniques we used above are key to a branch of mathematics called linear programming, which is used extensively in business. We will explore linear programming further in the next section.

#### Give It Some Thought Answers

1. 2. ## Exercises

1. Graph by hand the solution region of each of the following systems of inequalities, identify its corner points and state whether the region is bounded or unbounded.
1. $x+y\leq 17$
$4x+y\geq 5$
2. $x+y<-2$ $4x+2y\geq 5$ Answer
3. $2x-3y>10$
$4x+3y>5$ 