Mathwords logoMathwords

Graphing Linear Inequalities — Definition, Formula & Examples

Graphing linear inequalities means representing an inequality like y>2x+1y > 2x + 1 on the coordinate plane by drawing a boundary line and shading the region of all points that make the inequality true.

A linear inequality in two variables has the form ax+by<cax + by < c, ax+bycax + by \leq c, ax+by>cax + by > c, or ax+bycax + by \geq c. Its graph is a half-plane: the set of all ordered pairs (x,y)(x, y) satisfying the inequality, bounded by the line ax+by=cax + by = c, which is drawn solid when the inequality includes equality (\leq or \geq) and dashed when it does not (<< or >>).

Key Formula

ax+bycorax+by<cax + by \leq c \quad \text{or} \quad ax + by < c
Where:
  • a,ba, b = Coefficients of the variables (not both zero)
  • x,yx, y = Variables representing coordinates on the plane
  • cc = Constant on the right side of the inequality

How It Works

To graph a linear inequality, first graph the boundary line by replacing the inequality symbol with an equals sign. Use a solid line for \leq or \geq and a dashed line for << or >>. Then pick a test point not on the line — the origin (0,0)(0,0) is the easiest choice when it is not on the boundary. Substitute that point into the original inequality: if the result is true, shade the side of the line containing the test point; if false, shade the opposite side. Every point in the shaded region is a solution to the inequality.

Worked Example

Problem: Graph the inequality yx+4y \leq -x + 4 on the coordinate plane.
Step 1: Draw the boundary line: Replace the inequality with an equals sign and graph the line y=x+4y = -x + 4. The y-intercept is (0,4)(0, 4) and the slope is 1-1, so another point is (4,0)(4, 0). Because the symbol is \leq (includes equality), draw a solid line.
y=x+4y = -x + 4
Step 2: Choose a test point: Pick the origin (0,0)(0, 0) since it does not lie on the boundary line.
Step 3: Substitute into the inequality: Plug (0,0)(0, 0) into yx+4y \leq -x + 4.
0(0)+4    040 \leq -(0) + 4 \implies 0 \leq 4 \quad \checkmark
Step 4: Shade the correct region: The test point makes the inequality true, so shade the side of the line that contains the origin — the region below and to the left of the line.
Answer: Draw a solid line through (0,4)(0,4) and (4,0)(4,0), then shade below it. Every point in the shaded region satisfies yx+4y \leq -x + 4.

Another Example

Problem: Graph the inequality 2x3y>62x - 3y > 6.
Step 1: Rewrite in slope-intercept form (optional but helpful): Solve for yy: subtract 2x2x and divide by 3-3. Remember to flip the inequality when dividing by a negative number.
3y>2x+6    y<23x2-3y > -2x + 6 \implies y < \tfrac{2}{3}x - 2
Step 2: Graph the boundary line: Graph y=23x2y = \tfrac{2}{3}x - 2 using the y-intercept (0,2)(0, -2) and slope 23\tfrac{2}{3}, giving a second point (3,0)(3, 0). The symbol is << (strict), so draw a dashed line.
Step 3: Test the origin: Substitute (0,0)(0,0) into the original inequality 2x3y>62x - 3y > 6.
2(0)3(0)>6    0>6False2(0) - 3(0) > 6 \implies 0 > 6 \quad \text{False}
Step 4: Shade the opposite side: Since the origin does not satisfy the inequality, shade the region on the other side of the line — below and to the right.
Answer: Draw a dashed line through (0,2)(0,-2) and (3,0)(3,0), then shade below it. All points in the shaded region satisfy 2x3y>62x - 3y > 6.

Why It Matters

Graphing linear inequalities is a core skill in Algebra 1 and appears again in Algebra 2 when you solve systems of inequalities to find feasible regions. In economics and business, linear programming uses these shaded regions to optimize profit, cost, or resource allocation under constraints.

Common Mistakes

Mistake: Forgetting to flip the inequality sign when multiplying or dividing by a negative number.
Correction: When you multiply or divide both sides of an inequality by a negative value, you must reverse the direction of the inequality symbol. For example, dividing 2y>8-2y > 8 by 2-2 gives y<4y < -4, not y>4y > -4.
Mistake: Shading the wrong side of the boundary line without testing a point.
Correction: Always substitute a test point (such as the origin) into the original inequality to confirm which half-plane to shade. Do not assume 'greater than' always means shade above.

Related Terms