Skip to content

Solve Quadratic Inequalities

By the end of this section, you will be able to: solve quadratic inequalities graphically and solve quadratic inequalities algebraically.

We have learned how to solve linear inequalities and rational inequalities previously. Some of the techniques we used to solve them were the same and some were different.

We will now learn to solve inequalities that have a quadratic expression. We will use some of the techniques from solving linear and rational inequalities as well as quadratic equations.

We will solve quadratic inequalities two ways—both graphically and algebraically.

Solve Quadratic Inequalities Graphically

A quadratic equation is in standard form when written as ax2+bx+c=0ax^2+bx+c=0. If we replace the equal sign with an inequality sign, we have a quadratic inequality in standard form.

Quadratic inequality. A quadratic inequality is an inequality that contains a quadratic expression.

The standard form of a quadratic inequality is written:

ax2+bx+c<0ax2+bx+c>0ax2+bx+c0ax2+bx+c0 \begin{array}{rcl} ax^2+bx+c&<&0 \\[4pt] ax^2+bx+c&>&0 \end{array} \qquad \begin{array}{rcl} ax^2+bx+c&\le&0 \\[4pt] ax^2+bx+c&\ge&0 \end{array}

The graph of a quadratic function f(x)=ax2+bx+cf(x)=ax^2+bx+c is a parabola. When we ask when ax2+bx+c<0ax^2+bx+c<0, we are asking when f(x)<0f(x)<0. We want to know when the parabola is below the xx-axis.

When we ask when ax2+bx+c>0ax^2+bx+c>0, we are asking when f(x)>0f(x)>0. We want to know when the parabola is above the xx-axis.

For a parabola that opens upward and has two xx-intercepts, f(x)<0f(x)<0 between the intercepts and f(x)>0f(x)>0 outside the intercepts. For a parabola that opens downward, f(x)>0f(x)>0 between the intercepts and f(x)<0f(x)<0 outside them.

Example. How to solve a quadratic inequality graphically. Solve x26x+8<0x^2-6x+8<0 graphically. Write the solution in interval notation.

Solution.

Write the quadratic inequality in standard form.

x26x+8<0 x^2-6x+8<0

Graph the function f(x)=x26x+8f(x)=x^2-6x+8 using properties or transformations. Look at aa in the equation.

f(x)=x26x+8,a=1, b=6, c=8. f(x)=x^2-6x+8,\qquad a=1,\ b=-6,\ c=8.

Since aa is positive, the parabola opens upward.

The axis of symmetry is the line x=b2ax=-\tfrac{b}{2a}.

x=621x=3 \begin{array}{rcl} x&=&-\tfrac{-6}{2\cdot1}\\[10pt] x&=&3 \end{array}

The axis of symmetry is the line x=3x=3.

The vertex is on the axis of symmetry. Substitute x=3x=3 into the function.

f(x)=x26x+8f(3)=(3)26(3)+8f(3)=1 \begin{array}{rcl} f(x)&=&x^2-6x+8\\[4pt] f(3)&=&(3)^2-6(3)+8\\[4pt] f(3)&=&-1 \end{array}

The vertex is (3,1)(3,-1).

Find the yy-intercept.

f(x)=x26x+8f(0)=(0)26(0)+8f(0)=8 \begin{array}{rcl} f(x)&=&x^2-6x+8\\[4pt] f(0)&=&(0)^2-6(0)+8\\[4pt] f(0)&=&8 \end{array}

The yy-intercept is (0,8)(0,8). The point symmetric to the yy-intercept is (6,8)(6,8).

Find the xx-intercepts by solving f(x)=0f(x)=0.

0=x26x+80=(x2)(x4)x=2orx=4 \begin{array}{rcl} 0&=&x^2-6x+8\\[4pt] 0&=&(x-2)(x-4)\\[4pt] x&=&2\quad\text{or}\quad x=4 \end{array}

The xx-intercepts are (2,0)(2,0) and (4,0)(4,0). The graph is an upward-opening parabola with vertex (3,1)(3,-1), xx-intercepts (2,0)(2,0) and (4,0)(4,0), yy-intercept (0,8)(0,8), and the symmetric point (6,8)(6,8). Graph the vertex, intercepts, and the point symmetric to the yy-intercept. Connect these five points to sketch the parabola.

The inequality asks for the values of xx which make the function less than zero. These are the values of xx that make the parabola below the xx-axis. We do not include the values 2 and 4, as the inequality is less than only. The solution, in interval notation, is (2,4)(2,4).

Graph y=x2+2x8y=x^2+2x-8.

Solve x2+2x8<0x^2+2x-8<0 graphically. Write the solution in interval notation.

Solve x28x+120x^2-8x+12\ge0 graphically. Write the solution in interval notation.

We list the steps to take to solve a quadratic inequality graphically.

Solve a quadratic inequality graphically.

  1. Write the quadratic inequality in standard form.
  2. Graph the function f(x)=ax2+bx+cf(x)=ax^2+bx+c.
  3. Determine the solution from the graph.

In the last example, the parabola opened upward and in the next example, it opens downward. In both cases, we are looking for the part of the parabola that is below the xx-axis but note how the position of the parabola affects the solution.

