A qua­dratic inequal­ity, such as x2−5x+6>0x^2 - 5x + 6 > 0, asks where a qua­dratic expres­sion is pos­i­tive or neg­a­tive. The roots of the qua­dratic equa­tion from the last course are the key: they are the only places where the expres­sion can change sign. This les­son gives a sim­ple rule for the sign of a qua­dratic, then applies it to every kind of qua­dratic inequal­ity.

The sign of (x − α)(x − β)

Let α<β\alpha < \beta and look at the prod­uct (x−α)(x−β)(x - \alpha)(x - \beta). Each fac­tor is neg­a­tive to the left of its root and pos­i­tive to the right. Make a table:

Val­ues of xx x−αx - \alpha x−βx - \beta (x−α)(x−β)(x - \alpha)(x - \beta)
x<αx < \alpha neg­a­tive neg­a­tive pos­i­tive
α<x<β\alpha < x < \beta pos­i­tive neg­a­tive neg­a­tive
x>βx > \beta pos­i­tive pos­i­tive pos­i­tive

At x=αx = \alpha and x=βx = \beta the prod­uct is 0. So:

  • (x−α)(x−β)>0(x - \alpha)(x - \beta) > 0 when x<αx < \alpha or x>βx > \beta: out­side the roots;
  • (x−α)(x−β)<0(x - \alpha)(x - \beta) < 0 when α<x<β\alpha < x < \beta: between the roots.

A mem­ory aid: for a qua­dratic with pos­i­tive coef­fi­cient of x2x^2, the sign is the same as that coef­fi­cient (pos­i­tive) out­side the roots, and oppo­site (neg­a­tive) between them.

The method

  1. Bring all terms to one side so that the other side is 0.
  2. Make the coef­fi­cient of x2x^2 pos­i­tive. If it is neg­a­tive, mul­ti­ply by −1-1 and reverse the sign.
  3. Find the roots, by fac­toris­ing or by the for­mula.
  4. Use the rule: ">0> 0" means out­side the roots, "<0< 0" means between them. For "≥\ge" or "≤\le", include the roots.

Exam­ple 1

Solve x2−5x+6>0x^2 - 5x + 6 > 0 and x2−5x+6≤0x^2 - 5x + 6 \le 0.

x2−5x+6=(x−2)(x−3)x^2 - 5x + 6 = (x - 2)(x - 3), with roots 2 and 3.

For ">0> 0", take out­side the roots: x∈(−∞,2)∪(3,∞)x \in (-\infty, 2) \cup (3, \infty).

For "≤0\le 0", take between the roots, ends included: x∈[2,3]x \in [2, 3].

Check with x=0x = 0: 6>06 > 0, so 0 belongs to the first answer, which agrees.

Exam­ple 2

Solve x2−x−12≥0x^2 - x - 12 \ge 0.

x2−x−12=(x−4)(x+3)x^2 - x - 12 = (x - 4)(x + 3), with roots −3-3 and 4. Out­side the roots, ends included: x∈(−∞,−3]∪[4,∞)x \in (-\infty, -3] \cup [4, \infty).

Exam­ple 3

Solve 5+4x−x2>05 + 4x - x^2 > 0.

The coef­fi­cient of x2x^2 is neg­a­tive. Mul­ti­ply by −1-1 and reverse: x2−4x−5<0x^2 - 4x - 5 < 0, that is (x−5)(x+1)<0(x - 5)(x + 1) < 0. Between the roots: x∈(−1,5)x \in (-1, 5).

Exam­ple 4

Solve 2x2−3x−2<02x^2 - 3x - 2 < 0.

2x2−3x−2=(2x+1)(x−2)2x^2 - 3x - 2 = (2x + 1)(x - 2), with roots −12\displaystyle -\frac{1}{2} and 2. Between the roots: x∈(−12,2)\displaystyle x \in \left(-\frac{1}{2}, 2\right).

Exam­ple 5

Solve x2−2x−1>0x^2 - 2x - 1 > 0.

This does not fac­torise with whole num­bers. By the for­mula the roots are 1±21 \pm \sqrt{2}, about −0.414-0.414 and 2.4142.414. Out­side the roots: x∈(−∞,1−2)∪(1+2,∞)x \in (-\infty, 1 - \sqrt{2}) \cup (1 + \sqrt{2}, \infty).

Exam­ple 6

Solve x2>9x^2 > 9 and x2≤16x^2 \le 16.

x2−9>0x^2 - 9 > 0 is (x−3)(x+3)>0(x - 3)(x + 3) > 0: out­side, so x∈(−∞,−3)∪(3,∞)x \in (-\infty, -3) \cup (3, \infty).

x2−16≤0x^2 - 16 \le 0 is (x−4)(x+4)≤0(x - 4)(x + 4) \le 0: between, so x∈[−4,4]x \in [-4, 4].

