James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AA HL › Topic 2: Functions › Rational functions, including oblique asymptotes

Rational functions, including oblique asymptotes

The reciprocal function and functions of the form ax+bcx+d: asymptotes, intercepts, domain and range, and sketching.

SL 2.8AHL 2.13SL + HL extensionPaper 1Paper 2≈ 40 min to work through
Before you start: fractions and straight lines. See Before you start SL › Fractions.

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Know the graph of y=1x and that it is self-inverseSL 2.8
  • Find the vertical and horizontal asymptotes of ax+bcx+dSL 2.8
  • Find the interceptsSL 2.8
  • State the domain and rangeSL 2.8
  • Sketch rational functionsSL 2.8

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

A rational function is one polynomial divided by another. Where the denominator is zero the function is undefined, and the graph shoots off towards a vertical asymptote. For very large x, the graph settles towards a horizontal asymptote.

2.1 The reciprocal function

Look at y=1x numerically. As x gets larger (10, 100, 1000), y gets smaller (0.1, 0.01, 0.001) and approaches 0 without ever reaching it. As x gets close to 0 from the right (0.1, 0.01, 0.001), y becomes huge (10, 100, 1000). And x=0 itself is impossible: you cannot divide by zero.

y=1x has a vertical asymptote x=0 and a horizontal asymptote y=0. Its two branches lie in the first and third quadrants. It is self-inverse: f−1(x)=f(x).

2.2 Functions of the form ax+bcx+d

Asymptotes Not in booklet: learn it
vertical: x=−dchorizontal: y=ac
  • The vertical asymptote is where the denominator is 0.
  • The horizontal asymptote comes from the ratio of the x coefficients: for large x, ax+bcx+d≈ac.
  • x-intercept: numerator =0. y-intercept: put x=0.
Why do the asymptotes work like this?

For very large x, the constants b and d hardly matter. For example, at x=1000, 2x+1x−3=2001997≈2.007, very close to 21=2. So as x grows, ax+bcx+d gets closer and closer to axcx=ac. Near x=−dc the denominator is tiny, so the fraction becomes very large (positive or negative).

An asymptote is not part of the graph: the curve gets closer and closer to it without touching. Because of the horizontal asymptote, the value ac is missing from the range, and because of the vertical asymptote, −dc is missing from the domain.

Worked example 1Paper 1
For f(x)=2x+1x−3, find the asymptotes and intercepts.
Vertical asymptote: x−3=0, so x=3.
Horizontal asymptote: y=21=2.
x-intercept: 2x+1=0, so x=−12. y-intercept: f(0)=−13.
Worked example 2Paper 1
State the domain and range of f(x)=2x+1x−3.
Domain: x≠3 (the vertical asymptote).
Range: f(x)≠2 (the horizontal asymptote).
Worked example 3Paper 1
f(x)=ax+1x+b has asymptotes x=−2 and y=3. Find a and b.
Vertical asymptote where x+b=0: −b=−2, so b=2.
Horizontal asymptote y=a1=3, so a=3.

Sketching a rational function. Draw the asymptotes as dashed lines first. Mark the intercepts: the y-intercept is f(0)=bd, and the x-intercept is where the numerator is 0. The curve has two branches, one on each side of the vertical asymptote, and each branch bends towards both asymptotes. The intercepts tell you which pair of opposite "corners" the branches lie in.

Worked example 4 (faded)Paper 1
Find the intercepts of y=3x−6x+1.
x-intercept: 3x−6=0, so x= 2  ← you work this out
y-intercept: y=−61= −6  ← you work this out
On your TI-Nspire Calculator tricks →

The TI-Nspire does not draw asymptotes, and may draw a steep line where there is a gap. Find the asymptotes by algebra, add them to your sketch as dashed lines, and use the graph to check the shape. A table (ctrl T) shows values approaching the asymptotes.

3Explore it

Change a, b, c and d in y=ax+bcx+d. The dashed lines are the asymptotes.

★HL extension

Extra depth for HL: harder worked examples and HL-standard exam questions.

At HL (AHL 2.13) rational functions can have a quadratic in the denominator, f(x)=ax+bcx2+dx+e, or a quadratic in the numerator, f(x)=ax2+bx+cdx+e. The second kind has an oblique (slant) asymptote instead of a horizontal one.

Quadratic denominator

Factorise the denominator: each root gives a vertical asymptote. Because the denominator grows faster than the numerator, f(x)→0: the horizontal asymptote is y=0. Unlike the SL case, the graph can cross its horizontal asymptote (wherever the numerator is zero).

Worked example H1Paper 1
Find the asymptotes and intercepts of f(x)=2x+1x2−x−2.
x2−x−2=(x−2)(x+1): vertical asymptotes x=2, x=−1
Horizontal asymptote y=0
x-intercept −12; y-intercept −12
The graph crosses y=0 at x=−12, between the two vertical asymptotes.

