Rational Function

Definitionnoun

What is a rational function?

A rational function is a function that can be written as a fraction of two polynomials, f(x) = p(x)q(x), where q(x) is not the zero polynomial. It is undefined wherever q(x) = 0, so its graph often has vertical asymptotes or holes. Examples: f(x) = 1x and g(x) = x + 2x − 5.

In Spanish
función racional
Also called
ratio of polynomials, polynomial fraction function
Grade level
Algebra 2
Algebra 2PrecalculusCCSS HSF-IF.C.7.dCCSS HSA-APR.D.6SATACTACCUPLACERAP

Rational Function in a picture

Features of a rational functionGraph of f(x) = (x + 1)(x – 3) over (x – 1)(x + 1). It has a hole at (-1, 2), a vertical asymptote x = 1, a horizontal asymptote y = 1, a zero at x = 3 and a y-intercept at 3.−3−2−112345−3−2−112345xyhole (−1, 2)zero x = 3y-int 3x = 1y = 1f(x) = (x + 1)(x − 3) ÷ ((x − 1)(x + 1))
After factoring, x + 1 cancels and leaves a hole at x = −1. The remaining denominator gives the vertical asymptote x = 1, the numerator gives the zero x = 3, and equal degrees give y = 1.

Formal definition and notation

A rational function is a function of the form f(x) = p(x)q(x), where p and q are polynomials and q is not the zero polynomial. Its domain is every real number x with q(x) ≠ 0. After common factors are cancelled, zeros of the numerator are x-intercepts, zeros of the denominator are vertical asymptotes, and zeros of cancelled factors are holes.

Symbol Read it as Meaning
p(x)q(x) p of x over q of x a ratio of two polynomials
q(x) ≠ 0 q of x is not zero the domain restriction
x ≠ a x is not equal to a an excluded value of the domain

Key facts

  • Every polynomial is a rational function (its denominator is 1), but 1x is not a polynomial.
  • The domain excludes every value that makes the denominator 0, before cancelling.
  • The parent rational function y = 1x has two branches and the asymptotes x = 0 and y = 0.
  • Horizontal asymptote rule: bottom-heavy gives y = 0; equal degrees give the ratio of leading coefficients.
  • Rational functions model rates and averages: average cost 500 + 4xx, time dr, work problems.

Reading a rational function

Reading a rational function
f(x) = p(x)q(x), factored and simplified
zeros of p
x-intercepts (where f(x) = 0)
zeros of q
vertical asymptotes
cancelled factors
holes in the graph
degrees of p and q
the horizontal or slant asymptote

Always factor first. You cannot read asymptotes and holes correctly until common factors are found.

Rational Function examples, step by step

Example 1: Domain

Warm-up

Find the domain of f(x) = x + 5x − 4.

  1. Set the denominator equal to 0: x − 4 = 0, so x = 4.
  2. Every other real number is allowed.

Answer: The domain is all real numbers except 4: x ≠ 4.

Example 2: Find every feature

Core

For f(x) = x2 − 1x2 + x − 2, find the hole, the vertical asymptote, the horizontal asymptote and the zero.

  1. Factor: f(x) = (x − 1)(x + 1)(x + 2)(x − 1).
  2. x − 1 cancels: hole at x = 1, where the simplified x + 1x + 2 gives 23. The hole is ( 1, 23 ).
  3. The remaining denominator gives the vertical asymptote x = −2.
  4. Equal degrees: y = 11 = 1. The zero comes from x + 1 = 0: x = −1.

Answer: Hole at (1, 2/3), vertical asymptote x = -2, horizontal asymptote y = 1, zero at x = -1.

Example 3: Average cost

Test-style

Making x shirts costs 500 dollars for setup plus 4 dollars per shirt, so the average cost per shirt is A(x) = 500 + 4xx. How many shirts bring the average cost down to 5 dollars?

  1. Set 500 + 4xx = 5.
  2. Multiply by x: 500 + 4x = 5x.
  3. Solve: x = 500.
  4. The horizontal asymptote y = 4 shows the average can approach, but never reach, 4 dollars.

