Sub topic 2
What a Rational Expression Is and Which Values Are Excluded
Prerequisites and the basic definition
Assume you can operate on fractions, factor polynomials, solve linear and quadratic equations, and use function notation.
A rational expression is a ratio of two polynomials:
\[ \frac{P(x)}{Q(x)} \]
Here, \(P(x)\) is the numerator, \(Q(x)\) is the denominator, and \(Q(x)\neq 0\). The denominator cannot equal zero because division by zero is undefined.
For example,
\[ \frac{x^2-9}{x^2-5x+6} \]
is a rational expression. Both the numerator and denominator are polynomials.
Finding excluded values
An excluded value is an input that makes the original denominator zero. To find excluded values:
- Set the denominator equal to zero.
- Solve the resulting equation.
- Record those solutions as values excluded from the domain.
Consider
\[ \frac{x^2-9}{x^2-5x+6}. \]
Factor the denominator:
\[ x^2-5x+6=(x-2)(x-3). \]
Set it equal to zero:
\[ (x-2)(x-3)=0. \]
Therefore,
\[ x=2 \quad \text{or} \quad x=3. \]
The domain is all real numbers except 2 and 3. In interval notation, this is
\[ (-\infty,2)\cup(2,3)\cup(3,\infty). \]
| Rational expression | Excluded values |
|---|---|
| \(\frac{x+1}{x^2-4}\) | \(x=-2,\ 2\) |
Why cancellation does not restore a value
The numerator factors as
\[ x^2-9=(x-3)(x+3). \]
So the expression can be simplified:
\[ \frac{(x-3)(x+3)}{(x-2)(x-3)} = \frac{x+3}{x-2}. \]
This equality is valid only when \(x\neq 2,3\). The simplified expression \(\frac{x+3}{x-2}\) is defined at \(x=3\), but the original expression is not defined there. Cancellation changes the formula, not the original domain.
The cancelled value \(x=3\) later appears as a hole in the graph. The uncancelled denominator value \(x=2\) produces a possible vertical asymptote. Those graph features are studied after the domain and expression rules are established.
Checking with a computer algebra system
A symbolic algebra system can solve the denominator equation, but you still need to identify that the equation came from the original denominator.
from sympy import symbols, solve
x = symbols("x")
denominator = x**2 - 5*x + 6
print(solve(denominator, x)) # [2, 3]The output confirms that \(x=2\) and \(x=3\) must be excluded.
Exercise
Find the excluded values of \(\frac{x^2+1}{x^2+x-6}\).
Show answer
Factor the denominator: \(x^2+x-6=(x+3)(x-2)\). Setting each factor to zero gives \(x=-3\) and \(x=2\), so both values are excluded.