Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›IB Mathematics: Analysis and Approaches
  3. ›2 Functions
  4. ›2.13 Rational functions

IB Mathematics: Analysis and Approaches · Topic 2 · Functions

2.13 Rational functions

Sketch rational functions by finding their asymptotes, holes, domain and range.

  • 5 min read
  • 6 parts
  • 10 questions
  • Draft
  • HL only
Start a Quick 5 on this topic→Jump to the 10 questions
1/6A rational function is a quotient of two polynomials
  1. 1A rational function is a quotient of two polynomials
  2. 2Vertical asymptotes appear where the denominator is zero
  3. 3Horizontal asymptotes describe the graph far from the origin
  4. 4Oblique asymptotes appear when the degree rises by exactly one
  5. 5A cancelled factor leaves a hole instead of an asymptote
  6. 6Sketching combines asymptotes, intercepts and the range
  7. Check your recall
  8. Practice: 10 questions
1

Part 1 of 6: A rational function is a quotient of two polynomials

Imagine a group sharing the cost of a hired minibus. Each person pays the total cost divided by the number of people. Both amounts can vary, so the result is one expression divided by another.

A rational function has the form f(x)=p(x)q(x)f(x)=\frac{p(x)}{q(x)}f(x)=q(x)p(x)​. Here p(x)p(x)p(x) and q(x)q(x)q(x) are polynomials, such as x2−3x+2x^2-3x+2x2−3x+2. Two examples are 1x\frac{1}{x}x1​ and 2x+1x−3\frac{2x+1}{x-3}x−32x+1​.

Division by zero is undefined, so some inputs must be excluded. The domain of a function is the set of inputs where it is defined. For a rational function, any xxx that makes the bottom expression zero is not in the domain.

Key terms · tap one for its definition

rational function

A rational function is a quotient of two polynomials, with denominator values of zero excluded from its domain.

domain

A function’s domain is the set of inputs where the function is defined.

Part 1 done

2

Part 2 of 6: Vertical asymptotes appear where the denominator is zero

Now look at f(x)=2x+1x−3f(x)=\frac{2x+1}{x-3}f(x)=x−32x+1​. The expression on top is the numerator. The expression below is the denominator, and it is zero when x=3x=3x=3. The domain is every real number except 3, because division by zero is undefined.

Close to x=3x=3x=3, the denominator is tiny, so the outputs become very large. The graph climbs or falls towards the line x=3x=3x=3 without touching it. For example, x=3.1x=3.1x=3.1 gives f(x)=72f(x)=72f(x)=72 and x=3.01x=3.01x=3.01 gives f(x)=702f(x)=702f(x)=702. The line x=3x=3x=3 is a vertical asymptote.

Exam tip

Write an asymptote as an equation, such as x=3x=3x=3, not as a bare number.

Key terms · tap one for its definition

denominator

The denominator is the expression below the fraction bar and cannot equal zero.

vertical asymptote

A vertical asymptote is a vertical line x=ax=ax=a that the graph approaches while the outputs grow without bound.

Part 2 done

Quick check

One question on the part you just read

Easy

Identify the vertical asymptote of the graph of f(x)=3x+4f(x)=\frac{3}{x+4}f(x)=x+43​.
Show answer and explanation

Answer: A · Worked explanation

The denominator x+4x+4x+4 is zero when x=−4x=-4x=−4, so the graph has a vertical asymptote at x=−4x=-4x=−4. The line x=4x=4x=4 comes from a sign error when solving x+4=0x+4=0x+4=0. The line y=−4y=-4y=−4 is horizontal, but a vertical asymptote must have the form x=x=x= a constant.
3

Part 3 of 6: Horizontal asymptotes describe the graph far from the origin

Next, let xxx become very large, positive or negative. In 2x+1x−3\frac{2x+1}{x-3}x−32x+1​, the constants matter less and less. The function then behaves like 2xx=2\frac{2x}{x}=2x2x​=2. The line y=2y=2y=2 is a horizontal asymptote.

To find it, compare the degree of the top and bottom expressions. The degree is the highest power of xxx.

  • Smaller degree on top: the asymptote is y=0y=0y=0.
  • Equal degrees: the asymptote is y=aby=\frac{a}{b}y=ba​, where aaa and bbb are the coefficients of the highest powers.
  • Larger degree on top: there is no horizontal asymptote.

Common mistake

A graph may cross a horizontal asymptote at some finite xxx. The asymptote describes behaviour only for very large ∣x∣|x|∣x∣.

