Sub topic 15
Rational Inequalities and Sign Charts
Prerequisites and the main idea
Assume you can factor polynomials, solve equations, and work with intervals on a number line. A rational inequality compares a rational expression with zero or with another expression, using symbols such as \(<\), \(>\), \(\leq\), or \(\geq\).
First move all terms to one side:
\[ \frac{P(x)}{Q(x)} \geq 0 \]
The sign of the quotient can change only at values that make the numerator zero or the denominator zero. These values are called critical numbers.
- A zero of the numerator may be included when the inequality is \(\leq\) or \(\geq\).
- A zero of the denominator is always excluded because the original expression is undefined.
- A cancelled factor still gives an excluded value if it was present in the original expression.
Building a sign chart
Consider:
\[ \frac{(x-1)(x+2)}{x-3} \geq 0 \]
The critical numbers are:
\[ x=-2,\quad x=1,\quad x=3 \]
They divide the number line into four intervals. Choose one test value from each interval and determine the sign of every factor.
| Interval | Sign of quotient | Included? |
|---|---|---|
| \((-\infty,-2)\) | negative | No |
| \((-2,1)\) | positive | Yes |
| \((1,3)\) | negative | No |
| \((3,\infty)\) | positive | Yes |
At \(x=-2\) and \(x=1\), the numerator is zero, so these values satisfy the non-strict inequality. At \(x=3\), the denominator is zero, so it must be excluded.
Therefore:
\[ \boxed{[-2,1]\cup(3,\infty)} \]
Reliable solving procedure
- Write the inequality as one rational expression compared with zero.
- Factor the numerator and denominator completely.
- Find all numerator and denominator zeros.
- Mark the critical numbers in increasing order.
- Test the sign on each interval.
- Include or exclude endpoints according to the original inequality.
- Check that denominator zeros are excluded.
Do not multiply both sides by a variable denominator unless its sign is known. The inequality direction reverses when multiplying by a negative quantity. A sign chart avoids this problem.
A factor with an even multiplicity, such as \((x-2)^2\), does not change sign when \(x\) passes through 2. A factor with odd multiplicity usually does change sign.
from sympy import symbols, solve_univariate_inequality
x = symbols("x")
inequality = ((x - 1) * (x + 2)) / (x - 3) >= 0
print(solve_univariate_inequality(inequality, x))Exercise
Solve \(\frac{x+1}{x-2}<0\).
Show answer
The critical numbers are \(-1\) and \(2\). The quotient is negative on \((-1,2)\), so the solution is \((-1,2)\). Both endpoints are excluded: \(-1\) makes the numerator zero, and \(2\) makes the denominator zero.