How to solve a linear inequality
A linear inequality compares two expressions in which x appears only to the first power. For these, the calculator shows the classic hand method:
- Expand any brackets and clear fractions, so each side looks like ax + b.
- Collect the x terms on one side and the constants on the other. This gives (a − c)x compared with d − b. Adding or subtracting the same amount on both sides never changes the sign.
- Divide both sides by (a − c). If that number is negative, reverse the sign: for example, −2x ≤ 6 becomes x ≥ −3.
- If (a − c) is zero, x has cancelled out. Check whether the remaining statement about constants is true or false.
- Write the answer as an inequality and, if you need it, in interval notation.
Interval notation describes the same solution set. A parenthesis excludes a finite endpoint, a square bracket includes it, and infinity always takes a parenthesis because it is not a number that can be reached. For example, x ≥ −3 becomes [−3, ∞). An empty set, ∅, means no real value works.
Quadratic and polynomial inequalities: the sign-chart method
Once x is squared or cubed, a single boundary is no longer enough. The solutions can come in two or more separate pieces, and the reliable way to find them is a sign chart.
- Move everything to one side so you are comparing an expression with zero, for example x² − 5x + 6 ≤ 0.
- Find the critical points, where the expression equals zero. Here (x − 2)(x − 3) = 0 gives x = 2 and x = 3.
- Those points cut the number line into intervals. A polynomial cannot change sign without passing through zero, so one test value tells you the sign of a whole interval. Testing 0, 2.5 and 4 gives +, − and +.
- Keep the intervals with the sign you need. For ≤ 0, keep the negative one and include the zeros: 2 ≤ x ≤ 3.
For a quadratic with a positive x² term, there is a quick check. “Less than zero” gives the values between the roots, and “greater than zero” gives the values outside them. When the roots are not whole numbers, the calculator keeps them exact, so x² − 2x − 1 < 0 comes out as 1 − √2 < x < 1 + √2.
Do not take square roots of both sides. Turning x² > 9 into x > 3 loses every solution below −3. The full answer is x < −3 or x > 3.
Rational inequalities: x in a denominator
When x appears in a denominator, the tempting move is to multiply both sides by it. That only works if you know the denominator is positive, and usually you do not. Take 3/(x − 1) < 2. Multiplying through gives 3 < 2x − 2, so x > 2.5. But x = 0 also works, because 3/(−1) = −3 is less than 2. The multiplication silently threw away every solution below 1.
The safe method is to bring everything into one fraction compared with zero, then use a sign chart. The critical points now come from both the numerator and the denominator. A zero of the numerator can be included with ≤ or ≥. A zero of the denominator is never included, because the expression does not exist there. That is why (x + 1)/(x − 2) ≥ 0 has a filled circle at −1 and an open circle at 2.
Absolute value inequalities
|u| is the distance of u from zero, which turns most absolute value inequalities into statements about distance:
- |u| < c means u is within c of zero: −c < u < c. So |2x − 3| < 7 becomes −7 < 2x − 3 < 7, giving −2 < x < 5.
- |u| > c means u is more than c away from zero: u < −c or u > c.
- If c is negative, |u| < c has no solution and |u| > c is true for every x, because a distance is never negative.
When x appears outside the bars too, or there are two absolute values, the calculator splits the number line where each expression inside the bars is zero. On each piece the bars can be removed, because the inside is either positive or negative throughout. It solves each piece and joins the results.
Double and compound inequalities
A double inequality such as −3 ≤ 2x + 1 < 7 is two conditions that must both hold. You can solve it in one go by doing the same thing to all three parts: subtract 1 to get −4 ≤ 2x < 6, then divide by 2 to get −2 ≤ x < 3.
With “and”, the answer is the overlap of the two solution sets, called the intersection. With “or”, it is everything that satisfies at least one condition, called the union and written with ∪. So x < −1 or x ≥ 4 is (−∞, −1) ∪ [4, ∞). An “and” with no overlap, such as x > 5 and x < 3, has no solution. An “or” that covers everything, such as x < 2 or x > 1, is true for every real number.
Square roots, exponentials and logarithms
The calculator also handles inequalities such as √(x + 4) < x − 2, 1000 · 1.04^t > 1500 and ln(x) < 1. These do not always reduce to a polynomial, so it scans the number line for the points where the two sides meet and where the expression stops being defined. It snaps an endpoint to an exact value when it can. Otherwise it gives a decimal and says so.
The domain matters as much as the algebra. √(x + 4) needs x ≥ −4, and ln(x) needs x > 0. So ln(x) < 1 gives 0 < x < e, not just x < e.
Worked examples
| Inequality | Working | Solution | Interval |
|---|---|---|---|
| 3x + 5 < 20 | 3x < 15, then divide by 3 | x < 5 | (−∞, 5) |
| −2x + 3 ≤ 9 | −2x ≤ 6, then divide by −2 and reverse the sign | x ≥ −3 | [−3, ∞) |
| 4x + 12 < 2x + 24 | 2x < 12, then divide by 2 | x < 6 | (−∞, 6) |
| 2x + 3 < 2x + 8 | x cancels, leaving 3 < 8, which is true | All real numbers | (−∞, ∞) |
| 2x + 3 > 2x + 8 | x cancels, leaving 3 > 8, which is false | No solution | ∅ |
More worked examples
| Inequality | Key step | Solution | Interval |
|---|---|---|---|
| x² − 5x + 6 ≤ 0 | Roots 2 and 3; negative between them | 2 ≤ x ≤ 3 | [2, 3] |
| x³ − 4x > 0 | x(x − 2)(x + 2); test four intervals | −2 < x < 0 or x > 2 | (−2, 0) ∪ (2, ∞) |
| (x + 1)/(x − 2) ≥ 0 | Zero at −1, undefined at 2 | x ≤ −1 or x > 2 | (−∞, −1] ∪ (2, ∞) |
| |2x − 3| < 7 | −7 < 2x − 3 < 7 | −2 < x < 5 | (−2, 5) |
| (x − 3)² ≤ 0 | A square is never negative | x = 3 | {3} |
| x² + 1 > 0 | Always at least 1 | All real numbers | (−∞, ∞) |
Reading the number line
The four inequality signs map to two circle styles, a shading direction and an interval form.
| Inequality | Endpoint circle | Shading | Interval |
|---|---|---|---|
| x < 5 | Open (5 excluded) | To the left | (−∞, 5) |
| x ≤ 5 | Filled (5 included) | To the left | (−∞, 5] |
| x > 5 | Open (5 excluded) | To the right | (5, ∞) |
| x ≥ 5 | Filled (5 included) | To the right | [5, ∞) |
Common mistakes to avoid
- Forgetting to reverse the sign when multiplying or dividing by a negative number.
- Reversing the sign unnecessarily when only adding or subtracting.
- Putting a square bracket on infinity. Write [3, ∞), never [3, ∞].
- Giving the real-number boundary as a count. If x < 5 and x must be a whole number, the largest value is 4, not 5.
- Taking square roots of both sides. x² > 9 is not the same as x > 3. It also includes x < −3.
- Including a value that makes a denominator zero. Even with ≤ or ≥, that point is never part of the answer.
- Reading the sign backwards. "x is less than 5" means x < 5, and the symbol's open end faces the larger value.
- Multiplying both sides by an expression that contains x. Its sign is unknown, so you cannot tell whether to reverse the inequality. Use a sign chart instead.
Use inequalities in everyday decisions
Stay within a shopping budget
Each item costs 18, delivery adds 7 and your budget is 100 (in any currency). Enter 18x + 7 ≤ 100. The solution is x ≤ 31/6, or about 5.17. Because an item count must be a non-negative whole number, you can buy at most 5 items: the total is 97. Six would cost 115. The calculator gives a real-number range; apply practical restrictions separately.
Compare two rental plans
Plan A costs 12 plus 4 per hour. Plan B costs 24 plus 2 per hour. To find when A is cheaper, solve 4x + 12 < 2x + 24. The result is x < 6. For non-negative rental hours, A is cheaper below six hours; at six hours both plans cost 36. Check billing increments before using a fractional duration.
Reach a production target
You already have 40 units and produce 15 units each hour. To reach at least 100 units, solve 15x + 40 ≥ 100. You need x ≥ 4 hours, assuming a constant production rate and no losses.
Check a part is within tolerance
A drawing specifies a shaft diameter of 25 mm ± 0.05 mm. A measured diameter d passes if |d − 25| ≤ 0.05, which the calculator turns into 24.95 ≤ d ≤ 25.05. Writing a tolerance as an absolute value keeps the target and the allowed error in one expression.
How long is a ball above a given height?
A ball thrown upwards at 20 m/s from 1.5 m has height −4.9t² + 20t + 1.5 metres after t seconds, ignoring air resistance. Solving −4.9t² + 20t + 1.5 ≥ 15 gives about 0.85 ≤ t ≤ 3.23, so the ball spends roughly 2.4 seconds at 15 metres or higher.
Frequently asked questions
Why does dividing by a negative number reverse the sign?
Multiplying or dividing by a negative number flips the order of numbers on the number line. For example, 2 < 3, but after multiplying by −1 you get −2 > −3. Adding or subtracting the same quantity on both sides moves both numbers equally and keeps their order, so it never reverses the sign.
Why is the endpoint included for ≤ and ≥ but not for < and >?
Because the sign decides whether the boundary value itself makes the statement true. In 3x + 5 ≤ 20, the value x = 5 gives exactly 20, so it works and is included. In 3x + 5 < 20, the same value gives 20 < 20, which is false, so it is excluded. A filled circle or square bracket means included; an open circle or parenthesis means excluded.
Why does infinity always get a parenthesis?
A square bracket says the endpoint belongs to the set, and infinity is not a number that any set can contain. It describes a set that continues without end. That is why intervals are written (−∞, 5] or [3, ∞), never with a bracket against the infinity symbol.
What does it mean when x cancels out?
The x terms on both sides are equal, so the answer no longer depends on x. If the remaining statement is true, every real number works. If it is false, no number works. For example, 2x + 3 < 2x + 8 reduces to 3 < 8, which is always true, while 2x + 3 > 2x + 8 reduces to 3 > 8, which is always false.
Why can a correct solution still be unusable in real life?
The calculator solves over all real numbers, but real situations often have extra limits. A count of items must be a non-negative whole number, and a rental may be billed in whole hours. For x < 5 the largest whole number allowed is 4; for x ≤ 5 it is 5. Always apply those limits after solving, and check the boundary carefully.
How can I check my answer without a calculator?
Test three values: one inside the solution set, one outside it and the boundary itself. For 3x + 5 < 20 with solution x < 5, try x = 4 (17 < 20, true), x = 6 (23 < 20, false) and x = 5 (20 < 20, false). If the results match your answer, including at the boundary, the sign and endpoint are probably right.
Why is 3 < x the same as x > 3?
Both say that x is a number larger than 3. Swapping the two sides of an inequality reverses the direction of the sign so the meaning stays the same. This is different from dividing by a negative, which changes the numbers themselves and therefore needs the sign to be reversed to keep the statement true.
How do I solve a quadratic inequality?
Move every term to one side, find the roots of the quadratic, and test one value in each interval the roots create. Keep the intervals with the sign you need. For x² − 5x + 6 ≤ 0 the roots are 2 and 3, the expression is negative between them, and the answer is 2 ≤ x ≤ 3.
Can I multiply both sides by the denominator?
Only if you know its sign. If the denominator could be negative, multiplying by it may require reversing the inequality for some values of x and not others. Combining everything into one fraction and using a sign chart avoids the problem.
What is the difference between “and” and “or” in an inequality?
“And” means both conditions must be true, so the answer is where the solution sets overlap. “Or” means at least one must be true, so the answer joins the sets together. In interval notation, joined pieces are written with the union symbol ∪.
How do I solve an absolute value inequality?
Read |u| as a distance from zero. |u| < c becomes −c < u < c, and |u| > c becomes u < −c or u > c. If x also appears outside the bars, split the number line where the inside equals zero and solve each piece separately.