Key terms · tap one for its definition

horizontal asymptote

A horizontal asymptote is a horizontal line y=by=by=b that the graph approaches as xxx becomes very large or very negative.

degree

The degree of a polynomial is the highest power of xxx that has a nonzero coefficient.

Part 3 done

4

Part 4 of 6: Oblique asymptotes appear when the degree rises by exactly one

Check the degrees first. Suppose the top expression has degree exactly one more than the bottom. Then the graph follows a slanted line for large ∣x∣|x|∣x∣. This line is an oblique asymptote.

Polynomial long division finds it. Divide the numerator by the denominator and set the remainder aside. The quotient gives the equation of the asymptote.

The remainder term shrinks towards zero as ∣x∣|x|∣x∣ grows, so only the quotient matters. A graph cannot have both a horizontal and an oblique asymptote.

Worked example

Finding an oblique asymptote

Find the asymptotes of f(x)=x2+1x−1f(x)=\frac{x^2+1}{x-1}f(x)=x−1x2+1​.
  1. 1
    The top has degree 2 and the bottom has degree 1, so an oblique asymptote exists.
  2. 2
    Divide: x2+1=(x−1)(x+1)+2x^2+1=(x-1)(x+1)+2x2+1=(x−1)(x+1)+2.
  3. 3
    So f(x)=x+1+2x−1f(x)=x+1+\frac{2}{x-1}f(x)=x+1+x−12​.
  4. 4
    For large ∣x∣|x|∣x∣, the term 2x−1\frac{2}{x-1}x−12​ tends to zero, so f(x)f(x)f(x) approaches x+1x+1x+1.
  5. 5
    The denominator is zero when x=1x=1x=1.

Answer: The oblique asymptote is y=x+1y=x+1y=x+1 and the vertical asymptote is x=1x=1x=1.

Key term

oblique asymptote

An oblique asymptote is a slanted line y=mx+cy=mx+cy=mx+c, with m≠0m\neq0m=0, that the graph approaches as ∣x∣|x|∣x∣ becomes very large.

Part 4 done

Quick check

One question on the part you just read

Easy

State the horizontal asymptote of f(x)=6x−12x+5f(x)=\frac{6x-1}{2x+5}f(x)=2x+56x−1​.
Show answer and explanation

Answer: B · Worked explanation

The top and bottom both have degree 1, so the horizontal asymptote is the ratio of the coefficients of xxx. This gives y=62=3y=\frac{6}{2}=3y=26​=3. The value y=6y=6y=6 uses the numerator alone. The value y=0y=0y=0 applies only when the top has smaller degree than the bottom.
5

Part 5 of 6: A cancelled factor leaves a hole instead of an asymptote

Sometimes a factor on top matches a factor on the bottom. Take f(x)=(x−2)(x+1)x−2f(x)=\frac{(x-2)(x+1)}{x-2}f(x)=x−2(x−2)(x+1)​. Cancelling gives x+1x+1x+1, but x=2x=2x=2 is still excluded from the domain.

The graph is the line y=x+1y=x+1y=x+1 with one point missing. This missing point is a hole. Nearby outputs approach y=3y=3y=3, yet no point exists at x=2x=2x=2.

  • Factorise the numerator and the denominator.
  • Cancel each common factor (x−a)(x-a)(x−a). This gives a hole at x=ax=ax=a.
  • Substitute x=ax=ax=a into the cancelled expression to find the height.
  • Each factor left in the denominator gives a vertical asymptote.

Exam tip

Give a hole as a coordinate pair, such as (2,3)(2,3)(2,3). Show the cancelled factor in your working.

Key term

hole

A hole is a missing point on a graph where nearby values approach one finite height.

Part 5 done

6

Part 6 of 6: Sketching combines asymptotes, intercepts and the range

Now combine these features into a sketch. First look for holes, because a cancelled factor removes an asymptote. Draw the asymptotes as dashed lines. Find the yyy-intercept by putting x=0x=0x=0, and the xxx-intercept by setting the numerator to zero.

Figure 1. The graph has two branches, one on each side of the vertical asymptote, and it approaches the horizontal asymptote.

The range of a function is the set of outputs it takes. In the graph, the output 2 is never reached, because 2x+1x−3=2\frac{2x+1}{x-3}=2x−32x+1​=2 has no solution. So the range is every real number except 2. The branch right of x=3x=3x=3 lies above y=2y=2y=2, and the branch on the left lies below it.

Worked example

