impera Open Impera

AP Precalculus · Polynomial and rational functions

Rational functions and asymptotes

1What a rational function is

A rational function is a ratio of polynomials:

$$r(x) = \frac{p(x)}{q(x)}, \qquad q(x) \ne 0$$

Its domain excludes every $x$ where $q(x) = 0$. What happens at those points depends on whether the numerator is also zero there.

  • Zeros of $r$: values where $p(x) = 0$ and $q(x) \ne 0$.
  • Vertical asymptote at $x = c$: $q(c) = 0$ and the factor $(x - c)$ does not cancel.
  • Hole (removable discontinuity) at $x = c$: the factor $(x - c)$ cancels completely from the denominator.
Worked example

$r(x) = \frac{x^2 - 4}{x^2 - x - 2} = \frac{(x - 2)(x + 2)}{(x - 2)(x + 1)}$

  1. $(x - 2)$ cancels: hole at $x = 2$. Its $y$-value: $\frac{2 + 2}{2 + 1} = \frac{4}{3}$, so the hole is at $(2, \frac{4}{3})$.
  2. $(x + 1)$ remains: vertical asymptote $x = -1$.
  3. Zero: $x = -2$.
Check yourself

r(x) = (x − 3)/((x − 3)(x + 5)) has:

  • A hole at x = 3 and a vertical asymptote x = −5

  • A zero at x = 3

  • Vertical asymptotes at x = 3 and x = −5

  • A hole at x = −5

Show the answer

A hole at x = 3 and a vertical asymptote x = −5

The cancelled factor gives a hole.

2Horizontal and slant asymptotes

End behaviour is set by the leading terms of numerator (degree $n$) and denominator (degree $m$):

  • $n < m$: horizontal asymptote $y = 0$.
  • $n = m$: horizontal asymptote $y = \frac{\text{leading coefficient of } p}{\text{leading coefficient of } q}$.
  • $n = m + 1$: a slant (oblique) asymptote, found by polynomial division.
  • $n > m + 1$: no linear asymptote; end behaviour follows the quotient polynomial.
Worked example

$\frac{3x^2 + 1}{2x^2 - 5}$ has $y = \frac{3}{2}$.

Worked example

$\frac{x^2 + 3x + 1}{x + 1}$

  1. Divide: $x^2 + 3x + 1 = (x + 1)(x + 2) - 1$.
  2. So $r(x) = x + 2 - \frac{1}{x + 1}$; slant asymptote $y = x + 2$.

A graph can cross a horizontal asymptote (the asymptote describes the ends only), but it never crosses a vertical asymptote.

A rational function approaches its vertical and horizontal asymptotes

Check yourself

The horizontal asymptote of (4x³ − x)/(2x³ + 7) is:

  • y = 0

  • y = 2

  • y = 4

  • None

Show the answer

y = 2

Equal degrees: 4/2.

3Behaviour near a vertical asymptote

Near $x = c$, $r(x)$ grows without bound. To find the sign, test values just left and right of $c$:

  • If the factor $(x - c)$ has odd multiplicity in the denominator, $r$ changes sign across $c$ (one side up, one side down).
  • If it has even multiplicity, both sides go the same way.
Worked example

$r(x) = \frac{x}{(x - 2)^2}$ near $x = 2$.

  1. Numerator near 2 is positive; denominator is positive on both sides.
  2. So $\lim_{x \to 2} r(x) = \infty$ from both sides.
Worked example

$r(x) = \frac{1}{x - 3}$: $\lim_{x \to 3^+} r(x) = \infty$ and $\lim_{x \to 3^-} r(x) = -\infty$.

Check yourself

For r(x) = 1/(x + 4), as x → −4 from the right, r(x) →

  • 0

  • 1/4

  • −∞

  • ∞

Show the answer

∞

x + 4 is small and positive.

4Sketching and inequalities

To sketch a rational function:

  1. Factor numerator and denominator; cancel common factors (note holes).
  2. Find zeros, vertical asymptotes, the horizontal/slant asymptote and the $y$-intercept.
  3. Use a sign chart across all zeros and vertical asymptotes.
Worked example

solve $\frac{x - 1}{x + 2} \ge 0$.

  1. Critical values: $x = 1$ (zero, included) and $x = -2$ (asymptote, excluded).
  2. Sign: positive for $x < -2$, negative on $(-2, 1)$, positive for $x > 1$.
  3. Solution: $x < -2$ or $x \ge 1$.
Check yourself

In solving (x − 1)/(x + 2) ≥ 0, x = −2 is excluded because:

  • It is negative

  • It is a hole

  • The function is undefined there

  • It makes the numerator zero

Show the answer

The function is undefined there

