Allday Education

Graphing Linear Inequalities

A linear inequality like y<2x+1y < 2x + 1 doesn't have a line of solutions — it has a whole region of them. Every point on one side of the line y=2x+1y = 2x + 1 makes the inequality true, so the graph is a shaded half of the coordinate plane.

Graphing one takes exactly three decisions: draw the boundary line, decide if it's solid or dashed, and decide which side to shade. Each decision reads straight off the inequality symbol.

Solid or dashed boundary

The boundary line is the graph of the matching equation — for y<2x+1y < 2x + 1, that's the line y=2x+1y = 2x + 1, drawn with its slope and yy-intercept as usual.

Strict symbols << and >> mean points on the line itself are not solutions, so draw it dashed. The symbols \leq and \geq include equal, so points on the line are solutions — draw it solid.

This is the same idea as open versus closed circles on a number line, stretched into two dimensions: dashed is the open circle, solid is the closed one.

Which side to shade

With the inequality solved for yy, the symbol tells you directly: y>y > or yy \geq shades above the line (larger yy-values), and y<y < or yy \leq shades below (smaller yy-values).

Here's y<2x+1y < 2x + 1 finished: the boundary y=2x+1y = 2x + 1 is dashed because << is strict, and the shading sits below the line because yy is less than the expression.

-4-3-2-11234-4-3-2-11234xy

Check with a test point

Not sure about the shading, or the inequality isn't solved for yy? Test a point. Pick any point not on the boundary — (0,0)(0, 0) is the easiest whenever the line misses the origin — and substitute it into the inequality.

If the statement comes out true, shade the side containing your test point. If it comes out false, shade the other side. For y<x+4y < x + 4, testing (0,0)(0, 0) gives 0<40 < 4, which is true — so the origin's side gets the shading.

Worked examples

Example 1: dashed line, shade below

Graph y<2x+1y < 2x + 1.

Graph the boundary liney=2x+1y = 2x + 1
The symbol << is strict, so make the line dashed
yy is less than the expression, so shade below the line
Check (0,3)(0, -3): 3<2(0)+1=1-3 < 2(0) + 1 = 1

Answer: Dashed line y=2x+1y = 2x + 1, shaded below

Example 2: solid line, shade above

Graph y12x+2y \geq -\dfrac{1}{2}x + 2.

Graph the boundary liney=12x+2y = -\dfrac{1}{2}x + 2
The symbol \geq includes equal, so make the line solid
yy is greater than or equal to the expression, so shade above the line

Answer: Solid line y=12x+2y = -\dfrac{1}{2}x + 2, shaded above

Example 3: decide with a test point

Is (0,0)(0, 0) a solution to y2x3y \leq 2x - 3? Which side gets shaded?

Substitute x=0x = 0 and y=0y = 002(0)30 \leq 2(0) - 3
Simplify030 \leq -3
The statement is false, so (0,0)(0, 0) is not a solution
Shade the side of the line that does not contain the origin

Answer: (0,0)(0, 0) is not a solution; shade the side away from the origin

Try one yourself

Common questions

How do I know if the boundary line is solid or dashed?

Look only at the symbol. \leq and \geq include equal, so points on the line count — solid. << and >> are strict, so the line's points don't count — dashed.

What if the inequality isn't solved for yy?

You have two options: rearrange it into yy-form first (and remember dividing by a negative flips the symbol), or skip the rearranging and use a test point — substitute a point like (0,0)(0, 0) and shade based on whether the result is true.

Why can't I always use (0,0)(0, 0) as the test point?

The test point can't sit on the boundary line. If the line passes through the origin — like y>2xy > 2x — then (0,0)(0, 0) is on the boundary and tells you nothing. Pick another easy point, like (1,0)(1, 0) or (0,1)(0, 1).

Is a point on a dashed boundary a solution?

No. Dashed means the boundary is excluded — those points make the two sides exactly equal, and a strict inequality demands strictly less or strictly greater. Only a solid boundary's points are solutions.

Want the video version?

Allday Everyday Math has video lessons, practice, and an AI tutor for every topic, Pre-Algebra through Algebra 2.

Try it for $1