Inequalities and Piecewise Functions

How to Graph Systems of Inequalities

To graph a system of inequalities, graph each inequality on the same axes — boundary line, dashed or solid, and shading — then find where all the shaded regions overlap. That overlap is the solution set. Its corners are intersections of boundary lines. If the regions do not overlap anywhere, the system has no solution.

System y ≥ x − 1, y ≤ −x + 5 and x ≥ 0 with the triangular overlap region shaded and corner points (0, −1), (0, 5) and (3, 2) labelled.

Check it yourself: every example here can be loaded into the Graphing Inequalities Calculator.

Open the Graphing Inequalities Calculator

What a system of inequalities is

A system of inequalities is two or more inequalities that must all be true at the same time. Its solution is the set of points that satisfy every inequality — on a graph, the region where all the shadings overlap. This region is often called the feasible region.

Step by step

  1. Graph the first inequality — boundary (dashed or solid) and shading. See how to graph inequalities.
  2. Graph each other inequality on the same axes.
  3. Find the overlap. Shade it more heavily or outline it.
  4. Label the corners — intersections of the boundary lines, found by solving pairs of equations.
  5. Check one point inside the region in every inequality.
Three panels: y ≥ x shaded above a solid line; y ≤ 2 shaded below a solid horizontal line; the overlap region between them with the corner (2, 2).
Shade each inequality, then keep only where every shading overlaps.
Text description of this figure

Three panels: y ≥ x shaded above a solid line; y ≤ 2 shaded below a solid horizontal line; the overlap region between them with the corner (2, 2).

  1. Graph and shade the first inequality.
  2. Graph and shade the second on the same axes.
  3. The solution is only the region shaded by both.

Worked example: y ≥ x and y ≤ 2

  • y ≥ x: solid line y = x, shade above.
  • y ≤ 2: solid line y = 2, shade below.
  • Overlap: the wedge above y = x and below y = 2, extending to the left.
  • Corner: solve y = x and y = 2 → (2, 2), included because both lines are solid.
  • Check (0, 1): 1 ≥ 0 ✓ and 1 ≤ 2 ✓.
Try it in the calculator

Worked example: a triangular region

System: y ≥ x − 1, y ≤ −x + 5, x ≥ 0.

Corner Lines Point
A x = 0 and y = x − 1 (0, −1)
B x = 0 and y = −x + 5 (0, 5)
C y = x − 1 and y = −x + 5 (3, 2)

For C: x − 1 = −x + 5 → x = 3, y = 2. The solution is the triangle ABC including its edges (all boundaries are solid).

Try it in the calculator

When there is no solution

y > x + 2 and y < x − 1 have parallel boundaries. The first region is above the upper line; the second is below the lower line. They never overlap, so the system has no solution. The calculator reports “no overlap in this window” — and since the lines are parallel, zooming out will not change that.

Try it in the calculator

Linear programming in one example

A bakery makes x cakes and y pies. Constraints: x ≥ 0, y ≥ 0, x + y ≤ 10 (oven space), 2x + y ≤ 14 (hours). Profit is P = 5x + 4y. The feasible region has corners (0, 0), (7, 0), (4, 6) and (0, 10). Testing P at each: 0, 35, 44, 40. The best plan is 4 cakes and 6 pies for a profit of 44. The maximum of a linear expression over such a region always occurs at a corner.

Common mistakes

  • Shading each region but not identifying the overlap. Only the overlap is the solution.
  • Including corners on dashed lines.
  • Solving corner points by eye. Solve the pair of equations; see systems of equations.
  • Concluding “no solution” from a small window when boundaries are not parallel. Zoom out first.

Questions

Is a corner point always a solution?

Only if both boundary lines through it are solid. If either is dashed, the corner is excluded.

Can the solution region be unbounded?

Yes. y ≥ x and y ≤ 2 gives a region that extends forever to the left. Adding x ≥ −3 would close it off.

Where are systems of inequalities used?

In linear programming: the region is the set of allowed choices, and the best choice (maximum profit, minimum cost) is found at one of its corners.

Graph your own example with the Graphing Inequalities Calculator — free, in your browser.

Try it now

Sources and further reading

Worked examples and figures were produced and checked with the Graphing Calculator Lab engine. See the editorial policy.

Related guides

More in Inequalities and Piecewise Functions · All guides