1.1 - Solving quadratic inequalities

1.1 - Solving quadratic inequalities

An equation finds the inputs where a quadratic is zero; an inequality asks where it is positive, negative or equal to a boundary. You will use roots to divide the number line into intervals, handle strict and inclusive endpoints and recognise when every real input, or none, satisfies an inequality.

Intervals between roots

If a quadratic is positive at both ends of the number line, must it be positive in the middle? Try x2−x−6=(x+2)(x−3)x^2-x-6=(x+2)(x-3): it is positive at x=−3x=-3 and x=4x=4, but negative at x=0x=0.

The roots −2-2 and 33 divide the number line into three intervals. Within an interval, neither linear factor changes sign, so their product keeps its sign. Choose one test value in each interval, or read the signs of the two factors.

Sign diagram

A sign diagram records whether an expression is positive, zero or negative on the intervals separated by its roots. It identifies whole ranges of inputs, rather than just the roots themselves.

For (x+2)(x−3)(x+2)(x-3), both factors are negative when x<−2x<-2, their signs differ when −2<x<3-2<x<3, and both are positive when x>3x>3. The product therefore has signs positive, negative, positive.

[DIAGRAM: asset_name: Signs between quadratic roots; asset_slug: quadratic-sign-intervals; caption: The roots split the number line into intervals with constant signs, and negating the quadratic reverses those signs; description: Two matching number-line sign diagrams compare x squared minus x minus 6 with minus x squared plus x plus 6. Roots minus 2 and 3 are marked. The first has positive signs outside the roots and negative between; the second has negative outside and positive between. Pale highlighted intervals show the solutions to each expression being greater than zero.]
The roots split the number line into intervals with constant signs, and negating the quadratic reverses those signs

The graph gives the same information: a positive leading coefficient opens upwards; a negative one opens downwards. A sign test also works when the picture is unfamiliar.

Worked example 1: positive outside the roots

Question. Solve x2−x−6>0x^2-x-6>0.

Plan. Factorise, find the boundary roots and test the intervals.

x2−x−6=(x+2)(x−3),x=−2 or 3 at the boundaries.x^2-x-6=(x+2)(x-3), \qquad x=-2\text{ or }3\text{ at the boundaries}.
IntervalTest inputValue of the expressionSign
x<−2x<-2−3-366Positive
−2<x<3-2<x<300−6-6Negative
x>3x>34466Positive

Answer. x<−2x<-2 or x>3x>3. The roots are excluded because zero is not greater than zero.

Check. The factor signs establish the sign throughout each interval, not only at the three test inputs. At the excluded boundaries the expression is zero.

Negate the expression while keeping the same inequality sign. The roots stay fixed, but every interval sign reverses.

Worked example 2: a negative leading coefficient

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

Plan. Use −x2+x+6=−(x+2)(x−3)-x^2+x+6=-(x+2)(x-3) and reverse the signs from the previous diagram.

Intervalx<−2−2<x<3x>3Sign of −x2+x+6−+−\begin{array}{c|ccc} \text{Interval}&x<-2&-2<x<3&x>3\\ \text{Sign of }-x^2+x+6&-&+&- \end{array}

Answer. −2<x<3-2<x<3.

Check. At x=0x=0, the expression is 6>06>0. Outside the roots, for instance at x=4x=4, it is −6<0-6<0. Equivalently, multiplying the original inequality by −1-1 gives x2−x−6<0x^2-x-6<0.

The last check uses the familiar rule that multiplying or dividing an inequality by a negative number reverses its direction.

Watch out

“Positive outside the roots” is not a universal rule: it depends on the leading coefficient. Find or test the sign of the actual expression. Write disjoint intervals with or, rather than an impossible chain such as 3<x<−23<x<-2.

Find the roots first, then decide which interval to keep.

Including the endpoints

At a root, the quadratic equals zero. Include that input when the inequality allows equality, and exclude it when the inequality is strict.

For example, (x+1)(x−4)<0(x+1)(x-4)<0 gives −1<x<4-1<x<4, whereas (x+1)(x−4)≤0(x+1)(x-4)\le0 gives −1≤x≤4-1\le x\le4. The interval signs have not changed; only the treatment of its endpoints has changed.