Domain and range

Find the domain and range of f(x)=3xx+2f(x)=\frac{3x}{x+2}f(x)=x+23x​.
  1. 1
    The denominator is zero when x=−2x=-2x=−2, so the domain excludes -2.
  2. 2
    The degrees are equal, so the horizontal asymptote is y=31=3y=\frac{3}{1}=3y=13​=3.
  3. 3
    Test whether 3 is an output: 3x=3(x+2)3x=3(x+2)3x=3(x+2) gives 0=60=60=6, which is impossible.

Answer: The domain is all real xxx except -2, and the range is all real yyy except 3.

Go deeperRange when the graph crosses its asymptote

The range is not always every real number except one value. Take f(x)=xx2+1f(x)=\frac{x}{x^2+1}f(x)=x2+1x​. Its horizontal asymptote is y=0y=0y=0, yet the graph passes through the origin.

Its outputs lie between −12-\frac{1}{2}−21​ and 12\frac{1}{2}21​. A graphing display or a turning-point calculation finds these limits.

Key term

range

The range of a function is the set of all output values it takes.

Note read

Check your recall[14 marks]

5 written questions. Answer each one in your head or on paper, then open the mark scheme.

  1. 1.State[2 marks]

    State the equations of the vertical and horizontal asymptotes of g(x)=4x−1x+5g(x)=\frac{4x-1}{x+5}g(x)=x+54x−1​.

    Show mark schemeHide mark scheme

    Model answer

    The vertical asymptote is x=−5x=-5x=−5 and the horizontal asymptote is y=4y=4y=4.

    • 1 mark for stating the vertical asymptote x=−5x=-5x=−5
    • 1 mark for stating the horizontal asymptote y=4y=4y=4
  2. 2.Determine[3 marks]

    Determine the oblique asymptote of h(x)=x2+3x+1x+1h(x)=\frac{x^2+3x+1}{x+1}h(x)=x+1x2+3x+1​.

    Show mark schemeHide mark scheme

    Model answer

    Divide to get h(x)=x+2−1x+1h(x)=x+2-\frac{1}{x+1}h(x)=x+2−x+11​. The remainder term tends to zero for large ∣x∣|x|∣x∣. The oblique asymptote is y=x+2y=x+2y=x+2.

    • 1 mark for dividing or rewriting to get h(x)=x+2−1x+1h(x)=x+2-\frac{1}{x+1}h(x)=x+2−x+11​
    • 1 mark for stating that the remainder term tends to zero for large ∣x∣|x|∣x∣
    • 1 mark for stating the asymptote y=x+2y=x+2y=x+2
  3. 3.Determine[3 marks]

    Determine the coordinates of the hole in the graph of f(x)=x2−9x−3f(x)=\frac{x^2-9}{x-3}f(x)=x−3x2−9​.

    Show mark schemeHide mark scheme

    Model answer

    Factorise: f(x)=(x−3)(x+3)x−3f(x)=\frac{(x-3)(x+3)}{x-3}f(x)=x−3(x−3)(x+3)​. Cancelling x−3x-3x−3 leaves x+3x+3x+3, which equals 6 when x=3x=3x=3. The hole is at (3,6)(3,6)(3,6).

    • 1 mark for factorising the numerator as (x−3)(x+3)(x-3)(x+3)(x−3)(x+3)
    • 1 mark for cancelling the common factor x−3x-3x−3 to leave x+3x+3x+3
    • 1 mark for stating the hole at (3,6)(3,6)(3,6)
  4. 4.Distinguish[3 marks]

    Distinguish between a hole and a vertical asymptote in the graph of a rational function.

    Show mark schemeHide mark scheme

    Model answer

    A hole comes from a factor that cancels, and the outputs near it approach a finite value. A vertical asymptote comes from a factor left in the denominator, and the outputs near it grow without bound.

    • 1 mark for stating that a hole comes from a cancelled factor and a vertical asymptote from a factor left in the denominator
    • 1 mark for stating that near a hole the outputs approach a finite value
    • 1 mark for stating that near a vertical asymptote the outputs grow without bound
  5. 5.Deduce[3 marks]

    Deduce the domain and the range of k(x)=5xx−2k(x)=\frac{5x}{x-2}k(x)=x−25x​.

    Show mark schemeHide mark scheme

    Model answer

    The denominator is zero when x=2x=2x=2, so the domain is all real xxx except 2. The degrees are equal, so the horizontal asymptote is y=5y=5y=5. The equation 5x=5(x−2)5x=5(x-2)5x=5(x−2) has no solution, so the range is all real yyy except 5.

    • 1 mark for stating that the domain excludes x=2x=2x=2
    • 1 mark for finding the horizontal asymptote y=5y=5y=5 from equal degrees
    • 1 mark for stating that the range is all real yyy except y=5y=5y=5

