Quadratic Inequalities Advanced. This lesson goes beyond core Algebra I. You can skip it.

Watch the video explainer

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+c≥0,ax2+bx+c≤0,\begin{aligned} ax^2 + bx + c &> 0, \\ ax^2 + bx + c &< 0, \\ ax^2 + bx + c &\ge 0, \\ ax^2 + bx + c &\le 0, \end{aligned}

with a≠0a\ne0. First move every term to one side so the other side is 00. Now the question is about the sign of the quadratic.

On the graph y=ax2+bx+cy=ax^2+bx+c, positive values lie above the x-axis and negative values below it. We want the x-values that give the requested sign. The answer belongs on a number line, not in a shaded region of the coordinate plane.

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

First solve ax2+bx+c=0ax^2+bx+c=0, by factoring or using the quadratic formula. With two distinct real roots, there are three intervals to check.

For an upward parabola, the signs are positive outside the two roots and negative between them. A downward parabola reverses those signs. A test point is an input chosen inside an interval to check its sign.

Take the parabola from the figure, y=x2−2x−3=(x+1)(x−3)y = x^2 - 2x - 3 = (x + 1)(x - 3), with roots −1-1 and 33. For x<−1x<-1, try x=−2x=-2: (−1)(−5)=5(-1)(-5)=5, which is positive. Between the roots, try x=0x=0: (1)(−3)=−3(1)(-3)=-3, which is negative. For x>3x>3, try x=4x=4: (5)(1)=5(5)(1)=5, which is positive.

The results match the graph: positive on the two outer intervals and negative in the middle. With these signs, keep the intervals whose sign matches the inequality. This record of signs is a sign chart. The next argument explains why the sign stays the same throughout each interval.

Why the sign is constant between two distinct roots, and flips at each one#

In these checks, (x+1)(x−3)(x+1)(x-3) is positive to the left of −1-1: both factors are negative there. Between −1-1 and 33, only x−3x-3 is negative, so the product is negative. To the right of 33, both factors are positive. The factors keep their signs within each interval, which is why the test values −2-2, 00, and 44 represent whole intervals.

Now take any quadratic with two distinct real roots r<sr<s. Its factored form is a(x−r)(x−s)a(x-r)(x-s). To justify this even for irrational roots, use the quadratic formula, with D=b2−4acD=b^2-4ac. Adding and multiplying its two roots gives

r+s=−2b2a=−ba,rs=b2−D4a2=ca.\begin{aligned} r+s&=\frac{-2b}{2a}=-\frac ba,\\ rs&=\frac{b^2-D}{4a^2}=\frac ca. \end{aligned}

Expanding a[x2−(r+s)x+rs]a[x^2-(r+s)x+rs] therefore gives ax2+bx+cax^2+bx+c. Track the factors in the same way. Here ++ means positive and −- means negative; the last column gives the sign of the product (x−r)(x−s)(x-r)(x-s).

xxx−r{x-r}x−s{x-s}Sign
x<rx<r−-−-++
r<x<s{r{<}x{<}s}++−-−-
x>sx>s++++++

Multiplying by a>0a>0 keeps these signs; multiplying by a<0a<0 reverses them. Thus the quadratic has the same sign as aa outside the roots and the opposite sign between them. Crossing either distinct root changes the sign of exactly one factor, so the product changes sign. A repeated root behaves differently because the same factor occurs twice; we examine that case below.

Worked example 1 Solve x2−2x−3>0x^2 - 2x - 3 > 0

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

x2−2x−3=(x+1)(x−3),x=−1 or x=3.\begin{gathered} x^2 - 2x - 3 = (x + 1)(x - 3), \\ x = -1 \text{ or } x = 3. \end{gathered}

The parabola opens upward (a=1>0a = 1 > 0), so it is positive outside the roots and negative between them. We want the quadratic to be greater than 00, that is, the curve to be above the axis, which happens on 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.

Make the symbol inclusive and only the endpoints change: x2−2x−3≥0x^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 x≤−1x \le -1 or x≥3x \ge 3. Flip to x2−2x−3≤0x^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 −1≤x≤3-1 \le x \le 3.

Check your understanding

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

Answer choices

When the leading coefficient is negative

With two distinct real roots and a<0a<0, the quadratic is positive between the roots and negative outside. You can use this reversed pattern directly. Alternatively, multiply the inequality by −1-1 and reverse its symbol, by the rule from linear inequalities. The new quadratic opens upward, so the familiar sign pattern applies.

Worked example 2 Solve −x2+2x+3≥0-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+3≥0⟹x2−2x−3≤0.\begin{gathered} -x^2 + 2x + 3 \ge 0 \\ \Longrightarrow\quad x^2 - 2x - 3 \le 0. \end{gathered}

Now it is an upward parabola again. Factoring gives (x+1)(x−3)≤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 −1≤x≤3-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)(x−3)y = -x^2 + 2x + 3 = -(x + 1)(x - 3) opens downward, the mirror image of the upward case: above the axis between the roots, below it outside them. Asking for y≥0y \ge 0 again selects the middle interval including its endpoints, −1≤x≤3-1 \le x \le 3, the same answer as the first route.

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
Negating the whole quadratic reflects its graph across the x-axis. 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 −x2+3x+10≥0-x^2 + 3x + 10 \ge 0.

Answer choices

Rearrange first, and roots from the quadratic formula

When terms appear on both sides, collect them on one side first. If the resulting quadratic does not factor over the whole numbers, use the quadratic formula. The sign test is the same either way.

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

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

x2+5≤6x⟹x2−6x+5≤0.x^2 + 5 \le 6x \quad\Longrightarrow\quad x^2 - 6x + 5 \le 0.

Now factor to find the roots:

x2−6x+5=(x−1)(x−5),x=1 or x=5.\begin{gathered} x^2 - 6x + 5 = (x - 1)(x - 5), \\ x = 1 \text{ or } x = 5. \end{gathered}

The parabola opens upward, so it is negative between the roots, and the inclusive ≤\le keeps the endpoints. The solution is 1≤x≤51 \le x \le 5. Moving everything to one side first avoids a trap: dividing x2+5≤6xx^2 + 5 \le 6x by xx would require separate cases for x>0x>0, x<0x<0, and x=0x=0.

Worked example 4 Solve x2−4x+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)2−4(1)(1)2=4±122=2±3.\begin{aligned} x &= \frac{4 \pm \sqrt{(-4)^2 - 4(1)(1)}}{2} \\ &= \frac{4 \pm \sqrt{12}}{2} = 2 \pm \sqrt{3}. \end{aligned}

So the roots are 2−3≈0.272 - \sqrt{3} \approx 0.27 and 2+3≈3.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<2−3orx>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 0−0+1=1>00 - 0 + 1 = 1 > 0; at x=2x = 2, which is between them, it is 4−8+1=−3<04 - 8 + 1 = -3 < 0.

No real roots, a repeated root, and a real-world check

The discriminant D=b2−4acD=b^2-4ac tells you how many real roots there are:

For the no-real-root case, try x2+4x+7=(x+2)2+3x^2+4x+7=(x+2)^2+3. A square plus 33 is always positive. Completing the square explains the fixed sign in general:

ax2+bx+c=a[(x+b2a)2−D4a2].ax^2+bx+c=a\left[\left(x+\frac{b}{2a}\right)^2-\frac{D}{4a^2}\right].

When D<0D<0, the term −D/(4a2)-D/(4a^2) is positive. The bracket adds that positive number to a nonnegative square, so the bracket is always positive. Multiplying by aa gives the sign of aa.

Worked example 5 Two inequalities with no second root

A quadratic can have no real roots or just one repeated real root. The discriminant tells you which case you are in.

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

b2−4ac=(2)2−4(1)(5)=4−20=−16<0,\begin{aligned} b^2 - 4ac &= (2)^2 - 4(1)(5) \\ &= 4 - 20 = -16 < 0, \end{aligned}

so there are no real roots. You can also see its positive sign directly: x2+2x+5=(x+1)2+4≥4x^2+2x+5=(x+1)^2+4\ge4. The upward parabola is entirely above the axis. 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 x2−6x+9>0x^2 - 6x + 9 > 0. Here the quadratic is a perfect square,

x2−6x+9=(x−3)2,x^2 - 6x + 9 = (x - 3)^2,

whose only root is x=3x=3. On either side of 33, the square is positive; at 33, it is zero. Although x−3x-3 changes sign there, its square does not. Therefore (x−3)2>0(x-3)^2>0 gives x<3x<3 or x>3x>3.

Changing the symbol changes which values qualify. Since a square is never negative, (x−3)2≥0(x-3)^2\ge0 holds for all real numbers. Requiring (x−3)2≤0(x-3)^2\le0 leaves only x=3x=3, where the square is zero. Requiring (x−3)2<0(x-3)^2<0 gives no solution.

Check your understanding

Which describes the solution of x2+1<0x^2 + 1 < 0?

Answer choices

Worked example 6 When the variable is a real-world quantity

Sometimes the variable stands for a real quantity. Suppose a garden is fenced into a rectangle whose length is 66 meters more than its width ww, and its area must be at least 4040 square meters. That gives w(w+6)≥40w(w + 6) \ge 40, or after moving everything to one side, w2+6w−40≥0w^2 + 6w - 40 \ge 0, which factors as (w+10)(w−4)≥0(w + 10)(w - 4) \ge 0 with roots w=−10w = -10 and w=4w = 4.

The upward parabola is positive outside the roots, so the algebra alone gives w≤−10w \le -10 or w≥4w \ge 4. But ww is a width, and a width cannot be zero or negative. That rules out the whole ray w≤−10w \le -10: it solves the inequality, but it cannot describe a real garden. Only w≥4w \ge 4 meters remains, so the garden must be at least 44 meters wide.

The method is the same as before, with one more check after the algebra: does each piece of the answer make sense for what the variable stands for?

Common mistakes

Practice

Multiple Choice Questions (MCQ)

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

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems 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 uses four inequality signs, and they were not all introduced at the same time.

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.

An early version of the inclusive signs appeared in Pierre Bouguer’s work in 1734, with two bars underneath. Today’s ≤\le and ≥\ge use one bar to include equality, so an endpoint can belong to the answer. The MacTutor history of relation symbols records these earlier forms and the uncertainty about who introduced Harriot’s signs.

Your progress

See all your progress →