Sub topic 15
Rational inequalities and sign charts
A rational inequality compares a rational expression to a number or another expression using <, ≤, > or ≥. The tool for solving it is a sign chart, which records where the expression is positive, negative, zero or undefined.
This chapter assumes you can factor polynomials, solve linear and quadratic equations, combine rational expressions over a least common denominator, and write interval notation. You should also know how to find zeros and vertical asymptotes of a rational function.
Why you cannot just multiply through
With an equation you can clear denominators. With an inequality you cannot do this directly. Multiplying both sides by a negative number reverses the inequality, and the sign of x - 3 depends on x. You would have to split into cases, one for each sign of the denominator.
The standard method avoids cases. Move everything to one side, compare to zero, and study the sign of a single fraction.
Key fact: where a sign can change
A rational expression can change sign only at a zero of the numerator or at a value where the denominator is zero. Between two such values the sign is constant, because a sign change would require passing through zero or through an undefined point. Those values are called critical values.
The method
The endpoint rule has two parts:
- A numerator zero makes the fraction equal to 0. It is included only for
≤or≥. - A denominator zero makes the fraction undefined. It is never included, even for
≤or≥.
Worked example 1: already compared to zero
Solve (x - 1)/(x + 2) ≥ 0.
The critical values are x = 1 (numerator) and x = -2 (denominator). They split the number line into three intervals.
| Interval | Test point | Sign of `x - 1` | Sign of `x + 2` | Sign of fraction |
|---|---|---|---|---|
| `x < -2` | `-3` | negative | negative | positive |
| `-2 < x < 1` | `0` | negative | positive | negative |
| `x > 1` | `2` | positive | positive | positive |
We want the fraction to be at least 0, so we take the positive intervals. We include x = 1 because the fraction equals 0 there. We exclude x = -2 because the fraction is undefined there.
The solution is (-∞, -2) ∪ [1, ∞).
Worked example 2: a number on the right side
Solve (x + 1)/(x - 3) < 2.
A common mistake is to multiply both sides by x - 3. Instead, subtract 2 and combine:
(x + 1)/(x - 3) - 2 = (x + 1 - 2(x - 3))/(x - 3) = (7 - x)/(x - 3)
So the problem becomes (7 - x)/(x - 3) < 0. The critical values are 3 and 7.
| Interval | Test point | Sign of `7 - x` | Sign of `x - 3` | Sign of fraction |
|---|---|---|---|---|
| `x < 3` | `2` | positive | negative | negative |
| `3 < x < 7` | `5` | positive | positive | positive |
| `x > 7` | `8` | negative | positive | negative |
We want negative values and the inequality is strict, so no endpoints are included. The solution is (-∞, 3) ∪ (7, ∞).
You can check this with test points in the original inequality. At x = 5, (5 + 1)/(5 - 3) = 3, which is not less than 2, so 5 is correctly excluded. At x = 10, 11/7 ≈ 1.57, which is less than 2, so 10 is correctly included.
Worked example 3: repeated factors
Solve (x - 2)²/(x + 1) ≤ 0.
The critical values are 2 and -1. The factor (x - 2)² is never negative, so the sign does not change at x = 2. A factor with even multiplicity touches zero without changing sign. A factor with odd multiplicity changes sign.
| Interval | Test point | Sign of fraction |
|---|---|---|
| `x < -1` | `-2` | negative |
| `-1 < x < 2` | `0` | positive |
| `x > 2` | `3` | positive |
The negative interval is x < -1. The inequality is non-strict, and the fraction equals 0 at x = 2, so that single point also belongs to the solution. The solution is (-∞, -1) ∪ {2}.
Checking with a computer algebra system
SymPy can solve the inequality directly. Declare the symbol as real, because inequalities only make sense over the real numbers.
from sympy import symbols, solve_univariate_inequality
x = symbols('x', real=True)
print(solve_univariate_inequality((x - 1)/(x + 2) >= 0, x, relational=False))
# Union(Interval.open(-oo, -2), Interval(1, oo))
print(solve_univariate_inequality((x + 1)/(x - 3) < 2, x, relational=False))
# Union(Interval.open(-oo, 3), Interval.open(7, oo))To mirror the hand method, build the sign chart yourself. This code finds the critical values and evaluates the sign at one point in each interval.
from sympy import symbols, together, fraction, solve, sign
x = symbols('x', real=True)
expr = (x + 1)/(x - 3) - 2
f = together(expr)
num, den = fraction(f)
crit = sorted(solve(num, x) + solve(den, x)) # [3, 7]
points = [crit[0] - 1]
points += [(a + b) / 2 for a, b in zip(crit, crit[1:])]
points += [crit[-1] + 1]
for p in points:
print(p, sign(f.subs(x, p)))
# 2 -1
# 5 1
# 8 -1The signs match the table in example 2: negative, positive, negative.
Common errors
- Multiplying by a variable expression. If
x - 3is negative, the inequality reverses. Subtract and combine instead. - Including a denominator zero. A bracket next to a value that makes the denominator zero is always wrong.
- Dropping a repeated factor's effect. An even-multiplicity zero does not change the sign, but it can still be a solution point when the inequality is non-strict.
- Testing only one interval. Signs often alternate, but not always. Test every interval.
- Forgetting the real-number domain. An irreducible quadratic such as
x² + 1has no real zeros, so it adds no critical value. Its sign is constant, so you can drop it after noting that it is positive.
Connection to graphs
A sign chart is the graph's sign information in table form. The solution of f(x) > 0 is the set of x-values where the graph lies above the x-axis. The critical values are the x-intercepts and vertical asymptotes, plus any hole positions you removed by cancelling.
Exercise
Solve (x + 3)/(x - 1) ≤ 0 and give the answer in interval notation.
Show answer
The critical values are -3 (numerator) and 1 (denominator). For x < -3 the fraction is positive (negative over negative). For -3 < x < 1 it is negative (positive over negative). For x > 1 it is positive. We want negative or zero. Include -3 because the fraction is 0 there, and exclude 1 because it is undefined there. The solution is [-3, 1).
Exercise
Solve x/(x - 2) > 1. Why is multiplying both sides by x - 2 not a safe first step?
Show answer
Subtract 1 and combine: x/(x - 2) - 1 = 2/(x - 2). We need 2/(x - 2) > 0. The numerator is always positive, so we need x - 2 > 0, which gives x > 2, or (2, ∞). Multiplying by x - 2 is unsafe because x - 2 is negative when x < 2, which would reverse the inequality, so you would need two separate cases.