HomeWriting Linear Inequalities from Graphs: Number Lines and Half-Planes Free original lessons
Writing Linear Inequalities from Graphs: Number Lines and Half-Planes
Learn to reverse-engineer inequalities from graphed number lines and shaded coordinate regions, identifying endpoints, boundary types, and test points.
Free lesson
Four exercises
Worked answers
Algebra and Function Practice
Reading a graph to write its inequality is the reverse of graphing. You inspect the number line for endpoint style and direction, or the coordinate plane for the boundary line and shaded side. This lesson builds that translation skill with clear conventions, worked reasoning, and practice tasks you can check yourself.
Practice materials: Printable downloads are not available for this lesson yet. Use the instructions and four exercises below.
Number Lines: Endpoints and Direction
A number line graph uses a closed dot for inclusive inequalities (≤ or ≥) and an open dot for strict inequalities (< or >). The shaded ray shows which values satisfy the inequality. Read the endpoint value first, then note whether the dot is open or closed, then note whether the ray extends left (less than) or right (greater than).
For example, a closed dot at 3 with shading to the right means x ≥ 3. An open dot at −2 with shading to the left means x < −2. If the shading covers the entire line, the inequality is all real numbers; if only a single point is marked, that is an equation, not an inequality.
- Locate the endpoint on the number line and record its value.
- Decide if the dot is open (strict) or closed (inclusive).
- Observe the shaded direction: left means less than, right means greater than.
- Combine endpoint, symbol, and variable to write the inequality.
- Test one value from the shaded region and one from the unshaded region to confirm.
Coordinate Half-Planes: Boundary and Shading
A linear inequality in two variables graphs as a half-plane. The boundary line is solid for ≤ or ≥ and dashed for < or >. The shaded side contains the solutions. To write the inequality, first find the boundary line equation in slope-intercept form y = mx + b, then decide the symbol and direction from the shading.
A practical method is to pick a test point not on the boundary, such as (0,0) when possible. Substitute it into the boundary equation. If the test point lies in the shaded region, the inequality symbol should make the statement true for that point. If it lies outside, use the opposite symbol. For vertical boundaries, write x compared to a constant; for horizontal boundaries, write y compared to a constant.
- Identify two points on the boundary line and compute slope m.
- Use one point to find the y-intercept b, writing y = mx + b.
- Check whether the boundary is solid (inclusive) or dashed (strict).
- Choose a test point in the shaded region and substitute into y = mx + b.
- Select the inequality symbol that makes the test point true, then verify with a point outside the shaded region.
Conventions and Valid Alternatives
For handwriting and diagram conventions in this lesson, define an open endpoint as a small circle with no fill and a closed endpoint as a filled circle. A dashed boundary line is drawn with evenly spaced short dashes; a solid boundary is continuous. These are conventions, not universal standards, and valid alternatives exist: some texts use brackets for inclusive endpoints, and some use different dash spacing. The rubric accepts any clearly labeled, consistent convention.
When writing inequalities, equivalent forms are acceptable. For example, x ≥ 3 can be written as 3 ≤ x, and y < 2x + 1 can be rearranged as 2x − y > −1. The rubric checks mathematical equivalence and correct endpoint or boundary treatment, not a single wording.
- State your convention explicitly if it differs from open/closed circles or solid/dashed lines.
- Keep the same convention throughout a single problem.
- Accept equivalent algebraic forms that preserve the solution set.
- Verify equivalence by testing at least one point in each region.
Worked example
A coordinate graph shows a solid boundary line passing through (0, 1) and (2, 5). The region below the line is shaded. Write the inequality.
Worked answer
y ≤ 2x + 1
Why: Slope m = (5 − 1)/(2 − 0) = 2. Using (0,1), b = 1, so the boundary is y = 2x + 1. The line is solid, so the symbol is ≤ or ≥. Test (0,0), which is below the line and in the shaded region: 0 ≤ 2(0) + 1 is true. Therefore the inequality is y ≤ 2x + 1.
Check: Test (0,0): 0 ≤ 1 is true, so it is in the shaded region. Test (0,2), above the line: 2 ≤ 1 is false, so it is outside. The inequality matches the graph.
Four practice exercises
Exercise 1
An open dot is at −3 on a number line, with shading to the right. Write the inequality.
Show answer and check
x > −3
Why: The open dot means strict inequality, and shading to the right means greater than. The endpoint is −3.
Check: Test x = 0: 0 > −3 is true and 0 is shaded. Test x = −4: −4 > −3 is false and −4 is unshaded.
Exercise 2
A closed dot is at 5 on a number line, with shading to the left. Write the inequality.
Show answer and check
x ≤ 5
Why: The closed dot means inclusive, and shading to the left means less than or equal to. The endpoint is 5.
Check: Test x = 4: 4 ≤ 5 is true and shaded. Test x = 6: 6 ≤ 5 is false and unshaded.
Exercise 3
A dashed boundary line has equation y = 3x − 2. The region above the line is shaded. Write the inequality.
Show answer and check
y > 3x − 2
Why: The boundary is given as y = 3x − 2. A dashed line means a strict inequality (< or >). Test (0,0), which is above the line and in the shaded region: 0 > 3(0) − 2, i.e. 0 > −2, is true. Therefore the inequality is y > 3x − 2.
Check: Test (0,0): 0 > −2 true. Test (0,−3), below the line: −3 > −2 false. The inequality matches the shaded side.
Exercise 4
A solid vertical boundary line is at x = 4, and the region to the left of the line is shaded. Write the inequality.
Show answer and check
x ≤ 4
Why: A vertical boundary has equation x = 4. Solid means inclusive. Shading to the left means x is less than or equal to 4.
Check: Test (3,0): 3 ≤ 4 true and shaded. Test (5,0): 5 ≤ 4 false and unshaded.
Common mistakes
- Using a closed dot for a strict inequality such as x > 4. Match dot style to the symbol: open for < and >, closed for ≤ and ≥. Recheck the original graph's dot fill.
- Shading the wrong side of a boundary line because the test point was on the line. Choose a test point clearly off the boundary, such as (0,0) when the line does not pass through it, and substitute carefully.
- Writing y > mx + b when the shaded region is below the line. Use a test point in the shaded region. If it makes y < mx + b true, the symbol is < or ≤.
- Forgetting that a vertical boundary line has an equation like x = 2, not y = 2. Identify whether the boundary is vertical or horizontal before writing the equation; vertical lines compare x to a constant.
Self-check rubric
- Correct endpoint value or boundary equation identified.
- Correct symbol chosen from open/closed dot or dashed/solid line.
- Correct direction or shaded side represented by the inequality symbol.
- Equivalent algebraic forms accepted if the solution set is unchanged.
- Convention stated if it differs from open/closed circles or solid/dashed lines.
- Check method uses at least one point from each region.
Questions and answers
How do I know whether to use ≤ or < from a graph?
Check the endpoint or boundary style. A closed dot or solid line means inclusive (≤ or ≥). An open dot or dashed line means strict (< or >).
Can I write an inequality in a different but equivalent form?
Yes. Equivalent forms that describe the same solution set are acceptable, provided the endpoint or boundary treatment is correct.
What if the shaded region covers the entire coordinate plane?
That graph represents all points in the plane; in this lesson, focus on half-plane graphs with a visible boundary.
How can I check my inequality without graphing it again?
Test one point from the shaded region and one from the unshaded region. The shaded point should make the inequality true; the unshaded point should make it false.