In short

A quadratic inequality asks where a quadratic expression is positive, negative, or zero — not just where it equals zero, but where it lives on one side of zero. The answer is always one or two intervals on the number line. You find it by locating the roots, then reading the sign of the parabola between and beyond them.

You know how to solve x^2 - 5x + 6 = 0. The roots are x = 2 and x = 3. But suppose the question is not "where does x^2 - 5x + 6 equal zero?" but instead:

x^2 - 5x + 6 > 0

Where is this expression positive?

Try a few values. At x = 0: 0 - 0 + 6 = 6 > 0. At x = 2.5: 6.25 - 12.5 + 6 = -0.25 < 0. At x = 5: 25 - 25 + 6 = 6 > 0.

A pattern is forming. The expression is positive at x = 0, negative at x = 2.5, and positive again at x = 5. The sign changes exactly at the roots, x = 2 and x = 3.

Sign of x squared minus 5x plus 6 on the number lineThe parabola y equals x squared minus 5x plus 6 opens upward with roots at x equals 2 and x equals 3. Above the x-axis (positive region) is shaded on the left of x equals 2 and on the right of x equals 3. The region between the roots where the parabola dips below the axis is negative. x y 1 2 3 4 5 positive negative positive
The parabola $y = x^2 - 5x + 6$ is above the $x$-axis (positive) when $x < 2$ or $x > 3$, and below the axis (negative) when $2 < x < 3$. The roots $x = 2$ and $x = 3$ are the boundaries where the sign changes. The solution to $x^2 - 5x + 6 > 0$ is the shaded region: $x \in (-\infty, 2) \cup (3, \infty)$.

The answer to x^2 - 5x + 6 > 0 is not a number — it is a set of intervals: x \in (-\infty, 2) \cup (3, \infty). Every x in that set makes the expression positive; every x outside it makes it zero or negative.

This is a quadratic inequality, and solving one always follows the same three steps: find the roots, determine the sign in each region, and read off the answer. The parabola does the heavy lifting.

The sign-analysis method

Here is the general procedure for solving ax^2 + bx + c > 0 (or < 0, \geq 0, \leq 0).

Step 1. Find the roots. Solve ax^2 + bx + c = 0 to get the roots r_1 and r_2 (with r_1 \leq r_2). Use factoring, the quadratic formula, or completing the square — whatever works.

Step 2. Determine the sign pattern. The roots divide the number line into at most three intervals: (-\infty, r_1), (r_1, r_2), and (r_2, \infty). The sign of f(x) = ax^2 + bx + c is constant on each interval (it can only change at the roots). To find the sign in each interval, you can either:

Step 3. Read off the solution. Select the intervals where f(x) has the sign you want. If the inequality is strict (> or <), exclude the roots. If it is non-strict (\geq or \leq), include them.

That is the entire method. Every quadratic inequality reduces to it.

Why the rule works: the factored form

The rule about the sign of f(x) outside and between the roots is not arbitrary. It comes directly from the factored form.

If f(x) = a(x - r_1)(x - r_2) with r_1 < r_2, then the sign of f(x) is the product of three signs: the sign of a, the sign of (x - r_1), and the sign of (x - r_2).

Region \text{sign}(x - r_1) \text{sign}(x - r_2) Product of two factors \text{sign}(f) if a > 0
x < r_1 - - + +
r_1 < x < r_2 + - - -
x > r_2 + + + +

When a > 0: positive–negative–positive. When a < 0: negative–positive–negative. The pattern is completely determined by the leading coefficient and the roots.

The wavy curve method

The sign table above is clean for a quadratic, but it gets tedious for products of many factors. The wavy curve method (also called the method of intervals) is a visual shortcut that handles any product of linear factors at once.

Here is how it works. Suppose you need to solve

(x - 1)(x - 3)(x - 5) > 0

Step 1. Mark the roots on the number line: 1, 3, 5.

Step 2. Start from the far right. For large positive x, every factor (x - k) is positive, so the product is positive. Mark the rightmost region with a +.

Step 3. Cross each root from right to left. At each root, the sign of exactly one factor changes, so the overall sign flips. Moving left from the + region past x = 5: sign flips to -. Past x = 3: flips to +. Past x = 1: flips to -.

Wavy curve for (x minus 1)(x minus 3)(x minus 5)A number line with points at 1, 3, and 5. A wavy curve alternates above and below the line: below to the left of 1, above between 1 and 3, below between 3 and 5, and above to the right of 5. Plus and minus signs label each region. 1 3 5 + +
The wavy curve for $(x - 1)(x - 3)(x - 5)$. Starting from the right with $+$, the sign alternates at each root. The solution to $(x - 1)(x - 3)(x - 5) > 0$ is the set of $+$ regions: $x \in (1, 3) \cup (5, \infty)$.

Step 4. Read off the answer. You want the product to be positive, so select the + regions: x \in (1, 3) \cup (5, \infty).

For a quadratic a(x - r_1)(x - r_2) > 0 with a > 0, the wavy curve gives exactly the same answer as the sign table: positive outside the roots, negative between them. The wavy curve just makes it faster and more visual — especially when you move to products of three or more factors.

Repeated roots in the wavy curve

If a factor appears twice — say (x - 2)^2(x - 5) > 0 — the sign does not flip at the repeated root. At x = 2, the factor (x - 2)^2 is always non-negative, so it does not change the sign of the product. The wavy curve touches the axis at x = 2 but bounces back without crossing. The sign only flips at simple (odd-multiplicity) roots.

Wavy curve for (x minus 2) squared times (x minus 5)A number line with points at 2 and 5. A wavy curve stays below the axis to the left of 2, touches the axis at x equals 2 without crossing, stays below until x equals 5, then crosses above the axis and stays positive. 2 5 + bounce
At a repeated root (even multiplicity), the curve touches the axis but does not cross it — the sign stays the same on both sides. At a simple root (odd multiplicity), the curve crosses and the sign flips. Here, the product $(x-2)^2(x-5)$ is negative for $x < 5$ (except at $x = 2$ where it is zero) and positive for $x > 5$.

The rule: the sign flips at roots of odd multiplicity and stays the same at roots of even multiplicity. This is the key refinement of the wavy curve method.

The three discriminant cases for quadratic inequalities

The structure of the solution depends on the discriminant D = b^2 - 4ac.

Case 1: D > 0 (two distinct real roots)

This is the standard case. The roots r_1 < r_2 split the line into three intervals, and the sign alternates as described above.

For a > 0: f(x) > 0 when x \in (-\infty, r_1) \cup (r_2, \infty), and f(x) < 0 when x \in (r_1, r_2).

For a < 0: f(x) > 0 when x \in (r_1, r_2), and f(x) < 0 when x \in (-\infty, r_1) \cup (r_2, \infty).

Case 2: D = 0 (one repeated root)

The parabola touches the axis at exactly one point r = -b/(2a) but does not cross it.

For a > 0: f(x) \geq 0 for all x, with equality only at x = r. The inequality f(x) > 0 has solution x \in \mathbb{R} \setminus \{r\} — all real numbers except r.

For a < 0: f(x) \leq 0 for all x, with equality only at x = r. The inequality f(x) < 0 has solution x \in \mathbb{R} \setminus \{r\}.

Case 3: D < 0 (no real roots)

The parabola never touches the axis. Its sign is the same everywhere — determined entirely by a.

For a > 0: f(x) > 0 for all x \in \mathbb{R}. The inequality f(x) > 0 holds everywhere; f(x) < 0 has no solution.

For a < 0: f(x) < 0 for all x \in \mathbb{R}. The inequality f(x) < 0 holds everywhere; f(x) > 0 has no solution.

