Skip to content
IB Diploma ProgrammeSL & HL

Reciprocal and rational functions

Mathematics: Analysis and Approaches SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Reciprocal and rational functions notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Reciprocal and rational functions notes as text: skim, search, and jump between subtopics.

~12 min read

1. The reciprocal function

The reciprocal function is f(x) = 1/x, x ≠ 0. Its graph has two separate branches. One lies where x and y are both positive and one where both are negative.

The graph gets closer and closer to each axis but never touches it. A line that a graph approaches but never meets is an asymptote. The vertical asymptote is x = 0 and the horizontal asymptote is y = 0.

Because x = 0 is not allowed, the graph has no y-intercept. Because 1/x is never zero, it has no x-intercept either.

f(x) = 1/x, x ≠ 0

vertical asymptote x = 0, horizontal asymptote y = 0

Worked example 14 marks

Consider the function f(x) = 1/x, x ∈ R, x ≠ 0.(a) Find f(-4).(b) Write down the equation of each asymptote of the graph of f.(c) Explain why the graph of f does not meet the y-axis.

  1. 1

    f(-4) = 1/(-4) = -1/4 A1 [1]

  2. 2

    vertical asymptote: x = 0 A1 [1]

  3. 3

    horizontal asymptote: y = 0 A1 [1]

  4. 4

    y-axis is the line x = 0, and x = 0 is not in the domain, so f(0) does not exist R1 [1]

2. Self-inverse functions

A function is self-inverse when f⁻¹(x) = f(x). Applying it twice gives back the input, so f(f(x)) = x.

The reciprocal function is self-inverse: the reciprocal of a reciprocal is the number you started with. Its graph is unchanged by a reflection in the line y = x.

To show that a rational function is self-inverse, rearrange and swap x and y, or find f(f(x)) and simplify to x. Finish with the statement f⁻¹(x) = f(x).

f(f(x)) = 1/(1/x) = x

f⁻¹(x) = f(x) Leftrightarrow f(f(x)) = x

Worked example 13 marks

Consider the function f(x) = (2 - 2x)/(x + 2), where x ∈ R, x ≠ -2.(a) Show that f⁻¹(x) = f(x).

  1. 1

    attempt to rearrange and swap x and y: x = (2 - 2y)/(y + 2) (M1) [1]

  2. 2

    xy + 2x = 2 - 2y, so xy + 2y = 2 - 2x, or y(x + 2) = 2 - 2x A1 [1]

  3. 3

    f⁻¹(x) = (2 - 2x)/(x + 2) A1 [1]

  4. 4

    so f⁻¹(x) = f(x) (AG)

3. Asymptotes of a rational function

A rational function is one expression divided by another. This note uses the form f(x) = (ax + b)/(cx + d).

The vertical asymptote is where the denominator is zero. Solve cx + d = 0 to get x = -d/c. The function is not defined there.

For the horizontal asymptote, consider f(x) as x → ±∞. The quotient of the coefficients of x gives y = a/c. Dividing the numerator by the denominator gives the same line.

f(x) = (ax + b)/(cx + d)

vertical asymptote: x = -d/c

horizontal asymptote: y = a/c

Worked example 14 marks

Consider the function g(x) = (2 - 3x)/(cx + d), where x ∈ R, x ≠ -d/c, and c, d ≠ 0. The graph of y = g(x) has a vertical asymptote and a horizontal asymptote.(c) In terms of c and d, write down the equation of(i) the vertical asymptote;(ii) the horizontal asymptote. [2] It is given that g⁻¹(x) = g(x).(d) Find the value of d. [2]

  1. 1

    (c)(i) vertical asymptote: x = -d/c A1 [1]

  2. 2

    (ii) horizontal asymptote: y = -3/c A1 [1]

  3. 3

    (d) g⁻¹(x) = (2 - dx)/(cx + 3), or -d/c = -3/c (A1) [1]

  4. 4

    d = 3 A1 [1]

4. Intercepts with the axes

The x-intercept is where f(x) = 0. A fraction is zero when its numerator is zero, so solve ax + b = 0. The y-intercept is where x = 0, so find f(0).

Give each intercept as a coordinate pair: (-b/a, 0) on the x-axis and (0, b/d) on the y-axis.

