Graphing Linear Inequalities in Two Variables
Discounts, tax, tips, profit margins
Measurements, material estimation, cutting calculations
A linear inequality in two variables looks like a linear equation but uses an inequality symbol instead of an equals sign. Instead of graphing a single line, you graph an entire region — a half-plane of points that satisfy the inequality.
For example, does not describe a line. It describes every point where the -coordinate is greater than . That is an infinite set of points filling one side of the line .
The Three-Step Process
Every linear inequality in two variables is graphed using the same three steps:
- Graph the boundary line (the related equation)
- Choose solid or dashed based on the inequality symbol
- Shade the correct side by testing a point
Step 1: Graph the Boundary Line
Replace the inequality symbol with an equals sign and graph that line using any method you know (slope-intercept, intercepts, table of values).
For , the boundary line is .
This line has slope 2 and -intercept 1. Plot the intercept at , then use the slope to find another point: up 2, right 1 gives . Draw the line through these points.
Step 2: Solid or Dashed?
The inequality symbol tells you whether points on the boundary line are included in the solution:
| Symbol | Line Style | Points on Line Included? |
|---|---|---|
| Dashed | No | |
| Dashed | No | |
| Solid | Yes | |
| Solid | Yes |
For , the symbol is (strict), so the boundary line is dashed. Points exactly on the line are not part of the solution.
For , the symbol is (non-strict), so the boundary line would be solid. Points on the line are included.
Step 3: Shade the Correct Side
The boundary line divides the coordinate plane into two half-planes. One side contains the solutions; the other does not. To determine which side to shade, test a point that is not on the boundary line.
The easiest test point is — as long as the line does not pass through the origin.
For , test :
This is false, so is not in the solution region. Shade the opposite side of the line from — that is, shade above the line.
If the test point makes the inequality true, shade the side that contains the test point.
Worked Examples
Example 1: Graph
Step 1 — Boundary line: . Slope is , -intercept is 4. Points: and .
Step 2 — Line style: The symbol is , so draw a solid line.
Step 3 — Test :
True! Shade the side that contains — the region below the line.
Solution region: The solid line through and , with shading below and to the left.
Example 2: Graph
Step 1 — Boundary line: . Find intercepts:
- -intercept: set . Point:
- -intercept: set . Point:
Step 2 — Line style: The symbol is , so draw a dashed line.
Step 3 — Test :
False. Shade the side that does not contain — the region above the line.
Example 3: Graph
Step 1 — Boundary line: . This line passes through the origin with slope .
Step 2 — Line style: The symbol is , so draw a solid line.
Step 3 — Test point: Since the line passes through , choose a different test point. Try :
True. Shade the side containing — the region above the line.
Important: When the boundary passes through the origin, pick any convenient point that is clearly on one side, such as , , or .
Writing Inequalities from Graphs
You can also work backward — given a graph showing a boundary line and shading, write the inequality.
Steps:
- Find the equation of the boundary line (use slope and intercept)
- Determine if the line is solid ( or ) or dashed ( or )
- Pick a point in the shaded region and test which inequality direction is true
Example 4: Identify the Inequality
A graph shows a dashed line through and with shading below the line.
Step 1 — Find the equation. Slope: . The -intercept is 3. Equation: .
Step 2 — Dashed line means strict inequality ( or ).
Step 3 — Test a point in the shaded region. The shading is below the line, so test :
Since and the shading includes :
Answer:
Inequalities in Standard Form
When the inequality is in standard form like , you do not need to convert to slope-intercept form to graph it. Just find two points on the boundary line (the intercepts work well), draw the line, and test a point.
Example 5: Graph
Boundary line:
Intercepts:
- -intercept: . Point:
- -intercept: . Point:
Line style: means solid.
Test :
False. Shade the side that does not contain — below and to the right of the line.
Horizontal and Vertical Boundary Lines
Some inequalities produce horizontal or vertical boundary lines.
Horizontal: has boundary line (a horizontal line). Shade below the solid line.
Vertical: has boundary line (a vertical line). Shade to the right of the dashed line.
These are simpler because you don’t need to test a point — the inequality directly tells you which direction to shade.
Systems of Linear Inequalities (Introduction)
A system of linear inequalities is two or more inequalities graphed on the same coordinate plane. The solution is the region where all shaded areas overlap.
Example 6: Graph the System
Graph each inequality separately:
First inequality: Boundary (solid line, slope 1, -intercept 3). Test : is true, so shade the side containing the origin — below the line.
Second inequality: Boundary (dashed line, slope , -intercept 1). Test : gives , which is false. Shade the side not containing the origin — above the line.
Solution region: The area where both shadings overlap. This is a wedge-shaped region above the dashed line and below the solid line. Only points in this overlap region satisfy both inequalities simultaneously.
The two boundary lines intersect where , which gives , so and . The overlap region extends to the right from near this intersection point.
Real-World Application: Retail — Budget and Inventory Constraints
A small retail shop owner is ordering two types of products for the holiday season:
- Product A costs $15 per unit
- Product B costs $25 per unit
- The total budget is $3,000
The budget constraint is:
where is the number of units of Product A and is the number of units of Product B.
Additionally, the shop has limited shelf space for at most 150 total items:
And both quantities must be non-negative:
Graphing the budget line:
- -intercept: (if only Product A)
- -intercept: (if only Product B)
Graphing the shelf space line:
- -intercept:
- -intercept:
Both are solid lines (non-strict inequalities) with shading toward the origin. The solution region is the area where all four inequalities overlap — a polygon in the first quadrant. Any point inside this region represents a valid order.
For instance, ordering 80 units of A and 60 units of B: cost is , and total is . This combination is in the solution region.
Carpentry — Material and Time Constraints
A carpenter builds two types of furniture: tables and bookshelves. Each table requires 6 board-feet of lumber and 3 hours of labor. Each bookshelf requires 4 board-feet and 5 hours. The carpenter has 120 board-feet of lumber and 90 hours available this month.
Let = number of tables and = number of bookshelves.
Lumber constraint:
Time constraint:
Non-negativity:
Graphing these constraints creates a feasible region — the polygon of all possible production combinations. The carpenter can pick any point inside this region. The vertices of the polygon are especially important because they represent the combinations that maximize or minimize objectives like profit (this connects to linear programming, an advanced topic).
For example, making 10 tables and 12 bookshelves: lumber used is , time used is . This point is on the boundary of the feasible region — the carpenter uses all available labor hours.
Common Mistakes to Avoid
-
Using a solid line for strict inequalities. If the symbol is or (no “equal to” bar), the line must be dashed. Points on the line are not solutions. This is the graphing equivalent of open vs. closed circles on a number line.
-
Shading the wrong side. Always test a point. The most common error is assuming “greater than” always means “shade above.” This is true when the inequality is solved for (e.g., ), but not when it is in standard form. For , solving for gives , and you shade below.
-
Testing a point on the boundary line. If the test point is on the line, the result is ambiguous. Choose a point clearly on one side — is the best default unless the line passes through the origin.
-
Forgetting to shade at all. The graph of a linear inequality is a region, not a line. Without shading, your graph is incomplete and represents only the boundary equation, not the inequality.
-
Confusing the system solution with individual solutions. For a system of inequalities, the solution is only the overlap of all regions — not the union. A point must satisfy every inequality in the system.
Practice Problems
Test your understanding with these problems. Click to reveal each answer.
Problem 1: Graph . Describe the boundary line style and which side to shade.
Boundary line: (slope 3, -intercept ).
Line style: Dashed (strict ).
Test : . True, so shade the side containing the origin — above the line.
Answer: Dashed line through with slope 3, shading above.
Problem 2: Graph . Find the intercepts and determine the shading.
Boundary:
-intercept: . -intercept: .
Line style: Solid ().
Test : . True, so shade the side containing the origin — below the line.
Answer: Solid line through and , shading below and to the left.
Problem 3: Is the point a solution to ?
Substitute:
is true.
Answer: Yes, is a solution.
Problem 4: Graph . Note: the line passes close to the origin.
Boundary: . Slope is , -intercept is .
Line style: Solid ().
Test : . True, so shade the side containing the origin — above the line.
Answer: Solid line through and , shading above.
Problem 5: Write the inequality shown by a solid line through and with shading above the line.
Slope: . Equation: .
Solid line means or . Shading above means is greater than the line.
Test a point in the shaded region, say : . True.
Answer:
Problem 6: A carpenter has a $2,400 budget. Hardwood costs $8 per board-foot and plywood costs $3 per board-foot. Write and graph the inequality. Can the carpenter buy 150 board-feet of hardwood and 200 board-feet of plywood?
Let = board-feet of hardwood, = board-feet of plywood.
Inequality:
Intercepts: -intercept , -intercept .
Solid line, shade toward origin (, ).
Check : . True.
Answer: Yes, the carpenter can afford this combination ($1,800 is within the $2,400 budget with $600 to spare).
Problem 7: Graph the system and and describe the solution region.
First inequality: horizontal solid line at , shade below.
Second inequality: vertical dashed line at , shade to the right.
The solution region is the overlap: all points where and . This is the region to the right of the dashed vertical line and below (or on) the solid horizontal line — an infinite quarter-plane extending right and downward.
Answer: The solution is the region where and , covering the lower-right area bounded by a dashed vertical line and a solid horizontal line.
Key Takeaways
- A linear inequality in two variables represents a half-plane — an entire region of the coordinate plane, not just a line
- Dashed lines for strict inequalities (, ); solid lines for non-strict (, )
- Always test a point (usually the origin) to determine which side to shade — do not guess based on the inequality symbol alone
- A system of inequalities is solved by graphing all inequalities and finding where the shaded regions overlap
- In real-world problems, linear inequalities model constraints — budgets, capacity limits, material availability — and the solution region shows all feasible combinations
- This topic connects directly to linear programming, where you find the optimal point within a feasible region defined by multiple inequality constraints
Return to Algebra for more topics in this section.
Next Up in Algebra
All Algebra topicsLast updated: March 29, 2026