Skip to content
  • Open the math solver
  • Ask the AI tutor
  • Find an AP course
  • Create a quiz
  • Open the calculator
  • Graphing Calculator
  • Browse all calculators
  • Read math guides
↑ ↓Enter to open · Esc to close
Solve a problem

Algebra

How to Solve Inequalities and Write the Answer in Interval Notation

By MathSolver Pro Editorial Team · Published

Inequalities are solved almost exactly like equations, with one extra rule and a different kind of answer: a range of values instead of a single number. This guide covers every common type.

Inequality symbols and what the answer looks like

An inequality compares two expressions with one of four symbols: << (less than), >> (greater than), ≤\le (less than or equal to) and ≥\ge (greater than or equal to). Its solution is usually an infinite set of numbers, so the answer is written as an inequality, a number line graph or an interval.

  • x<5x < 5 is the interval (−∞,5)(-\infty, 5); the round bracket means 5 is not included, shown by an open circle on a number line.
  • x≤3x \le 3 is (−∞,3](-\infty, 3]; the square bracket means 3 is included, shown by a filled circle.
  • −2≤x<4-2 \le x < 4 is [−2,4)[-2, 4).
  • Infinity always gets a round bracket, because it is not a number that can be included.

The one rule that differs from equations

You may add or subtract any number on both sides, and multiply or divide both sides by a positive number, exactly as with equations. But multiplying or dividing both sides by a negative number reverses the direction of the inequality.

a<b   and   c<0  ⇒  ac>bca < b \;\text{ and }\; c < 0 \;\Rightarrow\; ac > bc

To see why, start with the true statement −2<3-2 < 3 and multiply both sides by −1-1. You get 22 and −3-3, and 2>−32 > -3. Multiplying by a negative number reflects the number line, which swaps which side is larger. The same applies if you swap the two sides of an inequality: 5>x5 > x means the same as x<5x < 5.

Linear inequalities

Example 1: 3x−5<103x - 5 < 10

  1. Add 5 to both sides: 3x<153x < 15.
  2. Divide by 3, which is positive, so the sign stays: x<5x < 5.
  3. Interval: (−∞,5)(-\infty, 5).

Example 2: −2x+7≥1-2x + 7 \ge 1

  1. Subtract 7: −2x≥−6-2x \ge -6.
  2. Divide by −2-2 and reverse the sign: x≤3x \le 3.
  3. Test a value inside the answer, x=0x = 0: 7≥17 \ge 1 is true. Test one outside, x=4x = 4: −1≥1-1 \ge 1 is false. The answer is (−∞,3](-\infty, 3].

Testing one value on each side of the boundary takes ten seconds and catches a forgotten sign flip every time.

Compound inequalities: and, or

A double inequality such as −3≤2x+1<9-3 \le 2x + 1 < 9 means both conditions hold. Solve it by doing the same operation to all three parts at once.

−3≤2x+1<9  ⇒  −4≤2x<8  ⇒  −2≤x<4-3 \le 2x + 1 < 9 \;\Rightarrow\; -4 \le 2x < 8 \;\Rightarrow\; -2 \le x < 4

The answer is [−2,4)[-2, 4), the overlap of the two conditions. An or statement, such as x<−1x < -1 or x≥3x \ge 3, is the union of two pieces and is written (−∞,−1)∪[3,∞)(-\infty, -1) \cup [3, \infty).

Absolute value inequalities

The absolute value ∣A∣|A| is the distance of AA from zero. A distance less than kk means being close to zero, which gives one interval; a distance greater than kk means being far away, which gives two pieces. For k>0k > 0:

∣A∣<k  ⟺  −k<A<k,∣A∣>k  ⟺  A<−k   or   A>k|A| < k \iff -k < A < k, \qquad |A| > k \iff A < -k \;\text{ or }\; A > k

Example 3: ∣x−4∣<3|x - 4| < 3

  1. Rewrite as a double inequality: −3<x−4<3-3 < x - 4 < 3.
  2. Add 4 to all parts: 1<x<71 < x < 7, so the answer is (1,7)(1, 7): every number within 3 units of 4.

Example 4: ∣2x+1∣≥5|2x + 1| \ge 5

  1. Split into two cases: 2x+1≥52x + 1 \ge 5 or 2x+1≤−52x + 1 \le -5.
  2. Solve each: x≥2x \ge 2 or x≤−3x \le -3.
  3. Answer: (−∞,−3]∪[2,∞)(-\infty, -3] \cup [2, \infty).

If kk is negative, ∣A∣<k|A| < k has no solution and ∣A∣>k|A| > k is true for every real number, since an absolute value is never negative.

Quadratic inequalities with a sign chart

Do not try to take square roots across an inequality. Instead, move everything to one side, find where the expression equals zero, and test the sign between those points.

Example 5: x2−x−6>0x^2 - x - 6 > 0

  1. Factor: (x−3)(x+2)>0(x - 3)(x + 2) > 0. The critical points are x=−2x = -2 and x=3x = 3.
  2. They split the number line into three intervals. Test one value in each: x=−3x = -3 gives (−6)(−1)=6>0(-6)(-1) = 6 > 0; x=0x = 0 gives (−3)(2)=−6<0(-3)(2) = -6 < 0; x=4x = 4 gives (1)(6)=6>0(1)(6) = 6 > 0.
  3. Keep the positive intervals: (−∞,−2)∪(3,∞)(-\infty, -2) \cup (3, \infty). The endpoints are excluded because the inequality is strict.

