This site is a work in progress. New lessons are added regularly. Contact us

Quadratic Inequalities

Learning goals

  • Argue that a quadratic changes sign only at a root
  • Split the line at the roots and read each sign
  • Record the answer in interval notation, joining with a union
  • Open or close endpoints for strict or non-strict symbols
  • Let Δ\Delta decide the shape of the answer

A quadratic changes sign only at a root

Everything in this lesson follows from a single proposition, so it is worth stating it plainly and proving it before using it. A quadratic with two real roots factors, by the last few lessons, as f(x)=a(xr1)(xr2)f(x) = a(x - r_1)(x - r_2). The claim concerns the sign of such a product across the number line. The product is positive on some stretches and negative on others, but it can only switch between the two at r1r_1 or r2r_2.

Why a quadratic changes sign only at a root#

Write the quadratic in factored form, f(x)=a(xr1)(xr2)f(x) = a(x - r_1)(x - r_2) with a0a \ne 0. Its sign at any input is the product of exactly three signs: the sign of the constant aa, together with the sign of each linear factor. So control the factors and you control the sign of ff.

Look at one factor, xr1x - r_1. It equals zero exactly at x=r1x = r_1. For every x>r1x > r_1 it is positive, and for every x<r1x < r_1 it is negative. So a single linear factor is positive on one side of its own root, negative on the other, and changes sign nowhere else. The same is true of xr2x - r_2 at r2r_2.

Now take any interval of the number line that contains neither root. Across that whole interval xr1x - r_1 holds one fixed sign and xr2x - r_2 holds one fixed sign, because neither factor reaches its root there. A product of numbers with fixed signs has a fixed sign, since (+)(+)(+)(+) and ()()(-)(-) are positive while (+)()(+)(-) is negative. Multiplying by the constant aa afterwards only reverses or preserves that sign, uniformly across the entire interval. Therefore ff has one constant sign on the whole interval.

The only way ff can pass from positive to negative is for one of its factors to change sign, and a factor changes sign only as xx crosses its root. Between two consecutive roots no factor changes, so ff never changes there. The roots are the only places the sign can turn over, which is the claim.

The consequence is the entire method. Two roots cut the number line into three pieces, the stretch left of both, the stretch between them, and the stretch right of both. On each piece the sign of the quadratic is one fixed thing. So solving a quadratic inequality is never about checking infinitely many points. It is about finding the roots, which split the line, and then labelling each piece positive or negative.

Reading the sign: test a point, or read the parabola

Once you know the sign is constant on each piece, you need the sign on each one, and there are two ways to get it.

The first is a test point. Pick any convenient number inside a piece, substitute it, and record whether the result comes out positive or negative. That one value settles the entire piece, because the sign cannot change again until the next root. Testing x=0x = 0 in (x3)(x+2)(x - 3)(x + 2) gives (3)(2)=6<0(-3)(2) = -6 < 0, so the quadratic is negative across the whole middle piece.

The second way is faster and harder to get wrong: read the parabola. You already know that the sign of aa fixes which way a parabola opens. When a>0a > 0 it opens upward, so it dips below the xx-axis between its two roots and rises above the axis outside them. So with no substituting at all, an upward parabola is negative exactly on the open interval between the roots and positive outside them. When a<0a < 0 it opens downward and the picture flips top to bottom, positive between the roots and negative outside. The graph route is quicker because it computes nothing: you just recall the shape and the two roots. The graph route is also safer, because there is no arithmetic with signed numbers to slip on. Keep the test point as the backup for when you are unsure.

This is the same fact the discriminant already told you. For a>0a > 0 with two real roots, the vertex sits at height Δ4a-\dfrac{\Delta}{4a}, which is negative, so the bottom of the parabola lies below the axis. That is precisely why an upward parabola with two roots is negative between them.

