IB Mathematics: Analysis and Approaches · Topic 2 · Functions
2.13 Rational functions
Sketch rational functions by finding their asymptotes, holes, domain and range.
1/6A rational function is a quotient of two polynomials
- A rational function is a quotient of two polynomials
- Vertical asymptotes appear where the denominator is zero
- Horizontal asymptotes describe the graph far from the origin
- Oblique asymptotes appear when the degree rises by exactly one
- A cancelled factor leaves a hole instead of an asymptote
- Sketching combines asymptotes, intercepts and the range
- Check your recall
- Practice: 10 questions
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 . Here and are polynomials, such as . Two examples are and .
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 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 2 of 6: Vertical asymptotes appear where the denominator is zero
Now look at . The expression on top is the numerator. The expression below is the denominator, and it is zero when . The domain is every real number except 3, because division by zero is undefined.
Close to , the denominator is tiny, so the outputs become very large. The graph climbs or falls towards the line without touching it. For example, gives and gives . The line is a vertical asymptote.
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 that the graph approaches while the outputs grow without bound.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: A · Worked explanation
Part 3 of 6: Horizontal asymptotes describe the graph far from the origin
Next, let become very large, positive or negative. In , the constants matter less and less. The function then behaves like . The line is a horizontal asymptote.
To find it, compare the degree of the top and bottom expressions. The degree is the highest power of .
- Smaller degree on top: the asymptote is .
- Equal degrees: the asymptote is , where and are the coefficients of the highest powers.
- Larger degree on top: there is no horizontal asymptote.
Key terms · tap one for its definition
horizontal asymptote
A horizontal asymptote is a horizontal line that the graph approaches as becomes very large or very negative.
degree
The degree of a polynomial is the highest power of that has a nonzero coefficient.
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 . 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 grows, so only the quotient matters. A graph cannot have both a horizontal and an oblique asymptote.
Worked example
Finding an oblique asymptote
- The top has degree 2 and the bottom has degree 1, so an oblique asymptote exists.
- Divide: .
- So .
- For large , the term tends to zero, so approaches .
- The denominator is zero when .
Answer: The oblique asymptote is and the vertical asymptote is .
Key term
oblique asymptote
An oblique asymptote is a slanted line , with , that the graph approaches as becomes very large.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: B · Worked explanation
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 . Cancelling gives , but is still excluded from the domain.
The graph is the line with one point missing. This missing point is a hole. Nearby outputs approach , yet no point exists at .
- Factorise the numerator and the denominator.
- Cancel each common factor . This gives a hole at .
- Substitute into the cancelled expression to find the height.
- Each factor left in the denominator gives a vertical asymptote.
Key term
hole
A hole is a missing point on a graph where nearby values approach one finite height.
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 -intercept by putting , and the -intercept by setting the numerator to zero.
The range of a function is the set of outputs it takes. In the graph, the output 2 is never reached, because has no solution. So the range is every real number except 2. The branch right of lies above , and the branch on the left lies below it.
Worked example
Domain and range
- The denominator is zero when , so the domain excludes -2.
- The degrees are equal, so the horizontal asymptote is .
- Test whether 3 is an output: gives , which is impossible.
Answer: The domain is all real except -2, and the range is all real except 3.
Key term
range
The range of a function is the set of all output values it takes.
Check your recall[14 marks]
5 written questions. Answer each one in your head or on paper, then open the mark scheme.
- 1.State[2 marks]
State the equations of the vertical and horizontal asymptotes of .
Show mark schemeHide mark scheme
Model answer
The vertical asymptote is and the horizontal asymptote is .
- 1 mark for stating the vertical asymptote
- 1 mark for stating the horizontal asymptote
- 2.Determine[3 marks]
Determine the oblique asymptote of .
Show mark schemeHide mark scheme
Model answer
Divide to get . The remainder term tends to zero for large . The oblique asymptote is .
- 1 mark for dividing or rewriting to get
- 1 mark for stating that the remainder term tends to zero for large
- 1 mark for stating the asymptote
- 3.Determine[3 marks]
Determine the coordinates of the hole in the graph of .
Show mark schemeHide mark scheme
Model answer
Factorise: . Cancelling leaves , which equals 6 when . The hole is at .
- 1 mark for factorising the numerator as
- 1 mark for cancelling the common factor to leave
- 1 mark for stating the hole at
- 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.Deduce[3 marks]
Deduce the domain and the range of .
Show mark schemeHide mark scheme
Model answer
The denominator is zero when , so the domain is all real except 2. The degrees are equal, so the horizontal asymptote is . The equation has no solution, so the range is all real except 5.
- 1 mark for stating that the domain excludes
- 1 mark for finding the horizontal asymptote from equal degrees
- 1 mark for stating that the range is all real except

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.
EasyIdentify[1 mark]
Show answer and explanation
Answer: C · Worked explanation
MediumDetermine[2 marks]
Show answer and explanation
Answer: D · Worked explanation
MediumDetermine[2 marks]
Show answer and explanation
Answer: B · Worked explanation
MediumDetermine[2 marks]
Show answer and explanation
Answer: A · Worked explanation
MediumIdentify[2 marks]
Show answer and explanation
Answer: A · Worked explanation
HardIdentify[2 marks]
Show answer and explanation
Answer: D · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: A · Worked explanation
HardIdentify[2 marks]
Show answer and explanation
Answer: B · Worked explanation