Math Core

Lesson 2.6 · Quadratic Functions

Quadratic inequalities

"When is the ball higher than 36 feet?" "For which prices is the profit positive?" Questions like these ask not where a quadratic equals a value, but where it is greater or less than it. The answer is an interval (or two), and the zeros of the quadratic mark where the intervals begin and end.

The idea: a parabola changes sign only at its zeros

Consider f(x)=x2−x−6=(x−3)(x+2)f(x) = x^2 - x - 6 = (x - 3)(x + 2). Its zeros are −2-2 and 33. The graph is a parabola opening up, so it dips below the x-axis between the zeros and stays above the x-axis outside them.

y = x² - x - 6 is negative between its zeros and positive outside them.Open in grapher →

So the solution of x2−x−6<0x^2 - x - 6 < 0 is −2<x<3-2 < x < 3, and the solution of x2−x−6>0x^2 - x - 6 > 0 is x<−2x < -2 or x>3x > 3.

This works because a quadratic function is continuous: its graph has no breaks, so it can only change from positive to negative by passing through zero. The zeros cut the number line into pieces, and on each piece the sign never changes.

Solving a quadratic inequality

  1. Move every term to one side, so the other side is 00.
  2. Find the zeros of the quadratic (factor, or use the quadratic formula).
  3. Use the direction of the parabola, or test one value in each interval, to see where the quadratic is positive and where it is negative.
  4. Write the intervals that satisfy the inequality. Include the zeros for ≤\le or ≥\ge; leave them out for << or >>.

For a parabola that opens up (a>0a > 0) with two zeros, the pattern is always the same: negative between the zeros, positive outside. For a<0a < 0 it's the reverse.

Worked example: Outside the zeros

Solve x2+2x≥8x^2 + 2x \ge 8.

Move everything to one side: x2+2x−8≥0x^2 + 2x - 8 \ge 0. Factor: (x+4)(x−2)≥0(x + 4)(x - 2) \ge 0, so the zeros are −4-4 and 22.

The parabola opens up, so it is positive outside the zeros. The inequality allows equality, so the zeros are included:

x≤−4orx≥2.x \le -4 \quad\text{or}\quad x \ge 2.
−7−6−5−4−3−2−1012345

Test points and negative leading coefficients

You don't have to picture the graph. Test one convenient number from each interval in the original inequality, and the sign you get holds for the whole interval.

Worked example: A test-point table

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

Find the zeros of −2x2+5x+3-2x^2 + 5x + 3. Multiply by −1-1 to make factoring easier (this only changes the sign of the expression, not where it is zero): 2x2−5x−3=(2x+1)(x−3)2x^2 - 5x - 3 = (2x + 1)(x - 3). The zeros are −12-\dfrac{1}{2} and 33.

intervaltest value−2x2+5x+3-2x^2 + 5x + 3sign
x<−12x < -\frac{1}{2}x=−1x = -1−2−5+3=−4-2 - 5 + 3 = -4negative
−12<x<3-\frac{1}{2} < x < 3x=0x = 033positive
x>3x > 3x=4x = 4−32+20+3=−9-32 + 20 + 3 = -9negative

The expression is positive only in the middle interval, so the solution is −12<x<3-\dfrac{1}{2} < x < 3. That matches the picture: a=−2<0a = -2 < 0 means the parabola opens down, so it is above the axis between its zeros.

Common mistake

If you multiply or divide an inequality by a negative number, you must reverse the inequality sign. In the example above, rewriting −2x2+5x+3>0-2x^2 + 5x + 3 > 0 as 2x2−5x−3>02x^2 - 5x - 3 > 0 (without flipping) would give exactly the wrong intervals. Either keep the original expression and use test points, or flip the sign: 2x2−5x−3<02x^2 - 5x - 3 < 0.

When there are no real zeros

If the discriminant is negative, the parabola never touches the x-axis, so the quadratic has the same sign for every xx. Check its sign at any one point to see which.

