Sub topic 8
Solving Quadratic Inequalities
Prerequisites and goal
This chapter assumes you can do four things:
- Factor simple quadratics such as x² − x − 6.
- Solve linear inequalities, including reversing the sign when you multiply or divide by a negative.
- Write "and" and "or" solution sets.
- Read a sign chart, which is the table of signs on each interval between critical points.
By the end you should be able to solve any quadratic inequality in one variable, write the answer as an interval or a union of intervals, and avoid the standard GRE traps.
A quadratic inequality compares a quadratic expression with a number, usually zero. Examples are x² − x − 6 > 0 and 2x² + 3 ≤ 7x.
The working model
A quadratic expression is a continuous function. As x moves along the number line, the value of ax² + bx + c can change sign only by passing through zero. So the roots (the values of x where the expression equals zero) split the number line into intervals. On each interval the expression has one constant sign.
That gives a method that never depends on memorizing shortcuts:
- Move everything to one side so the other side is 0.
- Factor, or use the quadratic formula, to find the roots. These are the critical points.
- Mark the critical points on a number line. They cut it into intervals.
- Test one value from each interval to find its sign.
- Keep the intervals that match the inequality.
- Decide whether each critical point is included. Include it for ≤ and ≥. Exclude it for < and >.
Worked example: a strict inequality
Solve x² − x − 6 > 0.
The right side is already 0. Factor: (x − 3)(x + 2) > 0. The critical points are −2 and 3. They create three intervals: x < −2, −2 < x < 3, and x > 3.
Test one value in each interval:
- x = −3: (−6)(−1) = 6, which is positive.
- x = 0: (−3)(2) = −6, which is negative.
- x = 4: (1)(6) = 6, which is positive.
The inequality asks for positive values and is strict, so the answer is x < −2 or x > 3. In interval notation that is (−∞, −2) ∪ (3, ∞). The word "or" matters here. No single number is both less than −2 and greater than 3, so "and" would give an empty set.
You can check the work by evaluating the original expression at points on and around each critical point.
# x^2 - x - 6 > 0 factors as (x - 3)(x + 2) > 0, with critical points -2 and 3
for x in [-3, -2, 0, 3, 4]:
print(x, x**2 - x - 6 > 0)
# -3 True
# -2 False
# 0 False
# 3 False
# 4 TrueThe values at −2 and 3 are False because the expression equals 0 there, and 0 is not greater than 0.
The four basic shapes
For a quadratic with a positive leading coefficient and roots r < s, written (x − r)(x − s), the parabola opens upward. It is below zero between the roots and above zero outside them. This gives four patterns.
| Inequality | Solution | Description |
|---|---|---|
| (x − r)(x − s) > 0 | x < r or x > s | Outside the roots, roots excluded |
| (x − r)(x − s) ≥ 0 | x ≤ r or x ≥ s | Outside the roots, roots included |
| (x − r)(x − s) < 0 | r < x < s | Between the roots, roots excluded |
| (x − r)(x − s) ≤ 0 | r ≤ x ≤ s | Between the roots, roots included |
"Outside" produces a union (an "or" statement). "Between" produces a single interval (an "and" statement). If you lose track, test a point.
Worked example: a non-strict inequality
Solve x² − 5x + 6 ≤ 0.
Factor: (x − 2)(x − 3) ≤ 0. The roots are 2 and 3. Test x = 2.5: (0.5)(−0.5) = −0.25, which is negative. Test x = 0 and x = 4: both give positive values. We want values less than or equal to 0, so the answer is 2 ≤ x ≤ 3, written [2, 3].
When the right side is not zero
Never divide both sides by x, and never take a square root of both sides without thinking. Move everything to one side first.
Solve x² > 4x.
Subtract 4x: x² − 4x > 0. Factor: x(x − 4) > 0. The roots are 0 and 4. Outside the roots the product is positive, so x < 0 or x > 4.
The tempting shortcut is to divide both sides by x and get x > 4. That drops every negative x, and x = −1 does satisfy the inequality: (−1)² = 1 > −4. The division was invalid because x could be negative, and dividing by a negative would also flip the sign. Dividing by a variable whose sign you do not know is a standard way to lose solutions.
When the leading coefficient is negative
Solve −x² + 4x + 5 ≥ 0.
You can work with the negative coefficient directly, but it is easier to multiply both sides by −1. That reverses the inequality sign: x² − 4x − 5 ≤ 0. Factor: (x − 5)(x + 1) ≤ 0. The roots are −1 and 5. The answer is −1 ≤ x ≤ 5.
Check with x = 0 in the original: 0 + 0 + 5 = 5 ≥ 0, which is true. Check with x = 6: −36 + 24 + 5 = −7, which is not ≥ 0, so 6 is correctly excluded.
If you skip the multiplication and factor −(x − 5)(x + 1) ≥ 0 directly, remember that this parabola opens downward. It is positive between the roots, not outside them.
Special cases
A repeated root
Solve x² − 6x + 9 > 0.
This is (x − 3)² > 0. A square is never negative, and it equals 0 only at x = 3. So every real number except 3 works: x ≠ 3, or (−∞, 3) ∪ (3, ∞).
The same expression with other signs behaves differently:
- (x − 3)² ≥ 0 is true for all real x.
- (x − 3)² ≤ 0 is true only at x = 3.
- (x − 3)² < 0 has no solution.
No real roots
Solve x² + x + 1 > 0.
The discriminant (the b² − 4ac part of the quadratic formula) is 1 − 4 = −3, which is negative. There are no real roots, so the expression never crosses zero and has one sign everywhere. Test x = 0: the value is 1, which is positive. So the inequality holds for all real x. The reverse inequality x² + x + 1 < 0 has no solution.
Roots that are not integers
Solve x² − 2x − 1 > 0.
This does not factor over the integers. The quadratic formula gives x = (2 ± √8) / 2 = 1 ± √2, which is about −0.414 and 2.414. The pattern is the same: x < 1 − √2 or x > 1 + √2. On the GRE you can keep the roots in radical form. Use decimals only to place them on the number line.
Perfect squares and absolute value
For a positive number k:
- x² > k means |x| > √k, so x < −√k or x > √k.
- x² < k means |x| < √k, so −√k < x < √k.
For example, x² > 9 gives x < −3 or x > 3, and x² < 9 gives −3 < x < 3. This links directly to absolute value inequalities.
Checking your answer with code
A quick way to confirm a sign chart is to evaluate the expression at one point per interval. This helper computes the real roots and picks a sample point in each interval.
import math
def critical_points(a, b, c):
disc = b * b - 4 * a * c
if disc < 0:
return []
r = math.sqrt(disc)
return sorted({(-b - r) / (2 * a), (-b + r) / (2 * a)})
def test_intervals(a, b, c):
pts = critical_points(a, b, c)
if not pts:
samples = [0]
else:
samples = [pts[0] - 1]
samples += [(p + q) / 2 for p, q in zip(pts, pts[1:])]
samples.append(pts[-1] + 1)
for s in samples:
print(f"x = {s:g}: value {a * s * s + b * s + c:g}")
test_intervals(1, -1, -6) # x^2 - x - 6
test_intervals(1, 0, 1) # x^2 + 1, no real roots
# x = -3: value 6
# x = 0.5: value -6.25
# x = 4: value 6
# x = 0: value 1For x² − x − 6 the signs are positive, negative, positive, which matches the sign chart. For x² + 1 there are no roots, so a single test point is enough.
GRE applications
Quantitative Comparison
Quantitative Comparison (QC) questions ask you to compare two quantities. An inequality in the given information often fixes the range of x, and you then compare.
Suppose x² − 5x + 4 < 0, with Column A equal to x and Column B equal to 0. Factor: (x − 1)(x − 4) < 0, so 1 < x < 4. Every possible x is positive, so Column A is greater.
Now suppose x² < 16, with Column A equal to x and Column B equal to 4. This gives −4 < x < 4, so x is always less than 4. Column B is greater. Check the other tempting reading: x² < 16 does not mean x < 4 only for positive x. The negative side also satisfies it, but still gives x < 4.
Compare this with x² > 16. Then x < −4 or x > 4, and x could be −5 or 5. Against 4, the answer would be "cannot be determined." The direction of the inequality decides the outcome.
Numeric Entry
Numeric Entry questions often ask you to count integers. Suppose you need the number of integers satisfying x² − 2x − 8 < 0. Factor: (x − 4)(x + 2) < 0, so −2 < x < 4. The endpoints are excluded, so the integers are −1, 0, 1, 2, 3. The answer is 5. Counting endpoints incorrectly is the usual error here.
Common errors
- Dividing by a variable. Moving terms and factoring avoids it. Dividing by x loses the negative solutions, as in x² > 4x.
- Using "and" for an outside solution. When the answer lies outside the roots, you need "or" (a union).
- Wrong endpoint treatment. Strict inequalities exclude the roots. Non-strict ones include them. A repeated root can still be a solution for ≥ or ≤.
- Forgetting to flip. Multiplying by −1 to make the leading coefficient positive reverses the inequality sign.
- Assuming the pattern without testing. "Positive outside, negative between" holds only when the leading coefficient is positive. Test one point if you are unsure.
- Square-rooting both sides carelessly. From x² > 9, the result is |x| > 3, not x > 3.
Exercises
Exercise
Solve x² − 3x − 10 ≥ 0 and write the answer in interval notation.
Show answer
Factor as (x − 5)(x + 2) ≥ 0. The roots are −2 and 5. The parabola opens upward, so the expression is non-negative outside the roots, with the roots included. The solution is x ≤ −2 or x ≥ 5, which is (−∞, −2] ∪ [5, ∞).
Exercise
Solve 6 − x − x² > 0.
Show answer
Multiply both sides by −1 and reverse the sign: x² + x − 6 < 0. Factor as (x + 3)(x − 2) < 0. The roots are −3 and 2, and the expression is negative between them. The solution is −3 < x < 2, which is (−3, 2). Check x = 0 in the original: 6 > 0 is true.
Exercise
How many integers x satisfy x² ≤ 20?
Show answer
Since x² ≤ 20 means |x| ≤ √20, and √20 is about 4.47, the solution is −√20 ≤ x ≤ √20. The integers are −4, −3, −2, −1, 0, 1, 2, 3, 4, which makes 9 integers.