A qua­dratic inequa­tion asks for the val­ues of xx that make a qua­dratic expres­sion neg­a­tive, pos­i­tive, or zero together with one of these. Exam­ples are x2−2x−3<0x^2 - 2x - 3 < 0 or 2x2+3x−5≥02x^2 + 3x - 5 \geq 0. The clean­est way to solve them is to look at the graph: the parabola is above the xx-axis exactly where the expres­sion is pos­i­tive, and below it exactly where the expres­sion is neg­a­tive. You already know how to sketch the parabola, so the answers can sim­ply be read off.

The method

To solve ax2+bx+c<0ax^2 + bx + c < 0 (or ≤\leq, >>, ≥\geq):

  1. Decide whether the parabola y=ax2+bx+cy = ax^2 + bx + c opens up (a>0a > 0) or down (a<0a < 0).
  2. Find where it meets the xx-axis: solve ax2+bx+c=0ax^2 + bx + c = 0. Use Δ\Delta to see whether there are two points, one point or none.
  3. Mark these roots on a num­ber line and write the sign of yy on each part: ++ where the curve is above the axis, −- where it is below.
  4. Read the answer. For <0< 0 take the −- parts; for >0> 0 take the ++ parts. For ≤\leq or ≥\geq also include the roots, where y=0y = 0.

Each exam­ple below answers all four inequal­i­ties at once, so you can see how they fit together.

Exam­ple 1 (two roots, open­ing up)

Solve y=(x+1)(x−3)y = (x + 1)(x - 3) com­pared with 00.

The parabola opens upwards and cuts the xx-axis at −1-1 and 33. It is above the axis to the left of −1-1 and to the right of 33, and below the axis between them. Signs: ++, then −-, then ++.

Inequal­ity Solu­tion
(x+1)(x−3)<0(x + 1)(x - 3) < 0 x∈(−1,3)x \in (-1, 3)
(x+1)(x−3)≤0(x + 1)(x - 3) \leq 0 x∈[−1,3]x \in [-1, 3]
(x+1)(x−3)>0(x + 1)(x - 3) > 0 x∈(−∞,−1)∪(3,∞)x \in (-\infty, -1) \cup (3, \infty)
(x+1)(x−3)≥0(x + 1)(x - 3) \geq 0 x∈(−∞,−1]∪[3,∞)x \in (-\infty, -1] \cup [3, \infty)

Exam­ple 2 (a per­fect square)

Solve y=(2x−1)2y = (2x - 1)^2 com­pared with 00.

The parabola opens upwards and only touches the xx-axis at x=12\displaystyle x = \frac{1}{2}. Every­where else it is above the axis. A square is never neg­a­tive.

Inequal­ity Solu­tion
(2x−1)2<0(2x - 1)^2 < 0 x∈ϕx \in \phi (no solu­tion)
(2x−1)2≤0(2x - 1)^2 \leq 0 x∈{12}\displaystyle x \in \left\{\frac{1}{2}\right\}
(2x−1)2>0(2x - 1)^2 > 0 x∈R−{12}=(−∞,12)∪(12,∞)\displaystyle x \in \mathbb{R} - \left\{\frac{1}{2}\right\} = \left(-\infty, \frac{1}{2}\right) \cup \left(\frac{1}{2}, \infty\right)
(2x−1)2≥0(2x - 1)^2 \geq 0 x∈R=(−∞,∞)x \in \mathbb{R} = (-\infty, \infty)

Exam­ple 3 (roots with surds)

Solve y=(x−1)2−2y = (x - 1)^2 - 2 com­pared with 00.

This is an upward parabola with ver­tex (1,−2)(1, -2), below the axis, so it cuts the axis twice. Put y=0y = 0:

(x−1)2−2=0(x−1)2=2x−1=±2x=1±2\begin{aligned} (x - 1)^2 - 2 &= 0 \\ (x - 1)^2 &= 2 \\ x - 1 &= \pm\sqrt{2} \\ x &= 1 \pm \sqrt{2} \end{aligned}

The two roots are 1−21 - \sqrt{2} and 1+21 + \sqrt{2}. Signs: ++ out­side them, −- between them.

Inequal­ity Solu­tion
<0< 0 x∈(1−2,1+2)x \in (1 - \sqrt{2}, 1 + \sqrt{2})
≤0\leq 0 x∈[1−2,1+2]x \in [1 - \sqrt{2}, 1 + \sqrt{2}]
>0> 0 x∈(−∞,1−2)∪(1+2,∞)x \in (-\infty, 1 - \sqrt{2}) \cup (1 + \sqrt{2}, \infty)
≥0\geq 0 x∈(−∞,1−2]∪[1+2,∞)x \in (-\infty, 1 - \sqrt{2}] \cup [1 + \sqrt{2}, \infty)

Exam­ple 4

Solve y=9x2+6x+1y = 9x^2 + 6x + 1 com­pared with 00.