Example. Solve x28x120-x^2-8x-12\le0 graphically. Write the solution in interval notation.

Solution.

The quadratic inequality is in standard form:

x28x120. -x^2-8x-12\le0.

Graph the function f(x)=x28x12f(x)=-x^2-8x-12. The parabola opens downward.

Find the line of symmetry.

x=b2ax=82(1)x=4 \begin{array}{rcl} x&=&-\tfrac{b}{2a}\\[10pt] x&=&-\tfrac{-8}{2(-1)}\\[10pt] x&=&-4 \end{array}

Find the vertex.

f(x)=x28x12f(4)=(4)28(4)12f(4)=16+3212f(4)=4 \begin{array}{rcl} f(x)&=&-x^2-8x-12\\[4pt] f(-4)&=&-(-4)^2-8(-4)-12\\[4pt] f(-4)&=&-16+32-12\\[4pt] f(-4)&=&4 \end{array}

The vertex is (4,4)(-4,4).

Find the xx-intercepts. Let f(x)=0f(x)=0.

0=x28x120=1(x+6)(x+2)x=6orx=2 \begin{array}{rcl} 0&=&-x^2-8x-12\\[4pt] 0&=&-1(x+6)(x+2)\\[4pt] x&=&-6\quad\text{or}\quad x=-2 \end{array}

The xx-intercepts are (6,0)(-6,0) and (2,0)(-2,0). The graph is a downward-opening parabola with vertex (4,4)(-4,4) and xx-intercepts (6,0)(-6,0) and (2,0)(-2,0). Graph the parabola.

Determine the solution from the graph. We include the xx-intercepts as the inequality is “less than or equal to.” The solution, in interval notation, is (,6][2,)(-\infty,-6]\cup[-2,\infty).

Graph y=x26x5y=-x^2-6x-5.

Solve x26x5>0-x^2-6x-5>0 graphically. Write the solution in interval notation.

Solve x2+10x160-x^2+10x-16\le0 graphically. Write the solution in interval notation.

Solve Quadratic Inequalities Algebraically

The algebraic method we will use is very similar to the method we used to solve rational inequalities. We will find the zero partition numbers for the inequality, which will be the solutions to the related quadratic equation. Remember a polynomial expression can change signs only where the expression is zero.

We will use the zero partition numbers to divide the number line into intervals and then determine whether the quadratic expression will be positive or negative in the interval. We then determine the solution for the inequality.

Example. How to solve quadratic inequalities algebraically. Solve x2x120x^2-x-12\ge0 algebraically. Write the solution in interval notation.

Solution.

Write the quadratic inequality in standard form.

x2x120 x^2-x-12\ge0

Determine the critical points—the solutions to the related quadratic equation. Change the inequality sign to an equal sign and then solve the equation.

x2x12=0(x+3)(x4)=0x=3, 4 \begin{array}{rcl} x^2-x-12&=&0\\[4pt] (x+3)(x-4)&=&0\\[4pt] x&=&-3,\ 4 \end{array}

Use 3-3 and 4 to divide the number line into intervals. Above the number line, show the sign of each quadratic expression using test points from each interval substituted into the original inequality.

IntervalTest valuex2x12x^2-x-12Sign
(,3)(-\infty,-3)x=5x=-5(5)2(5)12=18(-5)^2-(-5)-12=18++
(3,4)(-3,4)x=0x=002012=120^2-0-12=-12-
(4,)(4,\infty)x=5x=552512=85^2-5-12=8++

Determine the intervals where the inequality is correct. The inequality is positive in the first and last quadrants and equals 0 at the points 3-3 and 4. The solution, in interval notation, is (,3][4,)(-\infty,-3]\cup[4,\infty).

Solve x2+2x80x^2+2x-8\ge0 algebraically. Write the solution in interval notation.

Solve x22x150x^2-2x-15\le0 algebraically. Write the solution in interval notation.

In this example, since the expression x2x12x^2-x-12 factors nicely, we can also find the sign in each interval much like we did when we solved rational inequalities. We find the sign of each of the factors, and then the sign of the product. The result is the same as we found using the other method.

We summarize the steps here.

Solve a quadratic inequality algebraically.

  1. Write the quadratic inequality in standard form.
  2. Determine the zero partition numbers—the solutions to the related quadratic equation.
  3. Use the zero partition numbers to divide the number line into intervals.
  4. Above the number line show the sign of each quadratic expression using test points from each interval substituted into the original inequality.
  5. Determine the intervals where the inequality is correct. Write the solution in interval notation.

Example. Solve x2+6x70-x^2+6x-7\ge0 algebraically. Write the solution in interval notation.

Solution.

Write the quadratic inequality in standard form.

x2+6x70 -x^2+6x-7\ge0

Multiply both sides of the inequality by 1-1. Remember to reverse the inequality sign.

x26x+70 x^2-6x+7\le0

Determine the zero partition numbers by solving the related quadratic equation.

x26x+7=0 x^2-6x+7=0

Write the Quadratic Formula, then substitute in the values of a,b,ca,b,c.

