How to solve linear inequalities in two variables

Hotmath

  • Home

To graph a linear inequality in two variables (say, x and y ), first get y alone on one side. Then consider the related equation obtained by changing the inequality sign to an equals sign. The graph of this equation is a line.

If the inequality is strict ( < or > ), graph a dashed line. If the inequality is not strict ( and ), graph a solid line.

Finally, pick one point not on the line ( ( 0 , 0 ) is usually the easiest) and decide whether these coordinates satisfy the inequality or not. If they do, shade the half-plane containing that point. If they don't, shade the other half-plane.

Example:

Graph the inequality y ≤ 4 x − 2 .

This line is already in slope-intercept form , with y alone on the left side. Its slope is 4 and its y -intercept is − 2 . So it's straightforward to graph it. In this case, we make a solid line since we have a "less than or equal to" inequality.

How to solve linear inequalities in two variables

Now, substitute x = 0 , y = 0 to decide whether ( 0 , 0 ) satisfies the inequality.

0 ≤ ? 4 ( 0 ) − 2 0 ≤ ? − 2

This is false. So, shade the half-plane which does not include the point ( 0 , 0 ) .

How to solve linear inequalities in two variables

  1. Last updated
  2. Save as PDF
  • Page ID24123
  • 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.

    Table \(\PageIndex{1}\)
    Linear EquationLinear Inequality
    \(y=\frac{3}{2}x+3\) \(y\leq \frac{3}{2}x+3\)

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{1}\)

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{2}\)

    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.

    Table \(\PageIndex{2}\)
    \(\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}\)

    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.

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

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{3}\)

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{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 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:

    Table \(\PageIndex{4}\)
    Greater Than (Above)Less Than (Below)
    \(y\geq \frac{3}{2}x+3\) \(y\leq \frac{3}{2}x+3\)

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{5}\)

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{6}\)

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

    How to solve linear inequalities in two variables

    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:

    How to solve linear inequalities in two variables

    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.

    How to solve linear inequalities in two variables

    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:

    How to solve linear inequalities in two variables

    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.

    How to solve linear inequalities in two variables

    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:

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{12}\)

    Exercise \(\PageIndex{2}\)

    Graph the solution set:

    \(5x−y≤10\).

    Answer

    How to solve linear inequalities in two variables

    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.

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{14}\)

    3.

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{15}\)

    5.

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{16}\)

    7.

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{17}\)

    9.

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{18}\)

    11.

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{19}\)

    13.

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{20}\)

    15.

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{21}\)

    17.

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{22}\)

    19.

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{23}\)

    21.

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{24}\)

    23.

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{25}\)

    25.

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{26}\)

    27.

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{27}\)

    29.

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{28}\)

    31.

    How to solve linear inequalities in two variables

    Figure \(\PageIndex{29}\)

    33. \(y>0\)

    35. \(x<0\)

    37. \(y≥2\)

    What is the linear inequality in two variables?

    A linear inequality in two variables is formed when symbols other than equal to, such as greater than or less than are used to relate two expressions, and two variables are involved. Here are some examples of linear inequalities in two variables: 2x<3y+27x−2y>83x+4y+3≤2y−5y+x≥0.

    How do you solve linear equations in two variables?

    The solution of linear equations in two variables, ax+by = c, is a particular point in the graph, such that when x-coordinate is multiplied by a and y-coordinate is multiplied by b, then the sum of these two values will be equal to c. Basically, for linear equation in two variables, there are infinitely many solutions.