Skip to content
Graphing Systems of Linear Inequalities

Graphing Systems of Linear Inequalities

By the end of this section, you will be able to: determine whether an ordered pair is a solution of a system of linear inequalities, solve a system of linear inequalities by graphing, and solve applications of systems of 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

System of linear inequalities. Two or more linear inequalities grouped together form a system of linear inequalities.

A system of two linear inequalities looks like this:

{x+4y103x2y<12 \begin{cases} x + 4y \geq 10 \\ 3x - 2y < 12 \end{cases}
Solutions of a system of linear inequalities. Solutions of a system of linear inequalities are the values of the variables that make all the inequalities true. The solution is shown as a shaded region in the xx-yy coordinate system that includes all the points whose ordered pairs make the inequalities true.

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 {x+4y103x2y<12\begin{cases} x + 4y \geq 10 \\ 3x - 2y < 12 \end{cases}: (a) (2,4)(-2, 4) (b) (3,1)(3, 1).

(a) Substituting x=2,y=4x = -2, y = 4 into both inequalities:

2+4(4)103(2)2(4)<12 -2 + 4(4) \geq 10 \qquad 3(-2) - 2(4) < 12 1410 true14<12 true 14 \geq 10 \ \text{true} \qquad -14 < 12 \ \text{true}

Both inequalities are true, so (2,4)(-2, 4) is a solution to the system.

(b) Substituting x=3,y=1x = 3, y = 1:

3+4(1)103(3)2(1)<12 3 + 4(1) \geq 10 \qquad 3(3) - 2(1) < 12 710 false7<12 true 7 \geq 10 \ \text{false} \qquad 7 < 12 \ \text{true}

The ordered pair (3,1)(3, 1) makes one inequality true but the other false, so it is not a solution to the system.

Is the ordered pair (3,1)(3, -1) a solution to the system: x5y>10x - 5y > 10 and 2x+3y>22x + 3y > -2?

Is the ordered pair (6,3)(6, -3) a solution to the system: x5y>10x - 5y > 10 and 2x+3y>22x + 3y > -2?

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.

  1. Graph the first inequality: graph its boundary line, then shade in the side of the boundary line where the inequality is true.
  2. 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.
  3. The solution is the region where the shading from both inequalities overlaps.
  4. Check by choosing a point in the overlapping region and verifying that it makes both inequalities true.

Example. Solve the system by graphing: {y2x1y<x+1\begin{cases} y \geq 2x - 1 \\ y < x + 1 \end{cases}

We graph the boundary line y=2x1y = 2x - 1 as a solid line, since the inequality is \geq. Testing (0,0)(0, 0): is 02(0)10 \geq 2(0) - 1? Since 010 \geq -1 is true, we shade the side containing (0,0)(0, 0) — above and to the left of the line.

On the same grid, we graph the boundary line y=x+1y = x + 1 as a dashed line, since the inequality is <<. Testing (0,0)(0, 0) again: is 0<0+10 < 0 + 1? Since this is true, we shade the side containing (0,0)(0, 0) — below and to the right of this line.

xyy ≥ 2x − 1y < x + 1solution

The point where the two boundary lines cross, (2,3)(2, 3), is not itself part of the solution, since it does not satisfy y<x+1y < x + 1. 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 (1,1)(-1, -1):

Solve the system y>=2x1y >= 2x - 1 and y<x+1y < x + 1 by graphing, then test the point (1,1)(-1, -1). Substitute it into y<x+1y < x + 1 and simplify the right side.

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: {4x+3y12y<43x+1\begin{cases} 4x + 3y \geq 12 \\ y < -\tfrac{4}{3}x + 1 \end{cases}

We graph the boundary line 4x+3y=124x + 3y = 12 as a solid line (intercepts x=3x = 3, y=4y = 4). Testing (0,0)(0, 0): is 4(0)+3(0)124(0) + 3(0) \geq 12? Since this is false, we shade the side that does not contain (0,0)(0, 0).

We graph y=43x+1y = -\tfrac{4}{3}x + 1 as a dashed line — it has the same slope, 43-\tfrac{4}{3}, so it is parallel to the first boundary line. Testing (0,0)(0, 0): is 0<10 < 1? Since this is true, we shade the side that does contain (0,0)(0, 0).

xy4x + 3y ≥ 12y < −4/3 x + 1

There is no point in both shaded regions, so this system has no solution.

For the system 4x+3y>=124x + 3y >= 12 and y<43x+1y < -\tfrac{4}{3} x + 1, substitute x=0x = 0, y=0y = 0 into 4x+3y>=124x + 3y >= 12 and simplify the left side.

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 xx be the number of small photos and yy be the number of large photos. She wants at least 25 photos total, so x+y25x + y \geq 25. The cost — $4 per small photo plus $10 per large photo — must be no more than $200, so 4x+10y2004x + 10y \leq 200:

{x+y254x+10y200 \begin{cases} x + y \geq 25 \\ 4x + 10y \leq 200 \end{cases}

(b) Graph the system. We graph x+y=25x + y = 25 as a solid line and shade the side away from the origin (since (0,0)(0,0) fails x+y25x + y \geq 25). We graph 4x+10y=2004x + 10y = 200 as a solid line and shade the side containing the origin (since (0,0)(0,0) satisfies 4x+10y2004x + 10y \leq 200). Because this is a real-world situation, we only graph Quadrant I, where x0x \geq 0 and y0y \geq 0.

xyx + y ≥ 254x + 10y ≤ 20010203040501020304050

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 (10,20)(10, 20): 10+20=302510 + 20 = 30 \geq 25 is true, but 4(10)+10(20)=40+200=2402004(10) + 10(20) = 40 + 200 = 240 \leq 200 is false. Since (10,20)(10, 20) 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 (20,10)(20, 10): 20+10=302520 + 10 = 30 \geq 25 is true, and 4(20)+10(10)=80+100=1802004(20) + 10(10) = 80 + 100 = 180 \leq 200 is also true. Since (20,10)(20, 10) is in the solution region, she could display 20 small and 10 large photos.

For Christy's system x+y>=25x + y >= 25 and 4x+10y<=2004x + 10y <= 200, could she display 30 small and 5 large photos?

For Christy's system x+y>=25x + y >= 25 and 4x+10y<=2004x + 10y <= 200, could she display 5 small and 15 large photos?

Key terms

system of linear inequalities — two or more linear inequalities grouped together. solutions of a system of linear inequalities — the ordered pairs (x,y)(x, y) that make every inequality in the system true, shown as a shaded region in the xx-yy 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.