A sketch of the graph includes all horizontal and vertical asymptotes and any intercepts with the axes.

ax + b = 0 ⇒ (-b/a, 0)

f(0) = b/d ⇒ (0, b/d)

Worked example 17 marks

Consider the function f(x) = (2x - 3)/(3 - x), x ∈ R, x ≠ 3. The graph of f and its asymptotes are shown in the following diagram.(a) Find the equation of(i) the vertical asymptote;(ii) the horizontal asymptote. [3](b) Find the coordinates of the points where the graph of f intersects the coordinate axes. [4]

  1. 1

    (a)(i) x = 3 A1 [1]

  2. 2

    (ii) considers lim_x → ±∞ f(x), or the quotient of coefficients of x, 2/(-1), or divides: f(x) = -2 + 3/(3 -x) (M1) [1]

  3. 3

    y = -2 A1 [1]

  4. 4

    (b) attempts to solve (2x - 3)/(3 -x) = 0, so 2x - 3 = 0 (M1) [1]

  5. 5

    (3/2, 0) A1 [1]

  6. 6

    attempts to find f(0) = (2(0) - 3)/(3 - 0) (M1) [1]

  7. 7

    (0, -1) A1 [1]

5. Sketching a rational function

A full sketch has three parts. Draw two branches that approach the asymptotes. Draw both asymptotes labelled with their equations. Mark each intercept labelled with its coordinates.

The two branches sit in opposite corners made by the asymptotes. Test one point, such as an intercept, to see which pair of corners the graph fills.

For g(x) = (2 - 3x)/(x + 3), the reciprocal 1/(g(x)) = (x + 3)/(2 - 3x) is again of the form (ax + b)/(cx + d). Strictly, it is not defined at x = -3, where g is not defined, so (-3, 0) is a point discontinuity. The markscheme credits it labelled either way.

y = (x + 3)/(2 - 3x): x = 2/3, y = -1/3, (-3, 0), (0, 3/2)

Worked example 14 marks

Consider the function g(x) = (2 - 3x)/(cx + d), where x ∈ R, x ≠ -d/c, and c, d ≠ 0. Part(d) showed that d = 3. Consider the case where c = 1.(e) Sketch the graph of y = 1/(g(x)), showing the values of any intercepts with the axes and including any asymptotes, labelled with their equations.

  1. 1

    1/(g(x)) = (x + 3)/(2 - 3x); the shape is two branches in opposite corners of the asymptotes, approaching them (needed for the marks below)

  2. 2

    asymptote x = 2/3 drawn with correct label A1 [1]

  3. 3

    asymptote y = -1/3 drawn with correct label A1 [1]

  4. 4

    x-intercept (-3, 0) labelled A1 [1]

  5. 5

    y-intercept (0, 3/2) labelled A1 [1]

