Rational Functions: Definition, Graphs, Asymptotes, and Applications

Rational functions are ratios of polynomials that appear throughout algebra, precalculus, and calculus. This guide covers everything from domain restrictions and asymptotes to graphing strategies and connections to integration.

Definition of Rational Functions

A rational function is a function defined by a rational expression β€” a ratio of two polynomials:

f(x) = \dfrac{P(x)}{Q(x)}

where P(x) and Q(x) are polynomials and Q(x) is not the zero polynomial. The simplest rational function is the reciprocal f(x) = \dfrac{1}{x}, which has a vertical asymptote at x=0 and a horizontal asymptote at y=0. More complex examples include f(x) = \dfrac{x+1}{x-2} and f(x) = \dfrac{x^2-4}{x^2-1}.

Rational functions model many real-world phenomena: concentration as a solution is diluted, average cost per unit produced, population dynamics, and inverse-square laws in physics. They are also central to calculus techniques including partial fractions, limits, and integration.

Domain Restrictions

The domain of a rational function is all real numbers except where the denominator equals zero. To find excluded values, set the denominator equal to zero and solve.

Example: Find the domain of f(x) = \dfrac{x+3}{x^2-4}.

Set the denominator to zero and solve: x^2-4 = (x-2)(x+2) = 0 \implies x = 2, -2.

So the domain is \{x \in \mathbb{R} : x \neq 2, x \neq -2\} β€” all real numbers except 2 and -2. These excluded values correspond to vertical asymptotes or holes in the graph.

Vertical and Horizontal Asymptotes

Vertical Asymptotes

A vertical asymptote occurs at x = a when the denominator is zero at a but the numerator is not, and the factor (x - a) does NOT cancel. The function approaches ±∞ as x β†’ a.

Example: f(x) = \dfrac{1}{x-3} has a vertical asymptote at x = 3. As x β†’ 3⁻, f(x) β†’ -∞; as x β†’ 3⁺, f(x) β†’ +∞.

Horizontal Asymptotes

A horizontal asymptote describes the end behavior β€” the value f(x) approaches as x β†’ ±∞. Compare degrees:

  • Numerator degree < denominator degree: y = 0
  • Numerator degree = denominator degree: y = (ratio of leading coefficients)
  • Numerator degree > denominator degree: no horizontal asymptote (may have oblique asymptote)

Example: f(x) = \dfrac{3x^2+1}{2x^2-5} has equal degrees (both 2), so the horizontal asymptote is the ratio of leading coefficients: y = \dfrac{3}{2}.

Holes (Removable Discontinuities)

A hole (removable discontinuity) occurs when a factor cancels between numerator and denominator. The function is undefined at that x-value, but the limit exists and equals the value of the simplified function.

Example: f(x) = \dfrac{x^2-4}{x-2} = \dfrac{(x-2)(x+2)}{x-2} = x+2 for x \neq 2.

The factor (x-2) cancels, so there's a hole at x = 2. The simplified function gives y = 4 at that point, but the original function is undefined there β€” graph it as an open circle.

Rule of thumb: Always factor the numerator and denominator first. Cancelled factors create holes; remaining denominator zeros create vertical asymptotes.

Want to check your understanding?

Our interaction checks test whether you truly understand a concept β€” not just whether you can repeat a procedure.

Try an interaction check

Graphing Rational Functions

A systematic procedure for graphing any rational function:

  1. Factor the numerator and denominator completely.
  2. Identify holes where factors cancel.
  3. Find vertical asymptotes where the remaining denominator is zero.
  4. Find the horizontal (or oblique) asymptote by comparing degrees.
  5. Find intercepts: x-intercepts (set numerator = 0) and y-intercept (evaluate at x = 0).
  6. Test signs between vertical asymptotes and intercepts to determine which region the graph is in.
  7. Sketch the graph, respecting asymptotes and intercepts.

End behavior note: A rational function always approaches its horizontal asymptote as x β†’ ±∞, but it can cross that asymptote for finite x-values. The asymptote is only a statement about infinity.

Using Long Division to Find Asymptotes

When the numerator degree is exactly one more than the denominator degree, the function has an oblique (slant) asymptote. Find it using polynomial long division β€” the quotient (ignoring the remainder) is the equation of the slant asymptote.

