Graphing Inequalities Calculator (1D Number Line)

Solve and graph one-variable linear inequalities on a number line. Supports <, >, ≤, ≥, compound AND/OR inequalities with step-by-step solutions.

About the Graphing Inequalities Calculator (1D Number Line)

Graphing inequalities on a number line is a fundamental algebra skill that helps you visualize solution sets. A linear inequality like 2x + 3 < 7 defines a range of values that satisfy the condition, and the number-line graph shows this range with a dot at the boundary and shading in the direction of valid solutions.

This calculator solves any one-variable linear inequality of the form ax + b < c (or >, ≤, ≥), displays the step-by-step solution including when to flip the inequality sign (dividing by a negative), and renders the result on an interactive number line. It also handles compound inequalities connected by AND (intersection) or OR (union), which is essential for more complex algebraic reasoning.

Whether you are studying for an algebra exam, checking homework, or teaching the concept, this tool provides instant solutions with clear visual feedback and proper interval notation. Check the example with realistic values before reporting.

Why Use This Graphing Inequalities Calculator (1D Number Line)?

Inequalities are everywhere in real life — from budget constraints and speed limits to engineering tolerances and statistical confidence intervals. Being able to solve and graph them quickly is a core algebra skill that carries into higher mathematics, science, and economics.

This calculator automates the solving process while showing every step, making it perfect for learning, homework verification, and quick reference. The number-line visualization and interval notation conversion save time and reduce errors.

How to Use This Calculator

  1. Enter the coefficient a, constant b, and right-hand side c for the inequality ax + b ○ c.
  2. Select the inequality operator: <, >, ≤, or ≥.
  3. Use presets for common examples like 2x + 3 < 7 or −3x + 6 > 0.
  4. Switch to "Compound" mode to add a second inequality and combine with AND or OR.
  5. Read the solution in the output cards and verify with the step-by-step table.
  6. Check the number line for the visual representation with open/closed dots.
  7. Review the interval notation for the standard mathematical representation.

Formula

Solving ax + b < c: 1. Subtract b: ax < c − b 2. Divide by a: x < (c − b)/a (If a < 0, flip the inequality sign) Compound: A AND B = A ∩ B; A OR B = A ∪ B

Example Calculation

Result: x < 2

Start with 2x + 3 < 7. Subtract 3 from both sides: 2x < 4. Divide both sides by 2: x < 2. The solution is the interval (−∞, 2), shown as an open dot at 2 with shading to the left.

Tips & Best Practices

Understanding Linear Inequalities

A linear inequality in one variable has the general form ax + b < c (or >, ≤, ≥). The solution is always a ray on the number line — an infinite set of numbers extending in one direction from a boundary point. The boundary itself may or may not be included, depending on whether the inequality is strict (< or >) or non-strict (≤ or ≥). The solution process mirrors solving equations, with the critical difference that multiplying or dividing by a negative flips the direction.

Compound Inequalities

Compound inequalities combine two conditions. An AND compound like −1 ≤ x < 4 restricts x to a bounded interval. An OR compound like x < −2 or x > 5 produces two disjoint rays, representing values that satisfy at least one condition. In advanced mathematics, these concepts generalize to systems of linear inequalities in multiple variables, forming polytopes in higher-dimensional spaces.

Graphing on the Number Line

The number-line graph encodes the entire solution set visually. Draw the boundary point as open (○) or closed (●), then shade the appropriate direction. For compound inequalities, shade only the intersection (AND) or the union (OR) of the individual shading. This graphical representation is essential preparation for graphing two-variable inequalities on the coordinate plane.

Frequently Asked Questions

When do you flip the inequality sign?

You flip the inequality sign when you multiply or divide both sides by a negative number. For example, −2x > 6 becomes x < −3 after dividing by −2.

What is the difference between open and closed dots?

An open dot (○) means the boundary is not included (strict inequality: < or >). A closed dot (●) means the boundary is included (≤ or ≥).

How do compound inequalities work?

AND (intersection) means both conditions must be true simultaneously. OR (union) means at least one condition must be true. AND typically produces a bounded interval; OR often produces a union of rays.

What is interval notation?

Interval notation uses parentheses for excluded endpoints and brackets for included endpoints. For example, x > 3 is (3, ∞) and x ≤ 5 is (−∞, 5].

What if a = 0?

If a = 0, there is no x term. The inequality reduces to b < c (or >, ≤, ≥), which is either always true (all real numbers) or always false (no solution).

Can this handle quadratic inequalities?

This calculator is designed for linear (first-degree) inequalities. Quadratic inequalities require a different approach involving parabola analysis.

Related Pages