Algebra 1 · Grade 9

Graphing Linear Inequalities in Two Variables

Quick answer

An equation in two variables draws a line. An inequality keeps everything on one side of that line, so the solution set is a half-plane rather than a curve. Draw the boundary — solid if the inequality allows equality, dashed if not — then test one point off the line to decide which side to shade.

What you'll learn

  • Graph a linear inequality as a half-plane
  • Decide whether the boundary is solid or dashed
  • Graph a system of inequalities as the overlap of half-planes

From a line to a region

A linear equation in two variables draws a line, and that line is the picture of every solution.

y=x+1y = x + 1

Change the equals sign to an inequality and far more points qualify:

y≥x+1y \ge x + 1

Now (0,5)(0, 5) works, since 5≥15 \ge 1. So does (0,2)(0, 2) and (−3,4)(-3, 4). None of them sits on the line.

The solutions fill a half-plane — everything on one side of the line, plus the line itself.

The solutions of y is greater than or equal to x + 1 A coordinate grid from -4 to 6 across and -4 to 8 up. A straight line rises through (0, 1) and (2, 3). Everything above and to the left of the line is shaded, and the line itself is drawn solid to show it is included. -4-2246-4-22468xy
  • y = x + 1
The solutions of y is greater than or equal to x + 1

Why one side and not the other

Pick any xx. The line gives one particular yy, namely x+1x + 1. Every yy above that is greater, and every yy below is smaller.

So y≥x+1y \ge x + 1 holds for the point on the line and everything vertically above it. Do that for every xx and the solutions sweep out the whole region above the line.

Below the line, yy is smaller than x+1x + 1, so the inequality fails at every point. There is no mixing: the line separates the plane into a side where the inequality always holds and a side where it never does.

That is why shading a region is a complete answer rather than a rough one.

Solid or dashed

The boundary itself is a separate question from the shading.

SignBoundaryReason
≤\le or ≥\gesolidpoints on the line satisfy the inequality
<< or >>dashedpoints on the line give equality, which is excluded

For y>x+1y > x + 1, the point (0,1)(0, 1) gives 1>11 > 1, which is false. The line is not part of the solution, and the dashes say so.

The solutions of y is greater than x + 1 The same grid and the same shaded region above the line, but the line itself is drawn as a dashed line to show that points on it are not solutions. -4-2246-4-22468xy
  • y = x + 1
The solutions of y is greater than x + 1

The test point

Rather than reasoning about which side is “above”, test a point.

  1. Draw the boundary line.
  2. Pick any point not on the line.
  3. Substitute it into the inequality.
  4. True means shade that point’s side. False means shade the other side.

(0,0)(0, 0) is the point to use whenever the line misses the origin, because substituting zeros is a single glance.

Shade 2x+3y<62x + 3y < 6.

Test (0,0)(0, 0):

2(0)+3(0)=0<6true2(0) + 3(0) = 0 < 6 \quad\text{true}

So shade the side containing the origin, with a dashed boundary since the sign is strict.

The test point works in any form. Reading the sign directly only works once yy is alone on the left, and rearranging is where sign errors creep in — dividing by a negative flips the sign.

Systems of inequalities

A system asks for points satisfying every inequality at once. Shade each half-plane, and the solution is where they overlap.

y≤−x+6y≥x−2y \le -x + 6 \qquad y \ge x - 2

Each condition removes half the plane. What survives both is a wedge.

The overlap of two inequalities A grid from -4 to 8 across and -4 to 8 up. Two lines cross at (4, 2). One falls from upper left to lower right and the other rises. The wedge between them, open to the left, is shaded as the region satisfying both inequalities. -4-22468-4-22468xy
  • y = -x + 6
  • y = x - 2
The overlap of two inequalities

Every corner of the overlap is an intersection of two boundary lines, which is why solving systems of equations is the tool for finding them. Here the two lines meet where −x+6=x−2-x + 6 = x - 2, giving x=4x = 4 and the corner (4,2)(4, 2).

