Quadratic Inequality Solver

Quadratic Inequality Solver

Growing AI Skill PRO

Enter Calculation

Formula

x=−b±D2aax2+bx+c>0⇒x<α or x>βwhereD=b2−4ac\begin{gathered} x = \dfrac{-\text{b} \pm \sqrt{D}}{2\,\text{a}} \\[1.5em] \text{a}x^{2} + \text{b}x + \text{c} > 0 \;\Rightarrow\; x < \alpha \;\text{ or }\; x > \beta \\[0.6em] \text{where}\quad D = \text{b}^{2} - 4\,\text{a}\,\text{c} \end{gathered}
Usage stats

Advertisement

Results

Solution set for x
x < -2.0 or x > 1.0
Two distinct real roots
Discriminant D 9
Root alpha 1
Root beta -2
Vertex x = -b/(2a) -0.5
Vertex y -2.25
Parabola opens Upward (a > 0)

Report an error on this page

What is a quadratic inequality?

A quadratic inequality compares a quadratic expression to zero, for example \(\text{a}x^2 + \text{b}x + \text{c} > 0\). Its solution is the set of all real x-values that make the statement true. Because the graph of a quadratic is a parabola, the solution always takes one of a few shapes: two outward rays, a single bounded interval, all real numbers, a single point, or no solution at all. This is pure mathematics and works the same everywhere.

Upward parabola crossing the x-axis at two roots with regions above and below the axis shaded differently
A quadratic inequality compares the parabola to zero: the solution depends on where the curve lies above or below the x-axis.

How to use this calculator

Pick the inequality sign you want applied to \(\text{a}x^2 + \text{b}x + \text{c}\), then enter the coefficients \(\text{a}\), \(\text{b}\) and \(\text{c}\). The coefficient \(\text{a}\) must be non-zero, otherwise the expression is linear and you should use a linear inequality solver instead. Choose how many significant digits to display, then read off the solution set, the discriminant, the two roots and the parabola vertex used for sketching.

The method explained

First compute the discriminant $$D = \text{b}^2 - 4\,\text{a}\,\text{c}.$$ If \(D > 0\) there are two distinct roots lo and hi; if \(D = 0\) there is one double root; if \(D < 0\) there are no real roots. Next note that the parabola opens upward when \(\text{a} > 0\) (negative strictly between the roots, positive outside) and downward when \(\text{a} < 0\) (the signs reverse). Matching the chosen sign to these regions gives the solution: outside the roots for the "greater" family, between the roots for the "less" family, with the endpoints included only for the non-strict signs (\(\ge\), \(\le\)).

Advertisement
Number line divided by two roots into three intervals with sign symbols for the quadratic expression
The roots split the number line into intervals; testing each interval gives the sign of the expression.

Worked example

Solve \(x^2 + x - 2 > 0\). Here \(\text{a} = 1\), \(\text{b} = 1\), \(\text{c} = -2\). $$D = 1 - 4(1)(-2) = 9,$$ so \(\sqrt{D} = 3\). The roots are $$\frac{-1 - 3}{2} = -2 \quad\text{and}\quad \frac{-1 + 3}{2} = 1,$$ so \(\text{lo} = -2\), \(\text{hi} = 1\). Because \(\text{a} > 0\) and the sign is "\(>\)", the expression is positive outside the roots, giving \(x < -2\) or \(x > 1\). The vertex is at \(x = -0.5\), \(y = -2.25\).

Solution Sets by Sign of a and Discriminant

For \(ax^2+bx+c\) with \(a\neq 0\), the discriminant is \(D=b^2-4ac\). When \(D>0\) the real roots are \(lo<hi\). When \(D=0\) there is one double root \(r\). The sign of \(a\) decides whether the parabola opens upward (\(a>0\)) or downward (\(a<0\)).

Case > 0 ≥ 0 < 0 ≤ 0
D>0, a>0 x<lo or x>hi x≤lo or x≥hi lo<x<hi lo≤x≤hi
D>0, a<0 lo<x<hi lo≤x≤hi x<lo or x>hi x≤lo or x≥hi
D=0, a>0 all x ≠ r all real x no solution x = r
D=0, a<0 no solution x = r all x ≠ r all real x
D<0, a>0 all real x all real x no solution no solution
D<0, a<0 no solution no solution all real x all real x

Rule of thumb: with an upward parabola, the expression is positive outside the roots and negative between them. With a downward parabola it is the opposite. Strict signs (>, <) exclude the roots, and non-strict signs (≥, ≤) include them.

Advertisement

More Worked Examples

Example 1: \(-x^2+4x-3\ge 0\)

  1. Coefficients: \(a=-1,\ b=4,\ c=-3\).
  2. Discriminant: \(D=4^2-4(-1)(-3)=16-12=4>0\), so there are two real roots.
  3. Roots: \(x=\frac{-4\pm\sqrt{4}}{2(-1)}=\frac{-4\pm 2}{-2}\), which gives \(x=1\) and \(x=3\).
  4. Vertex: \(x_v=\frac{-b}{2a}=\frac{-4}{-2}=2\) and \(y_v=-(2)^2+4(2)-3=1\), so the vertex is \((2,1)\), a maximum because \(a<0\).
  5. Since \(a<0\), the parabola is at or above the x-axis between the roots. Solution: \(1\le x\le 3\), or in interval notation \([1,3]\).

Example 2: \(x^2-6x+9\le 0\)

  1. Coefficients: \(a=1,\ b=-6,\ c=9\).
  2. Discriminant: \(D=(-6)^2-4(1)(9)=36-36=0\), so there is one double root.
  3. Root: \(x=\frac{6}{2}=3\).
  4. Vertex: \(x_v=3\) and \(y_v=9-18+9=0\), so the vertex is \((3,0)\), which touches the x-axis.
  5. Since \(a>0\), the parabola is never below the axis and equals zero only at the vertex. Solution: \(x=3\), or in interval notation \([3,3]=\{3\}\).

Example 3: \(x^2+2x+5<0\)

  1. Coefficients: \(a=1,\ b=2,\ c=5\).
  2. Discriminant: \(D=2^2-4(1)(5)=4-20=-16<0\), so there are no real roots.
  3. Vertex: \(x_v=\frac{-2}{2}=-1\) and \(y_v=1-2+5=4\), so the vertex is \((-1,4)\), the minimum value.
  4. Since \(a>0\) and the minimum is 4, the parabola stays above the x-axis everywhere. Solution: no real \(x\), the empty set \(\varnothing\). The same expression satisfies \(>0\) for all real numbers, \((-\infty,\infty)\).

FAQ

What happens when \(D < 0\)? The parabola never touches the x-axis. For an upward parabola the expression is always positive, so "\(>\)" and "\(\ge\)" give all real numbers while "\(<\)" and "\(\le\)" give no solution; for a downward parabola the reverse holds.

Why does the double-root case give a single point? When \(D = 0\) the parabola touches the axis at one point \(r = -\frac{\text{b}}{2\,\text{a}}\). Only the non-strict sign that matches the touching side (for example "\(\le\)" with \(\text{a} > 0\)) is satisfied there, yielding \(x = r\).

Can \(\text{a}\) be zero? No. With \(\text{a} = 0\) the expression is linear, the formula for the roots divides by zero, and the calculator asks you to use a linear inequality solver instead.

Last updated:

Most popular in Math and Statistics

View all Math and Statistics calculators