2.7: Solving Inequalities with Two Variables
 Page ID
 6389
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{\!\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
Skills to Develop
 Identify and check solutions to inequalities with two variables.
 Graph solution sets of linear inequalities with two variables.
Solutions to Inequalities with Two Variables
We know that a linear equation with two variables has infinitely many ordered pair solutions that form a line when graphed. A linear inequality with two variables^{65}, on the other hand, has a solution set consisting of a region that defines half of the plane.
Linear Equation  Linear Inequality 

\(y = \frac { 3 } { 2 } x + 3\)  \(y \leq \frac { 3 } { 2 } x + 3\) 
Table 2.7.1
For the inequality, the line defines the boundary of the region that is shaded. This indicates that any ordered pair in the shaded region, including the boundary line, will satisfy the inequality. To see that this is the case, choose a few test points^{66} and substitute them into the inequality.
Test Point  \(y \leq \frac { 3 } { 2 } x + 3\) 
\(( 0,0 )\)  \(\begin{array} { l } { 0 \leq \frac { 3 } { 2 } ( 0 ) + 3 } \\ { 0 \leq 3 } \:\:\:\color{Cerulean}{✓} \end{array}\) 
\(( 2,1 )\)  \(\begin{array} { l } { 1 \leq \frac { 3 } { 2 } ( 2 ) + 3 } \\ { 1 \leq 3 + 3 } \\ { 1 \leq 6 }\:\:\:\color{Cerulean}{✓} \end{array}\) 
\((  2 ,  1 )\)  \(\begin{array} { l } {  1 \leq \frac { 3 } { 2 } (  2 ) + 3 } \\ {  1 \leq  3 + 3 } \\ {  1 \leq 0 } \:\:\:\color{Cerulean}{✓} \end{array}\) 
Table 2.7.2
Also, we can see that ordered pairs outside the shaded region do not solve the linear inequality.
Test Point  \(y \leq \frac { 3 } { 2 } x + 3\) 
\((2,3)\)  \(\begin{array} { l } { 3 \leq \frac { 3 } { 2 } (  2 ) + 3 } \\ { 3 \leq  3 + 3 } \\ { 3 \leq 0 \quad x }\color{red}{✗} \end{array}\ 
Table 2.7.3
The graph of the solution set to a linear inequality is always a region. However, the boundary may not always be included in that set. In the previous example, the line was part of the solution set because of the “or equal to” part of the inclusive inequality \(≤\). If given a strict inequality \(<\), we would then use a dashed line to indicate that those points are not included in the solution set.
Noninclusive Boundary  Inclusive Boundary 

\(y < \frac { 3 } { 2 } x + 3\)  \(y \leq \frac { 3 } { 2 } x + 3\) 
Table 2.7.4
Consider the point \((0, 3)\) on the boundary; this ordered pair satisfies the linear equation. It is the “or equal to” part of the inclusive inequality that makes the ordered pair part of the solution set.
\(y < \frac { 3 } { 2 } x + 3\)  \(y \leq \frac { 3 } { 2 } x + 3\) 
\(\begin{array} { l } { 3 < \frac { 3 } { 2 } ( 0 ) + 3 } \\ { 3 < 0 + 3 } \\ { 3 < 3 x } \color{red}{✗}\end{array}\)  \(\begin{array} { l } { 3 \leq \frac { 3 } { 2 } ( 0 ) + 3 } \\ { 3 \leq 0 + 3 } \\ { 3 \leq 3 }\color{Cerulean}{✓} \end{array}\) 
Table 2.7.5
So far we have seen examples of inequalities that were “less than.” Now consider the following graphs with the same boundary:
Greater Than (Above)  Less Than (Below) 

\(y \geq \frac { 3 } { 2 } x + 3\)  \(y \leq \frac { 3 } { 2 } x + 3\) 
Table 2.7.6
Given the graphs above, what might we expect if we use the origin (0, 0) as a test point?
\(y \geq \frac { 3 } { 2 } x + 3\)  \(y \leq \frac { 3 } { 2 } x + 3\) 
\(\begin{array} { l } { 0 \geq \frac { 3 } { 2 } ( 0 ) + 3 } \\ { 0 \geq 0 + 3 } \\ { 0 \geq 3 } \color{red}{✗} \end{array}\)  \(\begin{array} { l } { 0 \leq \frac { 3 } { 2 } ( 0 ) + 3 } \\ { 0 \leq 0 + 3 } \\ { 0 \leq 3 } \color{Cerulean}{✓} \end{array}\) 
Table 2.7.7
Example \(\PageIndex{1}\):
Determine whether or not \((2, \frac{1}{2})\) is a solution to \(5x − 2y < 10\).
Solution
Substitute the \(x\) and \(y\)values into the equation and see if a true statement is obtained.
\(\begin{array} { r } { 5 x  2 y < 10 } \\ { 5 ( \color{Cerulean}{2}\color{Black}{ )}  2 \left( \color{Cerulean}{\frac { 1 } { 2 }} \right) < 10 } \\ { 10  1 < 10 } \\ { 9 < 10 } \color{Cerulean}{✓} \end{array}\)
Answer:
\((2, \frac{1}{2})\) is a solution.
These ideas and techniques extend to nonlinear inequalities with two variables. For example, all of the solutions to \(y > x^{2}\) are shaded in the graph below.
The boundary of the region is a parabola, shown as a dashed curve on the graph, and is not part of the solution set. However, from the graph we expect the ordered pair \((−1,4)\) to be a solution. Furthermore, we expect that ordered pairs that are not in the shaded region, such as \((−3, 2)\), will not satisfy the inequality.
Check \((1, 4)\)  Check \((3, 2)\) 
\(\begin{array} { l } { y > x ^ { 2 } } \\ { 4 > (  1 ) ^ { 2 } } \\ { 4 > 1 } \color{Cerulean}{✓}\end{array}\)  \(\begin{array} { l } { y > x ^ { 2 } } \\ { 2 > (  3 ) ^ { 2 } } \\ { 2 > 9 } \color{red}{✗}\end{array}\) 
Table 2.7.8
Following are graphs of solutions sets of inequalities with inclusive parabolic boundaries.
\(y \leq ( x  1 ) ^ { 2 }  2\)  \(y \geq ( x  1 ) ^ { 2 }  2\) 
Table 2.7.9
You are encouraged to test points in and out of each solution set that is graphed above.
Exercise \(\PageIndex{1}\)
Is \((3, 2)\) a solution to \(2x3y<0\)?
 Answer

No
Graphing Solutions to Inequalities with Two Variables
Solutions to linear inequalities are a shaded halfplane, bounded by a solid line or a dashed line. This boundary is either included in the solution or not, depending on the given inequality. If we are given a strict inequality, we use a dashed line to indicate that the boundary is not included. If we are given an inclusive inequality, we use a solid line to indicate that it is included. The steps for graphing the solution set for an inequality with two variables are shown in the following example.
Example \(\PageIndex{2}\):
Graph the solution set \(y>−3x+1\).
Solution

Step 1: Graph the boundary. Because of the strict inequality, we will graph the boundary \(y=−3x+1\) using a dashed line. We can see that the slope is \(m=−3=−\frac{3}{1}=\frac{rise}{run}\) and the \(y\)intercept is \((0, 1)\).
Figure 2.7.10

Step 2: Test a point that is not on the boundary. A common test point is the origin, \((0, 0)\). The test point helps us determine which half of the plane to shade.
Test Point \(y >  3 x + 1\) \((0,0)\) \(\begin{array} { l } { 0 >  3 ( 0 ) + 1 } \\ { 0 > 1 }\color{red}{✗} \end{array}\)  Step 3: Shade the region containing the solutions. Since the test point \((0, 0)\) was not a solution, it does not lie in the region containing all the ordered pair solutions. Therefore, shade the half of the plane that does not contain this test point. In this case, shade above the boundary line.
Answer:
Consider the problem of shading above or below the boundary line when the inequality is in slopeintercept form. If \(y > mx + b\), then shade above the line. If \(y < mx + b\), then shade below the line. Shade with caution; sometimes the boundary is given in standard form, in which case these rules do not apply.
Example \(\PageIndex{3}\):
Graph the solution set \(2 x  5 y \geq  10\).
Solution
Here the boundary is defined by the line \(2x − 5y = −10\). Since the inequality is inclusive, we graph the boundary using a solid line. In this case, graph the boundary line using intercepts.
To find the \(x\)intercept, set \(y = 0\).  To find the \(y\)intercept, set \(x = 0\). 
\(\begin{array} { c } { 2 x  5 y =  10 } \\ { 2 x  5 ( \color{Cerulean}{0}\color{Black}{ )} =  10 } \\ { 2 x =  10 } \\ { x =  5 } \end{array}\)  \(\begin{array} { r } { 2 x  5 y =  10 } \\ { 2 ( \color{Cerulean}{0}\color{Black}{ )}  5 y =  10 } \\ {  5 y =  10 } \\ { y = 2 } \end{array}\) 
\(x\)intercept: \((−5, 0)\)  \(y\)intercept: \((0, 2)\) 
Table 2.7.11
Next, test a point; this helps decide which region to shade.
Test Point  \(2 x  5 y \geq  10\) 
\((0,0)\)  \(\begin{aligned} 2 ( 0 )  5 ( 0 ) & \geq  10 \\ 0 & \geq  10 \color{Cerulean}{✓}\end{aligned}\) 
Table 2.7.12
Since the test point is in the solution set, shade the half of the plane that contains it.
Answer:
In this example, notice that the solution set consists of all the ordered pairs below the boundary line. This may seem counterintuitive because the original inequality involved “greater than” \(≥\). This illustrates that it is a best practice to actually test a point. Solve for \(y\) and you see that the shading is correct.
\(\begin{aligned} 2 x  5 y & \geq  10 \\ 2 x  5 y \color{Cerulean}{ 2 x} & \geq  10 \color{Cerulean}{2x} \\  5 y & \geq  2 x  10 \\ \frac {  5 y } { \color{Cerulean}{ 5} } & \color{OliveGreen}{\leq} \color{Black}{\frac {  2 x  10 } { \color{Cerulean}{ 5} }} \:\:\:\color{Cerulean}{Reverse\: the\: inequality.}\\ y & \leq \frac { 2 } { 5 } x + 2 \end{aligned}\)
In slopeintercept form, you can see that the region below the boundary line should be shaded. An alternate approach is to first express the boundary in slopeintercept form, graph it, and then shade the appropriate region.
Example \(\PageIndex{4}\):
Graph the solution set \(y <2\).
Solution
First, graph the boundary line \(y = 2\) with a dashed line because of the strict inequality. Next, test a point.
Test Point  \(y<2\) 
\((0,0)\)  \(0 < 2\color{Cerulean}{✓}\) 
Table 2.7.13
In this case, shade the region that contains the test point.
Answer:
Exercise \(\PageIndex{2}\)
Graph the solution set \(2 x  3 y < 0\).
The steps are the same for nonlinear inequalities with two variables. Graph the boundary first and then test a point to determine which region contains the solutions.
Example \(\PageIndex{5}\):
Graph the solution set \(y < ( x + 2 ) ^ { 2 }  1\).
Solution
The boundary is a basic parabola shifted \(2\) units to the left and \(1\) unit down. Begin by drawing a dashed parabolic boundary because of the strict inequality.
Next, test a point.
Test Point  \(y < ( x + 2 ) ^ { 2 }  1\) 
\((0,0)\)  \(\begin{array} { l } { 0 < ( 0 + 2 ) ^ { 2 }  1 } \\ { 0 < 4  1 } \\ { 0 < 3 } \color{Cerulean}{✓}\end{array}\) 
Table 2.7.14
In this case, shade the region that contains the test point \((0, 0)\).
Answer:
Example \(\PageIndex{6}\):
Graph the solution set \(y \geq x ^ { 2 } + 3\).
Solution
The boundary is a basic parabola shifted \(3\) units up. It is graphed using a solid curve because of the inclusive inequality.
Next, test a point.
Test Point  \(y \geq x ^ { 2 } + 3\) 
\((0,0)\)  \(\begin{array} { l } { 0 \geq 0 ^ { 2 } + 3 } \\ { 0 \geq 3 } \color{red}{✗} \end{array}\) 
Table 2.7.15
In this case, shade the region that does not contain the test point \((0,0)\).
Answer:
Exercise \(\PageIndex{3}\)
Graph the solution set \(y <  x  1   3\).
Key Takeaways
 Linear inequalities with two variables have infinitely many ordered pair solutions, which can be graphed by shading in the appropriate half of a rectangular coordinate plane.
 To graph the solution set of an inequality with two variables, first graph the boundary with a dashed or solid line depending on the inequality. If given a strict inequality, use a dashed line for the boundary. If given an inclusive inequality, use a solid line. Next, choose a test point not on the boundary. If the test point solves the inequality, then shade the region that contains it; otherwise, shade the opposite side.
 Check your answer by testing points in and out of the shading region to verify that they solve the inequality or not.
Exercise \(\PageIndex{4}\)
Is the ordered pair a solution to the given inequality?
 \(5 x  y >  2 ; (  3 ,  4 )\)
 \(4 x  y <  8 ; (  3 ,  10 )\)
 \(6 x  15 y \geq  1 ; \left( \frac { 1 } { 2 } ,  \frac { 1 } { 3 } \right)\)
 \(x  2 y \geq 2 ; \left( \frac { 2 } { 3 } ,  \frac { 5 } { 6 } \right)\)
 \(\frac { 3 } { 4 } x  \frac { 2 } { 3 } y < \frac { 3 } { 2 } ; ( 1 ,  1 )\)
 \(\frac { 2 } { 5 } x + \frac { 4 } { 3 } y > \frac { 1 } { 2 } ; (  2,1 )\)
 \(y \leq x ^ { 2 }  1 ; (  1,1 )\)
 \(y \geq x ^ { 2 } + 3 ; (  2,0 )\)
 \(y \geq ( x  5 ) ^ { 2 } + 1 ; ( 3,4 )\)
 \(y \leq 2 ( x + 1 ) ^ { 2 }  3 ; (  1 ,  2 )\)
 \(y > 3   x  ; (  4 ,  3 )\)
 \(y <  x   8 ; ( 5 ,  7 )\)
 \(y >  2 x  1   3 ; (  1,3 )\)
 \(y <  3 x  2  + 2 ; (  2,10 )\)
 Answer

1. No
3. Yes
5. Yes
7. No
9. No
11. No
13. Yes
Exercise \(\PageIndex{5}\)
Graph the solution set.
 \(y < 2 x  1\)
 \(y > −4x + 1\)
 \(y ≥ −\frac{2}{3} x + 3\)
 \(y ≤ \frac{4}{3} x − 3\)
 \(2x + 3y ≤ 18\)
 \(5x + 2y ≤ 8\)
 \(6x − 5y > 30\)
 \(8x − 6y < 24\)
 \(3x − 4y < 0\)
 \(x − 3y > 0\)
 \(x + y ≥ 0\)
 \(x − y ≥ 0\)
 \(y ≤ −2\)
 \(y > −3\)
 \(x < −2\)
 \(x ≥ −3\)
 \(\frac { 1 } { 6 } x + \frac { 1 } { 10 } y \leq \frac { 1 } { 2 }\)
 \(\frac { 3 } { 8 } x + \frac { 1 } { 2 } y \geq \frac { 3 } { 4 }\)
 \(\frac { 1 } { 12 } x  \frac { 1 } { 6 } y < \frac { 2 } { 3 }\)
 \(\frac { 1 } { 3 } x  \frac { 1 } { 9 } y > \frac { 4 } { 3 }\)
 \(5x ≤ −4y − 12\)
 \(−4x ≤ 12 − 3y\)
 \(4y + 2 < 3x\)
 \(8x < 9 − 6y\)
 \(5 ≥ 3x − 15y\)
 \(2 x \geq 6  9 y\)
 Write an inequality that describes all points in the upper halfplane above the \(x\)axis.
 Write an inequality that describes all points in the lower halfplane below the \(x\)axis.
 Write an inequality that describes all points in the halfplane left of the \(y\)axis.
 Write an inequality that describes all points in the halfplane right of the \(y\)axis.
 Write an inequality that describes all ordered pairs whose \(y\)coordinate is at least \(k\) units.
 Write an inequality that describes all ordered pairs whose \(x\)coordinate is at most \(k\) units.
 Answer

1.
3.
5.
7.
9.
11.
13.
15.
17.
19.
21.
23.
25.
27. \(y > 0\)
29. \(x < 0\)
31. \(y \geq k\)
Exercise \(\PageIndex{6}\)
Graph the solution set.
 \(y ≤ x^{2} + 3\)
 \(y > x^{2} − 2\)
 \(y ≤ −x^{2}\)
 \(y ≥ −x^{2}\)
 \(y > (x + 1)^{2}\)
 \(y > (x − 2)^{2}\)
 \(y ≤ (x − 1)^{2} + 2\)
 \(y ≤ (x + 3)^{2} − 1\)
 \(y < −x^{2} + 1\)
 \(y > −(x − 2)^{2} + 1\)
 \(y ≥ x − 2\)
 \(y < x + 1\)
 \(y < x − 3\)
 \(y ≤ x + 2\)
 \(y > − x + 1\)
 \(y ≤ − x − 2\)
 \(y ≥ x + 3 − 2\)
 \(y ≥ x − 2 − 1\)
 \(y < − x + 4 + 2\)
 \(y > − x − 4 − 1\)
 \(y > x^{3} − 1\)
 \(y ≤ x^{3} + 2\)
 \(y ≤ \sqrt{x}\)
 \(y > \sqrt{x}− 1\)
 A rectangular pen is to be constructed with at most \(200\) feet of fencing. Write a linear inequality in terms of the length \(l\) and the width \(w\). Sketch the graph of all possible solutions to this problem.
 A company sells one product for \($8\) and another for \($12\). How many of each product must be sold so that revenues are at least \($2,400\)? Let \(x\) represent the number of products sold at \($8\) and let \(y\) represent the number of products sold at \($12\). Write a linear inequality in terms of \(x\) and \(y\) and sketch the graph of all possible solutions.
 Answer

1.
3.
5.
7.
9.
11.
13.
15.
17.
19.
21.
23.
25. \(l + w \leq 100\);