Inequality solver

An inequality is solved much like an equation, except the answer is a range of values. The one rule that catches people out is that multiplying or dividing by a negative number reverses the inequality sign.

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

What this topic covers

Solve linear inequalities like equations, but reverse the sign when you multiply or divide by a negative. Show answers on a number line. Quadratic and rational inequalities need a sketch or a sign diagram (quadratic inequalities, sign diagram for quadratics).

Each part of this topic has its own page with the formula, worked examples and a solver: Inequalities: sign diagram for quadratics, Linear inequalities, Quadratic inequalities, Linear inequalities on a number line.

Closely related topics: Quadratic equations, Linear equations, Trigonometric equation solver.

What is it used for?

An inequality compares two expressions with <, >, ≤ or ≥. Its solution is a range of values rather than one number.

How to solve it

  1. Treat the inequality like an equation and rearrange to get the unknown on one side.
  2. Reverse the sign if you multiply or divide both sides by a negative number.
  3. For a quadratic, find the roots first, then decide which regions satisfy the inequality.
  4. For a rational inequality, include the values that make the bottom zero as boundaries, but never as solutions.
  5. Test a value from each region to confirm the answer.

Worked examples

The examples marked with a button were worked out by the solver on this page. You can try each one yourself.

Example 1: 3x + 2 < 14

Worked out by the solver on this page. Press the button to try it yourself.

Inequality
Answer
(−∞,  4)(-\infty,\; 4)
  1. The inequality
  2. Move everything to one side
  3. Find the critical values (solve )
  4. Test a value in each region
    Try : → true<br>Try : → false

Example 2: 5 - 2x >= 9

Worked out by the solver on this page. Press the button to try it yourself.

Inequality
Answer
(−∞,  −2](-\infty,\; -2]
  1. The inequality
  2. Move everything to one side
  3. Find the critical values (solve )
  4. Test a value in each region
    Try : → true<br>Try : → false

Example 3: x^2 - 4 > 0

Worked out by the solver on this page. Press the button to try it yourself.

Inequality
Answer
(−∞,  −2)∪(2,  ∞)(-\infty,\; -2) \cup (2,\; \infty)
  1. The inequality
  2. Move everything to one side
  3. Find the critical values (solve )
  4. Test a value in each region
    Try : → true<br>Try : → false<br>Try : → true

Example 4: x^2 - 3x - 10 <= 0

Worked out by the solver on this page. Press the button to try it yourself.

Inequality
Answer
[−2,  5][-2,\; 5]
  1. The inequality
  2. Move everything to one side
  3. Find the critical values (solve )
  4. Test a value in each region
    Try : → false<br>Try : → true<br>Try : → false

Example 5: (x-1)/(x+2) > 0

Worked out by the solver on this page. Press the button to try it yourself.

Rational inequality Answer checked
Answer
x<−2orx>1x < -2 \quad\text{or}\quad x > 1
  1. Never multiply by an expression that could be negative. Move everything to one side and make a single fraction
  2. Simplify to one fraction (top and bottom as products of factors)
  3. Critical values: where the top is zero (the fraction is zero) and where the bottom is zero (the fraction is undefined, so never included)
  4. Test the sign of the fraction in each interval
  5. Choose the intervals where the fraction is positive
  6. Check: test sample values across the number line against the original inequality

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

Linear

3x + 2 < 14: x < 4

Solve like an equation.

Dividing by a negative

5 − 2x ≥ 9: x ≤ −2

The sign flips.

Quadratic

x² − 4 > 0: x < −2 or x > 2

Outside the roots.

Between the roots

x² − 3x − 10 ≤ 0: −2 ≤ x ≤ 5

Inside the roots.

Word problems

Solve like an equation, but reverse the inequality sign when multiplying or dividing by a negative number.

Linear

Solve 3x + 2 < 14.

  1. Subtract 23x < 12
  2. Divide by 3x < 4
  3. Check: x = 3 gives 11 < 14 ✓4

Negative coefficient

Solve 5 − 2x ≥ 9.

  1. Subtract 5−2x ≥ 4
  2. Divide by −2 and flipx ≤ −2
  3. Check: x = −3 gives 11 ≥ 9 ✓-2

Quadratic Higher

Solve x² − 3x − 10 ≤ 0.

  1. Factorise(x − 5)(x + 2) ≤ 0
  2. Roots−2 and 5
  3. Below the axis between them−2 ≤ x ≤ 5
  4. Check: x = 0 gives −10 ≤ 0 ✓5

Outside the roots Higher

Solve x² − 4 > 0.

  1. Roots−2 and 2
  2. Above the axis outside themx < −2 or x > 2
  3. Check: x = 3 gives 5 > 0 ✓5

Common mistakes

Not flipping the sign

−2x ≥ 4 gives x ≥ −2 ✗

x ≤ −2 ✓

Dividing by a negative reverses it.

Writing one inequality for outside the roots

−2 > x > 2 ✗

x < −2 or x > 2 ✓

The two parts are separate.

Dividing both sides by x

x² > 4x gives x > 4 ✗

x(x − 4) > 0 ✓

x may be negative.

Using a closed circle for <

closed ✗

open ✓

Strict inequalities exclude the end.

Exam tips

  1. Flip the sign for a negative multiplier.
  2. Sketch the quadratic.
  3. Strict: open circle.
  4. Test a value.
  5. Never divide by an unknown.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. Solve 2x − 3 > 7: the boundary Foundation

5

2. Solve 4 − x ≤ 1: the boundary Foundation

3

3. Solve x² − 9 < 0: the upper bound Foundation

3

4. Solve x² − 5x + 6 > 0: the larger root Higher

3

5. Solve 6 − 3x < 0: the boundary Higher

2

6. Solve x² − x − 12 ≤ 0: the upper bound Higher

4

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Inequality
A comparison using <, >, ≤ or ≥.
Solution set
All values that work.
Number line
A line to show the range.
Critical value
Where the expression is zero.
Strict inequality
< or >.
Interval
A range of values.

Frequently asked questions

When do I flip the inequality sign?

When you multiply or divide by a negative number.

How do I solve a quadratic inequality?

Find the roots, sketch the graph and read off where it is above or below the axis.

Which page covers linear inequalities?

linear inequalities.

Which page covers quadratic ones?

quadratic inequalities.

Which page covers the number line?

number line representation.

Which page covers the sign diagram?

sign diagram for quadratics.

More in Algebra and the formula sheets.