Sub topic 8
Rational Functions and Their Domain
Assume you can factor polynomials, solve linear and quadratic equations, use function notation, and plot points on the coordinate plane. This chapter uses those skills to determine where a rational function is defined.
What Is a Rational Function?
A rational function is a function written as a ratio of two polynomials:
\[ f(x)=\frac{p(x)}{q(x)} \]
Here, \(p(x)\) is the numerator polynomial and \(q(x)\) is the denominator polynomial. The denominator cannot equal zero because division by zero is undefined.
The domain of a function is the set of all allowed input values. For a rational function, begin with all real numbers, then remove every value that makes the original denominator zero.
For example,
\[ f(x)=\frac{x+2}{x^2-9} \]
Factor the denominator:
\[ x^2-9=(x-3)(x+3) \]
The denominator is zero when \(x=3\) or \(x=-3\). Therefore,
\[ \text{domain of } f=\{x\in\mathbb R\mid x\ne -3,\ x\ne 3\} \]
In interval notation, this is
\[ (-\infty,-3)\cup(-3,3)\cup(3,\infty) \]
Finding the Domain
Use this process:
- Identify the original denominator.
- Factor it if necessary.
- Set the denominator equal to zero.
- Solve for the excluded values.
- State the domain using set-builder or interval notation.
| Function | Denominator zeros | Domain |
|---|---|---|
| \(\frac{x+1}{x-4}\) | \(4\) | \(x\ne4\) |
| \(\frac{2x}{x^2+1}\) | None over the reals | All real numbers |
| \(\frac{x-5}{(x+2)(x-1)}\) | \(-2,1\) | \(x\ne-2,1\) |
A denominator such as \(x^2+1\) has no real zeros because \(x^2\ge0\), so \(x^2+1>0\) for every real \(x\).
Original Form and Simplified Form
The domain comes from the original formula, before cancelling factors. Consider
\[ f(x)=\frac{x^2-1}{x-1} \]
Factoring gives
\[ f(x)=\frac{(x-1)(x+1)}{x-1} \]
For \(x\ne1\), this simplifies to \(f(x)=x+1\). However, the original denominator is zero at \(x=1\), so \(x=1\) remains excluded from the domain.
The simplified rule describes the function's values where the original function exists. It does not restore an excluded input.
A computer algebra system can help factor or simplify, but it may display only the reduced formula. Record excluded values separately.
from sympy import symbols, cancel
x = symbols("x")
f = (x**2 - 1) / (x - 1)
print(cancel(f)) # x + 1
print("Excluded value: x = 1")The function has domain \(x\ne1\), even though its simplified rule is \(x+1\).
Exercise
Find the domain of f(x) = (x + 4)/(x^2 - 5x + 6).
Show answer
Factor the denominator: x^2 - 5x + 6 = (x - 2)(x - 3). Exclude x = 2 and x = 3, so the domain is (-∞, 2) ∪ (2, 3) ∪ (3, ∞).