Whichever route you use, write the answer as a solution set, not as a loose phrase. The systems chapter made the point that the solution of an inequality is a set, an object you can name, draw, and combine. That solution is not merely a lone number to solve for. Here that set is a piece of the number line, written in interval notation, and when it arrives in two pieces you join them with a union \cup. Shading it on a number line is just the one-dimensional version of shading a region in the plane.

Worked example 1 Solve x2x60x^2 - x - 6 \ge 0

The quadratic is already compared to zero, so factor it. Two numbers with product 6-6 and sum 1-1 are 3-3 and 22, giving

x2x6=(x3)(x+2),x^2 - x - 6 = (x - 3)(x + 2),

with roots x=3x = 3 and x=2x = -2. These cut the line into three pieces.

The leading coefficient is a=1>0a = 1 > 0, so the parabola opens upward: negative between the roots, positive outside them. We want where it is greater than or equal to zero, which is the two outside pieces together with the roots themselves. Those roots are included, since the inequality is non-strict and they make the quadratic exactly zero:

x2orx3,that is(,2][3,).x \le -2 \quad \text{or} \quad x \ge 3, \qquad \text{that is} \qquad (-\infty, -2] \cup [3, \infty).

The union is not decoration. The solution is two separate rays, not a single interval, and writing it as one interval would be wrong.

Solution set of x squared minus x minus 6 at least zeroThe upward parabola through the roots negative 2 and 3, with the two outside rays of the x-axis shaded and both roots filled in.-23y = x² - x - 6solutionsolution
The parabola y = x squared minus x minus 6 opens upward and crosses the axis at the roots negative 2 and 3. It is at or above the axis outside the roots, so the solution of the inequality is the two shaded rays on the x-axis, with the roots filled in because the symbol allows equality.

Check your understanding

Solve (x+1)(x4)<0(x + 1)(x - 4) < 0.

Answer choices

Strict versus non-strict endpoints

The steps above decide which pieces of the line make up the answer. The inequality symbol decides only one more thing, what happens at the endpoints, which are the roots. This is trivial to state and constantly gotten wrong, so pin it down.

The roots are exactly the inputs where the quadratic equals zero. A strict symbol, >> or <<, asks for values that are honestly positive or honestly negative, so it excludes the roots. That means open circles on the number line, and parentheses in interval notation. A non-strict symbol, \ge or \le, also accepts zero, so it includes the roots: closed circles, square brackets. The interior of the solution is identical either way. Only the endpoints change. So x2x6>0x^2 - x - 6 > 0 has solution (,2)(3,)(-\infty, -2) \cup (3, \infty), the same two rays as the worked example but with the roots now removed.

When the leading coefficient is negative

A negative aa flips the parabola upside down, and with it every sign in the argument. There are two safe ways to handle it, and one tempting way that goes wrong.

The safe habit is to make aa positive first. Multiply both sides of the inequality by 1-1, and remember the rule from the linear inequalities lesson: multiplying an inequality by a negative number reverses its direction. Now you are back to an upward parabola and the reading you already trust. The other safe route is to read the downward parabola directly. With a<0a < 0 the parabola opens down, so it is positive between its roots and negative outside them, the mirror image of the upward case.

The tempting error is to multiply or divide by the negative and leave the symbol pointing the same way. That silently swaps the solution set for its opposite. If you ever rewrite an inequality by a negative factor, the symbol must turn around.

Worked example 2 Solve x2+2x+30-x^2 + 2x + 3 \ge 0

Here a=1a = -1, so use both routes and watch them agree.

Making aa positive, multiply through by 1-1 and reverse the symbol:

x2+2x+30x22x30.-x^2 + 2x + 3 \ge 0 \quad\Longleftrightarrow\quad x^2 - 2x - 3 \le 0.

Factor the upward quadratic: x22x3=(x3)(x+1)x^2 - 2x - 3 = (x - 3)(x + 1), with roots 33 and 1-1. An upward parabola is at or below zero on the closed interval between its roots, so

