2.6: Graphing Inequalities
- Page ID
- 51451
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)
( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\id}{\mathrm{id}}\)
\( \newcommand{\Span}{\mathrm{span}}\)
\( \newcommand{\kernel}{\mathrm{null}\,}\)
\( \newcommand{\range}{\mathrm{range}\,}\)
\( \newcommand{\RealPart}{\mathrm{Re}}\)
\( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)
\( \newcommand{\Argument}{\mathrm{Arg}}\)
\( \newcommand{\norm}[1]{\| #1 \|}\)
\( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)
\( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)
\( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)
\( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)
\( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vectorC}[1]{\textbf{#1}} \)
\( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)
\( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)
\( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)
\( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)
\( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)
\(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)Learning Objectives
- Identify graphs and solutions of equations and inequalities
- Identify the similarities and differences between solutions for linear equations in two variables and linear inequalities in two variables
- Identify the similarities and differences between graphs for linear equations in two variables and linear inequalities in two variables
- Graph an inequality in two variables
- Identify and follow steps for graphing a linear inequality in two variables
Identify the difference between the graph of a linear equation and linear inequality
Recall that solutions to linear inequalities are whole sets of numbers, rather than just one number, like you find with solutions to equalities (equations).
Here is an example from the section on solving linear inequalities:
Solve for p. \(4p+5<29\)
\(\displaystyle \begin{array}{l}4p+5<\,\,\,29\\\underline{\,\,\,\,\,\,\,\,\,-5\,\,\,\,\,\,\,-5}\\\underline{4p}\,\,\,\,\,\,\,\,<\,\,\underline{24}\,\,\\4\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,4\\\,\,\,\,\,\,\,\,\,\,\,p<6\end{array}\)
You can interpret the solution as p can be any number less than six. Now recall that we can graph equations of lines by defining the outputs, y, and the inputs, x, and writing an equation.
Previously, we showed how to graph the line described by this equation: \(y=2x+3\).
x values | \(2(0)+3\) | 3 |
---|---|---|
1 | \(2(2)+3\) | 7 |
3 | \(2(3)+3\) | 9 |
Additionally, we learned how to graph the line that represents all the points that make \(y=2x+3\) a true statement.
What if we combined these two ideas—linear inequalities and graphs of lines? First translate the line, \(y=2x+3\), into words:
You get y by multiplying x by two and adding three. \(y=2x+3\)
How would you translate this inequality into words? \(y<2x+3\)
For what values of x will you get an output, y, that is less than 2 times x plus three?
WOW, that may seem confusing, but keep reading, we’ll help you figure it out.
Linear inequalities are different than linear equations, although you can apply what you know about equations to help you understand inequalities. Inequalities and equations are both math statements that compare two values. Equations use the symbol = ; recall that inequalities are represented by the symbols < , ≤ , > , and ≥.
One way to visualize two-variable inequalities is to plot them on a coordinate plane. Here is what the inequality \(x>y\) true.
There are a few things to notice here. First, look at the dashed red boundary line: this is the graph of the related linear equation \(x=y\)) represents the entire set of solutions for the inequality \(x>y\). Remember how all points on a line are solutions to the linear equation of the line? Well, all points in a region are solutions to the linear inequality representing that region.
Let’s think about it for a moment—if \(x>y\) will show all ordered pairs \((x,y)\) for which the x-coordinate is greater than the y-coordinate.
The graph below shows the region \(x>y\) as well as some ordered pairs on the coordinate plane. Look at each ordered pair. Is the x-coordinate greater than the y-coordinate? Does the ordered pair sit inside or outside of the shaded region?
The ordered pairs \((0,−3)\) lie inside the shaded region. In these ordered pairs, the x-coordinate is larger than the y-coordinate. These ordered pairs are in the solution set of the equation \(x>y\).
The ordered pairs \((2,3)\) are outside of the shaded area. In these ordered pairs, the x-coordinate is smaller than the y-coordinate, so they are not included in the set of solutions for the inequality.
The ordered pair \(−2\) is not greater than \(x\geq y\) (read as “x is greater than or equal to y”), then \((−2,−2)\) would have been included (and the line would have been represented by a solid line, not a dashed line).
The Difference Between a Linear Equation and Linear Inequality (Two Variables)
Let’s take a look at one more example: the inequality \(3x+2y=6\), as well as a handful of ordered pairs. The boundary line is solid this time, because points on the boundary line \(3x+2y\leq6\) true.
As you did with the previous example, you can substitute the x- and y-values in each of the \(x>y\), sometimes making a table of values makes sense for more complicated inequalities.
Ordered Pair | Makes the inequality \(3x+2y\leq6\) a false statement |
---|---|
\(\begin{array}{r}3\left(−5\right)+2\left(5\right)\leq6\\−15+10\leq6\\−5\leq6\end{array}\) | |
\(\begin{array}{r}3\left(−2\right)+2\left(–2\right)\leq6\\−6+\left(−4\right)\leq6\\–10\leq6\end{array}\) | |
\(\begin{array}{r}3\left(2\right)+2\left(3\right)\leq6\\6+6\leq6\\12\leq6\end{array}\) | |
\(\begin{array}{r}3\left(2\right)+2\left(0\right)\leq6\\6+0\leq6\\6\leq6\end{array}\) | |
\(\begin{array}{r}3\left(4\right)+2\left(−1\right)\leq6\\12+\left(−2\right)\leq6\\10\leq6\end{array}\) |
If substituting \((x,y)\) into the inequality yields a true statement, then the ordered pair is a solution to the inequality, and the point will be plotted within the shaded region or the point will be part of a solid boundary line. A false statement means that the ordered pair is not a solution, and the point will graph outside the shaded region, or the point will be part of a dotted boundary line.
Determine if Ordered Pairs Satisfy a Linear Inequality
Example
Use the graph to determine which ordered pairs plotted below are solutions of the inequality \(x–y<3\).
[reveal-answer q=”840389″]Show Solution[/reveal-answer]
[hidden-answer a=”840389″]
Solutions will be located in the shaded region. Since this is a “less than” problem, ordered pairs on the boundary line are not included in the solution set.
These values are located in the shaded region, so are solutions. (When substituted into the inequality \(x–y<3\), they produce true statements.)
\((−1,1)\)
\((−2,−2)\)
These values are not located in the shaded region, so are not solutions. (When substituted into the inequality \(x-y<3\), they produce false statements.)
\((1,−2)\)
\((3,−2)\)
\((4,0)\)
Answer
\((−1,1)\,\,\,(−2,−2)\)[/hidden-answer]
Use a Graph Determine Ordered Pair Solutions of a Linear Inequality in Two Variable
Example
Is \(y<−3x+1\)?
[reveal-answer q=”746731″]Show Solution[/reveal-answer]
[hidden-answer a=”746731″]
If \(y<−3x+1\).
\(y<−3x+1\)
Substitute \(y=−3\) into inequality.
\(−3<−3\left(2\right)+1\)
Evaluate.
\(\begin{array}{l}−3<−6+1\\−3<−5\end{array}\)
This statement is not true, so the ordered pair \((2,−3)\) is not a solution.
Answer
\((2,−3)\) is not a solution.[/hidden-answer]
Determine if Ordered Pairs Satisfy a Linear Inequality
Graph an Inequality in Two Variables
So how do you get from the algebraic form of an inequality, like \(y>3x+1\), to a graph of that inequality? Plotting inequalities is fairly straightforward if you follow a couple steps.
Graphing Inequalities
To graph an inequality:
- Graph the related boundary line. Replace the <, >, ≤ or ≥ sign in the inequality with = to find the equation of the boundary line.
- Identify at least one ordered pair on either side of the boundary line and substitute those \((x,y)\) values into the inequality. Shade the region that contains the ordered pairs that make the inequality a true statement.
- If points on the boundary line are solutions, then use a solid line for drawing the boundary line. This will happen for ≤ or ≥ inequalities.
- If points on the boundary line aren’t solutions, then use a dotted line for the boundary line. This will happen for < or > inequalities.
Let’s graph the inequality \(x+4y\leq4\).
To graph the boundary line, find at least two values that lie on the line \(x+4y=4\). You can use the x– and y-intercepts for this equation by substituting 0 in for x first and finding the value of y; then substitute 0 in for y and find x.
x | y |
0 | 1 |
4 | 0 |
Plot the points \((4,0)\), and draw a line through these two points for the boundary line. The line is solid because ≤ means “less than or equal to,” so all ordered pairs along the line are included in the solution set.
The next step is to find the region that contains the solutions. Is it above or below the boundary line? To identify the region where the inequality holds true, you can test a couple of ordered pairs, one on each side of the boundary line.
If you substitute \(x+4y\leq4\):
\(\begin{array}{r}−1+4\left(3\right)\leq4\\−1+12\leq4\\11\leq4\end{array}\)
This is a false statement, since 11 is not less than or equal to 4.
On the other hand, if you substitute \(x+4y\leq4\):
\(\begin{array}{r}2+4\left(0\right)\leq4\\2+0\leq4\\2\leq4\end{array}\)
This is true! The region that includes \((2,0)\) should be shaded, as this is the region of solutions.
And there you have it—the graph of the set of solutions for \(x+4y\leq4\).
Graphing Linear Inequalities in Two Variables
Example
Graph the inequality \(2y>4x–6\).
[reveal-answer q=”138506″]Show Solution[/reveal-answer]
[hidden-answer a=”138506″]
Solve for y.
\(\displaystyle \begin{array}{r}2y>4x-6\\\\\frac{2y}{2}>\frac{4x}{2}-\frac{6}{2}\\\\y>2x-3\\\end{array}\)
Create a table of values to find two points on the line \(-3\) and the slope is 2.
Plot the points, and graph the line. The line is dotted because the sign in the inequality is >, not ≥ and therefore points on the line are not solutions to the inequality.
\(\displaystyle y=2x-3\)
x | y |
---|---|
0 | \(−3\) |
2 | 1 |
Find an ordered pair on either side of the boundary line. Insert the x– and y-values into the inequality
\((−3,1)\) results in a true statement, the region that includes \((−3,1)\) should be shaded.
\(\begin{array}{l}2y>4x–6\\\\\text{Test }1:\left(−3,1\right)\\2\left(1\right)>4\left(−3\right)–6\\\,\,\,\,\,\,\,2>–12–6\\\,\,\,\,\,\,\,2>−18\\\text{TRUE}\\\\\text{Test }2:\left(4,1\right)\\2(1)>4\left(4\right)– 6\\\,\,\,\,\,\,2>16–6\\\,\,\,\,\,\,2>10\\\text{FALSE}\end{array}\)
Answer
The graph of the inequality \(2y>4x–6\) is:
[/hidden-answer]
A quick note about the problem above—notice that you can use the points \((2,1)\) to graph the boundary line, but that these points are not included in the region of solutions, since the region does not include the boundary line!
Graphing Linear Inequalities in Two Variables (Slope Intercept Form)
Summary
When inequalities are graphed on a coordinate plane, the solutions are located in a region of the coordinate plane, which is represented as a shaded area on the plane. The boundary line for the inequality is drawn as a solid line if the points on the line itself do satisfy the inequality, as in the cases of ≤ and ≥. It is drawn as a dashed line if the points on the line do not satisfy the inequality, as in the cases of < and >. You can tell which region to shade by testing some points in the inequality. Using a coordinate plane is especially helpful for visualizing the region of solutions for inequalities with two variables.
- The Difference Between a Linear Equation and Linear Inequality (Two Variables). Authored by: Mathispower4u. Located at: https://youtu.be/EcrLbRJ2zV0. License: CC BY: Attribution
- Use a Graph Determine Ordered Pair Solutions of a Linear Inequalty in Two Variable. Authored by: James Sousa (Mathispower4u.com) . Located at: https://youtu.be/GQVdDRVq5_o. License: CC BY: Attribution
- Ex: Determine if Ordered Pairs Satisfy a Linear Inequality. Authored by: James Sousa (Mathispower4u.com) . Located at: https://youtu.be/-x-zt_yM0RM. License: CC BY: Attribution
- Provided by: Monterey Institute of Technology. Located at: nrocnetwork.org/resources/downloads/nroc-math-open-textbook-units-1-12-pdf-and-word-formats/. License: CC BY: Attribution
- Ex 2: Graphing Linear Inequalities in Two Variables (Standard Form). Authored by: James Sousa (Mathispower4u.com) for Lumen Learning. Located at: https://youtu.be/2VgFg2ztspI. License: CC BY: Attribution
- Ex 1: Graphing Linear Inequalities in Two Variables (Slope Intercept Form). Authored by: James Sousa (Mathispower4u.com) . Located at: https://youtu.be/Hzxc4HASygU. License: CC BY: Attribution
- Unit 13: Graphing, from Developmental Math: An Open Program. Provided by: Monterey Institute of Technology and Education. Located at: nrocnetwork.org/resources/downloads/nroc-math-open-textbook-units-1-12-pdf-and-word-formats/. License: CC BY: Attribution