An overlap can also be empty. Two parallel lines shaded away from each other share nothing, and the system has no solutions.

Worked examples

Common mistakes

Practice problems

  1. Is the boundary of y>x+2y > x + 2 solid or dashed?

    Answer

    Dashed

    Full solution

    A strict inequality excludes the line.

  2. Is the boundary of y≥4xy \ge 4x solid or dashed?

    Answer

    Solid

    Full solution

    ≥\ge allows equality, so points on the line are solutions.

  3. Is (0,0)(0, 0) a solution of y<x+5y < x + 5?

    Answer

    Yes

    Full solution

    0<50 < 5 is true.

  4. Is (3,1)(3, 1) a solution of y≥2x−4y \ge 2x - 4?

    Answer

    No

    Full solution

    2(3)−4=22(3) - 4 = 2, and 1≥21 \ge 2 is false.

  5. Graph y<2y < 2. What does the boundary look like?

    Answer

    A dashed horizontal line at y=2y = 2, shaded below

    Full solution

    Strict, so dashed. Smaller yy is below.

  6. Which side of x+y≤3x + y \le 3 holds the solutions?

    Answer

    The side containing the origin

    Full solution

    0+0=0≤30 + 0 = 0 \le 3 is true.

  7. What shape is the solution set of a single linear inequality?

    Answer

    A half-plane

    Full solution

    The boundary line splits the plane, and one side satisfies the inequality.

  8. Where do y≤4y \le 4 and y≥1y \ge 1 overlap?

    Hint

    Both conditions must hold at the same point.

    Answer

    A horizontal strip between y=1y = 1 and y=4y = 4, both boundaries solid

    Full solution

    The first shades everything at or below y=4y = 4.

    The second shades everything at or above y=1y = 1.

    A point in both has yy between 11 and 44, which is the strip between the two lines.

  9. Can a system of two linear inequalities have no solutions?

    Answer

    Yes

    Full solution

    Take y≥x+5y \ge x + 5 and y≤x−5y \le x - 5.

    The boundaries are parallel, and the two half-planes are shaded away from each other.

    Nothing lies in both, so the system has no solutions.

  10. Asked to graph −y>x-y > x, Jonah shades above the line because the sign is >>. Find his error.

    Hint

    Test the point (1,1)(1, 1).

    Answer

    The solutions are below the line. He applied a rule that needs yy alone and positive.

    Full solution

    The “greater means above” reading only applies once the inequality is in the form y>…y > \dots with a positive yy.

    Here yy carries a minus sign. Dividing by −1-1 flips the inequality:

    −y>x-y > x becomes y<−xy < -x.

    So the solutions lie below the line y=−xy = -x, the opposite of what Jonah shaded.

    A test point settles it without any rearranging. Take (1,1)(1, 1), which is above the line: −1>1-1 > 1 is false, so that side is not the solution set.

Frequently asked questions

Why is the solution a whole region?

An equation is satisfied only on the line. An inequality is satisfied by everything on one side of it, which is a half-plane.

When is the boundary dashed?

When the inequality is strict, using < or >. Points on the line do not satisfy it, so the line is drawn dashed to show it is excluded.

How do I decide which side to shade?

Test a point that is not on the line — (0, 0) whenever the line misses the origin. If it satisfies the inequality, shade its side.

What is the solution of a system of inequalities?

The overlap of the half-planes. A point must satisfy every inequality, so it must lie in every shaded region at once.

Does the inequality sign always tell me to shade above?

Only once y is alone on the left. Test a point instead — it works whatever form the inequality is written in.

What to learn next

Standards alignment

This lesson covers the following Common Core State Standards for Mathematics.

  • CCSS.MATH.CONTENT.HSA.REI.D.12Reasoning with Equations and InequalitiesGraph the solutions to a linear inequality in two variables as a half-plane (excluding the boundary in the case of a strict inequality), and graph the solution set to a system of linear inequalities in two variables as the intersection of the corresponding half-planes.