James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AA SL › Topic 2: Functions › Rational functions

Rational functions

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

SL 2.8Paper 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.

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
May 2025 · TZ2 · Paper 1Q3Rational function value, horizontal asymptote, range of reflected function★☆☆
Nov 2025 · TZ3 · Paper 1Q5Find A and B from two points; describe transformations from y=1/x★★☆
May 2024 · TZ2 · Paper 1Q6Horizontal asymptote; number of intersections of rational curve with mx+1★★☆
May 2025 · TZ1 · Paper 2Q9Self-inverse rational function, closest point to origin, asymptotes, sketch reciprocal★★★
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