Rational Function Definition and Examples Explained
What Is a Rational Function?
A rational function is a function that can be written as a ratio of two polynomials. That's the entire definition. You have one polynomial divided by another polynomial. If you can't express it this way, it's not rational.
The general form looks like this:
f(x) = P(x) / Q(x)
Where P(x) and Q(x) are both polynomials, and Q(x) is never zero. That's the only restriction you need to remember. The denominator cannot equal zero because division by zero doesn't exist.
The Anatomy of a Rational Function
Every rational function has two main parts you need to identify immediately:
- Numerator — the polynomial on top
- Denominator — the polynomial on bottom
The denominator is where your restrictions come from. Any x-value that makes the denominator zero is excluded from the domain. That's not optional. You can't plug those numbers in.
Simple Examples That Actually Help
Forget abstract definitions. Here are real examples:
- f(x) = 1/x
- f(x) = (x + 2)/(x - 3)
- f(x) = (x² - 4)/(x² - 9)
- f(x) = (2x + 1)/(x² + x - 6)
That's it. Any function that fits that fraction format is rational. The complexity of the polynomials doesn't change the definition.
Finding the Domain
The domain is everything the function can actually accept. For rational functions, this means excluding whatever makes the denominator zero.
Step-by-Step Process
Take f(x) = (x + 2)/(x - 3):
- Set the denominator equal to zero: x - 3 = 0
- Solve: x = 3
- Exclude that value from the domain
- Domain is all real numbers except x = 3
For f(x) = (x² - 4)/(x² - 9), set x² - 9 = 0:
- (x - 3)(x + 3) = 0
- x = 3 or x = -3
- Domain is all real numbers except x = 3 and x = -3
Do this every time. No exceptions.
Vertical Asymptotes
Vertical asymptotes occur at the values excluded from the domain. They show where the function jumps to infinity.
Rules for vertical asymptotes:
- They exist where the denominator equals zero
- The numerator must not also equal zero at that point
- If both numerator and denominator are zero, you might have a hole instead
Example: f(x) = 1/(x - 2) has a vertical asymptote at x = 2. The function approaches positive or negative infinity as x gets close to 2.
Horizontal Asymptotes
Horizontal asymptotes describe the end behavior. They tell you what the function approaches as x goes to positive or negative infinity.
How to Find Them
Compare the degrees of the numerator and denominator:
| Degree Comparison | Asymptote Location |
|---|---|
| Degree of numerator < Degree of denominator | y = 0 |
| Degrees are equal | y = (leading coefficient ratio) |
| Degree of numerator > Degree of denominator | No horizontal asymptote |
Example: f(x) = (2x)/(3x + 1)
Both numerator and denominator have degree 1. The horizontal asymptote is y = 2/3 (the ratio of leading coefficients).
Holes vs Asymptotes
This confuses people constantly. Here's the difference:
- Hole — Both numerator and denominator share a common factor that cancels
- Vertical asymptote — Factor in the denominator that doesn't cancel
Example: f(x) = (x² - 4)/(x - 2)
Factor the numerator: (x - 2)(x + 2)/(x - 2)
Cancel (x - 2). Now you have f(x) = x + 2, but x ≠ 2.
Result: A hole at x = 2, not a vertical asymptote. The graph has a gap at that single point.
Getting Started: How to Analyze Any Rational Function
Follow this checklist every time:
- Factor both polynomials — This reveals holes and asymptotes
- Cancel common factors — Identify holes this way
- Set denominator to zero — Find vertical asymptotes and domain restrictions
- Compare degrees — Determine horizontal asymptote behavior
- Find y-intercept — Plug in x = 0
- Find x-intercept(s) — Set numerator equal to zero
- Sketch — Plot intercepts, asymptotes, and test points
That's the complete process. No shortcuts, but it's straightforward once you practice.
Graphing a Rational Function: Quick Example
Graph f(x) = (x + 1)/(x - 2)
Step 1: No common factors. No holes.
Step 2: Denominator = 0 when x = 2. Vertical asymptote at x = 2.
Step 3: Both numerator and denominator have degree 1. Horizontal asymptote at y = 1/1 = 1.
Step 4: Y-intercept: f(0) = (0 + 1)/(0 - 2) = -1/2
Step 5: X-intercept: Set numerator = 0. x + 1 = 0, so x = -1.
Now you have enough to sketch. The graph approaches the lines x = 2 and y = 1 as boundaries.
Common Mistakes to Avoid
- Forgetting that denominator zero values are excluded from the domain
- Confusing holes with vertical asymptotes
- Not simplifying before analyzing
- Assuming all rational functions have horizontal asymptotes — they don't
- Forgetting that vertical asymptotes only occur at non-cancelled denominator zeros
When Rational Functions Appear in the Real World
Rational functions show up in:
- Engineering — circuit analysis, control systems
- Physics — inverse square laws, gravitational calculations
- Economics — cost functions, optimization problems
- Biology — population models, enzyme kinetics
Any situation where one quantity varies inversely with another is a rational function waiting to happen.
Bottom Line
A rational function is a ratio of polynomials. Find where the denominator equals zero. That's your domain restriction and vertical asymptote. Compare degrees for horizontal asymptotes. Cancel common factors for holes. That's all you need.