1x3,that is[1,3].-1 \le x \le 3, \qquad \text{that is} \qquad [-1, 3].

Reading the downward parabola directly gives the same thing. The roots of x2+2x+3-x^2 + 2x + 3 are again 1-1 and 33, and because a<0a < 0 the parabola opens downward and is positive between its roots. Including the roots for the non-strict symbol, the solution set is once more [1,3][-1, 3]. The two routes must agree, because they describe the same object.

Solution set of negative x squared plus 2x plus 3 at least zeroThe downward parabola through the roots negative 1 and 3, with the single segment of the x-axis between the roots shaded and both endpoints filled.-13solutiony = -x² + 2x + 3
With a negative leading coefficient the parabola y = negative x squared plus 2x plus 3 opens downward and sits at or above the axis between its roots negative 1 and 3. The solution set is the single shaded segment between the roots, endpoints filled because the symbol allows equality.

Check your understanding

Solve x2x+6>0-x^2 - x + 6 > 0.

Answer choices

What the discriminant decides

The factored form a(xr1)(xr2)a(x - r_1)(x - r_2) assumed two real roots. Whether a quadratic has them is settled by the discriminant Δ=b24ac\Delta = b^2 - 4ac from the quadratic formula. Δ>0\Delta > 0 gives two real roots, Δ=0\Delta = 0 gives one repeated root, and Δ<0\Delta < 0 gives no real roots at all. Each case answers a quadratic inequality differently, and the two extreme cases are where both students and authors slip. Take a>0a > 0 throughout, since you can always arrange that first.

The three discriminant cases for an upward parabolaLeft, a parabola with two roots; middle, a parabola touching the axis at one repeated root; right, a parabola with no roots floating above the axis.++Δ > 0++Δ = 0+always positiveΔ < 0
Three upward parabolas, one for each sign of the discriminant. On the left, two real roots and a dip below the axis (negative between the roots, positive outside). In the middle, a repeated root where the curve only touches the axis (positive everywhere else). On the right, no real roots and the whole curve floating above the axis (positive for every input).

When Δ<0\Delta < 0 there are no real roots, so the parabola never touches the axis. By the structural fact it can change sign nowhere, and since an upward parabola climbs to infinity it must be positive everywhere. There is a cleaner way to see it than “it has to be,” using the completed square.

Why a quadratic with no real roots keeps one sign#

Completing the square, the lesson before last, writes any quadratic in vertex form f(x)=a(xh)2+kf(x) = a(x - h)^2 + k, where the vertex height is k=Δ4ak = -\dfrac{\Delta}{4a}. Suppose a>0a > 0 and Δ<0\Delta < 0. Then k=Δ4ak = -\dfrac{\Delta}{4a} is a negative divided by a positive with an overall minus sign, so k>0k > 0.

Now read off the sign. The square (xh)2(x - h)^2 is never negative, and a>0a > 0, so a(xh)20a(x - h)^2 \ge 0 for every xx. Adding the positive number kk,

f(x)=a(xh)2+kk>0for every x.f(x) = a(x - h)^2 + k \ge k > 0 \quad\text{for every } x.

So ff is strictly positive everywhere. There is no arithmetic with roots and no sign chart, only the fact that a real square cannot be negative. It follows at once that f(x)>0f(x) > 0 has solution set all of R\mathbb{R}, while f(x)<0f(x) < 0 has solution set \varnothing, the empty set, because ff is never negative. With a<0a < 0 the same argument gives k<0k < 0 and f(x)<0f(x) < 0 everywhere, so the two answers swap.

Worked example 3 Solve x2+x+1>0x^2 + x + 1 > 0, then x2+x+1<0x^2 + x + 1 < 0

Check the discriminant first: Δ=124(1)(1)=14=3<0\Delta = 1^2 - 4(1)(1) = 1 - 4 = -3 < 0, so there are no real roots and no factoring over the real numbers. Complete the square instead:

