Sub topic 14
Putting It Together: Graphing a Rational Function
Assume you can factor polynomials, solve equations, evaluate functions, and identify intercepts, holes, and asymptotes. To graph a rational function, use its factored form to locate important features before plotting points.
A rational function has the form
\[ f(x)=\frac{P(x)}{Q(x)}, \qquad Q(x)\ne 0. \]
The denominator determines excluded \(x\)-values. A factor that cancels creates a hole. A remaining denominator zero creates a vertical asymptote.
A systematic graphing process
Use this order:
- Factor the numerator and denominator completely.
- Record every zero of the original denominator. These values are excluded from the domain.
- Cancel common factors only to simplify the formula. Mark each cancelled denominator zero as a hole.
- Find the \(x\)-intercepts from the zeros of the simplified numerator.
- Find the \(y\)-intercept by calculating \(f(0)\), if \(x=0\) is in the domain.
- Find vertical asymptotes from uncancelled denominator zeros.
- Compare the degrees of the numerator and denominator to find horizontal or slant asymptotes.
- Plot a few test points in each interval formed by the intercepts and vertical asymptotes.
- Draw each branch so it approaches the correct asymptotes.
Consider
\[ f(x)=\frac{(x+1)(x-3)}{(x-2)(x+2)}. \]
There are no common factors, so there are no holes.
| Feature | Calculation | Result |
|---|---|---|
| Domain exclusions | \((x-2)(x+2)=0\) | \(x=-2,2\) |
| \(x\)-intercepts | \((x+1)(x-3)=0\) | \((-1,0),(3,0)\) |
| \(y\)-intercept | \(f(0)=3/4\) | \((0,3/4)\) |
| Vertical asymptotes | Uncancelled denominator zeros | \(x=-2,\ x=2\) |
| Horizontal asymptote | Equal degrees; leading coefficient ratio \(1/1\) | \(y=1\) |
The vertical asymptotes divide the coordinate plane into three regions:
\[ (-\infty,-2),\qquad (-2,2),\qquad (2,\infty). \]
Choose one test value in each region. For example,
\[ f(-3)=\frac{12}{5},\qquad f(0)=\frac34,\qquad f(4)=\frac{5}{12}. \]
These points help place the branches. The graph approaches \(x=-2\) and \(x=2\) without crossing them. As \(x\) becomes very large or very negative, the graph approaches \(y=1\). It may cross a horizontal asymptote, so \(y=1\) is a guide, not a forbidden line.
A computer algebra system can verify the key values, but it does not replace the domain check.
from sympy import symbols, factor, limit, oo
x = symbols("x")
f = (x + 1) * (x - 3) / ((x - 2) * (x + 2))
print(factor(f))
print("f(0) =", f.subs(x, 0))
print("right limit at x=2 =", limit(f, x, 2, dir="+"))
print("end behavior =", limit(f, x, oo))Exercise
For \(g(x)=\frac{(x-4)(x+2)}{(x-1)(x+3)}\), identify the intercepts, vertical asymptotes, and horizontal asymptote.
Show answer
The \(x\)-intercepts are \((4,0)\) and \((-2,0)\). The \(y\)-intercept is \((0,8/3)\). The vertical asymptotes are \(x=1\) and \(x=-3\). The horizontal asymptote is \(y=1\).