Answer: 500 shirts bring the average cost to 5 dollars.

Common mistakes

✗ MistakeDomain of x − 2x2 − 4: simplify to 1x + 2, so only x ≠ −2.
✓ InsteadThe domain excludes both x = 2 and x = −2.

The original function is undefined at x = 2. Cancelling does not put that point back; it becomes a hole.

✗ MistakeZeros of x − 3x + 1 come from the denominator: x = −1.
✓ InsteadThe zero is x = 3, from the numerator.

A fraction is 0 when its numerator is 0 and its denominator is not. A zero denominator makes the function undefined.

✗ Mistakef(x) = √xx + 1 is a rational function.
✓ InsteadIt is not, because √x is not a polynomial.

Both the numerator and the denominator must be polynomials, with whole-number exponents on x.

Not to be confused with

Rational Functionvs.Rational number

A rational number is a ratio of two integers, like 34. A rational function is a ratio of two polynomials, like x + 3x − 4.

Rational Functionvs.Rational expression

A rational expression is the fraction itself, such as x + 1x − 2. A rational function uses that expression as a rule, f(x) = x + 1x − 2, and has a graph.

Rational Functionvs.Radical function

A radical function has the variable under a root, like √x − 1. A rational function has it in a fraction of polynomials.

Quick check: 3 questions

Question 1 of 3

Which is a rational function?

Show answer and explanation

Answer: C. x2 + 1x − 7 is a ratio of two polynomials. 2x is exponential, √x is a radical and |x − 7| is an absolute value, none of which is a polynomial.

Question 2 of 3

What is the domain of g(x) = xx2 − 4x?

Show answer and explanation

Answer: A. x2 − 4x = x(x − 4) is 0 at 0 and 4, so both are excluded, even though x cancels and leaves a hole at 0. “Except 4” forgets the cancelled factor.

Question 3 of 3

Where is the zero of h(x) = 2x − 6x + 3?

Show answer and explanation

Answer: B. Set the numerator to 0: 2x − 6 = 0, x = 3. x = −3 is the vertical asymptote, not a zero; 2 is the horizontal asymptote value.

Rational Function: frequently asked questions

How do you know if a function is rational?

Check whether it can be written as one polynomial divided by another. 3x2 − 1x + 4 is rational. A function with x under a root, in an exponent or inside an absolute value is not. Every polynomial counts as rational because you can divide it by 1, but the interesting cases have x in the denominator.

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

Both come from zeros of the denominator. If the factor also appears in the numerator and cancels, the graph has a hole: one missing point. If it does not cancel, the graph shoots off toward infinity along a vertical asymptote. In (x − 1)(x + 2)(x − 1)(x − 4), x = 1 is a hole and x = 4 is an asymptote.

What does the graph of a rational function look like?

It usually comes in separate pieces, called branches, split by vertical asymptotes. Far to the left and right it levels off toward a horizontal asymptote or follows a slant line. The parent graph y = 1x has two branches, one in quadrant I and one in quadrant III, approaching both axes without touching them.

Practice and tools

Sources

  1. Common Core State Standards, High School Functions, Interpreting Functions (HSF-IF.C.7.d)
  2. Common Core State Standards, High School Algebra, Arithmetic with Polynomials and Rational Expressions (HSA-APR.D.6, D.7)
  3. OpenStax, College Algebra 2e, 5.6 Rational Functions

Updated November 2026·Reviewed by the Effortless Math team·Standards: CCSS HSF-IF.C.7.d, CCSS HSA-APR.D.6

Cite this entry

Effortless Math Team. “Rational Function.” Effortless Math Dictionary. Updated November 2026. https://www.effortlessmath.com/math-dictionary/rational-function/

Flashcard

TermRational Functionf(x) = p(x)q(x)
DefinitionA function that is a fraction of two polynomials. f(x) = x + 2x − 5 is undefined at 5, where it has a vertical asymptote.
Study the full deck

Browse all terms in the Math Dictionary · More functions terms · Random term