Here Δ=36−36=0\Delta = 36 - 36 = 0, and indeed 9x2+6x+1=(3x+1)29x^2 + 6x + 1 = (3x + 1)^2. The parabola touches the axis where 3x+1=03x + 1 = 0, at x=−13\displaystyle x = -\frac{1}{3}, and is pos­i­tive every­where else.

<0<0: x∈ϕx \in \phi. ≤0\leq 0: x∈{−13}\displaystyle x \in \left\{-\frac{1}{3}\right\}. >0>0: x∈R−{−13}\displaystyle x \in \mathbb{R} - \left\{-\frac{1}{3}\right\}. ≥0\geq 0: x∈Rx \in \mathbb{R}.

Exam­ple 5 (no real roots, open­ing up)

Solve y=x2+2x+5y = x^2 + 2x + 5 com­pared with 00.

Here a=1a = 1, b=2b = 2, c=5c = 5, so a>0a > 0 and Δ=4−20=−16<0\Delta = 4 - 20 = -16 < 0. The parabola lies wholly above the xx-axis: for every real xx, y>0y > 0.

<0<0: x∈ϕx \in \phi. ≤0\leq 0: x∈ϕx \in \phi. >0>0: x∈Rx \in \mathbb{R}. ≥0\geq 0: x∈Rx \in \mathbb{R}.

Exam­ple 6

Solve y=2x2+3x−5y = 2x^2 + 3x - 5 com­pared with 00.

Here a=2a = 2, b=3b = 3, c=−5c = -5, so a>0a > 0 and

Δ=9−4(2)(−5)=9+40=49>0\Delta = 9 - 4(2)(-5) = 9 + 40 = 49 > 0

x=−b±Δ2a=−3±74,so x=−52 or x=1\displaystyle x = \frac{-b \pm \sqrt{\Delta}}{2a} = \frac{-3 \pm 7}{4}, \quad \text{so } x = -\frac{5}{2} \text{ or } x = 1

<0<0: x∈(−52,1)\displaystyle x \in \left(-\frac{5}{2}, 1\right). ≤0\leq 0: x∈[−52,1]\displaystyle x \in \left[-\frac{5}{2}, 1\right]. >0>0: x∈(−∞,−52)∪(1,∞)\displaystyle x \in \left(-\infty, -\frac{5}{2}\right) \cup (1, \infty). ≥0\geq 0: x∈(−∞,−52]∪[1,∞)\displaystyle x \in \left(-\infty, -\frac{5}{2}\right] \cup [1, \infty).

When the parabola opens down­wards

If a<0a < 0 the signs are reversed: the curve is above the axis between its roots and below it out­side.

Exam­ple 7

Solve y=(3−x)(x−2)y = (3 - x)(x - 2) com­pared with 00.

Mul­ti­ply­ing out, the x2x^2 term is −x2-x^2, so a<0a < 0: a down­ward parabola cut­ting the axis at 22 and 33. Signs: −-, then ++, then −-.

<0<0: x∈(−∞,2)∪(3,∞)x \in (-\infty, 2) \cup (3, \infty). ≤0\leq 0: x∈(−∞,2]∪[3,∞)x \in (-\infty, 2] \cup [3, \infty). >0>0: x∈(2,3)x \in (2, 3). ≥0\geq 0: x∈[2,3]x \in [2, 3].

Exam­ple 8

Solve y=−x2+2x−1y = -x^2 + 2x - 1 com­pared with 00.

y=−(x2−2x+1)=−(x−1)2y = -(x^2 - 2x + 1) = -(x - 1)^2. A down­ward parabola that touches the axis at x=1x = 1 and is neg­a­tive every­where else.

<0<0: x∈R−{1}x \in \mathbb{R} - \{1\}. ≤0\leq 0: x∈Rx \in \mathbb{R}. >0>0: x∈ϕx \in \phi. ≥0\geq 0: x∈{1}x \in \{1\}.

Exam­ple 9

Solve y=−2x2+x−7y = -2x^2 + x - 7 com­pared with 00.

Here a=−2<0a = -2 < 0 and Δ=1−4(−2)(−7)=1−56=−55<0\Delta = 1 - 4(-2)(-7) = 1 - 56 = -55 < 0. The down­ward parabola lies wholly below the axis: for every real xx, y<0y < 0.

<0<0: x∈Rx \in \mathbb{R}. ≤0\leq 0: x∈Rx \in \mathbb{R}. >0>0: x∈ϕx \in \phi. ≥0\geq 0: x∈ϕx \in \phi.

Exam­ple 10

Solve y=−x2+5x−6y = -x^2 + 5x - 6 com­pared with 00.

Here a=−1<0a = -1 < 0 and Δ=25−24=1>0\Delta = 25 - 24 = 1 > 0.

x=−b±Δ2a=−5±1−2,so x=2 or x=3\displaystyle x = \frac{-b \pm \sqrt{\Delta}}{2a} = \frac{-5 \pm 1}{-2}, \quad \text{so } x = 2 \text{ or } x = 3