Three discriminant cases for quadratic inequalitiesThree small parabolas side by side, all opening upward. The first has D greater than 0 with two roots and three sign regions. The second has D equals 0 with one touching point and is always non-negative. The third has D less than 0 with no roots and is always positive. D > 0 + + D = 0 + + D < 0 + +
The three cases for $a > 0$. Left: $D > 0$ gives the classic +/−/+ pattern. Centre: $D = 0$ means the parabola never dips below the axis — positive everywhere except at the single root. Right: $D < 0$ means entirely positive, with no roots at all.

The graphical method

Sometimes the cleanest approach is entirely visual. Sketch the parabola, mark the roots, and shade the region you want.

For f(x) > 0: shade where the parabola is above the x-axis. For f(x) < 0: shade where the parabola is below the x-axis.

The sketch does not need to be precise — you only need the rough shape (which way it opens), the roots, and the vertex location. The sign pattern follows from the shape.

This graphical approach is especially useful when the problem gives you a graph and asks you to read the inequality solution from it, or when you need a quick sanity check on an algebraic answer.

An interactive sign explorer

Drag the red point to move along the x-axis. Watch the sign of f(x) = x^2 - 4x + 3 = (x-1)(x-3) change as you cross each root.

Interactive sign explorer for x squared minus 4x plus 3A horizontal slider from x equals negative 1 to x equals 5. A draggable red point controls the test value x. Readouts display x and the value of f(x). The roots of the quadratic are at x equals 1 and x equals 3. −1 0 1 2 3 4 5 drag to explore the sign of f(x)
Drag the red point along the number line. For $x < 1$ or $x > 3$, $f(x)$ is positive. For $1 < x < 3$, $f(x)$ is negative. The sign changes exactly at the roots.

The formal definition

Quadratic inequality — solution sets

Let f(x) = ax^2 + bx + c with a \neq 0 and roots r_1 \leq r_2 (when D \geq 0).

When D > 0 and a > 0:

  • f(x) > 0 \iff x \in (-\infty, r_1) \cup (r_2, \infty)
  • f(x) < 0 \iff x \in (r_1, r_2)

When D > 0 and a < 0:

  • f(x) > 0 \iff x \in (r_1, r_2)
  • f(x) < 0 \iff x \in (-\infty, r_1) \cup (r_2, \infty)

When D = 0: f(x) has the same sign as a for all x \neq r_1, and equals zero at x = r_1.

When D < 0: f(x) has the same sign as a for all x \in \mathbb{R}.

For non-strict inequalities (\geq, \leq), include the roots.

Example 1: Solve x² − 7x + 10 ≤ 0

Step 1. Find the roots. f(x) = x^2 - 7x + 10. Try to factor: you need two numbers that multiply to 10 and add to -7. Those are -2 and -5.

x^2 - 7x + 10 = (x - 2)(x - 5) = 0 \implies x = 2 \text{ or } x = 5

Why: the roots are the boundaries of the sign regions. Once you have them, the rest is mechanical.

Step 2. Determine the sign pattern. The leading coefficient a = 1 > 0, so the parabola opens upward: positive outside the roots, negative between them.

Interval Sign of f(x)
x < 2 +
2 < x < 5 -
x > 5 +

Why: for a > 0, the parabola is a U-shape — it dips below zero only between its roots.

Step 3. Read off the solution. You want f(x) \leq 0, which is the - region plus the roots themselves (since \leq includes equality).

x \in [2, 5]

Step 4. Verify the boundaries. f(2) = 4 - 14 + 10 = 0 and f(5) = 25 - 35 + 10 = 0. Both included, as required by \leq.

Result. x \in [2, 5].

Graph of x squared minus 7x plus 10 with the solution interval shadedAn upward-opening parabola with roots at x equals 2 and x equals 5. The portion of the curve below the x-axis, between the roots, is highlighted, representing the solution set of the inequality x squared minus 7x plus 10 is less than or equal to zero. x y 1 2 3 4 5 f(x) ≤ 0 here x ∈ [2, 5]
The solution to $x^2 - 7x + 10 \leq 0$ is the closed interval $[2, 5]$ — the region where the parabola is on or below the $x$-axis. The square brackets indicate that the endpoints are included (the inequality allows equality).

The interval [2, 5] is the portion of the number line where the parabola sits at or below the axis. Every point in the shaded region gives a non-positive value of f(x).

Example 2: Solve 2x² + 3x − 2 > 0

Step 1. Find the roots. f(x) = 2x^2 + 3x - 2. Use the quadratic formula with a = 2, b = 3, c = -2.

D = 9 - 4(2)(-2) = 9 + 16 = 25
x = \frac{-3 \pm 5}{4}

Why: D = 25 = 5^2, a perfect square, so the roots are rational. This means the quadratic factors cleanly.

Step 2. Compute both roots.

x_1 = \frac{-3 + 5}{4} = \frac{1}{2}, \qquad x_2 = \frac{-3 - 5}{4} = -2

So the roots are x = -2 and x = 1/2, with r_1 = -2 < r_2 = 1/2.

Step 3. Determine the sign pattern. Here a = 2 > 0, so the parabola opens upward: positive outside the roots, negative between them.

Why: a > 0 means the U-shape opens upward. The expression is negative only in the valley between the roots.

Step 4. Read off the solution. You want f(x) > 0 (strict), so take the regions where f is positive, excluding the roots:

x \in (-\infty, -2) \cup \left(\frac{1}{2}, \infty\right)

Result. x \in (-\infty, -2) \cup (1/2, \infty).

Graph of 2x squared plus 3x minus 2 with positive regions shadedAn upward-opening parabola with roots at x equals negative 2 and x equals one half. The regions to the left of negative 2 and to the right of one half are shaded, representing the solution set of 2x squared plus 3x minus 2 greater than zero. x y −2 −1 1 2 x = −2 x = ½ + +
The solution to $2x^2 + 3x - 2 > 0$ consists of two disjoint intervals: $(-\infty, -2)$ and $(1/2, \infty)$. These are the regions where the parabola is strictly above the axis. The open circles at the roots indicate that the roots themselves are excluded (strict inequality).

Notice the solution is a union of two disjoint intervals — this is the typical shape for f(x) > 0 when a > 0. The "inside" of the parabola is negative, and the "outside" on both sides is positive.

Common confusions

Going deeper

If you came here to learn how to solve quadratic inequalities, you have the full method — you can stop here. What follows is for readers who want to see the connection to more general inequalities and the algebraic structure underneath.

Rational inequalities

The same sign-analysis method works for inequalities involving rational expressions — fractions with polynomials in the numerator and denominator. To solve

\frac{x - 1}{x + 3} > 0

treat the numerator and denominator as separate linear factors. The expression changes sign at x = 1 (numerator zero) and is undefined at x = -3 (denominator zero). Mark both on the number line, then apply the wavy curve: start from the right with +, flip at x = 1, flip again at x = -3. Solution: x \in (-\infty, -3) \cup (1, \infty).

The key difference from polynomial inequalities: the expression is undefined at denominator roots, so those points are always excluded from the solution, even for non-strict inequalities.

Systems of quadratic inequalities

Sometimes you need to solve two quadratic inequalities simultaneously — for example, f(x) > 0 and g(x) \leq 0. Solve each inequality separately to get its solution set, then take the intersection (the overlap). The answer is whatever x-values satisfy both conditions at once.

For instance, x^2 - 4 > 0 gives x \in (-\infty, -2) \cup (2, \infty). The inequality x^2 - 9 \leq 0 gives x \in [-3, 3]. The intersection is x \in [-3, -2) \cup (2, 3] — the parts of [-3, 3] that also satisfy x^2 > 4.

Why "union" and "intersection" matter

A quadratic inequality of the form f(x) > 0 with a > 0 and D > 0 gives a union of two intervals. An inequality of the form f(x) < 0 with a > 0 and D > 0 gives a single interval. The shape of the solution — one piece or two — is determined by which side of zero you are asking about and which way the parabola opens. Getting this right is the difference between a correct and incorrect answer.

Where this leads next