Inequalities and Piecewise Functions
Dashed vs Solid Lines in Inequality Graphs
In an inequality graph the boundary line is dashed for strict inequalities (< or >) because points on the line do not satisfy them, and solid for inclusive inequalities (≤ or ≥) because points on the line do. The shading is the same in both cases; only whether the boundary itself is included changes.
Check it yourself: every example here can be loaded into the Graphing Inequalities Calculator.
Open the Graphing Inequalities CalculatorThe rule
| Symbol | Read as | Boundary | Boundary points are… |
|---|---|---|---|
| < | less than | dashed | not solutions |
| > | greater than | dashed | not solutions |
| ≤ | less than or equal to | solid | solutions |
| ≥ | greater than or equal to | solid | solutions |
The boundary is where the two sides are equal. A strict inequality forbids equality, so its boundary is drawn dashed to show “the edge, but not included”. An inclusive inequality allows equality, so the edge is part of the solution and drawn solid.
Text description of this figure
Two panels. Left: y < x + 1 with a dashed line; the point (1, 2) on the line is drawn as an open circle and is not a solution. Right: y ≤ x + 1 with a solid line; the same point is a filled dot and is a solution.
- Strict (< or >): equality not allowed, so dashed.
- Inclusive (≤ or ≥): equality allowed, so solid.
- Check any boundary point by substituting it.
Testing a point on the line
Take the point (1, 2), which lies on y = x + 1.
- In y < x + 1: 2 < 2 is false → (1, 2) is not a solution. Dashed line.
- In y ≤ x + 1: 2 ≤ 2 is true → (1, 2) is a solution. Solid line.
The inequalities calculator lets you enter any test point and reports whether it satisfies each inequality.
- Graph y < x + 1 and test (1, 2) — opens the Graphing Inequalities Calculator
- Graph y ≤ x + 1 and test (1, 2) — opens the Graphing Inequalities Calculator
Why it matters
In real problems, the boundary often means a limit:
- “At most 40 hours” → h ≤ 40 → the value 40 is allowed (solid).
- “More than 18 years old” → a > 18 → 18 itself is not allowed (dashed).
- A budget “no more than $500” → 20x + 35y ≤ 500 → spending exactly $500 is fine (solid).
In a system of inequalities, whether a corner of the region is included depends on whether both lines through it are solid.
Reading graphs drawn by others
When you are given a graph and asked for its inequality:
- Find the equation of the boundary line.
- Dashed → use < or >. Solid → use ≤ or ≥.
- Shaded above (for a non-vertical line) → y > or y ≥. Shaded below → y < or y ≤.
Common mistakes
- Choosing the style by the shading direction. Style depends only on whether equality is allowed.
- Drawing dashed lines too faintly on paper — use clear, evenly spaced dashes.
- Reversing the symbols when the inequality is written backwards. 3 > y means y < 3: still strict, still dashed.
- Forgetting corners. A corner where a dashed line meets a solid line is not included.
The same included/excluded idea appears with endpoints in piecewise functions.
Questions
Does the line style change which side is shaded?
No. The side comes from the direction of the inequality. The style only shows whether the boundary is included.
How is this like open and closed circles?
It is the same idea. On a number line an open circle excludes an endpoint and a closed one includes it. In two variables the dashed and solid lines play that role.
What about an equation like y = x + 1?
An equation is only the line itself, drawn solid, with no shading.
Graph your own example with the Graphing Inequalities Calculator — free, in your browser.
Try it nowSources and further reading
- OpenStax, Elementary Algebra 2e — 4.7 Graphs of Linear Inequalities
- OpenStax, Intermediate Algebra 2e — 3.4 Graph Linear Inequalities in Two Variables
Worked examples and figures were produced and checked with the Graphing Calculator Lab engine. See the editorial policy.