# 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 [latex]f(x) = 2x + 1[/latex], which is sometimes written without function notation as [latex]y = 2x + 1[/latex]. Recall that the graph of this equation is a line, formed by all the points [latex](x, y)[/latex] that satisfy the equation. A linear **inequality** in two variables is similar, but involves an inequality. Some examples:

[latex]y < 2x + 1[/latex]

[latex]y > 4x - 1[/latex]

[latex]y \leq\frac{2}{3}x + 4[/latex]

[latex]y\geq5 - 2x[/latex]

Linear inequalities can also be written with both variables on the same side of the equation, like [latex]2x - 3y < 4[/latex]. The solution set to a linear inequality will be all the points [latex](x, y)[/latex] that satisfy the inequality. Notice that the line [latex]y = 2x + 1[/latex] divides the coordinate plane into two halves; on one half [latex]y < 2x + 1[/latex], and on the other [latex]y > 2x + 1[/latex]. 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

- If necessary, rewrite the linear inequality into a form convenient for graphing, like slope-intercept form.
- 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. - 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 [latex]y<2x+1[/latex].
**Answer: **

Since this is a strict inequality, we will graph [latex]y = 2x + 1[/latex] 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 [latex](3, 0)[/latex].

Substituting [latex](3, 0)[/latex] into the inequality, we get

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

This is a true statement, so we will shade the side of plane that includes [latex](3, 0)[/latex]

#### Example 7.3 B

Graph the solution to [latex]x\geq2y+4[/latex]

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

[latex]\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*}[/latex]

Since this inequality includes the equals sign, we will graph [latex]y = -2 + \frac{1}{2}x[/latex] as a solid line.

Now we choose a test point not on the line. [latex](0, 0)[/latex] is a convenient choice. Substituting [latex](0, 0)[/latex] into the inequality, we get

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

This is a false statement, so we shade the half of the plane that does not include [latex](0, 0)[/latex].

#### Give It Some Thought

1. Graph the solution to [latex]y\geq-\frac{1}{2}x + 1[/latex]

#### 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:

[latex]p[/latex]: The number of pounds of peanuts in 1 pound of mix

[latex]c[/latex]: The number of pounds of cashews in 1 pound of mix

The cost of one pound of mix will be [latex]4p + 8c[/latex], so all the mixes costing $6 or less will satisfy the inequality [latex]4p + 8c\leq6[/latex].

We can graph the equation [latex]4p + 8c = 6[/latex] fairly easily by finding the intercepts:

When [latex]p = 0[/latex],

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

So the point [latex](0, \frac{3}{4})[/latex] is on the line.

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

Notice the test point [latex](0, 0)[/latex] 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

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

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

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

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?

**Answer:**

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

[latex]b[/latex]: The number of basic products made

[latex]p[/latex]: 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:

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

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 [latex]b\geq0[/latex] and [latex]p\geq0[/latex].

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

## Section Exercises

Work on section 7.3 exercises in Fundamentals of Business Math Exercises. Discuss your solutions with your peers and/or course instructor.

You may consult answers to select exercises: Fundamentals of Business Math Exercises – Select Answers