Division by zero.

5Going deeper: a full analysis, holes against asymptotes, and slant asymptotes

A rational function is a quotient of polynomials, $r(x) = \frac{p(x)}{q(x)}$. Factor first: everything follows from the factors.

A routine

  1. Factor numerator and denominator.
  2. Domain: exclude every zero of the original denominator.
  3. Holes: a factor that cancels completely gives a hole; find its y-value from the simplified form.
  4. Vertical asymptotes: zeros of the simplified denominator.
  5. Zeros: zeros of the simplified numerator.
  6. End behavior: compare degrees.
  7. y-intercept: r(0).

End behavior (n = degree of numerator, m = degree of denominator)

  • n < m: horizontal asymptote y = 0.
  • n = m: horizontal asymptote y = ratio of leading coefficients.
  • n = m + 1: slant asymptote (found by division).
  • n > m: no horizontal asymptote; the function grows without bound.
Worked example

$r(x) = \frac{x^2 - 4}{x^2 - x - 2}$.

  1. $\frac{(x - 2)(x + 2)}{(x - 2)(x + 1)}$.
  2. Domain: x ≠ 2, x ≠ −1.
  3. (x − 2) cancels: hole at x = 2. Simplified: $\frac{x + 2}{x + 1}$; at x = 2 this is $\frac{4}{3}$. Hole at $(2, \frac{4}{3})$.
  4. Vertical asymptote: x = −1.
  5. Zero: x = −2.
  6. Equal degrees: horizontal asymptote y = 1.
  7. y-intercept: r(0) = 2.

Worked example (slant asymptote): $r(x) = \frac{x^2 + 1}{x - 1}$.

  1. Divide: $x^2 + 1 = (x - 1)(x + 1) + 2$.
  2. $r(x) = x + 1 + \frac{2}{x - 1}$.
  3. As x → ±∞ the fraction → 0: slant asymptote y = x + 1.
  4. Vertical asymptote x = 1.

Behavior near a vertical asymptote: check the sign on each side. For $\frac{x + 2}{x + 1}$ near x = −1: just right of −1, numerator ≈ 1 and denominator is small positive, so r → +∞; just left, r → −∞.

In limit notation: $\lim_{x \to -1^+} r(x) = \infty$ and $\lim_{x \to -1^-} r(x) = -\infty$; $\lim_{x \to \infty} r(x) = 1$.

Multiplicity in the denominator: an even power, as in $\frac{1}{(x - 3)^2}$, gives the same direction on both sides; an odd power gives opposite directions.

A graph can cross a horizontal asymptote (it describes only the far ends), but never a vertical one.

Worked example (inequality): solve $\frac{x + 2}{x + 1} \ge 0$.

  1. Critical values: −2 (zero) and −1 (undefined).
  2. Test: x < −2 positive; between negative; x > −1 positive.
  3. Solution: x ≤ −2 or x > −1.

In context: average cost $\frac{500 + 3x}{x}$ has horizontal asymptote y = 3: as production grows, the average cost approaches 3 per item.

Common mistakes

  • Calling a cancelled factor a vertical asymptote.
  • Finding zeros before cancelling (x = 2 is not a zero in the first example).
  • Using the ratio of leading coefficients when the degrees differ.
  • Saying a function can never cross a horizontal asymptote.
  • Forgetting to exclude the hole from the domain.
Check yourself

The function f(x) = (x − 3)(x + 1) ÷ ((x − 3)(x − 5)) has:

  • Vertical asymptotes at x = 3 and x = 5

  • Zeros at x = 3 and x = −1

  • A hole at x = 5 and a vertical asymptote at x = 3

  • A hole at x = 3 and a vertical asymptote at x = 5

Show the answer

A hole at x = 3 and a vertical asymptote at x = 5

The factor (x − 3) cancels, leaving a hole; (x − 5) remains in the denominator.

6For top marks

  • Always factor first, then decide hole versus asymptote.
  • Give the coordinates of a hole using the simplified function.
  • Describe end behaviour and asymptotic behaviour with limit notation.
  • Remember that zeros in a sign chart come from the simplified numerator.
Example

"$\lim_{x \to \pm\infty} \frac{2x - 1}{x + 3} = 2$, so $y = 2$ is a horizontal asymptote; $\lim_{x \to -3^+} = -\infty$."

Check yourself

f(x) = (x² − 9)/(x − 3) simplifies to x + 3 with:

  • A hole at (3, 6)

  • A hole at (3, 0)

  • A zero at x = 3

  • A vertical asymptote at x = 3

Show the answer

A hole at (3, 6)

Substitute 3 into x + 3.

Now test yourself

This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.

Practise in Impera