Quadratic numerator: oblique asymptotes

Divide: write f(x)=mx+k+rdx+e. As x→±∞ the fraction tends to 0, so the graph approaches the line y=mx+k: the oblique asymptote.

Worked example H2Paper 1
Find the asymptotes of f(x)=x2+3x+1x+1.
x2+3x+1=(x+1)(x+2)−1, so f(x)=x+2−1x+1
Polynomial division, or compare coefficients.
Vertical asymptote x=−1; oblique asymptote y=x+2
Worked example H3Paper 1
Find the turning points of f(x)=x2+3x−1, and hence state its range.
f(x)=x+1+4x−1, so f′(x)=1−4(x−1)2
f′(x)=0⇒(x−1)2=4⇒x=3 or x=−1
Points (3,6) (minimum) and (−1,−2) (maximum)
Range: f(x)≤−2 or f(x)≥6
The graph has two branches, one on each side of x=1.

HL exam-style questions

Question 1Paper 1[8 marks]

Let f(x)=x2−x+4x−1, x≠1.

  • (a)Show that f(x)=x+4x−1.[2]
  • (b)Write down the equations of the asymptotes of the graph of f.[2]
  • (c)Find the coordinates of the stationary points of the graph of f.[3]
  • (d)Hence write down the range of f.[1]
(a)
x(x−1)+4=x2−x+4M1
so x2−x+4x−1=x+4x−1AG A1
(b)
x=1A1
y=xA1
(c)
1−4(x−1)2=0M1
(3,5)A1
(−1,−3)A1
(d)
f(x)≤−3 or f(x)≥5A1
Question 2Paper 2[5 marks]

Let g(x)=3x−1x2+1, x∈ℝ.

  • (a)Explain why the graph of g has no vertical asymptotes, and write down the equation of its horizontal asymptote.[2]
  • (b)Find the range of g.[3]
(a)
x2+1>0 for all xR1
y=0A1
(b)
minimum and maximum from GDCM1
−2.08≤g(x)≤1.08A2
A1 for each end

4Common mistakes & exam tips

Common mistakes

  • Swapping the vertical and horizontal asymptotes.
  • Using y=bd for the horizontal asymptote: that is the y-intercept.
  • Joining the two branches across the vertical asymptote on a sketch.
  • Forgetting to state the domain restriction.

Exam tips

  • On a sketch, draw the asymptotes as dashed lines and label their equations.
  • The range is "all real numbers except the horizontal asymptote".
  • Check a sketch by substituting one value on each side of the vertical asymptote.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Write down the vertical asymptote of y=5x+4.
x=−4
FluencyP2
Write down the horizontal asymptote of y=6x−12x+5.
y=3
FluencyP3
Find the x-intercept of y=x−7x+2.
x=7
FluencyP4
Find the y-intercept of y=4x+2x−1.
y=−2
Problem solvingP5
Find f−1(x) for f(x)=x+1x−2.
y(x−2)=x+1⇒x(y−1)=2y+1, so f−1(x)=2x+1x−1.
Problem solvingP6
Find where y=2x+1x−3 meets y=x.
x2−3x=2x+1⇒x2−5x−1=0, so x=5±292.

6Exam-style questions

Original questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.

Question 1Paper 1[6 marks]

f(x)=3x−2x+1, x≠−1.

  • (a)Write down the equations of the asymptotes of the graph of f.[2]
  • (b)Find the intercepts with the axes.[2]
  • (c)Write down the range of f.[1]
  • (d)Sketch the graph of f.[1]
(a)
x=−1A1
y=3A1
(b)
x=23A1
y=−2A1
(c)
f(x)≠3A1
(d)
Two branches with correct asymptotes and interceptsA1
Question 2Paper 2[5 marks]

g(x)=2+3x−1, x≠1.

  • (a)Write down the equations of the asymptotes of the graph of g.[2]
  • (b)Solve g(x)=x.[3]
(a)
x=1A1
y=2A1
(b)
Intersection of y=g(x) and y=x (or x2−3x−1=0)M1
x=3.30A1
x=−0.303A1
Question 3Paper 1[5 marks]

h(x)=ax+bx+c. The graph of h has a vertical asymptote x=−3 and a horizontal asymptote y=2, and passes through (0,1). Find a, b and c.

c=3A1
a=2A1
h(0)=b3=1M1 A1
b=3A1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try real IB questions. Your school or teacher will have these papers.

PaperQuestionFocusDifficulty
Nov 2025 · TZ3 · Paper 1Q3Find parameters of a rational graph; describe transformations★☆☆
May 2024 · TZ2 · Paper 1Q5Analyse a rational function and its inverse from a graph★★☆
May 2022 · TZ1 · Paper 2Q6Show an odd function and solve a rational inequality★★☆
May 2024 · TZ1 · Paper 1Q10Rational function graph and a quadratic with given symmetry★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake