How-to guide

How to solve quadratic inequalities

How to solve quadratic inequalities: find the roots, test each interval with a sign chart and write the answer in interval notation. 5 examples and practice.

7 minutesBy Hira Noor, mathematicianUpdated
Short answerTo solve a quadratic inequality, move every term to one side so it compares ax2+bx+cax^2 + bx + c with 0, then find the roots of ax2+bx+c=0ax^2 + bx + c = 0. The roots split the number line into intervals where the sign cannot change, so test one value in each interval with a sign chart and keep the intervals that make the inequality true. Write the answer in interval notation, with brackets for ≤ and ≥ and parentheses for < and >.

What is a quadratic inequality?

A quadratic inequality is an inequality that can be written as ax2+bx+c<0ax^2 + bx + c < 0, >0> 0, ≤0\le 0 or ≥0\ge 0, with a≠0a \ne 0. Unlike a quadratic equation, which usually has two solutions, a quadratic inequality is solved by a whole interval or a union of two intervals, because the parabola y=ax2+bx+cy = ax^2 + bx + c stays above or below the x-axis between its roots.

Just need the answer?

Type the inequality into the inequality calculator for the solution set in interval notation, a sign chart and a number line. The rest of this guide shows how to solve quadratic inequalities by hand.

How to solve quadratic inequalities in 5 steps

  1. Compare with zero

    Rearrange to the form ax2+bx+c<0ax^2 + bx + c < 0 (or >, ≤, ≥). Add or subtract terms on both sides, but never divide by an expression that contains x, because its sign is unknown.

  2. Find the critical values

    Solve ax2+bx+c=0ax^2 + bx + c = 0 by factoring or with the quadratic formula. The real roots, also called critical values, are the boundary points of the solution.

  3. Build a sign chart

    Mark the roots on a number line. Two distinct roots create three intervals; one repeated root creates two; no real roots leaves the whole line as one interval.

  4. Test each interval

    Substitute any convenient value from each interval and note whether the quadratic is positive or negative there.

  5. Choose and write the intervals

    Keep the intervals with the required sign. Include the roots for ≤ or ≥, exclude them for < or >, and join separate pieces with ∪.

Example 1: x² − 5x + 6 < 0 (by factoring)

The inequality already compares with 0. Factor the left side: x2−5x+6=(x−2)(x−3)x^2 - 5x + 6 = (x - 2)(x - 3), so the critical values are x = 2 and x = 3. They split the number line into three intervals. Test one value in each:

Sign chart for (x − 2)(x − 3)
IntervalTest valueSign of x − 2Sign of x − 3Sign of the product
x < 2x = 0−−+ (value 6)
2 < x < 3x = 2.5+−− (value −0.25)
x > 3x = 4+++ (value 2)

The inequality asks for < 0, so keep only the negative interval. The sign is strict, so the endpoints are excluded: the solution is 2<x<32 < x < 3, or (2,3)(2, 3) in interval notation. Check it.

Solution of x² − 5x + 6 < 0
1.822.22.42.62.833.223
Open circles at 2 and 3 show that the endpoints are not part of the solution.

Example 2: 2x² + x ≥ 6 (two intervals)

First subtract 6 from both sides so the inequality compares with zero:

2x2+x−6≥02x^2 + x - 6 \ge 0

Next find the roots of 2x2+x−6=02x^2 + x - 6 = 0. The discriminant is 12−4(2)(−6)=49=721^2 - 4(2)(-6) = 49 = 7^2, a perfect square, so the roots are rational:

x=−1±74⇒x=32 or x=−2x = \frac{-1 \pm 7}{4} \;\Rightarrow\; x = \frac{3}{2} \;\text{ or }\; x = -2

In factored form, 2x2+x−6=(2x−3)(x+2)2x^2 + x - 6 = (2x - 3)(x + 2). The roots −2 and 3/2 split the number line into three intervals. Test one value in each:

Sign chart for 2x² + x − 6
IntervalTest valueValue of 2x² + x − 6Sign
x < −2x = −318 − 3 − 6 = 9Positive
−2 < x < 3/2x = 00 + 0 − 6 = −6Negative
x > 3/2x = 28 + 2 − 6 = 4Positive

The inequality asks for ≥ 0, so keep the two positive intervals and include the roots, where the value is exactly 0:

x≤−2 or x≥32,that is,(−∞,−2]∪[32,∞)x \le -2 \;\text{ or }\; x \ge \tfrac{3}{2}, \qquad \text{that is,} \quad (-\infty, -2] \cup \left[\tfrac{3}{2}, \infty\right)
Graph of y = 2x² + x − 6 with the solution of y ≥ 0 shaded
−3−2−10123xx = −2x = 1.5
The parabola opens upward, so it is above the x-axis outside the roots and below it between them. The shaded parts, to the left of −2 and to the right of 1.5, are where 2x2+x−6≥02x^2 + x - 6 \ge 0.

Shortcut from the graph. Because a = 2 is positive, the parabola opens upward. For a > 0, "> 0" means outside the roots and "< 0" means between them; for a < 0 it is the other way round. This is how to solve quadratic inequalities without a full sign chart once you are confident. Check it.

