MathsAlgebra

Inequality
solver.

Solve linear, quadratic and absolute value inequalities and see each step.

How it's worked out

The rules that keep an inequality true are close to the rules for equations. You can add or subtract any number on both sides. You can multiply or divide by a positive number. Multiplying or dividing by a negative number turns the sign around.

−3x\displaystyle −3x>−15\displaystyle {}> −15
x\displaystyle x<5\displaystyle {}< 5

The sign turns because a negative multiplier mirrors the number line around 0, which swaps which side is bigger.

Quadratics. Solve the matching equation to find the critical points. They cut the number line into pieces, and the sign is the same across each piece. For x2−5x+6<0x^2 - 5x + 6 < 0 the roots are 2 and 3, and the curve dips below 0 between them. A curve that opens upward is negative between its roots and positive outside them; a curve that opens downward is the reverse.

Absolute values. The bars measure distance from 0, so a less-than gives one piece and a greater-than gives two.

|u|\displaystyle |u|<k means −k\displaystyle {}< k \text{ means } -k<u\displaystyle {}< u<k\displaystyle {}< k
|u|\displaystyle |u|>k means u\displaystyle {}> k \text{ means } u<−k or u\displaystyle {}< -k \text{ or } u>k\displaystyle {}> k

Worked examples

Dana stays within a budget

Dana pays a $40 delivery fee plus $12 per item, and she has $200. Subtract 40, then divide by 12. The number is positive, so the sign stays as it is.

12x+40\displaystyle 12x + 40≤200\displaystyle {}\le 200

The answer is x ≤ 403\frac{40}{3}. Items come whole, so she can buy 13, which costs $196. A 14th item would bring it to $208, which is over.

Open this example in the tool

Ravi checks a machining tolerance

A part must be within 0.1 mm of 50 mm. Written as distance from 50, that is one inequality with bars around it.

|x−50|\displaystyle |x - 50|≤0.1\displaystyle {}\le 0.1

The answer is 49.9 ≤ x ≤ 50.1, or [49.9, 50.1]. Both ends have square brackets, because a part that is exactly on the limit still passes.

Open this example in the tool

Mei finds when a curve stays above 0

Mei has a height formula, −2x2+4x+6-2x^2 + 4x + 6, and wants the times when it is at or above 0. The roots are −1 and 3, and the curve opens downward because the first number is negative.

−2x2+4x+6\displaystyle {}-2x^2 + 4x + 6≥0\displaystyle {}\ge 0

So the curve is on or above 0 between the roots: [−1, 3]. Time cannot be negative in her story, so she keeps the part from 0 up to 3. A test at x = 0 gives 6, which is above 0, as expected.

Open this example in the tool

Reading your result

Parentheses and brackets. A bracket means the end is included, and a parenthesis means it is not. Infinity always takes a parenthesis, and the smaller number goes first. The symbol ∪ joins separate pieces, as in (−∞, −3) ∪ (2, ∞). On the number line, a filled dot is included and an open dot is not.

Fractions and surds. A boundary that is a simple fraction stays one, so 3x+1<23x + 1 < 2 gives x < 13\frac{1}{3}. When a quadratic's roots do not come out even, the boundaries are 3±292\frac{3 \pm \sqrt{29}}{2} for x2−3x−5x^2 - 3x - 5, and the decimals are −1.192582 and 4.192582.

No answer, or every number. If a quadratic has no real roots, its sign never changes. So x2+1<0x^2 + 1 < 0 has no solution, while |x|>−3|x| > -3 holds for all real x. A curve that only touches 0 can give a single point: x2−6x+9≤0x^2 - 6x + 9 \le 0 holds only at x = 3.

This tool handles one variable and these three forms. Move x to one side first. Rational forms and pairs of inequalities need rearranging by hand, and the linear equation solver and quadratic solver handle the matching equations.

Common mistakes

  • Flipping the sign for a negative number you only added. Adding −3 to both sides keeps the sign as it is. Only multiplying or dividing by a negative number flips it.
  • Writing an "or" piece as one chain. |x|>3|x| > 3 is two pieces. Writing 3<x<−33 < x < -3 says x is both above 3 and below −3, which no number can do.
  • Dividing by x. You cannot tell if x is positive or negative, so you cannot tell if the sign flips. Move everything to one side and find the roots.
  • Forgetting which ends count. At x = 5, −3x+6-3x + 6 equals −9, which is not above −9. So 5 is left out and takes a parenthesis.

Questions people ask

Multiplying by a negative number swaps the order of numbers on the number line. For example −8 < 12 is true, but multiplying by −1 would give 8 < −12, which is false. Turning the sign around makes it 8 > −12, which is true again.

Sources