For example, x2+2x+5x^2 + 2x + 5 has D=4−20=−16<0D = 4 - 20 = -16 < 0, and at x=0x = 0 it equals 5>05 > 0. So x2+2x+5x^2 + 2x + 5 is always positive:

  • x2+2x+5>0x^2 + 2x + 5 > 0 is true for all real numbers.
  • x2+2x+5<0x^2 + 2x + 5 < 0 has no solution.

A perfect square behaves similarly. (x−3)2≥0(x - 3)^2 \ge 0 for all xx, so (x−3)2<0(x - 3)^2 < 0 has no solution, and (x−3)2≤0(x - 3)^2 \le 0 has only the solution x=3x = 3.

An application

Worked example: Height above a target

A ball's height in feet after tt seconds is h(t)=−16t2+48t+4h(t) = -16t^2 + 48t + 4. During what time interval is the ball higher than 3636 feet?

Solve −16t2+48t+4>36-16t^2 + 48t + 4 > 36:

−16t2+48t−32>0t2−3t+2<0(divide by −16 and flip)(t−1)(t−2)<0\begin{aligned} -16t^2 + 48t - 32 &> 0 \\ t^2 - 3t + 2 &< 0 \qquad \text{(divide by } -16 \text{ and flip)} \\ (t - 1)(t - 2) &< 0 \end{aligned}

The parabola y=t2−3t+2y = t^2 - 3t + 2 opens up, so it is negative between its zeros. The ball is above 3636 feet for 1<t<21 < t < 2, a span of 11 second.

Inequalities in two variables

An inequality such as y>x2−4y > x^2 - 4 describes a region of the plane. Graph the boundary parabola y=x2−4y = x^2 - 4, dashed for << or >> and solid for ≤\le or ≥\ge, then shade the side that satisfies the inequality. For y>…y > \ldots that's the region above (inside) the parabola.

y > x² - 4: the dashed boundary is not included, and the shading lies above the parabola. (0, 0) is a solution; (3, 0) is not.Open in grapher →

To check which side to shade, test a point not on the boundary. For (0,0)(0, 0): is 0>02−4=−40 > 0^2 - 4 = -4? Yes, so the region containing the origin is shaded. For (3,0)(3, 0): is 0>9−4=50 > 9 - 4 = 5? No.

Tip

A quick sanity check on any one-variable answer: pick a number your answer says is a solution and one it says is not, and substitute both into the original inequality. One should make it true and the other false.

Practice

Practice 1

Solve x2−9>0x^2 - 9 > 0.

Enter an inequality, e.g. x >= 4, -2 < x <= 3, or x < 1 or x > 5

Practice 2

Solve x2−5x+4≤0x^2 - 5x + 4 \le 0.

Enter an inequality, e.g. x >= 4, -2 < x <= 3, or x < 1 or x > 5

Practice 3

Solve x2+3x≥10x^2 + 3x \ge 10.

Enter an inequality, e.g. x >= 4, -2 < x <= 3, or x < 1 or x > 5

Practice 4

Solve −x2+2x+15>0-x^2 + 2x + 15 > 0.

Enter an inequality, e.g. x >= 4, -2 < x <= 3, or x < 1 or x > 5

Practice 5

Solve 3x2−7x−6<03x^2 - 7x - 6 < 0.

Enter an inequality, e.g. x >= 4, -2 < x <= 3, or x < 1 or x > 5

Practice 6

What is the solution of x2−4x+7<0x^2 - 4x + 7 < 0?

Practice 7

Which point lies in the solution region of y>x2−2x−3y > x^2 - 2x - 3?

Practice 8

A ball's height in feet after tt seconds is h(t)=−16t2+64t+3h(t) = -16t^2 + 64t + 3. For how many seconds is the ball higher than 5151 feet?

Enter a number. Fractions like 3/4 and sqrt(2) are OK.