Graphing Linear Inequalities

Before learning how to graph linear inequalities, make sure you understand the concepts of graphing slope and graphing linear equations since the steps are very similar.

In this lesson, you will learn

  • How to graph the boundary line of a linear inequality
  • How to use a test point to decide which side to shade
  • When to draw a dashed line and when to draw a solid line

Learn to Graph Linear Inequalities

Type a slope and a y-intercept, pick a sign, and watch the line, the test point and the shading change.

Current inequalityy > 2x + 1

Inequality sign

1 Graph the boundary line

  1. Start at the y-intercept (0, 1).
  2. Use the slope to find a second point: Go up 2 units Go right 1 unit
  3. Connect the points with a dashed line.

2 Pick a side with a test point

  1. Pick a test point that is not on the line: (0, 0)
  2. Plug it into the inequality:
  3. If it is TRUE, shade the side that contains the test point. If it is FALSE, shade the other side.

Follow These Guidelines When Graphing Linear Inequalities

The slope-intercept form of a linear inequality is y > mx + b, y < mx + b, y ≤ mx + b, or y ≥ mx + b.

Say you are graphing y > mx + b:

  1. First graph, y = mx + b.
  2. Then, find out if y is bigger above the line or beneath the line.
  3. Finally, shade the area where y is bigger than mx + b.

Is (0, 0) a solution of y > 23x + 1?

Show answer

No. Replace x and y with 0: 0 > 23 × 0 + 1 gives 0 > 1, which is false.

Example: Graph y > 23x + 1

Worked example: First, graph y = 23x + 1
  1. 1 is the y-intercept and always goes on the y-axis as shown in the graph below with a red dot.
  2. The slope is m = 23. 2 is the rise or how many units you go straight up. 3 is the run or how many units you go to the right (always to the right).
  3. So starting from 1, go up 2 and over 3. This is shown again in the same graph. The location of the new point is shown with a black dot.
  4. Draw a line between the red dot and the black dot. The line is shown in blue.

The boundary line goes through (0, 1) and (3, 3).

The line y = 2/3 x + 1 in blue through the red dot (0, 1) and the black dot (3, 3), with two blue test points at (−3, 4) and (3, 1)

Which Side to Shade: Test a Point

Now here is the crucial step:

Rule

To know which side you shade, you need to pick a point on one side, plug the point into the inequality and see if the resulting inequality makes sense.

If it makes sense for one point, it will make sense for any point you pick on that side. Thus shade everything on the same side of that point.

We will test two points (shown with blue dots). One point will make sense when replaced into the inequality. The other will not.

Let's test (−3, 4)

y > 23x + 1

Is 4 > 23 × (−3) + 1 ?

Is 4 > 23 × −31 + 1 ?

Is 4 > 2 × (−3)3 × 1 + 1 ?

Is 4 > −63 + 1 ?

Is 4 > −2 + 1 ?

Is 4 > −1 ? Yes.

Since the inequality makes sense for (−3, 4), it will make sense for any point chosen on that side or above the line. Therefore, shade everything on the same side of (−3, 4).

Since y is bigger than 23x + 1, but never equal to the line y = 23x + 1, we cannot take any point on the line y = 23x + 1.

We show this situation with a dashed line.

The shaded area representing the location where you can choose any point that will work is shown below in red.

The dashed line y = 2/3 x + 1 with the region above it shaded in red; the test point (−3, 4) is in the shaded region and (3, 1) is not

Notice that the point (3, 1) will not make sense when replaced into the inequality.

y > 23x + 1

Is 1 > 23 × 3 + 1 ?

Is 1 > 23 × 31 + 1 ?

Is 1 > 2 × 33 × 1 + 1 ?

Is 1 > 63 + 1 ?

Is 1 > 2 + 1 ?

Is 1 > 3 ? No.

Since 1 is not bigger than 3, it will not make sense for any point chosen on the same side of the point (3, 1) or chosen below the line.

Common mistake

Picking a test point that is on the line. A point on the line is on neither side, so it can't tell you which side to shade. For example, (0, 0) is on the line of y > 2x, so test (0, 1) instead.

You graph y ≤ −2x + 4 and test (0, 0). Which side do you shade?

Show answer

The side that contains (0, 0), below the line. 0 ≤ −2 × 0 + 4 gives 0 ≤ 4, which is true.

Solid or Dashed Line?

If you were graphing y ≥ 23x + 1, everything stays the same, but you will not make a dashed line. Instead the line will be continuous.

  • Dashed line: > or <Points on the line are not solutions.
  • Solid line: ≥ or ≤Points on the line are solutions too.

Graphing linear inequalities is straightforward once you know how to graph the line. The tricky thing when graphing linear inequalities is to find out if we shade above or below.

Is the boundary line of y < 4x − 1 solid or dashed?

Show answer

Dashed. The sign < does not include “equal to”, so the points on the line y = 4x − 1 are not solutions.

Summary

  • First graph the boundary line y = mx + b: start at the y-intercept, then use the rise and the run of the slope.
  • Use a dashed line for > and <, and a solid line for ≥ and ≤.
  • Pick a test point that is not on the line and plug it into the inequality.
  • If the result is true, shade the side with the test point. If it is false, shade the other side.
  • For y > mx + b or y ≥ mx + b you shade above the line; for y < mx + b or y ≤ mx + b you shade below it.

Test Yourself: Interactive 10-Question Quiz

Now check what you learned. Every answer is explained, and each time you play you get new questions.

Question 1 of 10Score: 0