Recap

  • f(x) = 1/x, x ≠ 0, has two branches, a vertical asymptote x = 0 and a horizontal asymptote y = 0.
  • The reciprocal function is self-inverse: f⁻¹(x) = f(x), so f(f(x)) = x.
  • To show f⁻¹(x) = f(x), swap x and y and rearrange, or find f(f(x)). State the result.
  • For f(x) = (ax + b)/(cx + d), the vertical asymptote is x = -d/c and the horizontal asymptote is y = a/c.
  • Write asymptotes as equations: x = … and y = ….
  • The x-intercept comes from the numerator = 0. The y-intercept is f(0). Give both as coordinates.
  • A sketch has two branches, both asymptotes labelled with equations, and every intercept labelled with coordinates.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State the equation of the horizontal asymptote of the graph of y = 1/x.1 mark
    Answer
    1. y = 0 A1

    Trap: Write y = 0. The line x = 0 is the vertical asymptote, and a bare 0 is not an equation.

  2. Do not use a calculator. The function f is defined by f(x) = 1/x, x ≠ 0. Find f(-1/5) and hence write down f⁻¹(-5).2 marks
    Answer
    1. f(-1/5) = 1/(-1/5) = -5 A1
    2. f is self-inverse, so f⁻¹(-5) = -1/5 A1

    Trap: The inverse of 1/x is 1/x again, so the sign is kept. Changing the sign gives 1/5, which is wrong.

  3. Do not use a calculator. The function f is defined by f(x) = (3x - 6)/(x + 4), x ≠ -4. Write down the equation of the vertical asymptote and the equation of the horizontal asymptote.2 marks
    Answer
    1. vertical asymptote: x = -4 A1
    2. horizontal asymptote: y = 3/1 = 3 A1

    Trap: x + 4 = 0 gives x = -4, not x = 4. The horizontal asymptote uses the coefficients of x (3 and 1), not the constants.

  4. The graph of y = (5x + 1)/(2x - 8) has a vertical asymptote and a horizontal asymptote. State which option gives the equations of both asymptotes. A. x = 4 and y = 5/2   B. x = -4 and y = 5/2 C. x = 4 and y = 2/5   D. x = 4 and y = -1/81 mark
    Answer
    1. A A1: 2x - 8 = 0 gives x = 4, and 5/2 is the quotient of the coefficients of x.
    2. B has a sign error: x = -4.
    3. C has the quotient upside down: c/a in place of a/c.
    4. D divides the constants, 1/(-8), in place of the coefficients of x.

    Trap: Each wrong option is a slip: a sign error, an inverted quotient, or constants used in place of coefficients.

  5. Do not use a calculator. The function f is defined by f(x) = (2x + 6)/(x - 1), x ≠ 1. Find the coordinates of the points where the graph of f intersects the coordinate axes.4 marks
    Answer
    1. solves 2x + 6 = 0 (M1)
    2. x = -3, so the point is (-3, 0) A1
    3. finds f(0) = 6/(-1) (M1)
    4. (0, -6) A1

    Trap: Give coordinates, with the 0 in the right place. f(0) has -1 in the denominator, so the sign changes.

  6. The concentration, C mg dm⁻³, of a drug in the blood t hours after an injection is modelled by C(t) = 30t/(t + 5), t ≥ 0. (a) Find C(5). (b) Write down the equation of the horizontal asymptote of the graph of y = C(t). (c) Explain what the horizontal asymptote tells you about the concentration of the drug.5 marks
    Answer
    1. (a)
    2. substitutes: C(5) = (30 × 5)/(5 + 5) (M1)
    3. C(5) = 15 mg dm⁻³ A1
    4. (b)
    5. y = 30 A1
    6. (c)
    7. as t increases, C gets closer to 30 R1
    8. but never reaches it, so the concentration does not go above 30 mg dm⁻³ R1

    Trap: An asymptote is approached, not met: do not say the concentration reaches 30. The vertical asymptote t = -5 is outside the domain t ≥ 0, so it is not the answer to (b).

  7. Do not use a calculator. The function f is defined by f(x) = (x + 3)/(x - 1), x ≠ 1. Show that f⁻¹(x) = f(x).3 marks
    Answer
    1. swaps x and y: x = (y + 3)/(y - 1) (M1)
    2. xy - x = y + 3, so y(x - 1) = x + 3 A1
    3. f⁻¹(x) = (x + 3)/(x - 1) A1
    4. so f⁻¹(x) = f(x) (AG)

    Trap: Finish with the statement f⁻¹(x) = f(x). Do not write f⁻¹(x) = 1/(f(x)).

  8. The function f is defined by f(x) = (x + 2)/(x - 2), x ≠ 2. Sketch the graph of y = f(x), showing the values of any intercepts with the axes and including any asymptotes, labelled with their equations.4 marks
    Answer
    1. shape: two branches in opposite corners of the asymptotes. The branch for x > 2 lies above y = 1, since f(3) = 5. The branch for x < 2 lies below y = 1 and passes through the intercepts.
    2. asymptote x = 2 drawn with its label A1
    3. asymptote y = 1 drawn with its label A1
    4. x-intercept (-2, 0) labelled A1
    5. y-intercept f(0) = 2/(-2), so (0, -1) labelled A1

    Trap: The intercepts (-2, 0) and (0, -1) lie on the left branch, below y = 1. Label each asymptote with its equation and each intercept with its coordinates.

  9. The function g is defined by g(x) = (px - 6)/(x + q), x ≠ -q, where p and q are constants. The graph of g has vertical asymptote x = 4. It is given that g⁻¹(x) = g(x). (a) Write down the value of q. (b) Determine the value of p. (c) Find the coordinates of the points where the graph of g intersects the coordinate axes. (d) Show that g(g(5)) = 5.8 marks
    Answer
    1. (a)
    2. -q = 4, so q = -4 A1
    3. (b)
    4. swaps x and y in y = (px - 6)/(x - 4): xy - 4x = py - 6, so g⁻¹(x) = (4x - 6)/(x - p) (M1)
    5. g⁻¹(x) = g(x) gives x - p = x - 4, so p = 4 A1
    6. (c)
    7. g(x) = (4x - 6)/(x - 4); solves 4x - 6 = 0 (M1)
    8. (3/2, 0) A1
    9. g(0) = (-6)/(-4), so (0, 3/2) A1
    10. (d)
    11. g(5) = (4(5) - 6)/(5 - 4) = 14 (M1)
    12. g(14) = (4(14) - 6)/(14 - 4) = 50/10 = 5 A1
    13. so g(g(5)) = 5 (AG)

    Trap: -q = 4 gives q = -4, not 4. For (d), a self-inverse function returns its input, so g(g(5)) must be 5: use that to check your arithmetic.

  10. A tank holds 40 dm³ of pure water. Salt solution is pumped in and nothing leaves. The salt concentration, C g dm⁻³, after t minutes is modelled by C(t) = 12t/(4t + 40), 0 ≤ t ≤ 50. (a) Find the equation of the horizontal asymptote of the graph of y = C(t). (b) Show that the model never gives a concentration of 3 g dm⁻³. (c) Find the value of t when the concentration is 2.4 g dm⁻³. (d) Determine the greatest concentration in the tank for 0 ≤ t ≤ 50.8 marks
    Answer
    1. (a)
    2. quotient of coefficients of t, 12/4 (M1)
    3. y = 3 A1
    4. (b)
    5. 12t/(4t + 40) = 3 gives 12t = 12t + 120, so 0 = 120, which is impossible R1
    6. (c)
    7. 12t = 2.4(4t + 40) (M1), so 12t = 9.6t + 96 A1
    8. 2.4t = 96, so t = 40 A1
    9. (d)
    10. C(t) = 3 - 30/(t + 10), which increases as t increases, so the greatest value is at t = 50 (M1)
    11. C(50) = 600/240 = 2.5 g dm⁻³ A1

    Trap: The asymptote y = 3 is approached but never reached, and on 0 ≤ t ≤ 50 the greatest concentration is C(50) = 2.5, not 3; dividing the constants, 0/40, gives the wrong asymptote.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