Example: f(x) = \dfrac{x^2+1}{x-1} = x + 1 + \dfrac{2}{x-1}.

The quotient is x + 1, and the remainder 2/(x-1) β†’ 0 as x β†’ ±∞. So the slant asymptote is y = x + 1.

When the numerator degree is 2 or more higher than the denominator, the quotient is a higher-degree polynomial β€” the function approaches that polynomial's curve at infinity (sometimes called a parabolic or cubic asymptote).

Common Misconceptions

Thinking the function cannot cross a horizontal asymptote

A rational function can cross its horizontal asymptote. The asymptote describes end behavior as x approaches infinity, not behavior for all x values.

Confusing holes with vertical asymptotes

Both involve the denominator being zero, but holes occur when the factor cancels. Always factor first before identifying asymptotes.

Practice Problems

For each function, state the domain, vertical asymptotes, horizontal/oblique asymptote, and any holes.

  1. f(x) = \dfrac{2}{x-5}
  2. f(x) = \dfrac{x^2-9}{x^2-4x+3}
  3. f(x) = \dfrac{3x^2+1}{x^2-1}
  4. f(x) = \dfrac{x^2+2x+1}{x+1}
  5. f(x) = \dfrac{x^3-1}{x-1}
  6. f(x) = \dfrac{x}{x^2+4}

Answers

  1. Domain: x β‰  5. Vertical asymptote: x = 5. Horizontal asymptote: y = 0.
  2. Factor: (x-3)(x+3)/((x-3)(x-1)). Hole at x = 3. Vertical asymptote: x = 1. Horizontal asymptote: y = 1.
  3. Domain: x β‰  Β±1. Vertical asymptotes: x = 1, x = -1. Horizontal asymptote: y = 3.
  4. Factor: (x+1)Β²/(x+1) = x+1. Hole at x = -1. The simplified function is linear.
  5. Factor: (x-1)(xΒ²+x+1)/(x-1) = xΒ²+x+1. Hole at x = 1. Simplified function is parabolic.
  6. Domain: all real numbers (denominator never zero). No vertical asymptote. Horizontal asymptote: y = 0.

Related Guides

Frequently Asked Questions

What is a rational function?

A rational function is a ratio of two polynomials, written as f(x) = P(x)/Q(x) where Q(x) is not zero. Examples include 1/x, (x+1)/(x-2), and (xΒ²+1)/(xΒ³-x). They are one of the most important function families in algebra and calculus.

How do you find vertical asymptotes?

Set the denominator equal to zero and solve. The x-values where the denominator is zero (and the numerator is not also zero at that point) are vertical asymptotes. If both numerator and denominator are zero, you may have a hole instead.

What is the difference between a hole and a vertical asymptote?

A hole (removable discontinuity) occurs when a factor cancels between the numerator and denominator. A vertical asymptote occurs when the denominator is zero but the factor does not cancel. At a hole, the function is undefined but has a finite limit; at a vertical asymptote, the function approaches infinity.

How do you find horizontal asymptotes?

Compare the degrees of the numerator and denominator. If the numerator degree is less, the horizontal asymptote is y = 0. If the degrees are equal, the asymptote is the ratio of the leading coefficients. If the numerator degree is greater, there is no horizontal asymptote (but there may be an oblique asymptote).

What is an oblique (slant) asymptote?

An oblique asymptote occurs when the numerator degree is exactly one more than the denominator degree. To find it, perform polynomial long division β€” the quotient (ignoring the remainder) is the equation of the slant asymptote.

Why are rational functions important in calculus?

Rational functions appear frequently in limits, derivatives, and integrals. Techniques like partial fraction decomposition, L'HΓ΄pital's rule, and integration by substitution all involve rational functions. They also model real-world phenomena like rates, concentrations, and inverse-square laws.

About Sense of Study

Sense of Study is a concept-first learning platform that helps students build deep understanding in math, physics, chemistry, statistics, and computational thinking. Our approach maps prerequisite relationships between concepts so students master foundations before moving forward β€” eliminating the gaps that cause confusion later.

With 800+ interconnected concepts and mastery tracking, we help students and parents see exactly where understanding breaks down and how to fix it.

Start Your Concept Mastery Journey

Explore 800+ interconnected concepts with prerequisite maps, mastery tracking, and interaction checks that build real understanding.