Interval Notation Calculator

Convert between inequalities, interval notation and set-builder notation.

Use ( ) or [ ], and inf for infinity. Join intervals with U, such as (-inf, 2) U (5, inf).

Try

Result

You entered(−∞,2)∪(5,∞)\left(-\infty, 2\right) \cup \left(5, \infty\right)

x<2 or x>5\displaystyle x < 2 \text{ or } x > 5

Inequality notation

x<2 or x>5\displaystyle x < 2 \text{ or } x > 5

Set-builder notation

{x∣x<2 or x>5}\displaystyle \{x \mid x < 2 \text{ or } x > 5\}
Show the work
  1. Brackets mean included or left out

    A square bracket includes the end, so it becomes ≤\le or ≥\ge. A round bracket leaves the end out, so it becomes << or >>. An end at infinity has no inequality sign of its own.

    (−∞,2)→x<2(5,∞)→x>5\begin{gathered} \left(-\infty, 2\right) \to x < 2 \\ \left(5, \infty\right) \to x > 5 \end{gathered}
  2. Union means either piece

    The sign ∪\cup joins separate intervals, so xx is a solution if it lies in any one of them. Each piece becomes its own condition joined by "or".

    x<2∨x>5x < 2 \lor x > 5
  3. Result

    So the inequality is x<2∨x>5x < 2 \lor x > 5.

Worked examples