Graph Linear Inequalities in Two Variables
Verify solutions to an inequality in two variables
Previously 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:
where and are not both zero.
Recall that an inequality with one variable had many solutions. For example, the solution to the inequality is any number greater than . We showed this on the number line by shading in the number line to the right of , and putting an open parenthesis at .
Similarly, linear inequalities in two variables have many solutions. Any ordered pair that makes an inequality true when we substitute in the values is a solution to a linear inequality.
Example. Determine whether each ordered pair is a solution to the inequality : (a) (b) (c) (d) (e) .
(a) Substitute for and for .
So, is not a solution to .
(b) Substitute for and for .
So, is a solution to .
(c) Substitute for and for .
So, is not a solution to .
(d) Substitute for and for .
So, is not a solution to .
(e) Substitute for and for .
So, is a solution to .
For the inequality , determine whether each ordered pair is a solution.
Is a solution to ?
Substitute and .Is a solution to ?
Substitute and .Is a solution to ?
Substitute and .For the inequality , determine whether each ordered pair is a solution.
Is a solution to ?
Substitute and .Is a solution to ?
Substitute and .Is a solution to ?
Substitute and .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.
Let’s think about the number line shown previously again. The point separated that number line into two parts. On one side of are all the numbers less than . On the other side of all the numbers are greater than .
Similarly, the line separates the plane into two regions. On one side of the line are points with . On the other side of the line are the points with . We call the line a boundary line.
For an inequality in one variable, the endpoint is shown with a parenthesis or a bracket depending on whether or not it is included in the solution. 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.
| Inequality | Boundary line | Inclusion |
|---|---|---|
| or | Boundary line is not included in solution. Boundary line is dashed. | |
| or | Boundary line is included in solution. Boundary line is solid. |
Now, let’s take a look at what we found in the preceding example. We’ll start by graphing the line , and then we’ll plot the five points we tested.
Some of the points were solutions to and some were not. The points and are solutions. Notice that they are both on the same side of the boundary line .
The two points and are on the other side of the boundary line, and they are not solutions to . For those two points, .
What about the point ? Because , the point is a solution to the equation , but not a solution to the inequality . So the point 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 point clearly looks to be above the boundary line. Is it a solution to the inequality?
So, is a solution to . Any point you choose above the boundary line is a solution to the inequality. All points above the boundary line are solutions. Similarly, all points below the boundary line are not solutions to .
The line divides the plane into two regions. The shaded side shows the solutions to . The points on the boundary line, those where , are not solutions, so the line itself is not part of the solution. We show that by making the line dashed, not solid.
Example. The boundary line shown in this graph is . Write the inequality shown by the graph. The boundary line is solid, and the side containing is shaded.
The line is the boundary line. On one side of the line are the points with and on the other side are the points with . Let’s test the point and see which inequality describes its position relative to the boundary line.
At , which inequality is true: or ?
Since is true, the side of the line with is the solution. The shaded region shows the solution of . Since the boundary line is graphed with a solid line, the inequality includes the equal sign. The graph shows the inequality .
We could use any point as a test point, provided it is not on the line. We chose 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 .
Write the inequality shown by a solid boundary line with the region to the right of the line shaded.
The shaded region contains . Test it, and remember that a solid line includes equality.Write the inequality shown by a solid boundary line with the region below the line shaded.
Below the line means the y-values are less than those on the line; a solid line includes equality.Example. The boundary line shown in this graph is . Write the inequality shown by the graph. The boundary line is dashed, and the side containing is shaded.
The line is the boundary line. On one side are the points with and on the other side are the points with . Let’s test the point and see which inequality describes its side.
So the side with is the side where . You may want to pick a point on the other side and check that . Since the boundary line is dashed, the inequality does not include an equal sign. The shaded region shows the solution to .
Write the inequality shown by a solid boundary line with the region above the line shaded.
Test , which lies in the shaded region, and include equality because the line is solid.Write the inequality shown by a solid boundary line with the region to the right of the line shaded.
Test a point such as in the shaded region, and include equality because the line is solid.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.
Example. Graph the linear inequality .
Step 1. Identify and graph the boundary line. Replace the inequality sign with an equal sign to find the boundary line. Graph the boundary line . The inequality sign is , so we draw a solid line.
Step 2. Test a point that is not on the boundary line. Is it a solution of the inequality? We’ll test .
Since , is a solution.
Step 3. Shade in one side of the boundary line. The test point is a solution to , so we shade in that side. All points in the shaded region and on the boundary line represent the solutions.
Graph a linear inequality in two variables.
- Identify and graph the boundary line.
- If the inequality is or , the boundary line is solid.
- If the inequality is or , the boundary line is dashed.
- Test a point that is not on the boundary line. Is it a solution of the inequality?
- 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.
For , which graph is correct?
The equal sign determines the boundary style. Then test .For , which graph is correct?
The strict inequality determines the boundary style. Then test .Example. Graph the linear inequality .
First, we graph the boundary line . The inequality is so we draw a dashed line.
Then, we test a point. We’ll use again because it is easy to evaluate and it is not on the boundary line.
The point is a solution of , so we shade in that side of the boundary line. All points in the shaded region, but not those on the boundary line, represent the solutions.
For , which graph is correct?
Test and use the strict inequality to choose the boundary style.For , which graph is correct?
Test and use the strict inequality to choose the boundary style.What if the boundary line goes through the origin? Then, we won’t be able to use as a test point. No problem—we’ll just choose some other point that is not on the boundary line.
Example. Graph the linear inequality .
First, we graph the boundary line . It is in slope-intercept form, with and . The inequality is so we draw a solid line.
Now we need a test point. We can see that the point is not on the boundary line. Is a solution of ?
The point is not a solution, so we shade in the opposite side of the boundary line. All points in the shaded region and on the boundary line represent the solutions.
For , which graph is correct?
Because the line goes through the origin, test .For , which graph is correct?
Because the line goes through the origin, test .Some linear inequalities have only one variable. They may have an but no , or a but no . In these cases, the boundary line will be either a vertical or a horizontal line. Recall that is a vertical line and is a horizontal line.
Example. Graph the linear inequality .
First, we graph the boundary line . It is a horizontal line. The inequality is so we draw a dashed line. We test the point . Since , is not a solution. So we shade the side that does not include .
All points in the shaded region, but not those on the boundary line, represent the solutions to .
For , which graph is correct?
A strict inequality has a dashed boundary; y-values less than 5 lie below it.For , which graph is correct?
An inequality including equality has a solid boundary; smaller y-values lie below it.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. 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 be the number of hours she works at the job in food service and let be the number of hours she works tutoring. Write an inequality that would model this situation.
We let be the number of hours she works at the job in food service and let 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 give the amount earned at that job. The amount earned at the food service job plus the amount earned tutoring is at least $240:
(b) Graph the inequality. To graph it, we put it in slope-intercept form.
(c) From the graph, we see that the ordered pairs , , represent three of infinitely many solutions. Check the values in the inequality.
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.
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?
Let be the number of hours Hugh works at the grocery store and let be the number of hours he works babysitting. Write an inequality that would model this situation.
Add the earnings from the two jobs and use the phrase 'at least' to choose the inequality symbol.Three ordered pairs that are solutions are , , and . They mean Hugh can earn at least $260 by babysitting 20 hours, working 13 hours at each job, or working 26 hours at the grocery store.
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?
Let be the number of hours Veronica works at the day spa and let be the number of hours she works as administrative assistant. Write an inequality that would model this situation.
Add the earnings from the two jobs and use the phrase 'at least' to choose the inequality symbol.Three ordered pairs that are solutions are , , and . They mean Veronica can earn at least $280 by working 16 hours as an administrative assistant, working 14 hours at the day spa and 8 hours as an administrative assistant, or working 28 hours at the day spa.
Key terms
linear inequality — an inequality that can be written as , , , or , where and are not both zero. solution to a linear inequality — an ordered pair that makes the inequality true when the values are substituted. boundary line — the line that separates the region where from the region where .
This section is adapted from Intermediate Algebra 2e, Section 3.4: Graph Linear Inequalities in Two Variables by Lynn Marecek, MaryAnne Anthony-Smith, and Andrea Honeycutt Mathis, © OpenStax, licensed under CC BY-NC-SA 4.0. Access the original for free at openstax.org. Changes: recreated number-line and coordinate-plane figures as accessible interactive graphics; omitted the Be Prepared quiz, Media link, Self Check, and Section Exercises; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback.