Quadratics

Quadratic Inequalities: How to Solve Them Step by Step

To solve a quadratic inequality, find the roots of ax2+bx+c=0ax^2+bx+c=0, then use the direction of the parabola to choose the side of the roots where the sign is right. For an upward parabola, ax2+bx+c<0ax^2+bx+c<0 holds between the roots and ax2+bx+c>0ax^2+bx+c>0 holds outside them.

x=−b±b2−4ac2ax = \frac{-b \pm \sqrt{b^2-4ac}}{2a}

Try it with your numbers

Show every step

Use the solver above with your own numbers to see each step. The sections below explain why the method works and where it quietly breaks.

What are quadratic inequalities and what do solutions look like?

A quadratic inequality compares a quadratic expression with a number or another expression, using <<, >>, ≤\le or ≥\ge. Once every term is moved to one side, it has the form ax2+bx+c>0ax^2+bx+c>0 in standard form, with a≠0a\ne0. An equation of this kind has at most two answers. An inequality has a whole stretch of them, written as intervals such as (−3,5)(-3,5) or (−∞,2)∪(3,∞)(-\infty,2)\cup(3,\infty).

One idea powers every method: a quadratic is continuous, so it cannot change sign without passing through zero. The roots are the only places the sign can switch. Between two neighboring roots the sign never changes, so a single test value decides the whole interval. That is why you solve the equation first, even though the question asks about an inequality.

The graph shows the same thing. Solving ax2+bx+c>0ax^2+bx+c>0 asks where the parabola sits above the xx-axis, and the roots are the xx-intercepts that cut the axis into regions.

Quick check

Is x=2x=2 a solution of x2−3x−4<0x^2-3x-4<0?

How do you solve quadratic inequalities step by step?

The method has four moves, and the first one is where most errors begin.

  1. Move every term to one side so the other side is exactly 00.
  2. Solve the related equation by factoring or by the quadratic formula. These roots are the boundary points.
  3. Decide which way the parabola opens from the sign of aa.
  4. Keep the intervals where the sign matches, using brackets for ≤\le and ≥\ge and parentheses for << and >>.

Example 1. Solve x2−2x≤15x^2-2x\le15.

Move the 15 so one side is zero:

x2−2x−15≤0x^2-2x-15\le0

Factor (see solving quadratic equations by factoring if this step is slow):

(x−5)(x+3)≤0(x-5)(x+3)\le0

The roots are x=5x=5 and x=−3x=-3. Here a=1>0a=1>0, so the parabola opens upward and is at or below zero between the roots. The inequality is ≤\le, so the endpoints are included:

−3≤x≤5-3\le x\le5

In interval notation this is [−3,5][-3,5]. Check one value inside and one outside: x=0x=0 gives 0≤150\le15, which is true, and x=6x=6 gives 24≤1524\le15, which is false. A quick sketch from graphing quadratic functions makes the “between” pattern easy to see.

How does a negative leading coefficient change the answer?

The rule “greater than means outside the roots” is true only when a>0a>0. Students memorize it, meet a problem that begins with −x2-x^2, and land on the wrong side. The safe version depends on both the sign of aa and the direction of the inequality.

Leading coefficient Solves f(x)>0f(x)>0 Solves f(x)<0f(x)<0
a>0a>0 outside the roots between the roots
a<0a<0 between the roots outside the roots

Example 2. Solve −x2+4x+5>0-x^2+4x+5>0.

Multiply both sides by −1-1 and flip the sign, so the parabola opens upward:

x2−4x−5<0x^2-4x-5<0

(x−5)(x+1)<0(x-5)(x+1)<0

The roots are −1-1 and 55, and an upward parabola is negative between them:

−1<x<5-1<x<5

As a mental check, the original parabola opens downward with its peak at x=2x=2 (the vertex of a parabola sits on the line halfway between the roots). There −4+8+5=9>0-4+8+5=9>0, so it is above the axis in the middle. At x=6x=6 you get −36+24+5=−7-36+24+5=-7, which fails, as it should.

Skip the flip trap

If a<0a<0, multiply the whole inequality by −1-1 and reverse the sign before doing anything else. Then only the top row of the table applies.

How do you solve quadratic inequalities that will not factor?

When the quadratic has no neat factors, use the quadratic formula to get the boundary points. Keep the roots in exact form, with square roots, for the final answer. Use decimals only to locate them on the number line.

Example 3. Solve x2−4x−1≥0x^2-4x-1\ge0.

Here a=1a=1, b=−4b=-4, c=−1c=-1:

x=4±16+42=4±252=2±5x=\frac{4\pm\sqrt{16+4}}{2}=\frac{4\pm2\sqrt5}{2}=2\pm\sqrt5

These are about −0.236-0.236 and 4.2364.236. The parabola opens upward and the sign is ≥\ge, so the solution is outside the roots, endpoints included:

x≤2−5orx≥2+5x\le2-\sqrt5\quad\text{or}\quad x\ge2+\sqrt5

Check x=0x=0: −1≥0-1\ge0 is false, and 00 lies between the roots, as expected. Check x=5x=5: 25−20−1=4≥025-20-1=4\ge0 is true.

Completing the square is often faster for these. Here x2−4x−1=(x−2)2−5x^2-4x-1=(x-2)^2-5, so the inequality becomes (x−2)2≥5(x-2)^2\ge5. That means the distance from xx to 22 is at least 5\sqrt5, which gives the same answer in one line.

What if a quadratic inequality has no solution or all real numbers?

The discriminant, b2−4acb^2-4ac, tells you in advance how the number line will be cut. It also exposes the cases that surprise students, where the answer is “everything” or “nothing”.

  • If b2−4ac>0b^2-4ac>0, there are two boundary points and three regions.
  • If b2−4ac=0b^2-4ac=0, there is one boundary point and the parabola only touches the axis.
  • If b2−4ac<0b^2-4ac<0, there is no boundary point, and the quadratic has the sign of aa everywhere.

For x2+2x+5>0x^2+2x+5>0, the discriminant is 4−20=−16<04-20=-16<0 and the parabola opens upward, so it stays above the axis. The answer is all real numbers. Reverse the sign to get x2+2x+5<0x^2+2x+5<0 and the answer is no solution. The roots still exist, but they are complex numbers, and those do not appear on the real number line.

The repeated-root case needs care too. For x2−6x+9≤0x^2-6x+9\le0, rewrite it as (x−3)2≤0(x-3)^2\le0. A square is never negative, so only x=3x=3 works. For (x−3)2>0(x-3)^2>0 every real number works except 33, written x≠3x\ne3.

Quick check

Solve x2+4x+7>0x^2+4x+7>0.

Why can’t you divide both sides by x in an inequality?

Number line comparing wrong divide-by-x answer with correct factored answer for x squared greater than 4x
Dividing x² > 4x by x leaves only x > 4, while factoring also finds every x below 0.

Take x2>4xx^2>4x. Dividing by xx gives x>4x>4, which looks tidy and is wrong. You do not know the sign of xx, and if xx is negative the inequality must flip. Dividing silently throws away every negative solution.

The safe route is to move everything to one side and factor:

x2−4x>0⇒x(x−4)>0x^2-4x>0\quad\Rightarrow\quad x(x-4)>0

The roots are 00 and 44, and the parabola opens upward, so the answer is x<0x<0 or x>4x>4. Test x=−1x=-1: 1>−41>-4 is true, which confirms the piece that dividing would have lost. The same warning applies to cancelling any common factor that contains xx.

Pure squares shortcut

For k>0k>0, x2<kx^2<k means="" −=""k<x<=""k-\sqrt="" k<x<\sqrt="" k,="" and="" x2="">kx^2="">k means x<−kx<-\sqrt k or x>kx>\sqrt k. This is the square root method with an inequality sign. If k<0k<0, then x2<kx^2<k has="" no="" solution.<="" p="">

When quadratics appear on both sides, subtract to get a single quadratic. For example, 2x2+4x≥x2−x−62x^2+4x\ge x^2-x-6 becomes x2+5x+6≥0x^2+5x+6\ge0, so (x+2)(x+3)≥0(x+2)(x+3)\ge0 and the answer is x≤−3x\le-3 or x≥−2x\ge-2. With fractions, multiply by the positive denominator, which keeps the direction: x24≤x2+2\frac{x^2}{4}\le\frac{x}{2}+2 becomes x2≤2x+8x^2\le2x+8, so (x−4)(x+2)≤0(x-4)(x+2)\le0 and −2≤x≤4-2\le x\le4. A negative denominator would flip the sign.

How do you graph a quadratic inequality in two variables?

An inequality such as y>x2−4x+3y>x^2-4x+3 has two variables, so its solution is a shaded region of the plane instead of an interval. Start with the boundary curve y=x2−4x+3=(x−1)(x−3)y=x^2-4x+3=(x-1)(x-3). It crosses the xx-axis at 11 and 33, its axis of symmetry is x=2x=2, and its lowest point is (2,−1)(2,-1).