Example 3: x² − 2x − 1 > 0 (irrational roots)

This quadratic does not factor over the integers, so use the quadratic formula with a = 1, b = −2 and c = −1:

x=2±4+42=2±222=1±2x = \frac{2 \pm \sqrt{4 + 4}}{2} = \frac{2 \pm 2\sqrt{2}}{2} = 1 \pm \sqrt{2}

The critical values are 1−2≈−0.4141 - \sqrt{2} \approx -0.414 and 1+2≈2.4141 + \sqrt{2} \approx 2.414. Test x = −1 (value 2, positive), x = 0 (value −1, negative) and x = 3 (value 2, positive). The inequality asks for > 0, so keep the outer intervals and exclude the endpoints: (−∞,1−2)∪(1+2,∞)(-\infty, 1 - \sqrt{2}) \cup (1 + \sqrt{2}, \infty). Keep the roots exact in the answer and use decimals only for testing. Check it.

Example 4: −x² + 4x + 5 ≥ 0 (negative leading coefficient)

Multiply both sides by −1 to make the leading coefficient positive. Multiplying by a negative number reverses the inequality sign:

−x2+4x+5≥0⟺x2−4x−5≤0⟺(x−5)(x+1)≤0-x^2 + 4x + 5 \ge 0 \quad\Longleftrightarrow\quad x^2 - 4x - 5 \le 0 \quad\Longleftrightarrow\quad (x - 5)(x + 1) \le 0

The roots are −1 and 5. An upward parabola is ≤ 0 between its roots, including them, so the solution is −1≤x≤5-1 \le x \le 5, or [−1,5][-1, 5]. Test x = 0 in the original inequality: 0+0+5=5≥00 + 0 + 5 = 5 \ge 0, true. Check it.

Example 5: ½x² − x − 4 < 0 (fractions)

Clear fractions first. Multiplying by 2, a positive number, keeps the sign: x2−2x−8<0x^2 - 2x - 8 < 0, which factors as (x−4)(x+2)<0(x - 4)(x + 2) < 0. The parabola is below the axis between the roots, so the solution is (−2,4)(-2, 4). Check it.

Special cases: no real roots and a double root

When the discriminant b2−4acb^2 - 4ac is zero or negative, there are fewer than three intervals and the answer is often "all real numbers" or "no solution".

How the discriminant changes the solution (a > 0)
DiscriminantExample< 0≤ 0> 0≥ 0
D > 0 (two roots)x2−4x^2 - 4(−2, 2)[−2, 2](−∞, −2) ∪ (2, ∞)(−∞, −2] ∪ [2, ∞)
D = 0 (double root)(x−3)2(x - 3)^2No solutionx = 3 onlyAll x except 3All real numbers
D < 0 (no real roots)x2+2x+5x^2 + 2x + 5No solutionNo solutionAll real numbersAll real numbers
  • No real roots. x2+2x+5x^2 + 2x + 5 has discriminant 4 − 20 = −16 and a > 0, so it is positive for every x. Therefore x2+2x+5>0x^2 + 2x + 5 > 0 holds for all real numbers, and x2+2x+5<0x^2 + 2x + 5 < 0 has no solution. Check it.
  • A repeated root. x2−6x+9=(x−3)2x^2 - 6x + 9 = (x - 3)^2 is never negative. So (x−3)2>0(x - 3)^2 > 0 holds for every x except 3, (x−3)2≥0(x - 3)^2 \ge 0 holds for all x, and (x−3)2≤0(x - 3)^2 \le 0 holds only at x = 3. Check it.
  • For a < 0 the columns swap: −x2−2x−5<0-x^2 - 2x - 5 < 0 holds for all real numbers, and −x2−2x−5>0-x^2 - 2x - 5 > 0 has no solution.

Writing the answer in interval notation

Textbooks accept three equivalent ways to write a solution set. Use a bracket or a closed (filled) circle when the endpoint is included, and a parenthesis or an open circle when it is not. Infinity always gets a parenthesis.

Inequality, interval and number line forms of the same answer
Inequality formInterval notationSet-builder notationNumber line
2 < x < 3(2, 3){x | 2 < x < 3}Open circles at 2 and 3, shaded between
−1 ≤ x ≤ 5[−1, 5]{x | −1 ≤ x ≤ 5}Closed circles at −1 and 5, shaded between
x ≤ −2 or x ≥ 3/2(−∞, −2] ∪ [3/2, ∞){x | x ≤ −2 or x ≥ 3/2}Closed circles, arrows pointing outward
x ≠ 3(−∞, 3) ∪ (3, ∞){x | x ≠ 3}Whole line with an open circle at 3
All real numbers(−∞, ∞)ℝWhole line shaded
No solution∅{ }Nothing shaded

