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

Grade 12 · MHF4U · Advanced Functions

MHF4U: Graphing Rational Functions

A rational function's graph is built from a short list of features, each one a separate calculation: asymptotes, holes, intercepts and the sign of the function in each interval. Collect them in order and the sketch draws itself.

How It Works

1. Factor and state the domain. Factor the numerator and the denominator fully. Every zero of the denominator is excluded from the domain. A factor that cancels is a hole; a factor left in the denominator is a vertical asymptote.

2. Find the intercepts. The yy-intercept is f(0)f(0). The xx-intercepts are the zeros of the simplified numerator, as long as they are in the domain.

3. Find the end behaviour. Compare degrees. Numerator lower: horizontal asymptote y=0y = 0. Degrees equal: yy equals the ratio of the leading coefficients. Numerator one degree higher: divide, and the quotient is an oblique asymptote.

4. Check each side of every vertical asymptote. Pick an xx just left and just right of it and find the sign of f(x)f(x). Positive means the branch climbs to +∞+\infty, negative means it drops to −∞-\infty. Signs only change at a zero or an asymptote, so one test point per interval is enough.

5. Draw it. Dash in the asymptotes, mark the intercepts and the hole, then connect the points inside each interval so that the curve approaches its asymptotes at the ends. A graph never crosses a vertical asymptote, but it can cross a horizontal or oblique one in the middle: set f(x)f(x) equal to the asymptote's equation to see where, if anywhere.

The most common lost mark is a branch on the wrong side. If the sign check says negative just right of x=2x = 2, the curve there goes down, whatever the branch on the left did.

