Skip to main content
Mathematics LibreTexts

3.8: Linear Inequalities (Two Variables)

  • Page ID
    24123
    • Anonymous
    • LibreTexts

    \( \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 and check solutions to linear inequalities with two variables.
    • Graph solution sets of linear inequalities with two variables.

    Solutions to Linear Inequalities

    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, 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\)

    Screenshot (681).png

    Figure \(\PageIndex{1}\)

    Screenshot (682).png

    Figure \(\PageIndex{2}\)

    Table \(\PageIndex{1}\)

    For the inequality, the line defines one boundary of the region that is shaded. This indicates that any ordered pair that is in the shaded region, including the boundary line, will satisfy the inequality. To see that this is the case, choose a few test points and substitute them into the inequality.

    \(\color{Cerulean}{Test\:point}\) \(y\leq\frac{3}{2}x+3\)
    \((0,0)\) \(\begin{aligned} 0&\leq \frac{3}{2}(0)+3 \\ 0&\leq 3 \quad\color{Cerulean}{\checkmark} \end{aligned}\)
    \((2,1)\) \(\begin{aligned} 1&\leq \frac{3}{2}(2)+3 \\ 1&\leq 3+3 \\ 1&\leq 6\quad\color{Cerulean}{\checkmark}\end{aligned}\)
    \((-2,-1)\) \(\begin{aligned} -1&\leq\frac{3}{2}(-2)+3 \\ -1&\leq -3+3 \\ -1&\leq 0\quad\color{Cerulean}{\checkmark} \end{aligned}\)
    Table \(\PageIndex{2}\)

    Also, we can see that ordered pairs outside the shaded region do not solve the linear inequality.

    \(\begin{array} {c|c} {\underline{\color{Cerulean}{Test\:point}}}&{\underline{y\leq\frac{3}{2}x+3}}\\{(-2,3)} &{3\leq\frac{3}{2}(-2)+3}\\{}&{3\leq -3+3}\\{}&{3\leq 0\quad\color{red}{x}} \end{array}\)

    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 we have a strict inequality \(<\), we would then use a dashed line to indicate that those points are not included in the solution set.

    Non-Inclusive Boundary Inclusive Boundary
    \(y<\frac{3}{2}x+3\) \(y\leq \frac{3}{2}x+3\)

    Screenshot (683).png

    Figure \(\PageIndex{3}\)

    Screenshot (684).png

    Figure \(\PageIndex{4}\)

    Table \(\PageIndex{3}\)

    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 it part of the solution set.

    \(\begin{array}{c|c}{\underline{y<\frac{3}{2}x+3}}&{\underline{y\leq \frac{3}{2}x+3}}\\{3<\frac{3}{2}(0)+3}&{3\leq\frac{3}{2}(0)+3}\\{3<0+3}&{3\leq 0+3}\\{3<3\quad\color{red}{x}}&{3\leq 3\quad\color{Cerulean}{\checkmark}} \end{array}\)

    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\)

    Screenshot (685).png

    Figure \(\PageIndex{5}\)

    Screenshot (686).png

    Figure \(\PageIndex{6}\)

    Table \(\PageIndex{4}\)

    Given the graphs above, what might we expect if we use the origin \((0, 0)\) as a test point?

    \(\begin{array}{c|c}{\underline{y\geq\frac{3}{2}x+3}}&{\underline{y\leq\frac{3}{2}x+3}}\\{0\geq\frac{3}{2}(0)+3}&{0\leq\frac{3}{2}(0)+3}\\{0\geq 0+3}&{0\leq0+3}\\{0\geq 3\quad\color{red}{x}}&{0\leq 3\quad\color{Cerulean}{\checkmark}} \end{array}\)

    Exercise \(\PageIndex{1}\)

    Which of the ordered pairs \((−2, −1), (0, 0), (−2, 8), (2, 1),\) and \((4, 2)\) solve the inequality \(y>−\frac{1}{2}x+2\)?

    Answer

    \((−2, 8)\) and \((4, 2)\)

    Graphing Solutions to Linear Inequalities

    Solutions to linear inequalities are a shaded half-plane, 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 outlined in the following example.

    Example \(\PageIndex{1}\)

    Graph the solution set:

    \(y>−3x+1\).

    Solution:

    Step 1: Graph the boundary line. In this case, graph a dashed line \(y=−3x+1\) because of the strict inequality. By inspection, we see that the slope is \(m=−3=−\frac{3}{1}=\frac{rise}{run}\) and the \(y\)-intercept is \((0, 1)\).

    Screenshot (687).png

    Figure \(\PageIndex{7}\)

    Step 2: Test a point 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.

    \(\begin{array}{c|c} {\underline{\color{Cerulean}{Test\:point}}}&{\underline{y>-3x+1}}\\{(0,0)}&{0>-3(0)+1}\\{}&{0>1\quad\color{red}{x}} \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:

    Screenshot (688).png

    Figure \(\PageIndex{8}\)

    Consider the problem of shading above or below the boundary line when the inequality is in slope-intercept form. If \(y>mx+b\), then shade above the line. If \(y<mx+b\), then shade below the line. Use this with caution; sometimes the boundary is given in standard form, in which case these rules do not apply.

    Example \(\PageIndex{2}\)

    Graph the solution set:

    \(2x−5y≥−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.

    Screenshot (689).png

    Figure \(\PageIndex{9}\)

    Next, test a point; this helps decide which region to shade.

    \(\begin{array} {c|c} {\underline{\color{Cerulean}{Test\:point}}}&{\underline{2x-5y\geq -10}}\\{(0,0)}&{2(0)-5(0)\geq -10} \\ {}&{0\geq -10\quad\color{Cerulean}{\checkmark}} \end{array}\)

    Since the test point is in the solution set, shade the half of the plane that contains it.

    Answer:

    Screenshot (690).png

    Figure \(\PageIndex{10}\)

    In this example, notice that the solution set consists of all the ordered pairs below the boundary line. This may be counterintuitive because of the original \(≥\) in the inequality. This illustrates that it is a best practice to actually test a point. Solve for \(y\) and you see that the shading is correct.

    In slope-intercept form, you can see that the region below the boundary line should be shaded. An alternate approach is to first express the boundary in slope-intercept form, graph it, and then shade the appropriate region.

    Example \(\PageIndex{3}\)

    Graph the solution set:

    \(y<2\).

    Solution:

    First, graph the boundary line \(y=2\) with a dashed line because of the strict inequality.

    Screenshot (691).png

    Figure \(\PageIndex{11}\)

    Now, test a point.

    \(\begin{array}{c|c}{\underline{\color{Cerulean}{Test\:point}}}&{\underline{y<2}}\\{(0,0)}&{0<2\quad\color{Cerulean}{\checkmark}} \end{array}\)

    In this case, shade the region that contains the test point.

    Answer:

    Screenshot (692).png

    Figure \(\PageIndex{12}\)

    Exercise \(\PageIndex{2}\)

    Graph the solution set:

    \(5x−y≤10\).

    Answer

    Screenshot (693).png

    Figure \(\PageIndex{13}\)

    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 a linear 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.
    • When graphing the solution sets of linear inequalities, it is a good practice to test values in and out of the solution set as a check.
    Exercise \(\PageIndex{3}\) Solutions to Linear Inequalities (Two Variables)

    Is the ordered pair a solution to the given inequality?

    1. \(y<5x+1\); \((0,0)\)
    2. \(y>−\frac{1}{2}x−4\); \((0, −2)\)
    3. \(y≤\frac{2}{3}x+1\); \((6, 5)\)
    4. \(y≥−\frac{1}{3}x−5\); \((−3, −8)\)
    5. \(y<\frac{1}{5}x-\frac{1}{3}\); \((-\frac{1}{2},-1)\)
    6. \(4x-3y\leq 2\); \((-2,-1)\)
    7. \(-x+4y>7\); \((0, 0)\)
    8. \(7x−3y<21\); \((5,-3)\)
    9. \(y>−5\); \((−3, −1)\)
    10. \(x≤0\); \((0, 7)\)
    Answer

    1. Yes

    3. Yes

    5. Yes

    7. No

    9. Yes

    Exercise \(\PageIndex{4}\) Graphing Solutions to Linear Inequalities

    Graph the solution set.

    1. \(y<−3x+3\)
    2. \(y<−\frac{2}{3}x+4\)
    3. \(y≥−\frac{1}{2}x\)
    4. \(y≥\frac{4}{5}x−8\)
    5. \(y≤8x−7\)
    6. \(y>−5x+3\)
    7. \(y>−x+4\)
    8. \(y>x−2\)
    9. \(y≥−1\)
    10. \(y<−3\)
    11. \(x<2\)
    12. \(x≥2\)
    13. \(y≤\frac{3}{4}x−\frac{1}{2}\)
    14. \(y>−\frac{3}{2}x+\frac{5}{2}\)
    15. \(−2x+3y>6\)
    16. \(7x−2y>14\)
    17. \(5x−y<10\)
    18. \(x-y<0\)
    19. \(3x−2y≥0\)
    20. \(x−5y≤0\)
    21. \(−x+2y≤−4\)
    22. \(−x+2y≤3\)
    23. \(2x−3y≥−1\)
    24. \(5x−4y<−3\)
    25. \(\frac{1}{2}x-\frac{1}{3}y<1\)
    26. \(\frac{1}{2}x-\frac{1}{10}y\geq\frac{1}{2}\)
    27. \(x≥−2y\)
    28. \(x<2y+3\)
    29. \(3x−y+2>0\)
    30. \(3−y−2x<0\)
    31. \(−4x≤12−3y\)
    32. \(5x≤−4y−12\)
    33. Write an inequality that describes all points in the upper half-plane above the \(x\)-axis.
    34. Write an inequality that describes all points in the lower half-plane below the \(x\)-axis.
    35. Write an inequality that describes all points in the half-plane left of the \(y\)-axis.
    36. Write an inequality that describes all points in the half-plane right of the \(y\)-axis.
    37. Write an inequality that describes all ordered pairs whose \(y\)-coordinates are at least \(2\).
    38. Write an inequality that describes all ordered pairs whose \(x\)-coordinate is at most \(5\).
    Answer

    1.

    Screenshot (694).png

    Figure \(\PageIndex{14}\)

    3.

    Screenshot (695).png

    Figure \(\PageIndex{15}\)

    5.

    Screenshot (696).png

    Figure \(\PageIndex{16}\)

    7.

    Screenshot (697).png

    Figure \(\PageIndex{17}\)

    9.

    Screenshot (698).png

    Figure \(\PageIndex{18}\)

    11.

    Screenshot (699).png

    Figure \(\PageIndex{19}\)

    13.

    Screenshot (700).png

    Figure \(\PageIndex{20}\)

    15.

    Screenshot (701).png

    Figure \(\PageIndex{21}\)

    17.

    Screenshot (702).png

    Figure \(\PageIndex{22}\)

    19.

    Screenshot (703).png

    Figure \(\PageIndex{23}\)

    21.

    Screenshot (704).png

    Figure \(\PageIndex{24}\)

    23.

    Screenshot (705).png

    Figure \(\PageIndex{25}\)

    25.

    Screenshot (706).png

    Figure \(\PageIndex{26}\)

    27.

    Screenshot (707).png

    Figure \(\PageIndex{27}\)

    29.

    Screenshot (708).png

    Figure \(\PageIndex{28}\)

    31.

    Screenshot (709).png

    Figure \(\PageIndex{29}\)

    33. \(y>0\)

    35. \(x<0\)

    37. \(y≥2\)


    This page titled 3.8: Linear Inequalities (Two Variables) is shared under a not declared license and was authored, remixed, and/or curated by Anonymous via source content that was edited to the style and standards of the LibreTexts platform.