How to solve linear inequalities with two variables

Video transcript

We're asked to graph the inequality y is less than 3x plus 5. So if you give us any x-- and let me label the axes here. So this is the x-axis. This is the y-axis. So this is saying you give me an x. So let's say we take x is equal to 1 right there. 3 times 1 plus 5. So 3 times x plus 5. So 3 times 1 is 3 plus 5 is 8. So one, two, three, four, five, six, seven, eight. This is saying that y will be less than 8. y will be less than 3 times 1 plus 5. So the y-values that satisfy this constraint for that x are going to be all of these values down here. Let me do it in a lighter color. It'll be all of these values. For x is equal to 1, it'll be all the values down here, and it would not include y is equal to 8. Y has to be less than 8. Now, if we kept doing that, we would essentially just to graph the line of y is equal to 3x plus 5, but we wouldn't include it. We would just include everything below it, just like we did right here. So we know how to graph just y is equal to 3x plus 5. Let me write it over here. So if I were to write y is equal to 3x plus 5, we would say, OK, 3 is the slope. Slope is equal to 3, and then 5 is the y-intercept. Now, I could just graph the line, but because that won't be included in the y's that satisfy this constraint, I'm going to graph it as a dotted line. So we'll start with the y-intercept of 5. So one, two, three, four, five. That's the y-intercept. And the slope is 3. So if you go over to the 1, you go up 3. So let me do that in that darker purple color. So it'll look like this. It will look like that. That point would be on it. That point would be on it. If you go back, you're going to go down by 3. So that point will be on it, that point, and that point, and I'll just connect the dots with a dotted line. That dotted line is the graph of y is equal to 3x plus 5, but we're not going to include it. So that's why I made it a dotted line because we want all of the y's that are less than that. So for any x-- so you pick an x. Let's say x is equal to negative 1. If you evaluate 3x plus 5 for that x, you'd get here. But we only care about the y's that are strictly less than that. So you don't include the line. It's everything below it. So for any x you pick, it's going to be below that line. You take the x, go up to that line and everything below it. So for all of the x's, it's going to be this entire area. Let me draw it a little bit neater than that. It's going to be this entire area that's under the line. I'll do it in this orange. It's a little bit easier to see. So this entire area under the line is y is less than 3x.

  1. Last updated
  2. Save as PDF
  • Page ID40129
  • Learning Objectives

    By the end of this section, you will be able to:

    • Verify solutions to an inequality in two variables.
    • Recognize the relation between the solutions of an inequality and its graph.
    • Graph linear inequalities in two variables.
    • Solve applications using linear inequalities in two variables.

    Prerequisite Skills

    Before you get started, take this prerequisite quiz.

    1. Is \((3, 7)\) a solution to \(4x-y=5\)?

    Click here to check your answer

    Yes, because both sides of the equation equal \(5\).

    If you missed this problem, review Section 1.1. (Note that this will open in a new window.)

    2. Solve \(-3x+5<8\) and write your solution in interval notation.

    Click here to check your answer

    \((-1, \infty)\)

    If you missed this problem, review Section 1.1. (Note that this will open in a new window.)

    3. Solve \(-3x+5 \leq 8\) and write your solution in interval notation.

    Click here to check your answer

    \([-1, \infty)\)

    If you missed this problem, review Section 1.1. (Note that this will open in a new window.)

    Verify Solutions to an Inequality in Two Variables

    In Section 1.1 we learned to solve inequalities with only one variable. We will now learn about inequalities containing two variables. In particular we will look at linear inequalities in two variables which are very similar to linear equations in two variables.

    Linear inequalities in two variables have many applications. If you ran a business, for example, you would want your revenue to be greater than your costs—so that your business made a profit.

    LINEAR INEQUALITY

    A linear inequality is an inequality that can be written in one of the following forms:

    \( \begin{array} {l} { }& {Ax+By>C} &{Ax+By\geq C} &{Ax+By<C} &{Ax+By\leq C} \\ \end{array} \)

    Where A and B are not both zero.

    Recall that an inequality with one variable had many solutions. For example, the solution to the inequality \(x>3\) is any number greater than 3. We showed this on the number line by shading in the number line to the right of 3, and putting an open parenthesis at 3. 

    How to solve linear inequalities with two variables
    Figure \(\PageIndex{1}\)

    Similarly, linear inequalities in two variables have many solutions. Any ordered pair \((x,y)\) that makes an inequality true when we substitute in the values is a solution to a linear inequality.

    Solution TO A LINEAR INEQUALITY

    An ordered pair \((x,y)\) is a solution to a linear inequality if the inequality is true when we substitute the values of x and y.

    Example \(\PageIndex{1}\)

    Determine whether each ordered pair is a solution to the inequality y>x+4:

    a. (0,0)  b. (1,6)  c. (2,6)  d. (−5,−15)  e. (−8,12)

    Answer

    a.

    \((0,0)\)
    How to solve linear inequalities with two variables
    How to solve linear inequalities with two variables
    How to solve linear inequalities with two variables
    Simplify.
    How to solve linear inequalities with two variables
     

    So, \((0,0)\) is not a solution to \(y>x+4\).

    b.

    \((1,6)\)
    How to solve linear inequalities with two variables
    How to solve linear inequalities with two variables
    How to solve linear inequalities with two variables
    Simplify.
    How to solve linear inequalities with two variables
      So, \((1,6)\) is a solution to \(y>x+4\).

    c.

    \((2,6)\)
    How to solve linear inequalities with two variables
    How to solve linear inequalities with two variables
    How to solve linear inequalities with two variables
    Simplify.
    How to solve linear inequalities with two variables
      So, \((2,6)\) is not a solution to \(y>x+4\).

    d.

    \((−5,−15)\)
    How to solve linear inequalities with two variables
    How to solve linear inequalities with two variables
    How to solve linear inequalities with two variables
    Simplify.
    How to solve linear inequalities with two variables
      So, \((−5,−15)\) is not a solution to \(y>x+4\).

    e.

    \((−8,12)\)
    How to solve linear inequalities with two variables
    How to solve linear inequalities with two variables
    How to solve linear inequalities with two variables
    Simplify.
    How to solve linear inequalities with two variables
      So, \((−8,12)\) is a solution to \(y>x+4\).

    Example \(\PageIndex{2}\)
     

    Determine whether each ordered pair is a solution to the inequality \(y>x−3\):

    a. \((0,0)\)  b. \((4,9)\)  c. \((−2,1)\)  d. \((−5,−3)\)  e. \((5,1)\)

    Answer

    a. yes  b. yes  c. yes  d. yes  e. no

    Example \(\PageIndex{3}\)

    Determine whether each ordered pair is a solution to the inequality \(y<x+1\):

     a. \((0,0)\)  b. \((8,6)\)  c. \((−2,−1)\)  d. \((3,4)\)  e. \((−1,−4)\)

    Answer

    a. yes  b. yes  c. no  d. no  e. yes

    Recognize the Relation Between the Solutions of an Inequality and its Graph

    Now, we will look at how the solutions of an inequality relate to its graph.  Consider the inequality \(x>3\).

    Let’s think about the number line in shown previously again. The point \(x=3\) separated that number line into two parts. On one side of 3 are all the numbers less than 3, which make the inequality false. On the other side of 3 all the numbers are greater than 3, which make the inequality true.

    How to solve linear inequalities with two variables
    Figure \(\PageIndex{2}\):The solution to \(x>3\) is the shaded part of the number line to the right of \(x=3\).

    Similarly, the line \(y=x+4\) separates the plane into two regions. On one side of the line are points with \(y<x+4\). On the other side of the line are the points with \(y>x+4\). We call the line \(y=x+4\) a boundary line.

    BOUNDARY LINE

    The line with equation \(Ax+By=C\) is the boundary line that separates the region where \(Ax+By>C\) from the region where \(Ax+By<C\).

    For an inequality in one variable, the endpoint is shown with a parenthesis or a bracket depending on whether or not the endpoint is included in the solution:

    How to solve linear inequalities with two variables

    Similarly, for an inequality in two variables, the boundary line is shown with a solid or dashed line to show whether or not the line is included in the solution.

    \[ \begin{array} {ll} {Ax+By<C} &{Ax+By\leq C} \\ {Ax+By>C} &{Ax+By\geq C} \\ {\text{Boundary line is }Ax+By=C.} &{\text{Boundary line is }Ax+By=C.} \\ {\text{Boundary line is not included in solution.}} &{\text{Boundary line is not included in solution.}} \\ {\textbf{Boundary line is dashed.}} &{\textbf{Boundary line is solid.}} \\ \nonumber \end{array} \]

    Now, let’s take a look at what we found in Example 4.1.1. We’ll start by graphing the line \(y=x+4\), and then we’ll plot the five points we tested, as shown in the graph.

    How to solve linear inequalities with two variables
    Figure \(\PageIndex{3}\)

    In Example 4.1.1 we found that some of the points were solutions to the inequality \(y>x+4\) and some were not.

    Which of the points we plotted are solutions to the inequality \(y>x+4\)?

    The points \((1,6)\) and \((−8,12)\) are solutions to the inequality \(y>x+4\). Notice that they are both on the same side of the boundary line \(y=x+4\).

    The two points \((0,0)\) and \((−5,−15)\) are on the other side of the boundary line \(y=x+4\), and they are not solutions to the inequality \(y>x+4\). For those two points, \(y<x+4\).

    What about the point \((2,6)\)? Because \(6=2+4\), the point is a solution to the equation \(y=x+4\), but not a solution to the inequality \(y>x+4\). So the point \((2,6)\) is on the boundary line.

    Let’s take another point above the boundary line and test whether or not it is a solution to the inequality \(y>x+4\). The point \((0,10)\)clearly looks to above the boundary line, doesn’t it? Is it a solution to the inequality?

    \[\begin{array} {lll} {y} &{>} &{x+4} \\ {10} &{\overset{?}{>}} &{0+4} \\ {10} &{>} &{4} \\ \nonumber \end{array}\]

    So, \((0,10)\) is a solution to \(y>x+4\).

    Any point you choose above the boundary line is a solution to the inequality \(y>x+4\). All points above the boundary line are solutions.

    Similarly, all points below the boundary line, the side with \((0,0)\) and \((−5,−15)\), are not solutions to \(y>x+4\), as shown in the graph below.

    How to solve linear inequalities with two variables
    Figure \(\PageIndex{4}\)

    The graph of the inequality \(y>x+4\) is shown in below.

    The line \(y=x+4\) divides the plane into two regions. The shaded side shows the solutions to the inequality \(y>x+4\).

    The points on the boundary line, those where \(y=x+4\), are not solutions to the inequality \(y>x+4\), so the line itself is not part of the solution. We show that by making the line dashed, not solid.

    How to solve linear inequalities with two variables

    Example \(\PageIndex{4}\)

    The boundary line shown in this graph is \(y=2x−1\). Write the inequality shown by the graph.

    How to solve linear inequalities with two variables

    Answer

    The line \(y=2x−1\) is the boundary line. On one side of the line are the points with \(y>2x−1\) and on the other side of the line are the points with \(y<2x−1\).

    Let’s test the point \((0,0)\) and see which inequality describes its position relative to the boundary line.

    At \((0,0)\), which inequality is true: \(y>2x−1\) or \(y<2x−1\)?

    \[\begin{array} {ll} {y>2x−1} &{y<2x−1} \\ {0\overset{?}{>}2·0−1} &{0\overset{?}{<}2·0−1} \\ {0>−1\text{ True}} &{0<−1\text{ False}} \\ \nonumber \end{array}\]

    Since, \(y>2x−1\) is true, the side of the line with \((0,0)\), is the solution. The shaded region shows the solution of the inequality \(y>2x−1\).

    Since the boundary line is graphed with a dotted line, the inequality does not include the equal sign.

    The graph shows the inequality \(y> 2x−1\).

    We could use any point as a test point, provided it is not on the line. Why did we choose \((0,0)\)? Because it’s the easiest to evaluate. You may want to pick a point on the other side of the boundary line and check that \(y<2x−1\).

    Example \(\PageIndex{5}\)

    Write the inequality shown by the graph with the boundary line \(y=−2x+3\).

    How to solve linear inequalities with two variables

    Answer

    \(y\geq −2x+3\)

    Example \(\PageIndex{6}\)

    Write the inequality shown by the graph with the boundary line \(y=\frac{1}{2}x−4\).

    How to solve linear inequalities with two variables

    Answer

    \(y\leq \frac{1}{2}x−4\)

    Example \(\PageIndex{7}\)

    The boundary line shown in this graph is \(2x+3y=6\). Write the inequality shown by the graph.

    How to solve linear inequalities with two variables

    Answer

    The line \(2x+3y=6\) is the boundary line. On one side of the line are the points with \(2x+3y>6\) and on the other side of the line are the points with \(2x+3y<6\).

    Let’s test the point \((0,0)\) and see which inequality describes its side of the boundary line.

    At \((0,0)\), which inequality is true: \(2x+3y>6\) or \(2x+3y<6\)?

    \[\begin{array} {ll} {2x+3y>6} &{2x+3y<6} \\ {2(0)+3(0)\overset{?}{>}6} &{2(0)+3(0)\overset{?}{<}6} \\ {0>6\text{ False}} &{0<6\text{ True}} \\ \nonumber \end{array}\]

    So the side with \((0,0)\) is the side where \(2x+3y<6\).

    (You may want to pick a point on the other side of the boundary line and check that \(2x+3y>6\).)

    Since the boundary line is graphed as a dashed line, the inequality does not include an equal sign.

    The shaded region shows the solution to the inequality \(2x+3y<6\).

    Example \(\PageIndex{8}\)

    Write the inequality shown by the shaded region in the graph with the boundary line \(x−4y=8\).

    How to solve linear inequalities with two variables

    Answer

    \(x−4y\leq 8\)

    Example \(\PageIndex{9}\)

    Write the inequality shown by the shaded region in the graph with the boundary line \(3x−y=6\).

    How to solve linear inequalities with two variables

    Answer

    \(3x−y\geq 6\)

    Graph Linear Inequalities in Two Variables

    Now that we know what the graph of a linear inequality looks like and how it relates to a boundary equation we can use this knowledge to graph a given linear inequality.

    The steps we take to graph a linear inequality are summarized here.

    GRAPH A LINEAR INEQUALITY IN TWO VARIABLES.

    1. Identify and graph the boundary line.
      • If the inequality is \(\leq\) or \(\geq\), the boundary line is solid.
      • If the inequality is < or >, the boundary line is dashed.
    2. Test a point that is not on the boundary line.  (If not on the boundary line, \((0, 0)\) is usually a convenient test point.) Is it a solution of the inequality?
    3. Shade in one side of the boundary line. 
      • If the test point is a solution, shade in the side that includes the point.
      • If the test point is not a solution, shade in the opposite side.

    Example \(\PageIndex{10}\): How to Graph a Linear Equation in Two Variables

    Graph the linear inequality \(y\geq \frac{3}{4}x−2\).

    Solution

    How to solve linear inequalities with two variables
    How to solve linear inequalities with two variables
    How to solve linear inequalities with two variables

    Example \(\PageIndex{11}\)

    Graph the linear inequality \(y>\frac{5}{2}x−4\).

    Answer

    How to solve linear inequalities with two variables

    All points in the shaded region and on the boundary line, represent the solutions to \(y>\frac{5}{2}x−4\).

    Example \(\PageIndex{12}\)

    Graph the linear inequality \(y<\frac{2}{3}x−5\).

    Answer

    How to solve linear inequalities with two variables

    All points in the shaded region, but not those on the boundary line, represent the solutions to \(y<\frac{2}{3}x−5\).

    Example \(\PageIndex{13}\)

    Graph the linear inequality \(x−2y<5\).

    Answer

    First, we graph the boundary line \(x−2y=5\). The inequality is \(<\) so we draw a dashed line.

    How to solve linear inequalities with two variables

    Then, we test a point. We’ll use \((0,0)\) again because it is easy to evaluate and it is not on the boundary line.

    Is \((0,0)\) a solution of \(x−2y<5\)?

    How to solve linear inequalities with two variables

    The point \((0,0)\) is a solution of \(x−2y<5\), so we shade in that side of the boundary line.

    How to solve linear inequalities with two variables

    All points in the shaded region, but not those on the boundary line, represent the solutions to \(x−2y<5\).

    Example \(\PageIndex{14}\)

    Graph the linear inequality: \(2x−3y<6\).

    Answer

    How to solve linear inequalities with two variables

    All points in the shaded region, but not those on the boundary line, represent the solutions to \(2x−3y<6\).

    Example \(\PageIndex{15}\)

    Graph the linear inequality: \(2x−y>3\).

    Answer

    How to solve linear inequalities with two variables

    All points in the shaded region, but not those on the boundary line, represent the solutions to \(2x−y>3\).

    What if the boundary line goes through the origin? Then, we won’t be able to use \((0,0)\) as a test point. No problem—we’ll just choose some other point that is not on the boundary line.

    Example \(\PageIndex{16}\)

    Graph the linear inequality: \(y\leq −4x\).

    Answer

    First, we graph the boundary line \(y=−4x\). It is in slope–intercept form, with \(m=−4\) and \(b=0\). The inequality is \(\leq\) so we draw a solid line.

    How to solve linear inequalities with two variables

    Now we need a test point. We can see that the point (1,0)(1,0) is not on the boundary line.

    Is \((1,0)\) a solution of \(y\leq −4x\)?

    How to solve linear inequalities with two variables

    The point \((1,0)\) is not a solution to \(y\leq −4x\), so we shade in the opposite side of the boundary line.

    How to solve linear inequalities with two variables

    All points in the shaded region and on the boundary line represent the solutions to \(y\leq −4x\).

    Example \(\PageIndex{17}\)

    Graph the linear inequality: \(y>−3x\).

    Answer

    How to solve linear inequalities with two variables

    All points in the shaded region, but not those on the boundary line, represent the solutions to \(y>−3x\).

    Example \(\PageIndex{18}\)

    Graph the linear inequality: \(y\geq −2x\).

    Answer

    How to solve linear inequalities with two variables

    All points in the shaded region and on the boundary line, represent the solutions to \(y\geq −2x\).

    Some linear inequalities have only one variable. They may have an x but no y, or a y but no x. In these cases, the boundary line will be either a vertical or a horizontal line.

    Recall that:

    \[\begin{array} {ll} {x=a} &{\text{vertical line}} \\ {y=b} &{\text{horizontal line}} \\ \nonumber \end{array}\]

    Example \(\PageIndex{19}\)

    Graph the linear inequality: \(y>3\).

    Answer

    First, we graph the boundary line \(y=3\). It is a horizontal line. The inequality is \(>\) so we draw a dashed line.

    We test the point \((0,0)\).

    \[y>3\nonumber\]\[0\slashed{>}3\nonumber\]

    So, \((0,0)\) is not a solution to \(y>3\).

    So we shade the side that does not include \((0,0)\) as shown in this graph.

    How to solve linear inequalities with two variables

    All points in the shaded region, but not those on the boundary line, represent the solutions to \(y>3\).

    Example \(\PageIndex{20}\)

    Graph the linear inequality: \(y<5\).

    Answer

    How to solve linear inequalities with two variables

    All points in the shaded region, but not those on the boundary line, represent the solutions to \(y<5\).

    Example \(\PageIndex{21}\)

    Graph the linear inequality: \(y\leq −1\).

    Answer

    How to solve linear inequalities with two variables

    All points in the shaded region and on the boundary line represent the solutions to \(y\leq −1\).

    Solve Applications using Linear Inequalities in Two Variables

    Many fields use linear inequalities to model a problem. While our examples may be about simple situations, they give us an opportunity to build our skills and to get a feel for how they might be used.

    Example \(\PageIndex{22}\)

    Hilaria works two part time jobs in order to earn enough money to meet her obligations of at least $240 a week. Her job in food service pays $10 an hour and her tutoring job on campus pays $15 an hour. How many hours does Hilaria need to work at each job to earn at least $240?

    a. Let x be the number of hours she works at the job in food service and let y be the number of hours she works tutoring. Write an inequality that would model this situation.

    b. Graph the inequality.

    c. Find three ordered pairs \((x,y)\) that would be solutions to the inequality. Then, explain what that means for Hilaria.

    Answer

    a. We let x be the number of hours she works at the job in food service and let y be the number of hours she works tutoring.

    She earns $10 per hour at the job in food service and $15 an hour tutoring. At each job, the number of hours multiplied by the hourly wage will gives the amount earned at that job.

    How to solve linear inequalities with two variables

    b. To graph the inequality, we put it in slope–intercept form.

    \[\begin{align} {10x+15y} &\geq 240 \\ 15y &\geq -10x+240 \\ y &\geq {−\frac{2}{3}x+16} \\ \nonumber \end{align}\]

    How to solve linear inequalities with two variables

    c. From the graph, we see that the ordered pairs \((15,10)\), \((0,16)\), \((24,0)\) represent three of infinitely many solutions. Check the values in the inequality.

    How to solve linear inequalities with two variables

    For Hilaria, it means that to earn at least $240, she can work 15 hours tutoring and 10 hours at her fast-food job, earn all her money tutoring for 16 hours, or earn all her money while working 24 hours at the job in food service.

    Example \(\PageIndex{23}\)

    Hugh works two part time jobs. One at a grocery store that pays $10 an hour and the other is babysitting for $13 hour. Between the two jobs, Hugh wants to earn at least $260 a week. How many hours does Hugh need to work at each job to earn at least $260?

    a. Let x be the number of hours he works at the grocery store and let y be the number of hours he works babysitting. Write an inequality that would model this situation.

    b. Graph the inequality.

    c. Find three ordered pairs (x, y) that would be solutions to the inequality. Then, explain what that means for Hugh.

    Answer

    a. \(10x+13y\geq 260\)
    b.

    How to solve linear inequalities with two variables

    c. Answers will vary.

    Example \(\PageIndex{24}\)

    Veronica works two part time jobs in order to earn enough money to meet her obligations of at least $280 a week. Her job at the day spa pays $10 an hour and her administrative assistant job on campus pays $17.50 an hour. How many hours does Veronica need to work at each job to earn at least $280?

    a. Let x be the number of hours she works at the day spa and let y be the number of hours she works as administrative assistant. Write an inequality that would model this situation.

    b. Graph the inequality.

    c. Find three ordered pairs (x, y) that would be solutions to the inequality. Then, explain what that means for Veronica

    Answer

    a. \(10x+17.5y\geq 280\)
    b.

    How to solve linear inequalities with two variables

    c. Answers will vary.

    Key Concepts

    • How to graph a linear inequality in two variables.
      1. Identify and graph the boundary line.
        If the inequality is \(\leq\) or \(\geq\), the boundary line is solid.
        If the inequality is \(<\) or \(>\), the boundary line is dashed.
      2. Test a point that is not on the boundary line. Is it a solution of the inequality?
      3. Shade in one side of the boundary line.
        If the test point is a solution, shade in the side that includes the point.
        If the test point is not a solution, shade in the opposite side.

    Glossary

    boundary lineThe line with equation \(Ax+By=C\) is the boundary line that separates the region where \(Ax+By>C\) from the region where \(Ax+By<C\).linear inequalityA linear inequality is an inequality that can be written in one of the following forms: \(Ax+By>C\), \(Ax+By\geq C\), \(Ax+By<C\), or \(Ax+By\leq C\), where A and B are not both zero.solution to a linear inequalityAn ordered pair \((x,y)\) is a solution to a linear inequality if the inequality is true when we substitute the values of x and y.

    Which is a linear inequality in 2 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, on the other hand, has a solution set consisting of a region that defines half of the plane. Linear Equation. Linear Inequality. y=32x+3.