The vertical asymptote is 3.The vertical asymptote is x = 3: must see x =.
-d/c and -3/cx = -d/c and y = -3/c: answers must be correct equations.
Asymptotes drawn but not labelled.Asymptotes x = 2/3 and y = -1/3 drawn with correct labels.

Frequently asked questions

What is the vertical asymptote of a rational function?
The vertical asymptote is where the denominator is zero. For f(x) = (ax + b)/(cx + d), solve cx + d = 0 to get x = -d/c. The function is not defined at that value of x.
How do you find the horizontal asymptote of a rational function?
Consider f(x) as x → ±∞. For f(x) = (ax + b)/(cx + d), the quotient of the coefficients of x gives the horizontal asymptote y = a/c. Dividing the numerator by the denominator gives the same line.
Why is the reciprocal function f(x) = 1/x self-inverse?
A function is self-inverse when f⁻¹(x) = f(x), so applying it twice gives back the input. For the reciprocal, f(f(x)) = 1/(1/x) = x, because the reciprocal of a reciprocal is the number you started with.
How do you show that a rational function is self-inverse?
Either swap x and y and rearrange, or find f(f(x)) and simplify it to x. Finish with the statement f⁻¹(x) = f(x). Do not write f⁻¹(x) = 1/(f(x)) as the conclusion.
How do you find where a rational function meets the axes?
The x-intercept comes from ax + b = 0, because a fraction is zero when its numerator is zero, giving (-b/a, 0). The y-intercept is f(0), which gives (0, b/d). Give each intercept as a coordinate pair.
What mistakes do students make with asymptotes of rational functions?
Writing the vertical asymptote as a bare 3 is wrong. It must be x = 3, so the answer must show x =. Asymptotes drawn but not labelled lose the mark, so each one must be labelled with its equation. The horizontal asymptote uses the coefficients of x, not the constants.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters