Paper ZeroSign in

IB Maths Analysis and Approaches SL

Reciprocal and rational functions: question types and practice

Reciprocal and rational functions carried 2% of the marks in the 20 recent exams, through 2 kinds of question. The one worth the most marks is Rational functions.

Syllabus: AA SL 2.8: the reciprocal function f(x)=1xf(x) = \frac{1}{x}, x≠0x \ne 0, its graph and its self-inverse nature; rational functions of the form f(x)=ax+bcx+df(x) = \frac{ax + b}{cx + d} and their graphs; the equations of the vertical and horizontal asymptotes. The syllabus says a sketch should include every asymptote and any intercepts with the axes.
Papers: Mostly Paper 1. Of the 35 question parts on this guide's types set in 2021–26, 28 are on P1 (10 exam versions) and 7 on Paper 2 (3 versions): 13 of the 20 exam versions in all. The Paper 2 parts are the same shapes, still worked exactly. There, a GDC table of large-xx values or a graph can also earn the method mark for a horizontal asymptote, and the GDC checks a sketch.
Scope: AA SL only. Not taught here: rational functions with a quadratic on the top or the bottom, oblique asymptotes, and "holes" made by cancelling a common factor (AHL 2.13); sketching y=1f(x)y = \frac{1}{f(x)} from the graph of ff (AHL 2.16); solving an inequality between a rational function and another non-constant function (AHL 2.15), so a rational function against a parabola is never compared as an inequality: on P1 its meeting points are only counted from a sketch (Example 1.4), and on P2 the GDC finds them (Solve graphically: intersections, how many solutions, above or below a level); general self-inverse functions (AHL 2.14: SL names only 1x\frac{1}{x}).
Formula booklet: nothing for SL 2.8.

  • Not given: the asymptotes x=−dcx = -\frac{d}{c} and y=acy = \frac{a}{c} (they are in the syllabus guide, not the booklet); the intercepts (0,bd)\left(0, \frac{b}{d}\right) and (−ba,0)\left(-\frac{b}{a}, 0\right); the form p+qx−hp + \frac{q}{x - h}.

Try one now

A Reciprocal and rational functions question of the type "Rational functions". Work it out on paper, then type your answer here.

No calculator[1]

Let g(x)=5x+21−2xg(x) = \dfrac{5x + 2}{1 - 2x}, for x≠12x \ne \frac{1}{2}.

Write down the equation of the vertical asymptote of the graph of gg.

The whole equation, like y=2x+1y = 2x + 1

Free, with no account. You see where each mark went.

The 2 question types

  1. Rational functions

    Asymptotes, intercepts, sketch, range

    • In 12 of 20 recent exams
    • 1% of the marks

    Paper 1 (no calculator), 1–5 marks per part: a short question of 5–7 marks (the asymptotes, the intercepts, a sketch), or the first parts of a Section B question that goes on to the inverse (or where ff meets f−1f^{-1}), a transformation, the derivative, a line that meets the graph once, or a second graph. Very common (12 of 20 exam versions; 27 of its 34 question parts are on Paper 1 (no calculator)). On Paper 2 (calculator) (3 versions) the parts are the same and still exact. The counts at the top of this guide (35 parts, 13 versions) add the one part of Find a rational function's constants.

  2. Find a rational function's constants

    From its features

    • In 1 of 20 recent exams

    Paper 1 (no calculator), 3 marks in the one instance ((M1) for substituting a point, (M1) for solving the pair, A1 for both values), as the first part of a question whose later parts use the function (there, the transformations from 1x\frac{1}{x}). Rare (1 of 20 exam versions: two points on the graph, two unknowns). The version with a given asymptote had no 2021–26 instance; it uses the same facts.

The ideas you need

The reciprocal function 1x\frac{1}{x}

f(x)=1xf(x) = \frac{1}{x}, for x≠0x \ne 0.