Practice this topic

10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)

0 right0 of 10 answered

Includes the 2 quick checks in the note above.

3.

Easy·Identify[1 mark]

Identify the domain of f(x)=x+1x−7f(x)=\frac{x+1}{x-7}f(x)=x−7x+1​.
Show answer and explanation

Answer: C · Worked explanation

The denominator x−7x-7x−7 is zero when x=7x=7x=7, so only x=7x=7x=7 is excluded. The value x=−1x=-1x=−1 makes the numerator zero, which is allowed and gives an xxx-intercept. Excluding x=−7x=-7x=−7 comes from a sign error. Choosing all real numbers ignores the zero denominator.
4.

Medium·Determine[2 marks]

Determine the coordinates of the hole in the graph of f(x)=x2−4x−2f(x)=\frac{x^2-4}{x-2}f(x)=x−2x2−4​.
Show answer and explanation

Answer: D · Worked explanation

Factorise: f(x)=(x−2)(x+2)x−2f(x)=\frac{(x-2)(x+2)}{x-2}f(x)=x−2(x−2)(x+2)​. After cancelling, f(x)=x+2f(x)=x+2f(x)=x+2 and x=2x=2x=2 is excluded. Substituting gives 2+2=42+2=42+2=4, so the hole is at (2,4)(2,4)(2,4). The point (2,0)(2,0)(2,0) uses the original numerator, which is zero at x=2x=2x=2 but ignores the cancellation. Always cancel first, then substitute, to find the height of a hole.
5.

Medium·Determine[2 marks]

Determine the oblique asymptote of f(x)=x2−x+3x−2f(x)=\frac{x^2-x+3}{x-2}f(x)=x−2x2−x+3​.
Show answer and explanation

Answer: B · Worked explanation

Divide: x2−x+3=(x−2)(x+1)+5x^2-x+3=(x-2)(x+1)+5x2−x+3=(x−2)(x+1)+5, so f(x)=x+1+5x−2f(x)=x+1+\frac{5}{x-2}f(x)=x+1+x−25​. The remainder term tends to zero for large ∣x∣|x|∣x∣, leaving y=x+1y=x+1y=x+1. The line y=x+5y=x+5y=x+5 wrongly uses the remainder as the constant. The line y=x−2y=x-2y=x−2 uses the zero of the denominator. At x=102x=102x=102, f(x)=103.05f(x)=103.05f(x)=103.05, which is close to x+1=103x+1=103x+1=103.
6.

Medium·Determine[2 marks]

Determine the range of f(x)=2x−1x+3f(x)=\frac{2x-1}{x+3}f(x)=x+32x−1​.
Show answer and explanation

Answer: A · Worked explanation

The degrees are equal, so the horizontal asymptote is y=2y=2y=2. The equation 2x−1x+3=2\frac{2x-1}{x+3}=2x+32x−1​=2 gives 2x−1=2x+62x-1=2x+62x−1=2x+6, which has no solution. So the output 2 is never reached. The value -3 is excluded from the domain, not the range. Always test whether the value of the horizontal asymptote can be reached.
7.

Medium·Identify[2 marks]

Identify the features of the graph of f(x)=(x−1)(x−4)(x−1)(x+2)f(x)=\frac{(x-1)(x-4)}{(x-1)(x+2)}f(x)=(x−1)(x+2)(x−1)(x−4)​ at x=1x=1x=1 and x=−2x=-2x=−2.
Show answer and explanation

Answer: A · Worked explanation

The factor x−1x-1x−1 cancels, so x=1x=1x=1 gives a hole at height 1−41+2=−1\frac{1-4}{1+2}=-11+21−4​=−1. The factor x+2x+2x+2 stays in the denominator, so x=−2x=-2x=−2 gives a vertical asymptote. Treating both zeros of the original denominator as asymptotes ignores the cancellation. A hole needs a cancelled factor, while an asymptote needs a factor that remains.
8.

Hard·Identify[2 marks]

Identify the correct description of the graph of f(x)=x2+2x−3x2−1f(x)=\frac{x^2+2x-3}{x^2-1}f(x)=x2−1x2+2x−3​.
Show answer and explanation

