What is a quadratic inequality?
A quadratic inequality is an inequality that can be written as , , or , with . 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 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
Compare with zero
Rearrange to the form (or >, ≤, ≥). Add or subtract terms on both sides, but never divide by an expression that contains x, because its sign is unknown.
Find the critical values
Solve by factoring or with the quadratic formula. The real roots, also called critical values, are the boundary points of the solution.
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.
Test each interval
Substitute any convenient value from each interval and note whether the quadratic is positive or negative there.
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: , so the critical values are x = 2 and x = 3. They split the number line into three intervals. Test one value in each:
| Interval | Test value | Sign of x − 2 | Sign of x − 3 | Sign of the product |
|---|---|---|---|---|
| x < 2 | x = 0 | − | − | + (value 6) |
| 2 < x < 3 | x = 2.5 | + | − | − (value −0.25) |
| x > 3 | x = 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 , or in interval notation. Check it.
Example 2: 2x² + x ≥ 6 (two intervals)
First subtract 6 from both sides so the inequality compares with zero:
Next find the roots of . The discriminant is , a perfect square, so the roots are rational:
In factored form, . The roots −2 and 3/2 split the number line into three intervals. Test one value in each:
| Interval | Test value | Value of 2x² + x − 6 | Sign |
|---|---|---|---|
| x < −2 | x = −3 | 18 − 3 − 6 = 9 | Positive |
| −2 < x < 3/2 | x = 0 | 0 + 0 − 6 = −6 | Negative |
| x > 3/2 | x = 2 | 8 + 2 − 6 = 4 | Positive |
The inequality asks for ≥ 0, so keep the two positive intervals and include the roots, where the value is exactly 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:
The critical values are and . 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: . 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:
The roots are −1 and 5. An upward parabola is ≤ 0 between its roots, including them, so the solution is , or . Test x = 0 in the original inequality: , true. Check it.
Example 5: ½x² − x − 4 < 0 (fractions)
Clear fractions first. Multiplying by 2, a positive number, keeps the sign: , which factors as . The parabola is below the axis between the roots, so the solution is . Check it.
Special cases: no real roots and a double root
When the discriminant is zero or negative, there are fewer than three intervals and the answer is often "all real numbers" or "no solution".
| Discriminant | Example | < 0 | ≤ 0 | > 0 | ≥ 0 |
|---|---|---|---|---|---|
| D > 0 (two roots) | (−2, 2) | [−2, 2] | (−∞, −2) ∪ (2, ∞) | (−∞, −2] ∪ [2, ∞) | |
| D = 0 (double root) | No solution | x = 3 only | All x except 3 | All real numbers | |
| D < 0 (no real roots) | No solution | No solution | All real numbers | All real numbers |
- No real roots. has discriminant 4 − 20 = −16 and a > 0, so it is positive for every x. Therefore holds for all real numbers, and has no solution. Check it.
- A repeated root. is never negative. So holds for every x except 3, holds for all x, and holds only at x = 3. Check it.
- For a < 0 the columns swap: holds for all real numbers, and 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 form | Interval notation | Set-builder notation | Number 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 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.
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 it does not follow that x < ±3. The correct solution is −3 < x < 3, while 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 you cannot divide by x, because x might be negative or zero. Write , factor as , and get .
- 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.
- x² − 9 ≤ 0. Roots ±3. Answer: . Check
- x² + x − 12 > 0. Factors as (x + 4)(x − 3). Answer: . Check
- 3x² − 5x − 2 ≤ 0. Factors as (3x + 1)(x − 2). Answer: . Check
- x² < 2x + 15. Rewrite as , roots −3 and 5. Answer: . Check
- −2x² + 8x ≥ 0. Divide by −2 and reverse: . Answer: . Check
- x² − 4x + 4 > 0. Double root at 2. Answer: all real numbers except 2, . Check
- x² + 3 < 0. No real roots and a > 0. Answer: no solution, ∅. Check
- x² ≥ 6x − 7. Rewrite as , roots . Answer: . Check