✖

Quadratic inequalities

We can write a quadratic inequality in the general form ax2 + bx + c > 0 or ax2 + bx + c < 0, where a, b, c are any real numbers and a ≠ 0. Instead of “greater than” and “less than” we can, of course, use “greater than or equal to” and “less than or equal to”.

Positive coefficient a

An inequality like this is solved in a similar way to an ordinary quadratic equation: first we work out the discriminant and then use the result to decide how to continue. If the discriminant is positive, the related equation has two real roots. A root of the equation is a point on the x-axis where the graph of the function ax2 + bx + c crosses the x-axis. These two points of intersection split the x-axis into three intervals.

Let's try to solve the inequality 2x2 − 7x + 3 < 0. We draw the graph of the function 2x2 − 7x + 3, which looks like this:

Graph of the function 2x^2 - 7x + 3

We can see that the graph crosses the x-axis at two points: x1=12 and x2 = 3. If we solved the ordinary quadratic equation, we would get the same solutions, because the discriminant of this equation is

D=b2−4ac=(−7)2−4⋅2⋅3=49−24=25

We would then work out the roots like this:

x1=−b−D2a=7−54=12x2=−b+D2a=7+54=3

These two roots split the graph of the function 2x2 − 7x + 3 into three intervals.

  • (−∞,12): in this interval the values are positive (the graph is “above” the x-axis, the blue part of the graph)
  • (12,3): in this interval the values are negative (the graph is “below” the x-axis, the red part of the graph)
  • (3, ∞): in this interval the values are positive again, the remaining blue part of the graph.

Notice that we use round brackets in the intervals, which denote an open interval. This means that neither 3 nor 12 belongs to the interval (12,3). That is because at x = 3 the function has the value zero, and we wanted the interval where the values are less than zero.

Now we have all the information we need to find the solution of the inequality 2x2 − 7x + 3 < 0. We ask: when are the values of the function 2x2 − 7x + 3 less than zero? They are less than zero in the interval (12,3), the red part of the graph.

We can also try to solve these inequalities:

  • 2x2 − 7x + 3 ≤ 0: this inequality differs from the previous one in having ≤ instead of just <. The result will be the same as before, except that instead of an open interval we use a closed interval. The solution is therefore the interval [12,3], because at the points 12 and 3 the function 2x2 − 7x + 3 has the value zero, and now we are looking for where it is less than or equal to zero. Don't forget that the inequality contains the sign ≤.

  • 2x2 − 7x +3 > 0: the solution is the “blue parts” of the graph of the function. We have to take the union of the resulting intervals, because the function is positive both in the interval (−∞,12) and in the interval (3, ∞). The resulting set is (−∞,12)∪(3,∞).

  • 2x2 − 7x +3 ≥ 0: again we have only changed > to ≥. The solution is therefore the same set, except that we include the elements 12 and 3, which we do with closed intervals: (−∞,12]∪[3,∞).

Negative coefficient a

What would happen if we changed the previous inequality to −x2 + x + 2 < 0? The main change is in the coefficient a, which is now a = −1. In the last inequality we had 2x2, so the coefficient of x2 was positive, whereas here it is negative. It is best to look at the graph:

Graph of the function -x^2 + x + 2

We can see that the graph has changed mainly in that it is no longer shaped like the letter “U” but like a hill. The method has not changed, though. Again there are three intervals:

  • (−∞, −1): the values are negative.
  • (−1, 2): the values are positive.
  • (2, ∞): the values are negative.

The solution of the inequality −x2 + x + 2 < 0 is therefore the union of the intervals (−∞, −1) ∪ (2, ∞).

But I don't want to keep sketching graphs!

You don't have to! All the previous solutions relied on drawing a graph and reading off from it the points where it meets the x-axis, and then whether the values in each interval are positive or negative. But there is another way.

Suppose we have the quadratic inequality 3x2 − 4x + 1 < 0. We can simply solve the quadratic equation 3x2 − 4x + 1 = 0 in the usual ways. First we work out the discriminant:

D=b2−4ac=(−4)2−4⋅3⋅1=4

Next we work out the roots of the quadratic equation:

x1=−b−D2a=4−26=13x2=−b+D2a=4+26=1

We know that the graph crosses the x-axis at x1=13 and x2 = 1. This gives us three intervals: (−∞,13), (13,1) and (1,∞). The question is how to find out whether the function f(x) = 3x2 − 4x + 1 has positive or negative values in a given interval.

We do this by substituting a number from the interval into the function f(x) = 3x2 − 4x + 1. If the result is positive, the function is positive on the whole interval. The same goes for negative values.

  • We choose any number from the interval (−∞,13), for example zero, which is easy to work with. Substituting zero into f gives f(0) = 3 · 02 − 4 · 0 + 1 = 1. The number 1 is positive, so the values in this interval are positive.

  • We choose a number from the interval (13,1): probably the best choice is a half:

    f(12)=3⋅(12)2−4⋅12+1=3⋅14−2+1=−14

    The number −14 is negative, so all the values in this interval are negative.

  • In the last interval the values will be the same as in the first – positive. The signs always alternate: positive – negative – positive, or negative – positive – negative. But we can just as well work it out. We choose a number from the interval (1,∞), for example 10:

    f(10)=3⋅102−4⋅10+1=300−40+1=261

    That is a positive number, so all the values in this interval are positive.

It remains to finish solving the inequality. It was 3x2 − 4x + 1 < 0. From the information above we know that the function 3x2 − 4x + 1 has negative values in the interval (13,1). To check, we can look at the graph:

Graph of the function 3x^2-4x+1

Zero discriminant

When solving a quadratic equation we may find that the discriminant is zero. This happens when the graph of the function touches the x-axis at one point. We will show it on the inequality 3x2 + 6x + 3 ≥ 0. The discriminant is equal to zero:

D=b2−4ac=62−4⋅3⋅3=36−36=0

The graph would look like this:

Graph of the function 3x^2 + 6x + 3

As you can see, the graph touches the x-axis at a single point x1 = −1 and the rest of the graph is above the x-axis, with positive values. This means that the solution of the inequality 3x2 + 6x + 3 ≥ 0 is the whole set of real numbers, because whatever real number we substitute for x, the value will always be greater than or equal to zero.

Negative discriminant

If the discriminant is negative, the graph never crosses the x-axis. How does this show up in our inequalities? The graph is either entirely above the x-axis or entirely below it. If we changed the previous inequality like this: 3x2 + 6x + 4 > 0 (we changed the sign from ≥ to > and changed the number three to four), the discriminant would be:

D=62−4⋅3⋅4=−12

and the graph would look like this:

Graph of the function 3x^2 + 6x + 4

The whole graph lies above the x-axis, so whatever real number we substitute for x, the value will always be positive. The solution of the inequality is again the set of real numbers.