Ctrl+k

Graph linear inequalities in two variables

A linear inequality in two variables represents a half-plane: all ordered pairs (x,y)(x,y) that make the inequality true. Its boundary is the corresponding line, drawn solid when equality is included and dashed when it is not; a test point or equivalent reasoning identifies the correct side to shade, including for vertical and horizontal boundaries. These graphs provide the foundation for interpreting systems of inequalities as overlapping feasible regions, without extending to nonlinear or three-dimensional inequalities.

Detailed Explanation: Graph linear inequalities in two variables

A linear inequality in two variables is graphed by showing all points (x,y)(x,y) that make the inequality true. The graph has two parts:

  1. A boundary line.
  2. A shaded half-plane on one side of the line.

Use this example:

2x+y>42x+y>4

Step 1: Graph the boundary line

Replace the inequality symbol >> with an equals sign:

2x+y=42x+y=4

Solve for yy:

y=−2x+4y=-2x+4

This line has a yy-intercept of 44 and a slope of −2-2. Plot two points, such as:

  • (0,4)(0,4)
  • (2,0)(2,0)

Because the original inequality uses >>, equality is not included. Therefore, draw the boundary line dashed.

Step 2: Choose a test point

Choose a point that is not on the boundary line. The origin, (0,0)(0,0), is convenient.

Substitute x=0x=0 and y=0y=0 into the original inequality:

2(0)+0>42(0)+0>4 0>40>4

This is false, so (0,0)(0,0) is not part of the solution region.

Step 3: Shade the correct side

Since the origin is on the side that does not work, shade the opposite side of the dashed line.

Equivalently, rewrite the inequality as:

y>−2x+4y>-2x+4

This means shade the region above the dashed line.

Every point in the shaded region makes 2x+y>42x+y>4 true. Points on the dashed line are not included because the inequality is strict. If the inequality had been ≥\geq or ≤\leq, the boundary would be drawn solid.

Learn by doing: Graph linear inequalities in two variables

Click a topic below to practice the foundational skills you'll need, learn the steps, or master this skill

Practice with unlimited practice problems

Two-Variable Linear Inequalities (Pair) - Inequalities to Graph


    ?