Graphing Systems of Linear Inequalities
The definition of a system of linear inequalities is very similar to the definition of a system of linear equations — but it has inequalities instead of equations. To solve a system of linear inequalities, we find the values of the variables that are solutions to both inequalities, and we show that solution set as a shaded region on a graph.
Determine Whether an Ordered Pair Is a Solution of a System of Linear Inequalities
A system of two linear inequalities looks like this:
To determine whether an ordered pair is a solution to a system of two inequalities, we substitute the values of the variables into each inequality. If the ordered pair makes both inequalities true, it is a solution to the system.
Example. Determine whether each ordered pair is a solution to the system : (a) (b) .
(a) Substituting into both inequalities:
Both inequalities are true, so is a solution to the system.
(b) Substituting :
The ordered pair makes one inequality true but the other false, so it is not a solution to the system.
Is the ordered pair a solution to the system: and ?
Substitute , into both inequalities. If even one comes out false, the pair is not a solution.Is the ordered pair a solution to the system: and ?
Substitute , into both inequalities and check that both come out true.Solve a System of Linear Inequalities by Graphing
The solution to a single linear inequality is the region on one side of its boundary line containing all the points that make the inequality true. The solution to a system of two linear inequalities is a region containing the solutions to both inequalities. To find it, we graph each inequality separately on the same grid, then locate the region where the two shadings overlap.
Solve a system of linear inequalities by graphing.
- Graph the first inequality: graph its boundary line, then shade in the side of the boundary line where the inequality is true.
- On the same grid, graph the second inequality: graph its boundary line, then shade in the side of that boundary line where the inequality is true.
- The solution is the region where the shading from both inequalities overlaps.
- Check by choosing a point in the overlapping region and verifying that it makes both inequalities true.
Example. Solve the system by graphing:
We graph the boundary line as a solid line, since the inequality is . Testing : is ? Since is true, we shade the side containing — above and to the left of the line.
On the same grid, we graph the boundary line as a dashed line, since the inequality is . Testing again: is ? Since this is true, we shade the side containing — below and to the right of this line.
The point where the two boundary lines cross, , is not itself part of the solution, since it does not satisfy . The solution to the system is the darker, doubly-shaded wedge below and to the left of that crossing point.
We check by choosing a test point in that wedge, such as :
Solve the system and by graphing, then test the point . Substitute it into and simplify the right side.
, trueSubstitute into : simplifies to 0.Sometimes the boundary lines of a system are parallel. Depending on the direction of the shading, a system like this may have no solution at all.
Example. Solve the system by graphing:
We graph the boundary line as a solid line (intercepts , ). Testing : is ? Since this is false, we shade the side that does not contain .
We graph as a dashed line — it has the same slope, , so it is parallel to the first boundary line. Testing : is ? Since this is true, we shade the side that does contain .
There is no point in both shaded regions, so this system has no solution.
For the system and , substitute , into and simplify the left side.
, false simplifies to 0, so the inequality becomes .Solve Applications of Systems of Inequalities
To solve an application of a system of inequalities, we translate each condition into an inequality, then graph the system to see the region that contains all the solutions. Many realistic situations restrict both variables to be positive, so the graph shows only Quadrant I.
Example. Christy sells photographs at a booth at a street fair. At the start of the day, she wants to display at least 25 photos. Each small photo she displays costs her $4 and each large photo costs her $10, and she doesn’t want to spend more than $200 on photos to display.
(a) Write a system of inequalities to model this situation. Let be the number of small photos and be the number of large photos. She wants at least 25 photos total, so . The cost — $4 per small photo plus $10 per large photo — must be no more than $200, so :
(b) Graph the system. We graph as a solid line and shade the side away from the origin (since fails ). We graph as a solid line and shade the side containing the origin (since satisfies ). Because this is a real-world situation, we only graph Quadrant I, where and .
The solution is the darker, doubly-shaded region bounded by the two lines and the axes.
(c) Could she display 10 small and 20 large photos? Testing : is true, but is false. Since is not in the solution region, she could not display 10 small and 20 large photos.
(d) Could she display 20 small and 10 large photos? Testing : is true, and is also true. Since is in the solution region, she could display 20 small and 10 large photos.
For Christy's system and , could she display 30 small and 5 large photos?
Check both inequalities: , and .For Christy's system and , could she display 5 small and 15 large photos?
Check the first inequality first: is true or false?Key terms
system of linear inequalities — two or more linear inequalities grouped together. solutions of a system of linear inequalities — the ordered pairs that make every inequality in the system true, shown as a shaded region in the - coordinate system where the shadings of the individual inequalities overlap.
This section is adapted from Elementary Algebra 2e, Section 5.6: Graphing Systems 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 overlapping shaded-region figures as accessible inline SVGs; condensed the worked examples; omitted the Be Prepared quiz, Media links, Self Check checklist, and Section Exercises; and converted the practice problems (“Try Its”) into interactive exercises with instant feedback.