Sub topic 5
The Wavy Curve Method for Polynomial Inequalities
This chapter assumes you can factorise polynomials, find the roots of a quadratic, and use interval notation, including the difference between open and closed brackets. It also assumes you know the sign rules for multiplying and dividing by negative numbers from the earlier chapters.
The wavy curve method is also called the sign chart method. It solves any inequality of the form P(x) > 0, P(x) < 0, P(x) ≥ 0 or P(x) ≤ 0, where P is a polynomial written as a product of linear factors. It replaces case-by-case sign analysis with one sweep across the number line. In CAT questions it usually takes under a minute once the polynomial is factorised.
Why the Method Works
A polynomial is continuous, so it can change sign only where it equals zero. Between two consecutive roots, every factor keeps its sign, so the whole product keeps its sign. The roots therefore split the number line into intervals, and within each interval P(x) is entirely positive or entirely negative.
The sign changes at a root in only one way. Close to a root r, the factor (x − r)^k is the only factor whose sign depends on which side of r you are on. If k is odd, (x − r)^k changes sign as x crosses r, so P changes sign. If k is even, (x − r)^k stays non-negative on both sides, so P keeps its sign. This single fact is what makes the curve "wavy".
The Procedure
- Move everything to one side so the other side is 0.
- Factorise completely into linear factors and quadratic factors that cannot be split further.
- Make the coefficient of x positive in every linear factor. Rewrite (a − x) as −(x − a) and flip the inequality once for each minus sign you pull out.
- Drop any quadratic factor with a negative discriminant and positive leading coefficient, since it is always positive. Dropping it does not change the sign of P.
- Mark every root on the number line and note its multiplicity.
- Start in the rightmost interval with a + sign. After step 3 the leading coefficient is positive, so P is positive for large x.
- Move left. Flip the sign when you cross a root of odd multiplicity. Keep the sign when you cross a root of even multiplicity.
- Read off the intervals with the sign you need. Include the roots for ≥ or ≤ and exclude them for > or <.
Worked Example 1: Distinct Roots
Solve (x − 1)(x + 2)(x − 4) > 0.
The roots are −2, 1 and 4, each with multiplicity 1. The signs from right to left are:
| Interval | Sign of P(x) |
|---|---|
| (4, ∞) | + |
| (1, 4) | − |
| (−2, 1) | + |
| (−∞, −2) | − |
The inequality is strict, so the roots are excluded. The solution is (−2, 1) ∪ (4, ∞).
Worked Example 2: Repeated Roots
Solve (x − 1)²(x + 3)(x − 2)³ ≤ 0.
The roots are −3 (multiplicity 1), 1 (multiplicity 2) and 2 (multiplicity 3). Odd multiplicity means a sign change, so −3 and 2 both flip the sign. The root 1 does not.
| Interval | Sign | Reason |
|---|---|---|
| (2, ∞) | + | Start |
| (1, 2) | − | Crossed 2, odd |
| (−3, 1) | − | Crossed 1, even, no flip |
| (−∞, −3) | + | Crossed −3, odd |
For ≤ 0 we take the negative intervals plus all roots: (−3, 1) ∪ {1} ∪ (1, 2) together with −3 and 2. That gives [−3, 2].
If the inequality had been strict (< 0), every root would be removed, and the answer would be (−3, 1) ∪ (1, 2). Leaving x = 1 inside a strict answer is one of the most common errors in CAT inequality questions, and it changes integer counts.
Worked Example 3: Negative Coefficients and Irreducible Quadratics
Solve (2 − x)(x² + x + 1)(x + 5) ≥ 0.
The factor x² + x + 1 has discriminant 1 − 4 = −3 < 0 and a positive leading coefficient, so it is always positive. Drop it.
Write (2 − x) = −(x − 2). The inequality becomes −(x − 2)(x + 5) ≥ 0, which is (x − 2)(x + 5) ≤ 0. The roots are −5 and 2, and the signs from the right are +, −, +. The negative interval with endpoints included is [−5, 2].
If you forget step 3 and start with + on the right anyway, you get exactly the complement of the correct answer. A quick check with a large value such as x = 100 catches this: (2 − 100) is negative, so the original expression is negative there.
Checking a Sign Chart in Code
The script below tests one point inside each interval. Use it to check your hand work while you practise.
def sign_chart(f, roots):
roots = sorted(roots)
tests = [roots[0] - 1]
tests += [(a + b) / 2 for a, b in zip(roots, roots[1:])]
tests.append(roots[-1] + 1)
edges = ["-inf"] + roots + ["inf"]
for i, x in enumerate(tests):
sign = "+" if f(x) > 0 else "-"
print(f"({edges[i]}, {edges[i + 1]}): {sign}")
def p(x):
return (x - 1) ** 2 * (x + 3) * (x - 2) ** 3
sign_chart(p, [-3, 1, 2])
# (-inf, -3): +
# (-3, 1): -
# (1, 2): -
# (2, inf): +The output matches the table in Worked Example 2, including the missing flip at x = 1.
Common Errors
| Error | Effect | Fix |
|---|---|---|
| Leaving a factor like (3 − x) as it is | Every sign comes out reversed | Rewrite as −(x − 3) and flip the inequality |
| Flipping at an even root | Wrong intervals on one side of that root | Count the multiplicity before you sweep |
| Dividing both sides by a factor such as (x − 1) | Loses solutions or reverses the inequality on part of the line | Never cancel a variable factor; keep it in the chart |
| Including a double root in a strict answer | One extra point, often one extra integer | Remove every root when the inequality is > or < |
| Missing an isolated root for ≥ or ≤ | One point missing | List all roots and test each one separately |
| Solving P(x) > 5 by charting P(x) | The roots used are the wrong ones | Move the 5 across first, then factorise P(x) − 5 |
Edge Cases Worth Knowing
- A polynomial with no real roots, such as x² + 4, has a single sign everywhere. Then P(x) > 0 holds for all real x and P(x) < 0 has no solution.
- A perfect square such as (x − 3)² ≤ 0 has only the solution x = 3.
- Higher-degree polynomials often reduce through substitution. For example, x⁴ − 5x² + 4 = (x² − 1)(x² − 4), which then splits into four linear factors.
- Rational inequalities use the same chart, but the roots of the denominator are always excluded. The next chapter covers this.
Exercise
Solve x^4 - 5x^2 + 4 < 0.
Show answer
Factorise as (x - 2)(x - 1)(x + 1)(x + 2) < 0. The roots -2, -1, 1, 2 are all simple, so the signs from the right are +, -, +, -, +. The negative intervals give (-2, -1) ∪ (1, 2).
Exercise
Solve (x + 1)^2 (x - 3) ≥ 0.
Show answer
The roots are -1 (even) and 3 (odd). Signs from the right: (3, ∞) is +, (-1, 3) is -, and (-∞, -1) stays -. The positive interval with its endpoint is [3, ∞), and the double root x = -1 makes the expression 0, so it is also included. The solution is {-1} ∪ [3, ∞).
Exercise
Solve (x - 5)(x + 1)(3 - x) > 0 and state how many integers in [-3, 6] satisfy it.
Show answer
Rewrite (3 - x) as -(x - 3), giving (x + 1)(x - 3)(x - 5) < 0. The roots are -1, 3, 5, and the signs from the right are +, -, +, -. The solution is (-∞, -1) ∪ (3, 5). The integers in [-3, 6] that satisfy it are -3, -2 and 4, so there are 3.