What this calculator does
This tool solves a one-variable linear inequality of the form \(a\cdot x + b \gtreqless c\), where \(\gtreqless\) is one of \(\le\), \(<\), \(\ge\), or \(>\). It returns the boundary value, the solved direction (for example \(x \le 4\)), and the answer written in interval notation so you can graph it on a number line.
How to use it
Enter the coefficient a, the constant b, choose the relation, and enter the right-hand value c. Press calculate. The result tells you whether the solution is a left ray, a right ray, all real numbers, or empty.
The formula explained
Start with \(a\cdot x + b \gtreqless c\). Subtract b from both sides to get \(a\cdot x \gtreqless c - b\). Then divide both sides by a. The single most important rule: if a is negative, you must reverse the inequality sign. So $$\text{a}\,x + \text{b} \;\le\; \text{c} \;\Longrightarrow\; x \le \dfrac{\text{c} - \text{b}}{\text{a}}$$ \(2x + 3 \le 11\) gives \(x \le 4\), while \(-2x \le 6\) gives \(x \ge -3\).
Worked example
Solve \(2x + 3 \le 11\). Subtract 3: \(2x \le 8\). Divide by 2: \(x \le 4\). Because the relation is "less than or equal," the boundary 4 is included, so the interval is \((-\infty, 4]\). On a number line, draw a filled dot at 4 and shade to the left.
More Worked Examples: Negative Coefficients and Special Cases
These three examples cover the situations that trip people up most: dividing by a negative number, an inclusive inequality, and a zero coefficient.
Example 1: Negative coefficient (the sign flips)
Solve \(-3x + 5 > 11\).
- Subtract 5 from both sides: \(-3x > 11 - 5 = 6\).
- Divide both sides by \(-3\). Dividing by a negative number reverses the inequality, so \(>\) becomes \(<\): \(x < \dfrac{6}{-3}\).
- Result: \(x < \) 11, boundary value">-2.
Interval notation: (-∞, -2). The inequality is strict, so the number line has an open circle at -2 with shading to the left. Check: x = -3 gives \(-3(-3) + 5 = 14 > 11\), which is true.
Example 2: Inclusive inequality (filled dot)
Solve \(4x - 7 \ge 5\).
- Add 7 to both sides: \(4x \ge 12\).
- Divide by 4 (positive, so the sign stays): \(x \ge \dfrac{12}{4}\).
- Result: \(x \ge \)3.
Interval notation: [3, ∞). The inequality includes 3, so the number line has a filled dot at 3 with shading to the right. Check: x = 3 gives \(4(3) - 7 = 5 \ge 5\), which is true.
Example 3: When a = 0
If the coefficient of x is zero, x disappears and the statement is either always true or always false.
- \(0x + 2 \le 5\) becomes \(2 \le 5\), which is true for every x. The solution is all real numbers, (-∞, ∞).
- \(0x + 6 < 5\) becomes \(6 < 5\), which is false for every x. There is no solution: the empty set, ∅.
In these cases there is no boundary value to divide out, because dividing by \(a = 0\) is undefined.
Inequality Symbols, Number Line Dots and Interval Notation
This table assumes a positive coefficient on x, so the form is \(x \; \text{relation} \; 4\). If you divide by a negative number, flip the relation first.
| Relation | Meaning in words | Circle type | Shading direction | Bracket style | Example (interval notation) |
|---|---|---|---|---|---|
| < | less than | Open circle | Left | Parenthesis ) at the boundary | x < 4 → (-∞, 4) |
| ≤ | less than or equal to | Filled dot | Left | Square bracket ] at the boundary | x ≤ 4 → (-∞, 4] |
| > | greater than | Open circle | Right | Parenthesis ( at the boundary | x > 4 → (4, ∞) |
| ≥ | greater than or equal to | Filled dot | Right | Square bracket [ at the boundary | x ≥ 4 → [4, ∞) |
Note: ∞ and -∞ are not real numbers, so they always take a parenthesis, never a square bracket.
Key Terms in Inequalities
- Linear inequality
- An inequality in which the variable appears only to the first power, such as \(ax + b \le c\).
- Coefficient (a)
- The number multiplying x. If it is negative, the inequality sign must be reversed when you divide by it.
- Constant (b)
- The number added to or subtracted from the x term. You remove it by doing the opposite operation on both sides.
- Boundary (critical) value
- The value of x where the two sides are equal, \(x = \dfrac{c - b}{a}\). It separates solutions from non-solutions.
- Strict vs. inclusive inequality
- A strict inequality (< or >) excludes the boundary value. An inclusive inequality (≤ or ≥) includes it.
- Solution set
- All values of x that make the inequality true.
- Interval notation
- A compact way to write a solution set using endpoints, with parentheses for excluded endpoints and square brackets for included ones, e.g. [3, ∞).
- Ray
- A part of the number line that starts at one point and extends forever in one direction. Solutions of a single linear inequality form a ray.
- All real numbers
- The case where every x works, written (-∞, ∞). It happens when a = 0 and the remaining statement is true.
- Empty set
- The case where no x works, written ∅. It happens when a = 0 and the remaining statement is false.
- Number line graph
- A picture of the solution set: a dot or circle at the boundary value, with shading along the ray of solutions.
FAQ
When do I flip the sign? Only when you multiply or divide both sides by a negative number — here, whenever \(a < 0\).
What if a = 0? Then x disappears and the statement is either always true (all real numbers) or always false (no solution), depending on b and c.
Open or closed bracket? Use a closed bracket [ ] for \(\le\) and \(\ge\), and an open bracket ( ) for \(<\) and \(>\). Infinity always gets an open parenthesis.