🔢 Inequality Solver – Solve Any One-Variable Inequality Instantly
An inequality is a mathematical statement that compares two expressions using a relation other than equality — using symbols like <, ≤, >, or ≥. Unlike equations that yield discrete points, inequalities produce ranges of values called solution sets. This Inequality Solver handles five major types automatically, returning the solution in plain language, interval notation, and set-builder notation, together with a visual number-line graph.
🧮 Supported Inequality Types
| Type | Example | Solution |
|---|---|---|
| Linear | 2x − 5 > 9 | x > 7 → (7, ∞) |
| Compound | −3 ≤ 2x + 1 < 9 | −2 ≤ x < 4 → [−2, 4) |
| Quadratic / Polynomial | x² − 5x + 6 ≤ 0 | 2 ≤ x ≤ 3 → [2, 3] |
| Rational | (x+1)/(x−2) ≥ 0 | (−∞, −1] ∪ (2, ∞) |
| Absolute Value | |2x − 1| < 5 | −2 < x < 3 → (−2, 3) |
⚙️ How the Solver Works
The solver follows a sign-analysis (interval-testing) method, which is the standard algebraic approach taught in algebra and pre-calculus courses:
- Rearrange to standard form. The inequality is rewritten as
f(x) op 0by subtracting the right-hand side from the left. For example,2x − 5 > 9becomes2x − 14 > 0. - Find critical points. The solver locates all values where
f(x) = 0(roots) and wheref(x)is undefined (denominator zeros for rational expressions). These critical points divide the real number line into intervals. - Test each interval. A single test value from each interval is substituted into
f(x). If the sign satisfies the original operator, the entire interval is part of the solution. - Apply endpoint rules. Strict inequalities (
<,>) exclude boundary points (open circles); non-strict inequalities (≤,≥) include them (closed circles) — unless the point is a domain exclusion. - Express the result. The solution is written as a plain-language inequality, standard interval notation, and formal set-builder notation. A number-line graph highlights the solution region.
📐 Interval Notation Explained
Interval notation is a compact way to describe solution sets. The key rules are:
- Round brackets
( )denote open endpoints — the value is not included (used for<,>, and infinity). - Square brackets
[ ]denote closed endpoints — the value is included (used for≤and≥). - Infinity symbols
−∞and∞always use round brackets because infinity is not a reachable value. - Union
∪combines two or more separate solution intervals into one expression (common in rational and absolute-value inequalities). - Empty set
∅means no real number satisfies the inequality.
⚠️ The Sign Flip Rule
One of the most common mistakes in inequality solving is forgetting to flip the inequality sign when multiplying or dividing by a negative number. For example:
−2x > 6
÷(−2) on both sides → flip sign
x < −3This solver avoids the pitfall entirely by using interval sign analysis instead of direct algebraic manipulation on the full expression. Critical points are found first, then each region is tested independently — no sign flip ambiguity arises.
📊 Special Cases
Rational inequalities require special care because the expression is undefined at denominator zeros. Even if substituting a denominator zero would "satisfy" the sign condition, that point must remain excluded and is shown with an open circle on the number line.
Absolute value inequalities are converted to equivalent compound or disjoint inequalities before solving. |expr| < k becomes −k < expr < k; |expr| > k becomes expr > k OR expr < −k.
📝 How to Enter Expressions
- Use
^for exponents:x^2,x^3 - Use
/for division:(x+1)/(x-2) - Use
|for absolute value bars:|2x - 1| - Include the full inequality sign in the expression:
2x - 5 > 9 - For compound inequalities write the full chain:
-3 <= 2x + 1 < 9 - Specify the variable you are solving for (default is
x)
The Inequality Solver is useful for algebra students learning solution set analysis, for exam preparation, and for quickly verifying hand-solved inequalities. The step-by-step breakdown makes it easy to understand each stage of the solving process.