Rational Function Examples- Graphs and Analysis
What Is a Rational Function?
A rational function is simply a fraction where both the top and bottom are polynomials. The general form looks like this:
f(x) = P(x) / Q(x)
Where P(x) and Q(x) are polynomials, and Q(x) cannot equal zero. That's it. No trick. If the denominator is zero, the function breaks—there's a hole or asymptote at that point.
Basic Rational Function Examples
Example 1: The Simplest Case
f(x) = 1/x
This is the mother of all rational functions. The graph has two branches—one in the first quadrant, one in the third. It never touches the x-axis or y-axis. The y-axis is a vertical asymptote. The x-axis is a horizontal asymptote.
You need to know this one cold. Every other rational function is built on its behavior.
Example 2: Linear Over Linear
f(x) = (x + 2) / (x - 1)
This shifts the basic 1/x graph. The vertical asymptote moves to x = 1. The horizontal asymptote shifts too—since the degrees are equal, it's y = 1 (the ratio of leading coefficients).
The x-intercept is at x = -2. The y-intercept is at -2.
Example 3: Quadratic Over Linear
f(x) = (x² - 4) / (x - 2)
Factor the numerator: (x - 2)(x + 2). Cancel the (x - 2) with the denominator. But here's the catch—there's still a hole at x = 2, not an asymptote. The function simplifies to x + 2, but it's undefined at x = 2.
This is a common trap on tests. Always check for removable discontinuities before assuming an asymptote.
How to Graph a Rational Function
Here's the step-by-step process. No fluff.
Step 1: Find the Domain
Set the denominator equal to zero. Solve for x. Those values are excluded from the domain. Mark them on your x-axis—you'll either have vertical asymptotes or holes there.
Step 2: Find the Y-Intercept
Plug in x = 0. Calculate f(0). This gives you a point on the graph.
Step 3: Find the X-Intercepts
Set the numerator equal to zero. Solve for x. These are your x-intercepts (unless they were cancelled out in simplification).
Step 4: Identify Asymptotes
Compare the degrees of the numerator and denominator:
- Degree of denominator > degree of numerator: Horizontal asymptote at y = 0
- Degrees are equal: Horizontal asymptote at y = (leading coefficient ratio)
- Degree of numerator > degree of denominator by exactly 1: Slant asymptote—divide to find it
- Degree difference > 1: No horizontal or slant asymptote
Step 5: Test Regions
Pick a test point in each region divided by your vertical asymptotes. Plug it in to see if the function is positive or negative. This tells you which way the branches go.
Asymptotes: The Three Types
Vertical Asymptotes
These occur at x-values where the denominator is zero and the factor doesn't cancel. The graph shoots up to infinity or down to negative infinity as it approaches these lines.
Example: f(x) = 1/(x - 3) has a vertical asymptote at x = 3.
Horizontal Asymptotes
These describe the end behavior—as x goes to positive or negative infinity, the function approaches a constant value.
Example: f(x) = (2x) / (x + 1) has a horizontal asymptote at y = 2.
Slant Asymptotes
When the numerator is exactly one degree higher than the denominator, you get a slant (oblique) asymptote. Use polynomial long division—the quotient (ignoring the remainder) is your slant asymptote.
Example: f(x) = (x² + 2x - 1) / (x - 1)
Divide: x² + 2x - 1 ÷ x - 1 = x + 3 + 2/(x - 1)
The slant asymptote is y = x + 3.
Comparing Rational Function Types
| Type | Form | Asymptote(s) | Example |
|---|---|---|---|
| Constant over linear | f(x) = c/(x - a) | Vertical: x = a Horizontal: y = 0 | 1/(x + 2) |
| Linear over linear | f(x) = (mx + b)/(cx + d) | Vertical: denominator root Horizontal: y = m/c | (2x + 1)/(x - 3) |
| Quadratic over linear | f(x) = (ax² + bx + c)/(dx + e) | Vertical: denominator root Slant: from division | (x² - 4)/(x + 1) |
| Quadratic over quadratic | f(x) = (ax² + bx + c)/(dx² + ex + f) | Vertical: roots of denominator Horizontal: y = a/d | (3x² + 2)/(x² - 9) |
Real-World Rational Function Examples
Cost Per Unit
Imagine a factory with fixed costs of $5000 plus $20 per unit produced. The average cost per unit is:
AC(x) = (5000 + 20x) / x
As production increases, the average cost approaches $20. The horizontal asymptote y = 20 represents the variable cost per unit—the fixed cost gets spread thinner as you make more.
Drug Dosage
The concentration of a drug in the bloodstream over time is often modeled as:
C(t) = (D) / (V) × (1 / (t + 1))
Where D is dosage, V is distribution volume, and t is time. The concentration starts high and decays toward zero as time passes. The horizontal asymptote y = 0 makes sense—eventually the drug is fully cleared.
Physics: Projectile Motion
The trajectory of a projectile under air resistance can produce rational functions. The equation for height given air resistance might look like:
h(t) = (v₀t) / (1 + kt)
Where v₀ is initial velocity and k is a resistance constant. The height approaches a limit as time increases—air resistance slows the projectile indefinitely.
Common Mistakes to Avoid
- Forgetting to simplify before finding asymptotes. Always factor first.
- Confusing holes with asymptotes. If a factor cancels, it's a hole. If it doesn't cancel, it's an asymptote.
- Ignoring the sign test. Branches can go up or down depending on the region. Test each interval.
- Misidentifying slant asymptotes. Only occurs when numerator is exactly one degree higher. Two degrees higher means no asymptote.
Practical How-To: Analyzing Any Rational Function
Let's walk through analyzing this function:
f(x) = (x² - 9) / (x² - 4)
Step 1: Simplify and factor
f(x) = [(x - 3)(x + 3)] / [(x - 2)(x + 2)]
Nothing cancels, so no holes.
Step 2: Find vertical asymptotes
x - 2 = 0 → x = 2
x + 2 = 0 → x = -2
Two vertical asymptotes at x = 2 and x = -2.
Step 3: Find horizontal asymptote
Both numerator and denominator are degree 2. Horizontal asymptote at y = 1/1 = 1.
Step 4: Find intercepts
Y-intercept: f(0) = (-9)/(-4) = 9/4
X-intercepts: x² - 9 = 0 → x = 3, x = -3
Step 5: Test regions
- x < -2: Pick x = -3. f(-3) = 0/5 = 0. Negative region.
- -2 < x < 2: Pick x = 0. f(0) = 9/4 > 0. Positive region.
- 2 < x: Pick x = 3. f(3) = 0/5 = 0. Negative region.
Step 6: Sketch
You now have everything you need. Two asymptotes, intercepts, and sign behavior. Plot points if you want extra precision, but the shape is clear.
End Behavior Patterns
As x → +∞ or x → -∞, the highest-degree terms dominate. This is why comparing degrees tells you about horizontal asymptotes.
For x²/x² type functions, the graph squeezes toward y = 1 from both sides. For x/x² type functions, the graph squeezes toward y = 0.
For x²/x type functions, the branches go up and down diagonally—the slant asymptote takes over.
When Rational Functions Appear in Exams
Most algebra and precalculus exams will ask you to:
- Identify asymptotes from an equation
- Sketch a rational function given its equation
- Write a rational function given its asymptotes and intercepts
- Find the equation from a graph
The key is recognizing patterns. If you see a vertical asymptote at x = 3, the denominator has a factor of (x - 3). If there's a hole at x = 1, both numerator and denominator have (x - 1) factors that cancel.
Build your equation from the features you see. That's the reverse-engineering skill that separates top students from average ones.
Quick Reference: What to Look For
- Zeros in denominator → vertical asymptotes or holes
- Zeros in numerator → x-intercepts (if not cancelled)
- Equal degrees → horizontal asymptote at leading coefficient ratio
- Numerator one degree higher → slant asymptote (divide it out)
- Factor that cancels → hole, not asymptote
- Sign changes between asymptotes → test each region