MathematicsAlgebraAdvanced

Rational Function

Also known as:fractional functionalgebraic rational function

A rational function is a function that can be expressed as the ratio of two polynomials, f(x) = P(x)/Q(x), where Q(x) ≠ 0. Its domain excludes all values of x that make the denominator zero, and its graph exhibits vertical asymptotes at these excluded values and may have horizontal or oblique asymptotes determined by the degrees of P and Q. Rational functions model phenomena such as average cost, concentration over time in pharmacokinetics, and electrical impedance in circuits.

Key Formula

f(x) = P(x)/Q(x), with degree m and degree n

LaTeX: f(x) = \frac{P(x)}{Q(x)},\quad \deg(P) = m,\; \deg(Q) = n

SymbolMeaningUnit
f(x)rational function valuedimensionless
P(x)numerator polynomial of degree mdimensionless
Q(x)denominator polynomial of degree n, Q(x)≠0dimensionless
m, ndegrees of numerator and denominator respectivelydimensionless

Worked Example

Problem

Find the domain, vertical asymptotes, and horizontal asymptote of f(x) = (2x² + 1)/(x² − 4).

Solution

Step 1 (Domain): Set denominator ≠ 0: x² − 4 ≠ 0 → x ≠ ±2. Domain: (−∞,−2)∪(−2,2)∪(2,∞). Step 2 (Vertical Asymptotes): x = 2 and x = −2 (denominator is 0 there, numerator ≠ 0). Step 3 (Horizontal Asymptote): Both P and Q have degree 2. Leading coefficients: 2 and 1. Horizontal asymptote: y = 2/1 = 2. Step 4: The function approaches y = 2 as x → ±∞.

Answer

Domain: x ≠ ±2; Vertical asymptotes: x = 2 and x = −2; Horizontal asymptote: y = 2

Horizontal Asymptote Rules for Rational Functions f(x) = P(x)/Q(x)

ConditionRelationshipHorizontal AsymptoteExample
deg P < deg Qm < ny = 01/(x²+1) → y=0
deg P = deg Qm = ny = leading coeff ratio(2x)/(3x) → y=2/3
deg P > deg Qm > nNone (oblique or none)(x²)/(x+1) → oblique
deg P = deg Q + 1m = n+1Oblique asymptote(x²+1)/x → y=x

Interactive Tools

Desmos

Graph rational functions to observe asymptotes, holes, and intercepts visually.

Open Tool

Wolfram Alpha

Compute asymptotes, domain, range, and intercepts of rational functions.

Open Tool

GeoGebra

Interactive graphing of rational functions with dynamic parameter sliders.

Open Tool
Graph of f(x)=1/x, the simplest rational function, showing vertical and horizontal asymptotes

Wikimedia Commons, CC BY-SA

Related Terms

The term "rational function" mirrors "rational number" in that both are expressed as ratios: a rational number is a ratio of integers, and a rational function is a ratio of polynomials. The word "rational" derives from the Latin "ratio," meaning "reckoning" or "ratio." Systematic study of rational functions developed alongside calculus in the 17th century.

algebrafunctionsasymptotesdomainpolynomialscalculus