Solve and graph one-variable linear inequalities on a number line. Supports <, >, ≤, ≥, compound AND/OR inequalities with step-by-step solutions.
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.
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.
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
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.
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 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.
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.
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.
An open dot (○) means the boundary is not included (strict inequality: < or >). A closed dot (●) means the boundary is included (≤ or ≥).
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.
Interval notation uses parentheses for excluded endpoints and brackets for included endpoints. For example, x > 3 is (3, ∞) and x ≤ 5 is (−∞, 5].
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).
This calculator is designed for linear (first-degree) inequalities. Quadratic inequalities require a different approach involving parabola analysis.