Check it with ScientifiCalc

  • Inequality calculator: opens with 2x2+x≥62x^2 + x \ge 6 filled in and returns the solution set in interval and set-builder notation, the sign chart and a number line, so you can compare it with your own table row by row.
  • Graphing calculator: enter y = 2x^2 + x - 6. The Key points panel lists the x-intercepts −2 and 1.5, and the curve is visibly above the axis to the left of −2 and to the right of 1.5.
  • Quadratic equation calculator: opens with a = 2, b = 1 and c = −6 to confirm the boundary points and the discriminant.

Type a quadratic inequality to get the solution in interval notation, the sign chart and a number line, with every step shown.

Open the inequalities

Common mistakes

  • Stopping at the roots. The roots −2 and 3/2 are only the boundary points. The answer is a set of intervals, not two numbers.
  • Taking square roots of both sides. From x2<9x^2 < 9 it does not follow that x < ±3. The correct solution is −3 < x < 3, while x2>9x^2 > 9 gives x < −3 or x > 3.
  • Forgetting to reverse the sign. Multiplying or dividing both sides by a negative number reverses the inequality, as in Example 4.
  • Dividing by x. From x2>4xx^2 > 4x you cannot divide by x, because x might be negative or zero. Write x2−4x>0x^2 - 4x > 0, factor as x(x−4)>0x(x - 4) > 0, and get (−∞,0)∪(4,∞)(-\infty, 0) \cup (4, \infty).
  • Using the wrong brackets. Use a bracket at a root only when the inequality includes equality, and always use a parenthesis next to ∞.
  • Writing two pieces as one chain. "3/2 ≤ x ≤ −2" describes no numbers at all. Use "or", or the union symbol ∪.

Practice problems with answers

Solve each quadratic inequality, then open the link to check your answer and the sign chart in the calculator.

  1. x² − 9 ≤ 0. Roots ±3. Answer: [−3,3][-3, 3]. Check
  2. x² + x − 12 > 0. Factors as (x + 4)(x − 3). Answer: (−∞,−4)∪(3,∞)(-\infty, -4) \cup (3, \infty). Check
  3. 3x² − 5x − 2 ≤ 0. Factors as (3x + 1)(x − 2). Answer: [−13,2][-\tfrac{1}{3}, 2]. Check
  4. x² < 2x + 15. Rewrite as x2−2x−15<0x^2 - 2x - 15 < 0, roots −3 and 5. Answer: (−3,5)(-3, 5). Check
  5. −2x² + 8x ≥ 0. Divide by −2 and reverse: x2−4x≤0x^2 - 4x \le 0. Answer: [0,4][0, 4]. Check
  6. x² − 4x + 4 > 0. Double root at 2. Answer: all real numbers except 2, (−∞,2)∪(2,∞)(-\infty, 2) \cup (2, \infty). Check
  7. x² + 3 < 0. No real roots and a > 0. Answer: no solution, ∅. Check
  8. x² ≥ 6x − 7. Rewrite as x2−6x+7≥0x^2 - 6x + 7 \ge 0, roots 3±23 \pm \sqrt{2}. Answer: (−∞,3−2]∪[3+2,∞)(-\infty, 3 - \sqrt{2}] \cup [3 + \sqrt{2}, \infty). Check

Frequently asked questions

How do you solve quadratic inequalities step by step?

Move all terms to one side so the inequality compares with 0, find the roots of the quadratic, mark them on a number line, test one value in each interval, and keep the intervals with the sign you need. Include the roots for ≤ and ≥ and exclude them for < and >.

Why do I need to test points?

Because the sign of the quadratic, not the inequality symbol, decides which intervals work. One test value per interval, or knowing which way the parabola opens, tells you where the expression is positive or negative.

Can I solve a quadratic inequality without graphing?

Yes. The sign chart is fully algebraic: find the roots by factoring or the quadratic formula, then test a value in each interval. A graph is only a quick way to see the same signs.

What is the golden rule of inequalities?

Whatever you do to one side you must do to the other, and if you multiply or divide both sides by a negative number you must reverse the inequality sign. For example, −x2+4>0-x^2 + 4 > 0 becomes x2−4<0x^2 - 4 < 0.

What does the discriminant tell me about a quadratic inequality?

If b2−4ac<0b^2 - 4ac < 0, the quadratic has no real roots and keeps the sign of a everywhere, so the answer is all real numbers or no solution. If it is 0, the only boundary is the double root. If it is positive, there are two roots and three intervals to test.

When do I use brackets and when parentheses?

Brackets include the endpoint and go with ≤ and ≥; parentheses exclude it and go with < and >. Infinity always gets a parenthesis, because it is not a number that can be included.

Does the same method work for cubic and rational inequalities?

Yes. Find all real roots, test one value in each interval between them, and keep the intervals with the right sign. For example, x3≥xx^3 \ge x has the solution [−1,0]∪[1,∞)[-1, 0] \cup [1, \infty). For a rational inequality, also mark the values that make the denominator 0 and always exclude them.

Tools used in this guide

Inequality Calculator

Linear, compound, absolute-value, quadratic and rational inequalities solved step by step.

Graphing Calculator

Plot functions, equations, inequalities, parametric and polar curves; find roots and intersections.