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

Quadratic Inequalities

Learning goals

  • Move every term to one side to compare with zero
  • Find the roots, which cut the line into sign intervals
  • Read a positive quadratic outside the roots when a>0a > 0
  • Test a point in each interval to confirm the sign
  • Open or close the endpoints to match a strict or inclusive symbol
  • Handle a negative discriminant as all reals or no solution

What a quadratic inequality asks

A quadratic inequality in one variable is any of

ax2+bx+c>0,ax2+bx+c<0,ax2+bx+c0,ax2+bx+c0,\begin{aligned} ax^2 + bx + c &> 0, &\qquad ax^2 + bx + c &< 0, \\ ax^2 + bx + c &\ge 0, &\qquad ax^2 + bx + c &\le 0, \end{aligned}

with a0a \ne 0. If the inequality does not already have 00 on one side, your first move is to make it so. You do that by shifting every term to the same side, exactly as you would tidy an equation before solving. Once one side is 00, the whole problem becomes a question about the sign of the quadratic.

To see that, name the quadratic y=ax2+bx+cy = ax^2 + bx + c, the very parabola from the previous lessons. Then ax2+bx+c>0ax^2 + bx + c > 0 is asking “for which xx is y>0y > 0,” which means “where is the parabola above the x-axis.” In the same way ax2+bx+c<0ax^2 + bx + c < 0 asks where the parabola is below the axis. We are solving for the single variable xx, so every answer is a set of numbers on the number line, not a region of the plane. How high or low the curve reaches is a separate question, one left for the next lesson.

The sign of y = x squared minus 2x minus 3 across its rootsAn upward parabola crossing the x-axis at negative 1 and 3, above the axis outside the roots and below it between them.xy-13y > 0y > 0y < 0
The parabola y = x squared minus 2x minus 3 factors as (x + 1)(x minus 3), so it crosses the x-axis at the roots x = -1 and x = 3. Because it opens upward, the curve lies above the axis (where y is positive) outside the roots and dips below the axis (where y is negative) between them. The dashed lines mark the roots, where the sign switches.

Find the roots, then read the sign

Since the whole game is the sign of the quadratic, start where the sign can change. A quadratic changes sign only by passing through 00, which happens exactly at its roots. So solve the equation ax2+bx+c=0ax^2 + bx + c = 0 first, by factoring when it splits nicely or by the quadratic formula when it does not. The real roots are the x-intercepts of the parabola, and they cut the number line into intervals. Inside any one interval the quadratic never reaches 00, so it cannot flip sign there; it holds one sign all the way across.

There are two ways to decide which sign, and they always agree.

The first way reads the sign off the shape of the parabola. If a>0a > 0 the parabola opens upward, so it climbs above the axis on both arms and dips below only in the middle. With two real roots on the line, such a parabola is positive outside the roots and negative between them. If a<0a < 0 it opens downward and the picture is upside down, so the signs reverse.

The second way is a test point. Pick any convenient number inside an interval, substitute it into the quadratic, and note the sign of the result. That one value settles the sign for the entire interval, because the sign is constant there. Here is why both methods must give the same answer.

Why the sign is constant on each interval and flips at each root#

Suppose the quadratic ax2+bx+cax^2 + bx + c has two different real roots, and call them rr and ss with r<sr < s. Finding those roots is the factoring you already know, so the quadratic can be rewritten as a(xr)(xs)a(x - r)(x - s). Its value at any xx is therefore a product of three things: the constant aa, the factor xrx - r, and the factor xsx - s. The sign of a product depends only on the signs of its parts, so track those.

Take a number to the right of both roots, x>sx > s. Then xrx - r and xsx - s are both positive, their product is positive, and the quadratic has the same sign as aa. Now slide left, between the roots, so r<x<sr < x < s. The factor xsx - s has turned negative while xrx - r is still positive, so their product is now negative, and the quadratic has the opposite sign from aa. Slide left once more, past both roots, so x<rx < r. Both factors are negative, their product is positive again, and the quadratic matches the sign of aa once more.

So crossing a single root flips exactly one factor, which flips the sign of the whole product, and nothing changes sign in between. That is why the sign stays constant on each interval and reverses at each root. That is also why an upward parabola (a>0a > 0) is positive outside the roots and negative between them. It is the same story the picture tells: the curve can only move from one side of the x-axis to the other by passing through it. The curve passes through only at the roots.

Take the parabola from the figure, y=x22x3=(x+1)(x3)y = x^2 - 2x - 3 = (x + 1)(x - 3), with roots 1-1 and 33. The table below runs the test-point method on all three intervals and matches it against the shape.