<0<0: x∈(−∞,2)∪(3,∞)x \in (-\infty, 2) \cup (3, \infty). ≤0\leq 0: x∈(−∞,2]∪[3,∞)x \in (-\infty, 2] \cup [3, \infty). >0>0: x∈(2,3)x \in (2, 3). ≥0\geq 0: x∈[2,3]x \in [2, 3].

The short rule

Most of the work above col­lapses into one rule. If α<β\alpha < \beta, then

Inequal­ity Solu­tion
(x−α)(x−β)<0(x - \alpha)(x - \beta) < 0 x∈(α,β)x \in (\alpha, \beta)
(x−α)(x−β)≤0(x - \alpha)(x - \beta) \leq 0 x∈[α,β]x \in [\alpha, \beta]
(x−α)(x−β)>0(x - \alpha)(x - \beta) > 0 x∈(−∞,α)∪(β,∞)x \in (-\infty, \alpha) \cup (\beta, \infty)
(x−α)(x−β)≥0(x - \alpha)(x - \beta) \geq 0 x∈(−∞,α]∪[β,∞)x \in (-\infty, \alpha] \cup [\beta, \infty)

A handy way to remem­ber it: less than zero, xx lies between the roots. Greater than zero, xx lies out­side them.

The rule needs the coef­fi­cient of x2x^2 to be pos­i­tive. If it is neg­a­tive, mul­ti­ply the whole inequa­tion by −1-1 first, and reverse the inequal­ity sign.

Exam­ple 11

Solve (3−x)(x−5)<0(3 - x)(x - 5) < 0.

The fac­tor (3−x)(3 - x) has xx with a neg­a­tive sign. Write 3−x=−(x−3)3 - x = -(x - 3), so the inequa­tion is −(x−3)(x−5)<0-(x - 3)(x - 5) < 0. Mul­ti­ply by −1-1 and reverse the sign:

(x−3)(x−5)>0(x - 3)(x - 5) > 0

Greater than zero, so xx lies out­side the roots: x∈(−∞,3)∪(5,∞)x \in (-\infty, 3) \cup (5, \infty).

Prac­tice

  1. Solve (x−2)(x−7)<0(x - 2)(x - 7) < 0.
  2. Solve (x+4)(x−1)≥0(x + 4)(x - 1) \geq 0.
  3. Solve x2−x−12>0x^2 - x - 12 > 0.
  4. Solve 2x2−7x+3≤02x^2 - 7x + 3 \leq 0.
  5. Solve x2−10x+25>0x^2 - 10x + 25 > 0.
  6. Solve x2−10x+25≤0x^2 - 10x + 25 \leq 0.
  7. Solve x2+x+3<0x^2 + x + 3 < 0.
  8. Solve (5−x)(x+1)>0(5 - x)(x + 1) > 0.
  9. Solve −x2+3x+10≥0-x^2 + 3x + 10 \geq 0.
  10. Solve x2−2x−1<0x^2 - 2x - 1 < 0.
  11. Solve −3x2+2x−4<0-3x^2 + 2x - 4 < 0.

Answers

Show answers
  1. Less than zero, between the roots: x∈(2,7)x \in (2, 7).
  2. x∈(−∞,−4]∪[1,∞)x \in (-\infty, -4] \cup [1, \infty).
  3. x2−x−12=(x−4)(x+3)>0x^2 - x - 12 = (x - 4)(x + 3) > 0, so x∈(−∞,−3)∪(4,∞)x \in (-\infty, -3) \cup (4, \infty).
  4. 2x2−7x+3=(2x−1)(x−3)2x^2 - 7x + 3 = (2x - 1)(x - 3), roots 12\displaystyle \frac{1}{2} and 33. So x∈[12,3]\displaystyle x \in \left[\frac{1}{2}, 3\right].
  5. (x−5)2>0(x - 5)^2 > 0 for every xx except 55: x∈R−{5}x \in \mathbb{R} - \{5\}.
  6. (x−5)2≤0(x - 5)^2 \leq 0 only when it equals 00: x∈{5}x \in \{5\}.
  7. a=1>0a = 1 > 0 and Δ=1−12=−11<0\Delta = 1 - 12 = -11 < 0, so the expres­sion is always pos­i­tive: x∈ϕx \in \phi.
  8. Mul­ti­ply by −1-1 and reverse: (x−5)(x+1)<0(x - 5)(x + 1) < 0, so x∈(−1,5)x \in (-1, 5).
  9. Mul­ti­ply by −1-1 and reverse: x2−3x−10≤0x^2 - 3x - 10 \leq 0, that is (x−5)(x+2)≤0(x - 5)(x + 2) \leq 0, so x∈[−2,5]x \in [-2, 5].
  10. The roots are 2±82=1±2\displaystyle \frac{2 \pm \sqrt{8}}{2} = 1 \pm \sqrt{2}, so x∈(1−2,1+2)x \in (1 - \sqrt{2}, 1 + \sqrt{2}).
  11. a=−3<0a = -3 < 0 and Δ=4−48=−44<0\Delta = 4 - 48 = -44 < 0, so the expres­sion is neg­a­tive for every xx: x∈Rx \in \mathbb{R}.