A repeated root needs special care. For (x−2)2(x-2)^2, the expression is positive on both sides of 22 and zero at 22. It does not change sign at that root: both identical factors change sign together.

Worked example 3: a strict inequality at a repeated root

Question. Solve x2−4x+4<0x^2-4x+4<0.

Plan. Write the expression as a square and compare its possible values with zero.

x2−4x+4=(x−2)2≥0for every real x.x^2-4x+4=(x-2)^2\ge0 \quad\text{for every real }x.

Answer. There are no real solutions.

Check. At the smallest point x=2x=2, the value is 00, which still fails the strict inequality. Every other input gives a positive value.

Change only << to ≤\le. The one boundary input is now allowed.

Worked example 4: including the repeated root

Question. Solve x2−4x+4≤0x^2-4x+4\le0.

Plan. Use the same non-negative square and determine when equality holds.

(x−2)2≤0⟹(x−2)2=0⟹x=2.(x-2)^2\le0 \quad\Longrightarrow\quad (x-2)^2=0 \quad\Longrightarrow\quad x=2.

The first implication follows because the square is also at least zero.

Answer. x=2x=2 only.

Check. Substitution gives 4−8+4=04-8+4=0. If x≠2x\ne2, the square is strictly positive and fails the inequality.

The other two comparisons complete the picture.

InequalitySolution
(x−2)2>0(x-2)^2>0x<2x<2 or x>2x>2
(x−2)2≥0(x-2)^2\ge0All real xx

An inequality can therefore have an interval, two intervals, one isolated value, every real value or no solution. The graph and its equality points decide which occurs.

Watch out

Do not assume that a quadratic changes sign at every root. At a repeated root, a squared factor touches zero and keeps the same sign on both sides.

Use both non-negativity and equality in this check.

All real values or none

Some quadratic expressions never reach zero. Completing the square then gives a direct inequality for every input, with no need to hunt for boundary roots.

For instance, x2+4x+7=(x+2)2+3x^2+4x+7=(x+2)^2+3 is at least 33. Its graph lies wholly above the xx-axis. A negative leading coefficient can instead keep a graph wholly below the axis, as in −(x−2)2−3≤−3-(x-2)^2-3\le-3.

Worked example 5: every real input works

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

Plan. Complete the square and compare the minimum with zero.

x2+4x+7=(x+2)2+3≥3>0.x^2+4x+7=(x+2)^2+3\ge3>0.

Answer. All real values of xx.

Check. The minimum occurs at x=−2x=-2, where the original gives 4−8+7=34-8+7=3. Even this smallest value satisfies the inequality.

Keep the same expression and change the requested sign. Its possible values stay the same.

Worked example 6: no real input works

Question. Solve x2+4x+7<0x^2+4x+7<0.

Plan. Use the same lower bound rather than attempting real factorisation.

x2+4x+7=(x+2)2+3≥3.x^2+4x+7=(x+2)^2+3\ge3.

No value at least 33 can be less than zero.

Answer. There are no real solutions.

Check. Rewriting the required inequality as (x+2)2<−3(x+2)^2<-3 would require a negative real square, which is impossible.

These arguments prove the result for every input. Testing several numbers would suggest a pattern but would not prove a universal claim. Likewise, a calculator's failure to find roots does not by itself decide whether the expression is always positive or always negative.

Problem-solving

First compare the expression with zero. Move terms if needed, then use either real roots and interval signs or a completed square with a fixed sign. Choose the form that makes the whole solution set visible.

The opening quadratic is negative between its two roots even though it is positive on either side. We needed the intervals, not just its end behaviour.

Quick Recap

  • Roots divide the number line into intervals on which the sign is fixed.
  • A negative leading coefficient reverses the signs of the corresponding positive-leading-coefficient quadratic.
  • Include roots for ≤\le or ≥\ge, and exclude them for << or >>.
  • Repeated roots and quadratics with a fixed sign need their own boundary checks.

The opening expression is positive for x<−2x<-2 or x>3x>3, and negative for −2<x<3-2<x<3.