IntervalTest value(x+1)(x3)(x+1)(x-3)Sign of yy
x<1x < -1x=2x = -2(1)(5)=5(-1)(-5) = 5positive
1<x<3-1 < x < 3x=0x = 0(1)(3)=3(1)(-3) = -3negative
x>3x > 3x=4x = 4(5)(1)=5(5)(1) = 5positive

Positive on the two outer intervals and negative in the middle, exactly as an upward parabola should be. With the sign chart in hand, answering any inequality on this quadratic is just a matter of keeping the intervals whose sign matches.

Worked example 1 Solve x22x3>0x^2 - 2x - 3 > 0

One side is already 00, so factor to find the roots:

x22x3=(x+1)(x3),x=1 or x=3.x^2 - 2x - 3 = (x + 1)(x - 3), \qquad x = -1 \text{ or } x = 3.

The parabola opens upward (a=1>0a = 1 > 0), so it is positive outside the roots and negative between them. The inequality wants where the quadratic is greater than 00, that is, where the curve is above the axis, which is the two outer intervals. Because the symbol is strict, the roots themselves (where the value is exactly 00) are excluded:

x<1orx>3.x < -1 \quad \text{or} \quad x > 3.

On a number line this is two open circles at 1-1 and 33 with the shading running outward. Written with the interval notation from the linear-inequality chapter, it is (,1)(3,)(-\infty, -1) \cup (3, \infty), where the cup \cup joins the two separate rays.

Number-line solution of x squared minus 2x minus 3 greater than 0A number line with open circles at negative 1 and 3 and shaded rays running outward, representing x less than negative 1 or x greater than 3.-4-3-2-101234
The solution of x squared minus 2x minus 3 greater than zero is x below -1 or x above 3. Open circles at the roots -1 and 3 show they are excluded because the inequality is strict, and the two shaded rays run outward, away from the gap between the roots.

Change the symbol and only the endpoints change. The inclusive inequality x22x30x^2 - 2x - 3 \ge 0 keeps the same two outer intervals but now includes the roots, where the value is 00. Its circles therefore fill in, and the answer is x1x \le -1 or x3x \ge 3. Flip to x22x30x^2 - 2x - 3 \le 0 and you want where the curve is on or below the axis, the single middle interval with its endpoints, giving 1x3-1 \le x \le 3.

Check your understanding

Solve the inequality (x2)(x5)<0(x - 2)(x - 5) < 0.

Answer choices

When the leading coefficient is negative

If a<0a < 0 the parabola opens downward, so the sign pattern flips: the curve is now below the axis outside the roots and above it between them. You can read that straight off the shape, or you can sidestep it entirely by multiplying both sides of the inequality by 1-1. Multiplying by 1-1 turns that negative leading coefficient positive and, by the rule from linear inequalities, reverses the symbol. Either route works, and they land on the same solution.

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

The leading coefficient is negative, and there are two clean ways to handle that.

The first is to clear the negative. Multiply both sides by 1-1, which flips the inequality symbol:

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

Now it is an upward parabola again. Factoring gives (x+1)(x3)0(x + 1)(x - 3) \le 0 with roots 1-1 and 33, and an upward parabola is negative between its roots. Including the endpoints, where the value is 00, the solution is 1x3-1 \le x \le 3.

The second way reads the sign straight off the downward parabola. With a=1<0a = -1 < 0 the graph of y=x2+2x+3=(x+1)(x3)y = -x^2 + 2x + 3 = -(x + 1)(x - 3) opens downward, so it is above the axis between the roots and below it outside them. That is the mirror image of the upward case. Asking for y0y \ge 0 selects where the curve is on or above the axis, which is between the roots including the endpoints:

1x3.-1 \le x \le 3.

Both routes agree.

The sign of y = negative x squared plus 2x plus 3 across its rootsA downward parabola crossing the x-axis at negative 1 and 3, below the axis outside the roots and above it between them.xy-13y < 0y < 0y > 0
Flipping the sign of the leading coefficient reflects the picture. The downward parabola y = negative x squared plus 2x plus 3 equals negative (x + 1)(x minus 3) has the same roots -1 and 3, but now it rises above the axis (y positive) between the roots and falls below (y negative) outside them, the exact reverse of the upward case.

Check your understanding

Solve x290x^2 - 9 \ge 0.

Answer choices

Rearrange first, and roots from the quadratic formula

Two practical wrinkles come up constantly. First, many inequalities arrive with terms on both sides, so you must gather everything onto one side before you can factor. Second, plenty of quadratics do not factor over the whole numbers, and there the quadratic formula supplies the roots. Neither changes the method; they only change how you reach the roots.

Worked example 3 Solve x2+56xx^2 + 5 \le 6x

One side is not yet 00, so move everything to the left first. Subtract 6x6x from both sides:

x2+56xx26x+50.x^2 + 5 \le 6x \quad\Longrightarrow\quad x^2 - 6x + 5 \le 0.

Now factor to find the roots:

x26x+5=(x1)(x5),x=1 or x=5.x^2 - 6x + 5 = (x - 1)(x - 5), \qquad x = 1 \text{ or } x = 5.

The parabola opens upward, so it is negative between the roots, and the inclusive \le keeps the endpoints. The solution is 1x51 \le x \le 5. Notice the trap this avoids: you cannot solve x2+56xx^2 + 5 \le 6x by dividing by xx, which would risk losing solutions and hide the sign. Moving everything to one side is what makes the sign analysis possible.

Worked example 4 Solve x24x+1>0x^2 - 4x + 1 > 0

This one does not factor with whole numbers, so find the roots with the quadratic formula, using a=1a = 1, b=4b = -4, and c=1c = 1:

x=4±(4)24(1)(1)2=4±122=2±3.x = \frac{4 \pm \sqrt{(-4)^2 - 4(1)(1)}}{2} = \frac{4 \pm \sqrt{12}}{2} = 2 \pm \sqrt{3}.

So the roots are 230.272 - \sqrt{3} \approx 0.27 and 2+33.732 + \sqrt{3} \approx 3.73. The parabola opens upward, so it is positive outside the roots, and the strict symbol excludes the roots themselves:

x<23orx>2+3.x < 2 - \sqrt{3} \quad \text{or} \quad x > 2 + \sqrt{3}.

A quick test confirms the choice of intervals. At x=0x = 0, which is outside the roots, the quadratic is 00+1=1>00 - 0 + 1 = 1 > 0; at x=2x = 2, which is between them, it is 48+1=3<04 - 8 + 1 = -3 < 0. The positive values are indeed on the outside.

When the discriminant changes the story

The method so far assumed two separate roots. When the discriminant b24acb^2 - 4ac is zero or negative, the parabola touches the axis once or misses it completely. In either of those cases the answer collapses to one of a few special shapes. Because the curve then keeps a single sign almost everywhere, the solution is usually either all real numbers or no solution. The direction of the inequality and the sign of aa together decide which of those two you get.

Worked example 5 Two inequalities with no second root

Not every quadratic has two roots, and the discriminant tells you which case you are in.

First take x2+2x+5>0x^2 + 2x + 5 > 0. Its discriminant is

b24ac=(2)24(1)(5)=420=16<0,b^2 - 4ac = (2)^2 - 4(1)(5) = 4 - 20 = -16 < 0,

so there are no real roots. The parabola opens upward and never reaches the axis, so it floats entirely above it and is positive for every xx. The inequality >0> 0 is therefore true for all real numbers. Had the problem asked for x2+2x+5<0x^2 + 2x + 5 < 0, the answer would be the opposite extreme, no solution, since the curve is never below the axis.

Now take the repeated-root case x26x+9>0x^2 - 6x + 9 > 0. Here the quadratic is a perfect square,

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

whose only root is x=3x = 3, where the upward parabola just touches the axis. Everywhere else the square is positive, so (x3)2>0(x - 3)^2 > 0 holds for every xx except x=3x = 3, giving x<3x < 3 or x>3x > 3. Watch how the symbol changes this last case: (x3)20(x - 3)^2 \ge 0 is true for all real numbers (a square is never negative). By contrast, (x3)20(x - 3)^2 \le 0 holds only at the single point x=3x = 3, and (x3)2<0(x - 3)^2 < 0 has no solution at all.

Check your understanding

Which describes the solution of x2+1<0x^2 + 1 < 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)

This lesson leans on four small signs, and they did not arrive together.

The strict pair, << and >>, reached print in 1631, inside an algebra book of Thomas Harriot’s. The English mathematician had been dead for ten years by then. Other hands assembled that book from his surviving papers, so nobody can be certain who first drew the two marks. They are the same signs you met back in the linear-inequality chapter.

The versions carrying a small bar underneath are roughly a century younger. Those are credited to Pierre Bouguer, a French scientist, around 1734. His bar admits the endpoint itself into the answer.

A hundred years of drift, and today all four hang on a single curve. Watch them work on one square from this lesson, (x3)2(x - 3)^2. Its parabola dips to touch the axis at a solitary point, and stays positive everywhere else.

Ask where that square is greater than or equal to zero, and the answer is every real number. Ask where it is strictly greater, and the answer is every real number except 33. Ask where it is less than or equal to zero, and one lonely point survives. Ask where it is strictly less, and nothing survives at all.

The parabola never moved through any of that. Only the sign changed, and each change rebuilt the answer.