Formula and Method for Inequality to Interval Notation
Interval notation is a compact way to write the solution set of an inequality using parentheses and brackets instead of inequality symbols. A bounded compound inequality such as a < x ≤ b is written (a, b]: the parenthesis on the left says a itself is not included (strict <), and the bracket on the right says b is included (≤). A one-sided inequality like x ≥ a becomes [a, ∞) — infinity always gets a parenthesis, since it is not a number the set can actually "reach" and include.
How the calculation works
Enter a lower bound and an upper bound, and for each one choose whether it is open (strict < or >, endpoint excluded), closed (≤ or ≥, endpoint included), or absent (no bound on that side, meaning the interval extends to -∞ or +∞). The calculator combines these choices using the standard convention: parentheses for open endpoints and for ±∞, brackets for closed endpoints. It also rewrites the result as an inequality (a < x ≤ b) and as set-builder notation ({x | a < x ≤ b}). If the two bounds are equal with at least one side strict, the solution set is empty (∅). If the lower bound exceeds the upper bound, the calculator treats this as invalid input and asks you to correct the values rather than returning an empty set. If neither bound is set, the interval covers all real numbers, (-∞, ∞).
Common mistakes
- Bracket next to infinity: ∞ and -∞ are never enclosed by a bracket — always use a parenthesis, e.g. (-∞, 5], not (-∞, 5].
- Reversed order: the smaller number always goes first inside the interval; (7, 2) is not valid notation even if the inequality was written "backwards" as 7 > x > 2.
- Mixing up ≤ and <: phrases like "at least" or "no less than" mean ≥ (closed bracket), while "more than" or "greater than" mean strict > (open parenthesis).
Real-world applications
- Describing the domain or range of a function, such as the domain of √x being [0, ∞).
- Writing the solution set of an algebra or calculus inequality after solving it step by step.
- Specifying valid input ranges for forms, sensors, or programming validation logic (e.g., a percentage input restricted to [0, 100]).
- Expressing confidence intervals and acceptable tolerance ranges in statistics and engineering.