5 Worked Examples

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

  1. Easy

    Sketch f(x)=1x−2f(x) = \frac{1}{x - 2}: find its asymptotes, intercepts and the sign of each branch.
    Show solution
    1. The denominator is zero at x=2x = 2, so the domain is x≠2x \ne 2 and x=2x = 2 is a vertical asymptote. Nothing cancels, so there is no hole.
    2. The numerator is the constant 11, never zero, so there is no xx-intercept. The yy-intercept is f(0)=−12f(0) = -\frac{1}{2}.
    3. Degree 00 on top, degree 11 on the bottom: horizontal asymptote y=0y = 0.
    4. Test points: f(1)=−1f(1) = -1, so the left branch is below the xx-axis and drops to −∞-\infty at the asymptote; f(3)=1f(3) = 1, so the right branch is above and climbs to +∞+\infty.

    Answer: Vertical asymptote x=2x = 2, horizontal asymptote y=0y = 0, yy-intercept (0,−12)(0, -\frac{1}{2}), no xx-intercept; the left branch is negative, the right branch positive.

  2. Easy

    Find every feature of f(x)=x+1x−3f(x) = \frac{x + 1}{x - 3} and sketch it.
    Show solution
    1. Vertical asymptote at x=3x = 3; the numerator is 44 there, so nothing cancels.
    2. xx-intercept where x+1=0x + 1 = 0: (−1,0)(-1, 0). yy-intercept f(0)=1−3=−13f(0) = \frac{1}{-3} = -\frac{1}{3}.
    3. Degrees are equal, so the horizontal asymptote is the ratio of the leading coefficients, y=1y = 1.
    4. Sign check: f(2)=−3f(2) = -3, negative, so the curve falls to −∞-\infty as x→3−x \to 3^-. f(4)=5f(4) = 5, positive, so it rises to +∞+\infty as x→3+x \to 3^+.
    5. Does it cross y=1y = 1? x+1x−3=1\frac{x + 1}{x - 3} = 1 gives x+1=x−3x + 1 = x - 3, impossible, so it never does.

    Answer: Vertical asymptote x=3x = 3, horizontal asymptote y=1y = 1, intercepts (−1,0)(-1, 0) and (0,−13)(0, -\frac{1}{3}); negative just left of x=3x = 3, positive just right.

  3. Medium

    Sketch f(x)=2x2−8x2−9f(x) = \frac{2x^2 - 8}{x^2 - 9}.
    Show solution
    1. Factor: f(x)=2(x−2)(x+2)(x−3)(x+3)f(x) = \frac{2(x - 2)(x + 2)}{(x - 3)(x + 3)}. Nothing cancels. Domain x≠±3x \ne \pm 3, vertical asymptotes x=3x = 3 and x=−3x = -3.
    2. xx-intercepts at x=±2x = \pm 2. yy-intercept f(0)=−8−9=89f(0) = \frac{-8}{-9} = \frac{8}{9}.
    3. Equal degrees: horizontal asymptote y=21=2y = \frac{2}{1} = 2. Crossing check: 2x2−8=2x2−182x^2 - 8 = 2x^2 - 18 has no solution, so the curve never meets y=2y = 2.
    4. Sign check in the five intervals, using x=−4,−2.5,0,2.5,4x = -4, -2.5, 0, 2.5, 4: f(−4)=247>0f(-4) = \frac{24}{7} > 0, f(−2.5)=4.5−2.75<0f(-2.5) = \frac{4.5}{-2.75} < 0, f(0)>0f(0) > 0, f(2.5)<0f(2.5) < 0, f(4)>0f(4) > 0.
    5. So the outer branches sit above y=2y = 2, and the middle piece is an arch through (−2,0)(-2, 0), (0,89)(0, \frac{8}{9}) and (2,0)(2, 0) that falls to −∞-\infty at both asymptotes.

    Answer: Vertical asymptotes x=±3x = \pm 3, horizontal asymptote y=2y = 2, intercepts (−2,0)(-2, 0), (2,0)(2, 0) and (0,89)(0, \frac{8}{9}). The outer branches lie above y=2y = 2; the middle piece is an arch through the three intercepts that drops to −∞-\infty at both asymptotes.

  4. Medium

    Sketch f(x)=x2−x−6x2−4f(x) = \frac{x^2 - x - 6}{x^2 - 4}, including any hole.
    Show solution
    1. Factor: f(x)=(x−3)(x+2)(x−2)(x+2)f(x) = \frac{(x - 3)(x + 2)}{(x - 2)(x + 2)}. Domain x≠2,−2x \ne 2, -2.
    2. (x+2)(x + 2) cancels, so x=−2x = -2 is a hole. Simplified: f(x)=x−3x−2f(x) = \frac{x - 3}{x - 2}, and at x=−2x = -2 that is −5−4=54\frac{-5}{-4} = \frac{5}{4}. Hole at (−2,54)(-2, \frac{5}{4}).
    3. (x−2)(x - 2) stays: vertical asymptote x=2x = 2. Equal degrees: horizontal asymptote y=1y = 1.
    4. Intercepts from the simplified form: xx-intercept (3,0)(3, 0), yy-intercept f(0)=32f(0) = \frac{3}{2}.
    5. Sign check: f(1)=2>0f(1) = 2 > 0, so the curve rises to +∞+\infty as x→2−x \to 2^-; f(2.5)=−1<0f(2.5) = -1 < 0, so it falls to −∞-\infty as x→2+x \to 2^+, then climbs back through (3,0)(3, 0) toward y=1y = 1.

    Answer: Hole (−2,54)(-2, \frac{5}{4}), vertical asymptote x=2x = 2, horizontal asymptote y=1y = 1, intercepts (3,0)(3, 0) and (0,32)(0, \frac{3}{2}); positive left of x=2x = 2, negative between 22 and 33.

  5. Test level

    Sketch f(x)=x2−3xx+1f(x) = \frac{x^2 - 3x}{x + 1}, including its oblique asymptote.
    Show solution
    1. Factor: f(x)=x(x−3)x+1f(x) = \frac{x(x - 3)}{x + 1}. Domain x≠−1x \ne -1, vertical asymptote x=−1x = -1, no hole.
    2. xx-intercepts (0,0)(0, 0) and (3,0)(3, 0); the yy-intercept is the origin too.
    3. The numerator is one degree higher, so divide: x2−3x=(x+1)(x−4)+4x^2 - 3x = (x + 1)(x - 4) + 4. Oblique asymptote y=x−4y = x - 4; the remainder term 4x+1\frac{4}{x + 1} shrinks to 00 at both ends.
    4. Crossing check: f(x)=x−4f(x) = x - 4 would need 4x+1=0\frac{4}{x + 1} = 0, impossible, so the curve never touches the line. The remainder term is positive for x>−1x > -1 and negative for x<−1x < -1, so the right branch sits above the line and the left branch below it.
    5. Near the asymptote: f(−0.5)=1.750.5>0f(-0.5) = \frac{1.75}{0.5} > 0, so the curve rises to +∞+\infty as x→−1+x \to -1^+; f(−1.5)=6.75−0.5<0f(-1.5) = \frac{6.75}{-0.5} < 0, so it falls to −∞-\infty as x→−1−x \to -1^-.

    Answer: Vertical asymptote x=−1x = -1, oblique asymptote y=x−4y = x - 4, intercepts (0,0)(0, 0) and (3,0)(3, 0). The right branch comes down from +∞+\infty, dips below the axis between its two intercepts, then rises along y=x−4y = x - 4 from above; the left branch lies below the line and drops to −∞-\infty at the asymptote.

Learn It on Martian Lab

Martian Lab teaches this in the Intercepts & Asymptotes of Rational Functions 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 of Rational Functions lesson free

Start Practicing

No credit card required to start.

Get started