Draw the boundary dashed for << or >>, and solid for ≤\le or ≥\ge. Then pick a test point that is not on the curve. The origin fails here: 0>30>3 is false, so the shaded side is the one that does not contain (0,0)(0,0). A second test, (2,0)(2,0), gives 0>−10>-1, which is true, so shade the region above the parabola, inside the bowl.

The one-variable problem is the same idea with one dimension removed. A system of two such inequalities is solved the same way: shade each region and keep the overlap.

Where are quadratic inequalities used in real life?

Any time a quantity that follows a parabola must stay above or below a limit, the question is a quadratic inequality. A ball thrown upward has height h=−16t2+64th=-16t^2+64t feet after tt seconds. When is it higher than 48 feet?

−16t2+64t>48-16t^2+64t>48

Divide by −16-16 and flip the sign:

t2−4t<−3⇒t2−4t+3<0t^2-4t<-3\quad\Rightarrow\quad t^2-4t+3<0

(t−1)(t−3)<0⇒1<t<3(t-1)(t-3)<0\quad\Rightarrow\quad 1<t<3

The ball is above 48 feet from 1 to 3 seconds. Check t=2t=2, the peak: −64+128=64>48-64+128=64>48. At t=1t=1 the height is exactly 48, so that endpoint is excluded by the strict sign.

Profit models, braking distances and fencing problems work the same way, and quadratic word problems show how to build the inequality from a story. Quadratic inequalities also decide domains. For x2−9\sqrt{x^2-9} to be a real number you need x2−9≥0x^2-9\ge0, which gives x≤−3x\le-3 or x≥3x\ge3.

Quick check

A ball's height is h=−16t2+48th=-16t^2+48t feet. For which times is h≥32h\ge32?

How do you check the answer to a quadratic inequality?

Test one value from every interval, including the ones you rejected. A correct solution makes the original inequality true on the kept intervals and false on the others. Plugging in a root should give 00, which is allowed only if the sign includes equality.

A fast sanity check uses a huge value such as x=100x=100. For large ∣x∣|x| the term ax2ax^2 dominates, so the quadratic has the sign of aa. If a>0a>0 and the inequality is >0>0, the far ends of the number line must be in your answer. If they are not, something went wrong.

Also check the form of the answer. A “between” answer is one connected interval, r1<x<r2r_1<x<r_2, while an “outside” answer is two pieces joined by “or”. Never write something like 5<x<−35<x<-3. For more practice finding roots quickly, try these quadratic formula practice problems.

Try this: Solve x2−x−12>0x^2-x-12>0, then test x=0x=0, x=−5x=-5 and x=5x=5 in the original inequality. Exactly two of the three should work. If your answer disagrees, recheck which side of the roots you kept.

Practice problems

0 of 5 solved

  1. Solve x2−5x+6>0x^2-5x+6>0.

  2. Solve x2+2x≤8x^2+2x\le 8.

  3. Solve −2x2+8x>0-2x^2+8x>0.

  4. Solve x2−6x+4≤0x^2-6x+4\le0. Give exact endpoints.

  5. Solve 3x2+1≥2x2+4x−33x^2+1\ge 2x^2+4x-3.

Common questions

What is a quadratic inequality?

It is an inequality that can be written as ax2+bx+c>0ax^2+bx+c>0, with <<, ≤\le or ≥\ge in place of >> and a≠0a\ne0. The answer is usually one or two intervals of xx-values, not a single number.

When does the answer use "and" and when "or"?

If the parabola opens upward and you want the values below zero (or the parabola opens downward and you want the values above zero), the answer is one stretch between the roots, written r1<x<r2r_1<x<r_2. In the other two cases the answer is two pieces outside the roots, joined with "or".

Do you flip the inequality sign when solving a quadratic inequality?

Only when you multiply or divide both sides by a negative number. Factoring, moving terms and finding roots never flip the sign. If a<0a<0, many students multiply by −1-1 first so the parabola opens upward, and that step does need the flip.

What if the discriminant is negative?

The parabola never crosses the xx-axis, so the quadratic has the same sign as aa for every real xx. The inequality is then true for all real numbers or for none, depending on which way it points.

Should I use brackets or parentheses in the answer?

Use brackets for ≤\le and ≥\ge because the endpoints make the expression equal to zero and are included. Use parentheses for << and >>. Infinity always gets a parenthesis.

Can I solve a quadratic inequality with a graphing calculator?

Yes. Graph the quadratic, find the xx-intercepts, and read off where the curve is above or below the axis. Write the endpoints exactly if the intercepts are irrational, such as 2+52+\sqrt5, rather than copying a rounded decimal.

Up next