x=b±b24ac2ax=(6)±(6)241721x=6±82x=6±222x=3±2 \begin{array}{rcl} x&=&\tfrac{-b\pm\sqrt{b^2-4ac}}{2a}\\[10pt] x&=&\tfrac{-(-6)\pm\sqrt{(-6)^2-4\cdot1\cdot7}}{2\cdot1}\\[10pt] x&=&\tfrac{6\pm\sqrt8}{2}\\[10pt] x&=&\tfrac{6\pm2\sqrt2}{2}\\[10pt] x&=&3\pm\sqrt2 \end{array}

The zero partition numbers are 323-\sqrt2 and 3+23+\sqrt2, approximately 1.6 and 4.4. Use the zero partition numbers to divide the number line into intervals. Test numbers from each interval in the original inequality.

The expression x2+6x7-x^2+6x-7 is nonnegative in the middle interval. The solution is

[32, 3+2]. \left[3-\sqrt2,\ 3+\sqrt2\right].

Solve x2+2x+10-x^2+2x+1\ge0 algebraically. Write the solution in interval notation.

Solve x2+8x14<0-x^2+8x-14<0 algebraically. Write the solution in interval notation.

The solutions of the quadratic inequalities in each of the previous examples were either an interval or the union of two intervals. This resulted from the fact that, in each case we found two solutions to the corresponding quadratic equation ax2+bx+c=0ax^2+bx+c=0. These two solutions then gave us either the two xx-intercepts for the graph or the two zero partition numbers to divide the number line into intervals.

This correlates to our previous discussion of the number and type of solutions to a quadratic equation using the discriminant.

For a quadratic equation of the form ax2+bx+c=0ax^2+bx+c=0, a0a\ne0:

DiscriminantNumber/type of solutionTypical graph
b24ac>0b^2-4ac>02 real solutions; 2 xx-intercepts on graphAn upward- or downward-opening parabola crossing the xx-axis twice
b24ac=0b^2-4ac=01 real solution; 1 xx-intercept on graphAn upward- or downward-opening parabola tangent to the xx-axis
b24ac<0b^2-4ac<02 complex solutions; no xx-interceptAn upward-opening parabola wholly above, or downward-opening parabola wholly below, the xx-axis

The last row of the table shows us when the parabolas never intersect the xx-axis. Using the Quadratic Formula to solve the quadratic equation, the radicand is a negative. We get two complex solutions.

In the next example, the quadratic inequality solutions will result from the solution of the quadratic equation being complex.

Example. Solve, writing any solution in interval notation:

(a) x23x+4>0x^2-3x+4>0
(b) x23x+40x^2-3x+4\le0

Solution.

(a) Write the quadratic inequality in standard form and determine the zero partition numbers by solving the related quadratic equation.

x23x+4>0x23x+4=0 \begin{array}{rcl} x^2-3x+4&>&0\\[4pt] x^2-3x+4&=&0 \end{array}

Use the Quadratic Formula.

x=b±b24ac2ax=(3)±(3)241421x=3±72x=3±7i2 \begin{array}{rcl} x&=&\tfrac{-b\pm\sqrt{b^2-4ac}}{2a}\\[10pt] x&=&\tfrac{-(-3)\pm\sqrt{(-3)^2-4\cdot1\cdot4}}{2\cdot1}\\[10pt] x&=&\tfrac{3\pm\sqrt{-7}}{2}\\[10pt] x&=&\tfrac{3\pm\sqrt7i}{2} \end{array}

The complex solutions tell us the parabola does not intersect the xx-axis. Also, the parabola opens upward. This tells us that the parabola is completely above the xx-axis.

We are to find the solution to x23x+4>0x^2-3x+4>0. Since for all values of xx the graph is above the xx-axis, all values of xx make the inequality true. In interval notation we write (,)(-\infty,\infty).

(b) Write the quadratic inequality in standard form and determine the zero partition numbers by solving the related quadratic equation:

x23x+40,x23x+4=0. x^2-3x+4\le0,\qquad x^2-3x+4=0.

Since the corresponding quadratic equation is the same as in part (a), the parabola will be the same. The parabola opens upward and is completely above the xx-axis—no part of it is below the xx-axis.

We are to find the solution to x23x+40x^2-3x+4\le0. Since for all values of xx the graph is never below the xx-axis, no values of xx make the inequality true. There is no solution to the inequality.

Solve x2+2x40-x^2+2x-4\le0 and write any solution in interval notation.

Solve x2+2x40-x^2+2x-4\ge0 and write any solution in interval notation.

Key terms. A quadratic inequality is an inequality that contains a quadratic expression. Zero partition numbers are the solutions of the related quadratic equation; they divide the number line into intervals on which the quadratic expression has a constant sign.

Adapted from [*Intermediate Algebra 2e*, Section 9.8](https://openstax.org/books/intermediate-algebra-2e/pages/9-8-solve-quadratic-inequalities) by Lynn Marecek and Andrea Honeycutt Mathis, © OpenStax, licensed under [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/). Access the original for free at [OpenStax](https://openstax.org/). Changes: adapted the source to interactive web format, recreated instructional visuals accessibly, and converted Try It exercises to auto-graded questions.