Graphs of Linear Inequalities
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
We have learned how to solve inequalities in one variable. Now we look at inequalities in two variables, which 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 would make a profit.
Verify solutions to an inequality in two variables
Linear inequality. A linear inequality is an inequality that can be written in one of the following forms:
where and are not both zero.
An inequality in one variable, like , has many solutions — any number greater than — shown on the number line by shading to the right of with an open circle at . Similarly, an inequality in two variables has many solutions: any ordered pair that makes the inequality true when substituted in is a solution of the inequality.
Example. Determine whether each ordered pair is a solution to the inequality : (a) (b) (c) (d) (e) .
(a) Substituting : is ? Since , is not a solution.
(b) Substituting : is ? Since is true, is a solution.
(c) Substituting : is ? Since , is not a solution.
(d) Substituting : is ? Since , is not a solution.
(e) Substituting : is ? Since is true, is a solution.
Is the ordered paira solution to the inequality?
Substituteandintoand check whether the resulting statement is true.Is the ordered paira solution to the inequality?
Substituteandintoand check whether the resulting statement is true.Recognize the relation between the solutions of an inequality and its graph
Just as the point separates the number line into the numbers less than and the numbers greater than , a line separates the plane into two regions. On one side of the line are the points with ; on the other side are the points with . We call the line a boundary line.
For an inequality in one variable, the endpoint is shown with a parenthesis (not included) or a bracket (included). Similarly, for an inequality in two variables, the boundary line is drawn solid or dashed to show whether it is included in the solution.
Boundary lines for linear inequalities
| Inequality | Boundary line |
|---|---|
| or | not included — dashed |
| or | included — solid |
Points on one side of the boundary line are solutions to , and points on the other side are solutions to . Any point on the boundary line itself, where , is not a solution to , so the boundary line is not part of the solution — we draw it dashed. The shaded region shows the solutions to .
Example. The boundary line shown is , drawn as a solid line. Write the inequality shown by the graph.
We test the point : is , or is ? Since is true, is on the side of the line where . Since the boundary line is solid, the inequality includes the equal sign, so the graph shows .
A dashed boundary lineis graphed, and the region below and to the left of the line is shaded (this region contains the point). Write the complete inequality shown by the graph, solved for y.
Test the pointin bothandto see which is true, then use > or < depending on whether the line is dashed or solid.Graph linear inequalities
Now we put this together to graph linear inequalities.
Graph a linear inequality.
- 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.
Example. Graph the linear inequality .
We graph the boundary line . Since the inequality is , we draw a solid line. We test : is ? Since is true, is a solution, so we shade the side of the boundary line that includes .
Example. Graph the linear inequality .
We graph the boundary line , drawn dashed since the inequality is . Testing : is ? Since is true, we shade the side that includes .
If the boundary line passes through the origin, cannot be used as a test point — choose any other point not on the line instead.
Example. Graph the linear inequality .
The boundary line is in slope-intercept form with and ; since it passes through the origin, we choose a different test point, such as . The inequality is , so we draw a solid line. Testing : is ? Since , is not a solution, so we shade the side of the boundary line that does not include .
Graph the linear inequalityby testing the point. Substitute the point into the inequality and write the resulting statement (a true statement means the point is a solution).
, trueSubstitute,intoand simplify.Some linear inequalities have only one variable — an but no , or a but no . As with equations, the boundary line is then either a vertical line, , or a horizontal line, .
Example. Graph the linear inequality .
The boundary line is horizontal, drawn dashed since the inequality is . Testing : is ? Since this is false, is not a solution, so we shade the side that does not include — the region above the line.
Graph the linear inequality. Is the boundary line solid or dashed?
The inequality symbol is, which includes equality, so the boundary line is solid.Key terms
linear inequality — an inequality that can be written as , , , or , where and are not both zero. solution of a linear inequality — an ordered pair that makes the inequality true when substituted in. boundary line — the line that separates the plane into the region where and the region where ; drawn dashed when strict ( or ) and solid when the inequality includes equality ( or ).
Practice
Verify solutions to an inequality in two variables
Determine whetheris a solution to the inequality.
Substituteand, then decide whether the resulting inequality is true.Determine whetheris a solution to the inequality.
Substituteand, then decide whether the resulting inequality is true.Determine whetheris a solution to the inequality.
Substituteand, then comparewith.Determine whetheris a solution to the inequality.
Substituteand, then decide whether the resulting inequality is true.Determine whetheris a solution to the inequality.
Substituteand, then decide whether the resulting inequality is true.Recognize the relation between the solutions of an inequality and its graph
Write the inequality shown by the graph with the boundary line.
The solid boundary includes equality, and the shaded region is below the line.Write the inequality shown by the shaded region in the graph with the boundary line.
The solid boundary includes equality. Test a point in the shaded region, such as, to choose the inequality direction.Graph linear inequalities
Graph the linear inequality. Which description matches the graph?
A strict inequality uses a dashed boundary; a test point below the boundary satisfies.Graph the linear inequality. Which description matches the graph?
Equality is included, so the boundary is solid. Testinto choose the shaded side.This section is adapted from Elementary Algebra 2e, Section 4.7: Graphs of Linear Inequalities 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 the boundary-line and shaded-region figures as accessible inline SVGs; condensed the worked examples; omitted the Be Prepared quiz, Media links, Self Check checklist, and unselected Section Exercises; converted the practice problems (“Try Its”) into interactive exercises with instant feedback; and adapted selected end-of-section exercises into the section-final interactive Practice block, using categorical graph descriptions where the interactive graph component cannot represent shaded half-planes.