x2+x+1=(x+12)2+34.x^2 + x + 1 = \left(x + \tfrac{1}{2}\right)^2 + \tfrac{3}{4}.

The square is never negative, so the whole expression is at least 34\tfrac{3}{4}, which is positive, for every real xx. Therefore x2+x+1>0x^2 + x + 1 > 0 is true for all inputs, and its solution set is all of R\mathbb{R}. The opposite inequality x2+x+1<0x^2 + x + 1 < 0 is never true, so its solution set is the empty set \varnothing. A negative discriminant is not a dead end. It is the case where the quadratic keeps one sign forever, and reading that sign answers the inequality immediately.

When Δ=0\Delta = 0 the quadratic has one repeated root rr, and factoring gives a perfect square, f(x)=a(xr)2f(x) = a(x - r)^2. With a>0a > 0 this is zero at rr and strictly positive everywhere else, since a nonzero square is positive. Notice this quadratic never actually changes sign: it only touches zero at rr and stays positive on both sides. The single quadratic then answers four inequalities four different ways, which makes it the sharpest test of whether you have the endpoints right.

Worked example 4 One repeated root, four answers

The quadratic x26x+9x^2 - 6x + 9 has Δ=(6)24(1)(9)=3636=0\Delta = (-6)^2 - 4(1)(9) = 36 - 36 = 0, a repeated root. It is the perfect square

x26x+9=(x3)2,x^2 - 6x + 9 = (x - 3)^2,

which equals zero only at x=3x = 3 and is positive for every other xx. Run all four symbols against it:

(x3)2>0    (,3)(3,),(x3)20    R,(x - 3)^2 > 0 \;\Rightarrow\; (-\infty, 3) \cup (3, \infty), \qquad (x - 3)^2 \ge 0 \;\Rightarrow\; \mathbb{R},(x3)2<0    ,(x3)20    {3}.(x - 3)^2 < 0 \;\Rightarrow\; \varnothing, \qquad (x - 3)^2 \le 0 \;\Rightarrow\; \{3\}.

Read them one at a time. The square is positive everywhere except at 33, so >0> 0 is the whole line with the single point 33 punctured out, a union of two open rays. Allowing equality, 0\ge 0 picks up that point too and becomes all of R\mathbb{R}. Nothing makes a square negative, so <0< 0 is empty. And 0\le 0 holds only where the square is exactly zero, the single point {3}\{3\}. Four genuinely different solution sets from one quadratic, separated entirely by the symbol and the one repeated root.

Check your understanding

Solve (x2)2>0(x - 2)^2 > 0.

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Free Response Questions (FRQ)

Longer questions in parts, to be worked out on paper. Progressive hints, the answer on its own so you can check yourself and try again, then the full worked solution, plus a rubric to mark your own work against.

Free response Work it out on paper 5 questions Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (Optional)

The quantity b24acb^2 - 4ac is a great deal older than its name.

Mathematicians worked with it for centuries without a word of their own for it. They knew what it decided, but every mention had to be spelled back out of the coefficients, or dressed in a borrowed name belonging to some other job. That is a real cost. A quantity nobody can say in one breath is hard to reason with, and harder still to teach.

In 1851 James Joseph Sylvester, an English mathematician with an appetite for inventing words, gave it the one we still use. He called it the discriminant, from a Latin verb meaning to separate, to tell one thing apart from another. Sylvester minted a great many terms in his career, and most of them were quietly dropped. This one survived because it says what the number is for.

Nowhere does it earn the name better than in this lesson. Set against an equation, the discriminant sorts three futures: two roots, one root, or none at all. Set against an inequality it sorts twice as many, because the answer is a set rather than a list. The answer can be a single interval, or two rays joined by a union. It can be the whole line, or the line with one point cut out of it. It can be one lonely point, or nothing whatever, and a single subtraction tells you which of those shapes you are about to write down.