Graphically, y=x2−x−6y = x^2 - x - 6 is an upward parabola that is above the x-axis outside its roots, which matches the sign chart. The quadratic calculator finds the roots if they are not easy to factor.

Rational inequalities

For an inequality with the variable in a denominator, never multiply both sides by that denominator: you do not know whether it is positive or negative. Use a sign chart with the zeros of the numerator and of the denominator instead.

Example 6: x−1x+2≤0\dfrac{x - 1}{x + 2} \le 0

  1. Critical points: the numerator is zero at x=1x = 1 and the denominator is zero at x=−2x = -2.
  2. Test: x=−3x = -3 gives −4−1=4\frac{-4}{-1} = 4 (positive); x=0x = 0 gives −12-\frac{1}{2} (negative); x=2x = 2 gives 14\frac{1}{4} (positive).
  3. Keep the negative interval and include x=1x = 1, where the expression equals zero. Exclude x=−2x = -2, where it is undefined.
  4. Answer: (−2,1](-2, 1].

Inequalities in two variables

An inequality such as y>2x+1y > 2x + 1 describes a region of the plane. Draw the boundary line y=2x+1y = 2x + 1, dashed for a strict inequality and solid for ≤\le or ≥\ge, then shade the side that satisfies it. Testing the origin is quickest: 0>10 > 1 is false, so shade the side that does not contain (0,0)(0, 0). The graphing calculator shades inequalities like this directly.

Common mistakes

  • Forgetting to reverse the sign after multiplying or dividing by a negative number.
  • Multiplying by a variable expression whose sign is unknown.
  • Writing ∣x−4∣<3|x - 4| < 3 as x−4<3x - 4 < 3 only, which loses the lower bound.
  • Using a square bracket next to infinity, or the wrong bracket at an endpoint.
  • Including a value that makes a denominator zero.

The inequality calculator shows each step and the interval notation. For the equation-solving moves used throughout, see how to solve linear equations.

A word problem with an inequality

Inequalities appear whenever a situation has a limit, a minimum or a budget. Phrases such as at least, no more than, at most and exceeds signal which symbol to use: at least means ≥\ge, at most and no more than mean ≤\le, and exceeds or more than means >>.

Example: a phone plan

  1. A plan costs 20 dollars a month plus 0.10 dollars per text, and you want to spend no more than 35 dollars. Let tt be the number of texts.
  2. Write the inequality: 20+0.10t≤3520 + 0.10t \le 35.
  3. Subtract 20: 0.10t≤150.10t \le 15. Divide by 0.10, which is positive: t≤150t \le 150.
  4. The number of texts must also be a whole number that is not negative, so the answer is any whole number from 0 to 150.

The context added a restriction that the algebra alone did not give. It is common for real problems to need t≥0t \ge 0 or a whole-number condition, so always ask what values make sense before writing the final interval.

Checking an interval answer

An inequality answer has three parts that can each go wrong: the boundary values, whether each boundary is included, and which side of the boundary is kept. Check them in that order. Substitute each boundary into the original inequality to see whether it gives equality, which tells you whether the endpoint belongs in the answer. Then test one value inside each interval of your answer and one value outside.

For the rational example, x=1x = 1 gives 03=0\frac{0}{3} = 0, and 0≤00 \le 0 is true, so 1 is included. At x=−2x = -2 the expression is undefined, so −2-2 is excluded even though the inequality allows equality. These two checks confirm the brackets in (−2,1](-2, 1].

Frequently asked questions

When do I flip the inequality sign?

Only when you multiply or divide both sides by a negative number, or swap the two sides. Adding or subtracting, even a negative number, never flips it.

What is the difference between a round and a square bracket?

A round bracket means the endpoint is not included, as with << or >>. A square bracket means it is included, as with ≤\le or ≥\ge. Infinity always takes a round bracket.

Is it possible for an inequality to have no solutions at all?

Yes. For example ∣x∣<−2|x| < -2 has no solution, because an absolute value is never negative. Linear inequalities can also reduce to a false statement such as 0>30 > 3.

Why can't I multiply both sides by x + 2?

Because you do not know whether x+2x + 2 is positive or negative, so you cannot tell whether the sign should flip. A sign chart avoids the problem.

How do I write all real numbers in interval notation?

Write (−∞,∞)(-\infty, \infty). This is the answer when an inequality reduces to a statement that is always true, for example ∣x∣≥−1|x| \ge -1, or x+2>xx + 2 > x.

What does the union symbol mean in an answer?

The symbol ∪\cup joins two separate intervals into one solution set. It is the interval notation version of the word or, as in (−∞,−3]∪[2,∞)(-\infty, -3] \cup [2, \infty).

MathSolver Pro Editorial Team

Math content and review

Our editorial team writes every guide to explain the reasoning behind each method, not just the answer. Each worked example is checked against the site's own solver engines and automated tests before it is published, and articles are revised whenever a method or an exam format changes.