xx1x\frac{1}{x}
−2-2−12-\frac{1}{2}
−1-1−1-1
−12-\frac{1}{2}−2-2
12\frac{1}{2}22
1111
2212\frac{1}{2}
  • Two branches (the graph is a hyperbola): one in the first quadrant, one in the third. There are no intercepts.
  • Asymptotes. As xx gets large, 1x\frac{1}{x} gets close to 00 but never reaches it: the xx-axis, y=0y = 0, is the horizontal asymptote. Near x=0x = 0 the values become very large, positive on the right and negative on the left: the yy-axis, x=0x = 0, is the vertical asymptote.
  • Domain x≠0x \ne 0, range y≠0y \ne 0.
  • Self-inverse. Swap xx and yy in y=1xy = \frac{1}{x}: x=1yx = \frac{1}{y}, so y=1xy = \frac{1}{x} again, and f−1(x)=1x=f(x)f^{-1}(x) = \frac{1}{x} = f(x). On the graph: the reflection in y=xy = x (The idea of an inverse function) is the graph itself. (2,12)\left(2, \frac{1}{2}\right) reflects to (12,2)\left(\frac{1}{2}, 2\right), which is also on it: in the table, the two rows hold the same numbers. 1x\frac{1}{x} is the only self-inverse function SL names (Self-inverse functions); the "show that f−1=ff^{-1} = f" parts set on SL papers are in Find the inverse function, with its domain.
  • kx\frac{k}{x} has the same shape. For k<0k < 0 the branches are in the second and fourth quadrants: −2x-\frac{2}{x} is −2-2 at x=1x = 1 and 22 at x=−1x = -1.

On its own, 1x\frac{1}{x} was not examined in 2021–26. It matters because every function in this guide is a transformed 1x\frac{1}{x}: stretched, reflected when the numerator qq of p+qx−hp + \frac{q}{x - h} is negative, and translated (The form p + q/(x − h)).

  • y=1xy = \frac{1}{x}
  • y=xy = x

Two branches, in the first and third quadrants, with the axes as asymptotes and no intercepts. The graph is its own reflection in y=xy = x: (2,12)(2, \frac{1}{2}) reflects to (12,2)(\frac{1}{2}, 2), which is also on it, so 1x\frac{1}{x} is self-inverse.

Asymptotes of ax+bcx+d\frac{ax + b}{cx + d}

Let f(x)=ax+bcx+df(x) = \frac{ax + b}{cx + d}, with c≠0c \ne 0 (otherwise ff is a straight line) and the top not a multiple of the bottom (otherwise ff is a constant with one missing point: see Letters below).

  • Vertical asymptote: where the denominator is 00. cx+d=0cx + d = 0, so x=−dcx = -\frac{d}{c}. ff is undefined there, and near it the values become very large, positive on one side and negative on the other.
  • Horizontal asymptote: y=acy = \frac{a}{c}, the ratio of the xx-coefficients, with their signs. For large xx the constants bb and dd hardly matter: ax+bcx+d≈axcx=ac\frac{ax + b}{cx + d} \approx \frac{ax}{cx} = \frac{a}{c}. If the top has no xx-term, its xx-coefficient is 00 and the horizontal asymptote is y=0y = 0: 5x−2\frac{5}{x - 2} has asymptotes x=2x = 2 and y=0y = 0, like 1x\frac{1}{x}. Three routes, and markschemes accept all of them:
    1. the ratio of the xx-coefficients;
    2. a limit: values of ff for large xx (Limits);
    3. rewriting as p+qx−hp + \frac{q}{x - h} (The form p + q/(x − h)).
  • Write both as equations: x=…x = \ldots and y=…y = \ldots. A bare number, "VA =2= 2" or "x≠2x \ne 2" is not an asymptote.

