Rational Functions

Rational functions connect algebra and analysis, showing up in limits, integration, and partial fractions.

Definition

Rational function

f(x)=P(x)Q(x)f(x) = \dfrac{P(x)}{Q(x)} where P(x)P(x) and Q(x)Q(x) are polynomials and Q(x)≠0Q(x) \neq 0.

SymbolTypePronunciation/NoteMeaning in this article
P(x),Q(x)P(x), Q(x)Mathematical symbolP of x, Q of xNumerator and denominator polynomials
R\mathbb{R}Mathematical symbolReal numbersSet of real numbers being discussed
  • Domain: all xx such that Q(x)≠0Q(x) \neq 0.
  • Zeros: solutions of P(x)=0P(x) = 0 that are not canceled by Q(x)Q(x).
  • Poles (vertical asymptotes): zeros of Q(x)Q(x) that are not canceled by P(x)P(x).

Quick Analysis Checklist

  • Domain: exclude roots of Q(x)Q(x).
  • Intercepts: f(0)f(0) if defined; solve P(x)=0P(x)=0 for xx-intercepts.
  • Asymptotes:
    • Vertical: Q(x)=0Q(x)=0 (after simplification).
    • Horizontal/oblique: compare degrees of PP and QQ; long divide if deg⁡P≥deg⁡Q\deg P \ge \deg Q.
  • End behavior: leading terms decide the growth and sign at infinity.

Examples

Example 1: Domain, asymptotes, and end behavior

Work out the domain of f(x)=1x−2f(x) = \dfrac{1}{x-2}, the vertical and horizontal asymptotes of its graph, and the way the function behaves as xx approaches 22 and as x→±∞x \to \pm\infty.

rational functiondomainvertical asymptotehorizontal asymptote

Approach: For a rational function the domain excludes exactly the zeros of the denominator, and those same points carry the vertical asymptotes as long as the numerator does not vanish there. The horizontal asymptote is read off by comparing the degrees of numerator and denominator.

Steps:

  1. The denominator is x−2x - 2, so ff is undefined at x=2x = 2 and the domain is R∖{2}\mathbb{R} \setminus \{2\}.
  2. At x=2x = 2 the numerator equals 1≠01 \neq 0, so ff is unbounded there and x=2x = 2 is a vertical asymptote.
  3. The numerator has degree 00 and the denominator degree 11, so the numerator degree is smaller and the horizontal asymptote is y=0y = 0.
  4. End behavior: f(x)→−∞f(x) \to -\infty as x→2−x \to 2^- and f(x)→+∞f(x) \to +\infty as x→2+x \to 2^+; as x→+∞x \to +\infty the graph approaches 00 from above, and as x→−∞x \to -\infty it approaches 00 from below.

Answer:

Domain: R∖{2}\mathbb{R} \setminus \{2\}. Vertical asymptote: x=2x = 2. Horizontal asymptote: y=0y = 0.

Example 2: A cancelled factor and the hole it leaves

The expression f(x)=x2−1x−1f(x) = \dfrac{x^2-1}{x-1} looks as if it should equal x+1x+1, yet the original formula has a point missing. Find the domain of ff, describe its graph, and locate the missing point.

rational functionremovable discontinuityfactorization

Approach: Factor numerator and denominator and cancel the common factor only to read the shape of the graph. Keep the domain of the original expression: a cancelled factor leaves a hole in the graph, not a vertical asymptote.

Steps:

  1. Factor the numerator: x2−1=(x−1)(x+1)x^2 - 1 = (x-1)(x+1), so for every x≠1x \neq 1 we get f(x)=(x−1)(x+1)x−1=x+1f(x) = \dfrac{(x-1)(x+1)}{x-1} = x + 1.
  2. The original expression is undefined at x=1x = 1, so the domain is R∖{1}\mathbb{R} \setminus \{1\}.
  3. The graph is the line y=x+1y = x+1 with one point deleted. The deleted point is read from the limit: lim⁡x→1f(x)=1+1=2\lim\limits_{x\to1} f(x) = 1 + 1 = 2, so the hole sits at (1,2)(1, 2).
  4. Because the zero of the denominator at x=1x = 1 is cancelled by the numerator, there is no vertical asymptote there — the discontinuity is removable. Since the numerator has degree 22 and the denominator degree 11, there is no horizontal asymptote either, and the graph follows the line y=x+1y = x+1 itself apart from the deleted point.

Answer:

f(x)=x+1f(x) = x + 1 for every x≠1x \neq 1; the domain is R∖{1}\mathbb{R} \setminus \{1\}, and the graph is the line y=x+1y = x+1 with a removable hole at (1,2)(1, 2).


Exercises

Exercise 1

Find the domain and vertical asymptote of f(x)=2x+3x2−4f(x) = \dfrac{2x+3}{x^2-4}.

rational functiondomainvertical asymptote

Approach:

For a rational function the domain excludes exactly the zeros of the denominator, and those same points are where the vertical asymptotes stand.

Steps:

  1. Factor the denominator: x2−4=(x−2)(x+2)x^2 - 4 = (x-2)(x+2), so the domain excludes x=±2x = \pm 2.
  2. Since the numerator 2x+32x + 3 does not vanish at x=±2x = \pm 2 (it equals 77 and −1-1 respectively), the function really blows up there.
  3. Hence the vertical asymptotes are the lines x=−2x = -2 and x=2x = 2.

Answer:

x2−4=(x−2)(x+2)x^2-4 = (x-2)(x+2) ⇒ domain excludes ±2\pm2. Vertical asymptotes at x=−2x = -2 and x=2x = 2.

Exercise 2

Determine the horizontal or oblique asymptote of f(x)=x2+1x−1f(x) = \dfrac{x^2 + 1}{x - 1}.

rational functionoblique asymptotepolynomial division

Approach:

Divide the numerator by the denominator; the quotient gives the linear part of the function, and the remainder over the denominator tends to zero at infinity, so the quotient is the asymptote.

Steps:

  1. Long divide: x2+1=(x−1)(x+1)+2x^2 + 1 = (x-1)(x+1) + 2.
  2. Therefore f(x)=x+1+2x−1f(x) = x + 1 + \dfrac{2}{x-1}.
  3. As x→±∞x \to \pm\infty the remainder term 2x−1\dfrac{2}{x-1} tends to 00, so the graph approaches the line y=x+1y = x + 1.

Answer:

Long divide: x2+1=(x−1)(x+1)+2x^2 + 1 = (x-1)(x+1) + 2. So f(x)=x+1+2x−1f(x) = x + 1 + \dfrac{2}{x-1} ⇒ oblique asymptote y=x+1y = x + 1.


Summary

Symbols Used in This Article

SymbolTypePronunciation/ExplanationMeaning in This Article
P(x),Q(x)P(x), Q(x)Mathematical symbolP of x, Q of xNumerator and denominator polynomials
deg⁡P\deg PMathematical symboldegree of PThe degree of a polynomial
R\mathbb{R}Mathematical symbolReal numbersThe number set under discussion
x=ax= aMathematical symbolx equals aThe position of a vertical asymptote

Found an issue with this content?

Tell us what could be improved.