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:

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:

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):

  1. Set the denominator equal to zero: x - 3 = 0
  2. Solve: x = 3
  3. Exclude that value from the domain
  4. Domain is all real numbers except x = 3

For f(x) = (x² - 4)/(x² - 9), set x² - 9 = 0:

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:

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:

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:

  1. Factor both polynomials — This reveals holes and asymptotes
  2. Cancel common factors — Identify holes this way
  3. Set denominator to zero — Find vertical asymptotes and domain restrictions
  4. Compare degrees — Determine horizontal asymptote behavior
  5. Find y-intercept — Plug in x = 0
  6. Find x-intercept(s) — Set numerator equal to zero
  7. 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

When Rational Functions Appear in the Real World

Rational functions show up in:

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.