Mini-example: f(x)=6x−12x+5f(x) = \frac{6x - 1}{2x + 5}. The vertical asymptote is 2x+5=02x + 5 = 0: x=−52x = -\frac{5}{2}. The horizontal asymptote is y=62=3y = \frac{6}{2} = 3. The limit route agrees: f(100)=599205=2.92…f(100) = \frac{599}{205} = 2.92\ldots, f(1000)=59992005=2.992…f(1000) = \frac{5999}{2005} = 2.992\ldots, and from the other side f(−1000)=−6001−1995=3.008…f(-1000) = \frac{-6001}{-1995} = 3.008\ldots

  • The graph never takes the value ac\frac{a}{c}. Try 6x−12x+5=3\frac{6x - 1}{2x + 5} = 3: then 6x−1=6x+156x - 1 = 6x + 15, so −1=15-1 = 15, which is impossible. That is why the range is y≠acy \ne \frac{a}{c}. So, on the largest domain, a horizontal line y=ky = k meets the graph exactly once for every k≠ack \ne \frac{a}{c}, and never for k=ack = \frac{a}{c}. (A stated domain that leaves out one more xx-value removes one more kk: the value of ff there, as in Example 1.3.)
  • Signs, when c<0c < 0: in 2x+53−4x\frac{2x + 5}{3 - 4x} the xx-coefficient of the denominator is −4-4. The vertical asymptote is 3−4x=03 - 4x = 0, x=34x = \frac{3}{4}, and the horizontal asymptote is y=2−4=−12y = \frac{2}{-4} = -\frac{1}{2}.
  • Letters follow the same rules: x+1kx−2\frac{x + 1}{kx - 2} has asymptotes x=2kx = \frac{2}{k} and y=1ky = \frac{1}{k}. A question with letters excludes the values that break the shape: k=0k = 0 (a straight line), and a value that makes the top a multiple of the bottom, which gives a constant with a gap (here k=−2k = -2: x+1−2x−2=−12\frac{x + 1}{-2x - 2} = -\frac{1}{2} for x≠−1x \ne -1). The top is a multiple of the bottom exactly when ad=bcad = bc, that is, when the xx-coefficients and the constants are in the same ratio.
  • y=6x−12x+5y = \frac{6x - 1}{2x + 5}

The denominator is 00 at x=−52x = -\frac{5}{2}: the vertical asymptote, with the values shooting up on one side and down on the other. The ratio of the xx-coefficients, 62=3\frac{6}{2} = 3, is the horizontal asymptote: the graph approaches y=3y = 3 from both sides and never takes that value.

Intercepts

  • yy-intercept: put x=0x = 0. f(0)=bdf(0) = \frac{b}{d}, the point (0,bd)\left(0, \frac{b}{d}\right).
  • xx-intercept: a fraction is 00 exactly when its numerator is 00. ax+b=0ax + b = 0, so x=−bax = -\frac{b}{a}, the point (−ba,0)\left(-\frac{b}{a}, 0\right).
  • Give coordinates. Some markschemes also accept x=…x = \ldots or f(0)=…f(0) = \ldots, but coordinates always score.
  • When one is missing: 5x−2\frac{5}{x - 2} has no xx-intercept (its top is never 00), and 3x+1x\frac{3x + 1}{x} has no yy-intercept (its vertical asymptote is the yy-axis).

Mini-example: f(x)=2x+3x+6f(x) = \frac{2x + 3}{x + 6}. f(0)=36f(0) = \frac{3}{6}, so (0,12)\left(0, \frac{1}{2}\right); 2x+3=02x + 3 = 0, so (−32,0)\left(-\frac{3}{2}, 0\right).

  • y=2x+3x+6y = \frac{2x + 3}{x + 6}

The yy-intercept comes from x=0x = 0: 36=12\frac{3}{6} = \frac{1}{2}. The xx-intercept comes from the numerator alone: 2x+3=02x + 3 = 0 at x=−32x = -\frac{3}{2}. Both sit on the same branch here, right of the vertical asymptote x=−6x = -6.

Sketch, domain and range

The asymptotes cross at the point (−dc,ac)\left(-\frac{d}{c}, \frac{a}{c}\right) and cut the plane into four quarters. (Markschemes call them quadrants, counted from the point where the asymptotes cross.) The graph has two branches, in opposite quarters: top-right and bottom-left, or top-left and bottom-right. An intercept says which pair: the quarter it lies in holds one branch, and the opposite quarter holds the other.

  1. Draw the asymptotes as dashed lines, labelled with their equations.
  2. Plot and label the intercepts.
  3. Draw one branch in the quarter of an intercept and the other in the opposite quarter (if the two intercepts are in opposite quarters, each branch goes through one of them). Each branch approaches both asymptotes without touching them and never turns back: ff has no turning points.

Mini-example: f(x)=x+5x+1f(x) = \frac{x + 5}{x + 1} has asymptotes x=−1x = -1 and y=1y = 1. Its yy-intercept (0,5)(0, 5) is right of x=−1x = -1 and above y=1y = 1: a top-right branch. The other branch is bottom-left, and the xx-intercept (−5,0)(-5, 0) is there (left of −1-1, below 11). Here the two intercepts are on different branches.

  • Domain x≠−dcx \ne -\frac{d}{c} and range y≠acy \ne \frac{a}{c}. Accepted forms of the range: y≠1y \ne 1; f(x)≠1f(x) \ne 1; y<1y < 1 or y>1y > 1; y∈Ry \in \mathbb{R}, y≠1y \ne 1.
  • A stated domain that leaves out one more value. If the question defines ff for x≠1x \ne 1 as well (with 11 not the asymptote), the graph has an open circle at (1,f(1))(1, f(1)), and the range loses f(1)f(1) too, because ff takes each value only once. Draw an open circle only when the question's domain says so.
  • Not at SL: a "hole" made by cancelling a common factor of the top and the bottom (a higher-degree rational function, AHL 2.13, or the excluded constant case above), and the graph of 1f(x)\frac{1}{f(x)} drawn from the graph of ff (AHL 2.16).
  • The marks: the shape (two branches, opposite quarters, approaching the asymptotes) first; some markschemes give the other marks only when the shape is right. Then marks for the labelled asymptotes and the labelled intercepts, split differently from one markscheme to the next: a 5-mark sketch has given one mark to each asymptote and to each intercept; a 3-mark sketch has given one to each intercept, with the asymptotes inside the shape mark; a 1- or 2-mark sketch groups them all. Some markschemes accept them unlabelled, in roughly the right places; others give each label its own mark. Label every asymptote and every intercept, and every split is covered. The sketch conventions shared by every topic are in Sketching.
  • y=x+5x+1y = \frac{x + 5}{x + 1}

The asymptotes cut the plane into four quarters. The yy-intercept (0,5)(0, 5) is right of x=−1x = -1 and above y=1y = 1, so one branch is top-right; the other is bottom-left, and the xx-intercept (−5,0)(-5, 0) lies on it. Each branch approaches both asymptotes and never turns.

The form p + q/(x − h)

Write the numerator as a multiple of the denominator plus a number. The multiple is ac\frac{a}{c}, the horizontal asymptote's value:

2x+7x+3=2(x+3)+1x+3=2+1x+3\frac{2x + 7}{x + 3} = \frac{2(x + 3) + 1}{x + 3} = 2 + \frac{1}{x + 3}
  • The asymptotes can be read off: x=−3x = -3 (the fraction is undefined) and y=2y = 2 (the fraction tends to 00 for large xx and is never 00).
  • The sign of qq picks the quarters: q>0q > 0 gives top-right and bottom-left, like 1x\frac{1}{x}; q<0q < 0 gives top-left and bottom-right. Read qq only once the denominator is x−hx - h: in −1+31−x-1 + \frac{3}{1 - x} the 33 is not qq (see When c<0c < 0 below).
  • When c≠1c \ne 1: 6x+12x−1=3(2x−1)+42x−1=3+42x−1=3+2x−12\frac{6x + 1}{2x - 1} = \frac{3(2x - 1) + 4}{2x - 1} = 3 + \frac{4}{2x - 1} = 3 + \frac{2}{x - \frac{1}{2}}. The ratio route gives the same y=62=3y = \frac{6}{2} = 3.
  • When c<0c < 0: x+21−x=−(1−x)+31−x=−1+31−x=−1−3x−1\frac{x + 2}{1 - x} = \frac{-(1 - x) + 3}{1 - x} = -1 + \frac{3}{1 - x} = -1 - \frac{3}{x - 1}, so q=−3<0q = -3 < 0.
  • In general, ax+bcx+d=ac+b−adccx+d\frac{ax + b}{cx + d} = \frac{a}{c} + \frac{b - \frac{ad}{c}}{cx + d}. So every such function is y=1xy = \frac{1}{x} stretched vertically (and reflected in the xx-axis when q<0q < 0) and translated, and the centre (0,0)(0, 0) of 1x\frac{1}{x} moves to the point where the asymptotes cross. Describing those transformations is Name the transformation: describe it or find its constants.
  • Why there are no turning points: f′(x)=ad−bc(cx+d)2f'(x) = \frac{ad - bc}{(cx + d)^2} is never 00 (Where rational functions hide).
  • y=1xy = \frac{1}{x}
  • y=2+1x+3y = 2 + \frac{1}{x + 3}

Written as 2+1x+32 + \frac{1}{x + 3}, the asymptotes can be read off: x=−3x = -3, where the fraction is undefined, and y=2y = 2, which the fraction's 00 never reaches. It is y=1xy = \frac{1}{x} translated so that its centre sits at (−3,2)(-3, 2); q=1>0q = 1 > 0 keeps the branches top-right and bottom-left.


Where rational functions hide in other topics

A rational function is often only the setting: the question's method belongs to another topic. The first move is usually to clear the denominator, or to rewrite in the form p+qx−hp + \frac{q}{x - h}.

  • A sloping line meets or touches the graph: for which kk does y=k−xy = k - x touch y=x+3x−1y = \frac{x + 3}{x - 1}? (Two graphs: tangent, meet, don't meet)
    It becomes
    multiply by x−1x - 1: x2−kx+k+3=0x^2 - kx + k + 3 = 0, a quadratic. Touching means Δ=k2−4k−12=0\Delta = k^2 - 4k - 12 = 0, so k=6k = 6 or k=−2k = -2
    Watch for
    a root at the excluded xx (here 11) is not a meeting point; here the points of contact are (3,3)(3, 3) and (−1,−1)(-1, -1)
  • The derivative of ax+bcx+d\frac{ax + b}{cx + d} (Differentiate: choose the rule; Where is f increasing or decreasing?)
    It becomes
    f′(x)=ad−bc(cx+d)2f'(x) = \frac{ad - bc}{(cx + d)^2}: never 00, so no turning points, and the same sign on both branches
    Watch for
    not increasing across the asymptote: 5x+1x+3\frac{5x + 1}{x + 3} has f′(x)=14(x+3)2>0f'(x) = \frac{14}{(x + 3)^2} > 0, yet f(−4)=19>f(0)=13f(-4) = 19 > f(0) = \frac{1}{3}
  • Integrating ax+bcx+d\frac{ax + b}{cx + d} (Integrate: choose the method)
    It becomes
    the form p+qx−hp + \frac{q}{x - h} first (The form p + q/(x − h)), then a ln⁡\ln: ∫2x+7x+3 dx=2x+ln⁡∣x+3∣+c\int \frac{2x + 7}{x + 3}\,dx = 2x + \ln \lvert x + 3 \rvert + c
    Watch for
    Not set on 2021–26 SL papers. If it is, the form p+qx−hp + \frac{q}{x - h} may be given or asked for first ("show that …", then "hence"); if not, rewrite it yourself: it is not a "not by hand" integral. A definite integral across the vertical asymptote does not exist.
  • The inverse of a rational function (Find the inverse function, with its domain)
    It becomes
    another rational function: the horizontal asymptote y=acy = \frac{a}{c} of ff becomes the vertical asymptote x=acx = \frac{a}{c} of f−1f^{-1}, and the vertical asymptote x=−dcx = -\frac{d}{c} becomes y=−dcy = -\frac{d}{c}
    Watch for
    the domain of f−1f^{-1} is the range of ff, with no formula needed (Example 1.2)
  • A rational function as a transformed 1x\frac{1}{x} (Name the transformation: describe it or find its constants)
    It becomes
    2x+7x+3=2+1x+3\frac{2x + 7}{x + 3} = 2 + \frac{1}{x + 3}: the graph of 1x\frac{1}{x} translated by (−32)\binom{-3}{2}
    Watch for
    a vertical stretch with scale factor ∣q∣\lvert q \rvert (and a reflection in the xx-axis when q<0q < 0) comes before the vertical translation
  • A rational model in a context, such as the average cost per item A(n)=2000+5nnA(n) = \frac{2000 + 5n}{n} (Rate of change in context: find it and interpret it)
    It becomes
    A(n)=5+2000nA(n) = 5 + \frac{2000}{n}: the horizontal asymptote is the long-run value, 55
    Watch for
    the model approaches the asymptote's value but never reaches it

More in Functions

Every topic of the course

Guides