A com­mon mis­take is to write x2>9x^2 > 9 as "x>3x > 3" only. That loses all the neg­a­tive solu­tions, such as x=−5x = -5.

When there are no real roots

If the dis­crim­i­nant is neg­a­tive and the coef­fi­cient of x2x^2 is pos­i­tive, the expres­sion never reaches 0, so it never changes sign: it is pos­i­tive for every real xx.

Exam­ple 7

Show that x2+x+1>0x^2 + x + 1 > 0 for all real xx, and solve x2+2x+5<0x^2 + 2x + 5 < 0.

Com­plet­ing the square: x2+x+1=(x+12)2+34\displaystyle x^2 + x + 1 = \left(x + \frac{1}{2}\right)^2 + \frac{3}{4}, which is at least 34\displaystyle \frac{3}{4}. So it is always pos­i­tive, and the solu­tion set of x2+x+1>0x^2 + x + 1 > 0 is RR.

For x2+2x+5x^2 + 2x + 5, the dis­crim­i­nant is 4−20=−16<04 - 20 = -16 < 0 and the coef­fi­cient of x2x^2 is pos­i­tive, so the expres­sion is always pos­i­tive. It is never less than 0: the solu­tion set of x2+2x+5<0x^2 + 2x + 5 < 0 is ϕ\phi.

When the roots are equal

If the dis­crim­i­nant is 0, the expres­sion is a per­fect square times a pos­i­tive num­ber, which is pos­i­tive every­where except at the repeated root, where it is 0.

Exam­ple 8

Solve x2−6x+9>0x^2 - 6x + 9 > 0 and x2−6x+9≤0x^2 - 6x + 9 \le 0.

x2−6x+9=(x−3)2x^2 - 6x + 9 = (x - 3)^2. It is pos­i­tive for every xx except x=3x = 3. So the first solu­tion set is R−{3}R - \{3\}, and the sec­ond is {3}\{3\}.

Using the dis­crim­i­nant for con­di­tions

Exam­ple 9

For which val­ues of kk is x2+kx+9>0x^2 + kx + 9 > 0 for every real xx?

The expres­sion is pos­i­tive for all xx exactly when it has no real roots (the coef­fi­cient of x2x^2 is already pos­i­tive). So we need D=k2−36<0D = k^2 - 36 < 0, that is (k−6)(k+6)<0(k - 6)(k + 6) < 0. Between the roots: −6<k<6-6 < k < 6.

Prac­tice

  1. Solve x2−7x+10<0x^2 - 7x + 10 < 0.
  2. Solve x2+3x−10≥0x^2 + 3x - 10 \ge 0.
  3. Solve x2−4>0x^2 - 4 > 0.
  4. Solve 12+x−x2≥012 + x - x^2 \ge 0.
  5. Solve 3x2−5x−2>03x^2 - 5x - 2 > 0.
  6. Solve x2−4x+1≤0x^2 - 4x + 1 \le 0.
  7. Solve x2+4x+7>0x^2 + 4x + 7 > 0.
  8. Solve 4x2−4x+1≤04x^2 - 4x + 1 \le 0.
  9. Solve x2<2xx^2 < 2x.
  10. For which val­ues of kk is x2−2kx+4>0x^2 - 2kx + 4 > 0 for all real xx?

Answers

Show answers
  1. (x−2)(x−5)<0(x - 2)(x - 5) < 0: (2,5)(2, 5)
  2. (x+5)(x−2)≥0(x + 5)(x - 2) \ge 0: (−∞,−5]∪[2,∞)(-\infty, -5] \cup [2, \infty)
  3. (−∞,−2)∪(2,∞)(-\infty, -2) \cup (2, \infty)
  4. x2−x−12≤0x^2 - x - 12 \le 0, (x−4)(x+3)≤0(x - 4)(x + 3) \le 0: [−3,4][-3, 4]
  5. (3x+1)(x−2)>0(3x + 1)(x - 2) > 0: (−∞,−13)∪(2,∞)\displaystyle \left(-\infty, -\frac{1}{3}\right) \cup (2, \infty)
  6. Roots 2±32 \pm \sqrt{3}: [2−3,2+3][2 - \sqrt{3}, 2 + \sqrt{3}]
  7. D=16−28<0D = 16 - 28 < 0, so the expres­sion is always pos­i­tive: RR.
  8. (2x−1)2≤0(2x - 1)^2 \le 0 only when x=12\displaystyle x = \frac{1}{2}: {12}\displaystyle \left\{\frac{1}{2}\right\}.
  9. x2−2x<0x^2 - 2x < 0, x(x−2)<0x(x - 2) < 0: (0,2)(0, 2)
  10. D=4k2−16<0D = 4k^2 - 16 < 0 gives k2<4k^2 < 4: −2<k<2-2 < k < 2.