Grade 12 IB Math is live, AA and AI · see the IB course

Grade 12 · MHF4U · Advanced Functions

MHF4U: Vertical and Horizontal Asymptotes

An asymptote is a line the graph gets closer and closer to without settling on it. For a rational function, you can read every asymptote off the equation once it is factored.

How It Works

Vertical asymptotes live where the denominator is zero and the numerator is not. So factor first, top and bottom. If a factor cancels, its zero is not an asymptote: it is a hole, a single missing point. Find the hole's yy by plugging its xx into the simplified function.

Horizontal asymptotes describe the ends of the graph, and the degrees decide them:

Numerator degree lower than the denominator's: y=0y = 0.

Degrees equal: yy is the ratio of the leading coefficients. For 6x2−52x2−8\frac{6x^2 - 5}{2x^2 - 8} that is y=62=3y = \frac{6}{2} = 3.

Numerator exactly one degree higher: no horizontal asymptote, but there is an oblique one. Long-divide, and the quotient is the line.

Numerator two or more degrees higher: no horizontal or oblique asymptote.

The reason is that far from the origin only the leading terms matter. In 2x+1x−3\frac{2x + 1}{x - 3}, a huge xx makes it about 2xx=2\frac{2x}{x} = 2.

Two traps. A cancelled factor is a hole, not an asymptote, and it stops being an xx-intercept too. And the graph can cross a horizontal asymptote in the middle; the asymptote only promises what happens at the ends. A vertical asymptote is never crossed, since the function is undefined there.

Tests also run it backwards: give you the asymptotes and intercepts, and ask for the equation. Each vertical asymptote x=ax = a is a factor (x−a)(x - a) on the bottom, each xx-intercept is a factor on top, and the horizontal asymptote fixes the leading coefficient.

5 Worked Examples

Easy first, test level last. Try each one on paper, then open the solution.

  1. Easy

    Find the asymptotes of f(x)=3x−4f(x) = \frac{3}{x - 4}.
    Show solution
    1. The denominator is zero at x=4x = 4, and the numerator 33 is never zero, so x=4x = 4 is a vertical asymptote.
    2. The numerator has degree 0 and the denominator degree 1. Lower on top means y=0y = 0.

    Answer: Vertical asymptote x=4x = 4, horizontal asymptote y=0y = 0.

  2. Easy

    Find the asymptotes of f(x)=2x+1x−3f(x) = \frac{2x + 1}{x - 3}.
    Show solution
    1. The denominator is zero at x=3x = 3, where the numerator is 77, so x=3x = 3 is a vertical asymptote.
    2. Both degrees are 1, so take the ratio of leading coefficients: y=21=2y = \frac{2}{1} = 2.

    Answer: Vertical asymptote x=3x = 3, horizontal asymptote y=2y = 2.

  3. Medium

    Find the asymptotes and any hole of f(x)=x2−4x2−x−2f(x) = \frac{x^2 - 4}{x^2 - x - 2}.
    Show solution
    1. Factor: f(x)=(x−2)(x+2)(x−2)(x+1)f(x) = \frac{(x - 2)(x + 2)}{(x - 2)(x + 1)}.
    2. (x−2)(x - 2) cancels, leaving x+2x+1\frac{x + 2}{x + 1} with x≠2x \ne 2. So x=2x = 2 is a hole, not an asymptote.
    3. The hole's yy: 2+22+1=43\frac{2 + 2}{2 + 1} = \frac{4}{3}. The hole is at (2,43)(2, \frac{4}{3}).
    4. The remaining denominator is zero at x=−1x = -1: vertical asymptote.
    5. Degrees are equal (2 and 2) with leading coefficients 1 and 1, so y=1y = 1.

    Answer: Vertical asymptote x=−1x = -1, horizontal asymptote y=1y = 1, hole at (2,43)(2, \frac{4}{3}).

  4. Medium

    Find the asymptotes of f(x)=2x2+3x−1x+2f(x) = \frac{2x^2 + 3x - 1}{x + 2}.
    Show solution
    1. At x=−2x = -2 the denominator is zero and the numerator is 8−6−1=18 - 6 - 1 = 1, so x=−2x = -2 is a vertical asymptote.
    2. The numerator is one degree higher, so there is no horizontal asymptote. Look for an oblique one.
    3. Long divide: 2x2x=2x\frac{2x^2}{x} = 2x, and 2x(x+2)=2x2+4x2x(x + 2) = 2x^2 + 4x. Subtract to get −x−1-x - 1.
    4. −xx=−1\frac{-x}{x} = -1, and −1(x+2)=−x−2-1(x + 2) = -x - 2. Subtract to get 11.
    5. So f(x)=2x−1+1x+2f(x) = 2x - 1 + \frac{1}{x + 2}. The fraction shrinks to 0 at the ends, so the graph approaches y=2x−1y = 2x - 1.

    Answer: Vertical asymptote x=−2x = -2, oblique asymptote y=2x−1y = 2x - 1, no horizontal asymptote.

  5. Test level

    Write a rational function with vertical asymptotes x=2x = 2 and x=−3x = -3, horizontal asymptote y=−2y = -2, and xx-intercepts 11 and 55.
    Show solution
    1. Vertical asymptotes give the denominator: (x−2)(x+3)(x - 2)(x + 3).
    2. The xx-intercepts give the numerator: (x−1)(x−5)(x - 1)(x - 5).
    3. Both are degree 2, so the horizontal asymptote is the ratio of leading coefficients. Put aa in front of the numerator: y=a1=ay = \frac{a}{1} = a, so a=−2a = -2.
    4. f(x)=−2(x−1)(x−5)(x−2)(x+3)f(x) = \frac{-2(x - 1)(x - 5)}{(x - 2)(x + 3)}. Check: no factor cancels, so both asymptotes and both intercepts survive.

    Answer: f(x)=−2(x−1)(x−5)(x−2)(x+3)=−2x2+12x−10x2+x−6f(x) = \frac{-2(x - 1)(x - 5)}{(x - 2)(x + 3)} = \frac{-2x^2 + 12x - 10}{x^2 + x - 6}

Learn It on Martian Lab

Martian Lab teaches this in the Intercepts & Asymptotes lesson of its MHF4U Rational Functions unit. Watch it, then take the Rational Functions practice tests to see if it stuck.

Watch the Intercepts & Asymptotes lesson free

Start Practicing

No credit card required to start.

Get started