Answer: D · Worked explanation

Factorise: f(x)=(x+3)(x−1)(x−1)(x+1)f(x)=\frac{(x+3)(x-1)}{(x-1)(x+1)}f(x)=(x−1)(x+1)(x+3)(x−1)​. Cancelling x−1x-1x−1 gives x+3x+1\frac{x+3}{x+1}x+1x+3​, so the hole is at x=1x=1x=1 with height 42=2\frac{4}{2}=224​=2. The factor x+1x+1x+1 gives the vertical asymptote. Equal degrees give y=1y=1y=1, whatever factor cancelled. A hole at (1,0)(1,0)(1,0) wrongly uses the numerator. The vertical asymptote comes from the factor that remains in the denominator.
9.

Hard·Determine[2 marks]

The graph of f(x)=kx+32x−5f(x)=\frac{kx+3}{2x-5}f(x)=2x−5kx+3​ has horizontal asymptote y=4y=4y=4. Determine kkk and the vertical asymptote.
Show answer and explanation

Answer: A · Worked explanation

The degrees are equal, so the horizontal asymptote is y=k2y=\frac{k}{2}y=2k​. Setting k2=4\frac{k}{2}=42k​=4 gives k=8k=8k=8. The denominator 2x−52x-52x−5 is zero when x=52x=\frac{5}{2}x=25​. The value k=4k=4k=4 wrongly sets kkk equal to the asymptote, and x=−52x=-\frac{5}{2}x=−25​ comes from a sign error. Check: with k=8k=8k=8, the ratio of the coefficients is 82=4\frac{8}{2}=428​=4.
10.

Hard·Identify[2 marks]

Identify the correct description of the graph of f(x)=2x2−3x+1x−1f(x)=\frac{2x^2-3x+1}{x-1}f(x)=x−12x2−3x+1​.
Show answer and explanation

Answer: B · Worked explanation

Factorise: 2x2−3x+1=(2x−1)(x−1)2x^2-3x+1=(2x-1)(x-1)2x2−3x+1=(2x−1)(x−1). The factor x−1x-1x−1 cancels, leaving y=2x−1y=2x-1y=2x−1 with x=1x=1x=1 excluded. At x=1x=1x=1 the height is 2(1)−1=12(1)-1=12(1)−1=1, so the hole is at (1,1)(1,1)(1,1). The degree rule suggests an oblique asymptote, but the cancellation means the graph is the line itself.

Keep going

Next topic2.14 Odd, even and self-inverse functionsPrevious topic2.12 Polynomial functions

More in Topic 2 · Functions

  1. 2.8Reciprocal and rational functionsNotes · 10 questions
  2. 2.9Exponential and logarithmic functionsNotes · 10 questions
  3. 2.10Solving equationsNotes · 10 questions
  4. 2.11Transformations of graphsNotes · 10 questions
  5. 2.12Polynomial functionsNotes · 10 questions· HL only
  6. 2.13Rational functionsNotes · 10 questions· HL only
  7. 2.14Odd, even and self-inverse functionsNotes · 10 questions· HL only
  8. 2.15Solving inequalitiesNotes · 10 questions· HL only
  9. 2.16Modulus and reciprocal graphsNotes · 10 questions· HL only

All IB Mathematics: Analysis and Approaches topics →

Draft: written by Scribe and checked automatically, not yet by a subject reviewer.

Practice questions are original, written by Scribe and checked automatically for correctness.

Topic codes follow the official numbering. Not endorsed by IB Diploma Programme or any exam board.

On this page

0/6 read

  1. 1A rational function is a quotient of two polynomials
  2. 2Vertical asymptotes appear where the denominator is zero
  3. 3Horizontal asymptotes describe the graph far from the origin
  4. 4Oblique asymptotes appear when the degree rises by exactly one
  5. 5A cancelled factor leaves a hole instead of an asymptote
  6. 6Sketching combines asymptotes, intercepts and the range
  7. Check your recall
  8. Practice: 10 questions
All coursesScribeHow it worksPricingPrivacyTerms

Notes and questions are written by Scribe in our own words. Topic codes follow the official course numbering so you can find your place. Not produced or endorsed by the IB, College Board, AQA, OCR, Pearson Edexcel or any exam board.

© 2026 Scribe

Graph of a rational function

y-8-6-4-2024681012-50510x
  • f(x)
  • Vertical asymptote
  • Horizontal asymptote
  • x-intercept
  • y-intercept