Educerie
Level

This whole subtopic is higher level. Nothing in it is on an SL paper.

Educerie · IB Diploma · Mathematics: analysis and approaches

Topic 2 Functions · 2.13 Rational functions of the form (ax + b)/(cx² + dx + e) and (ax² + bx + c)/(dx + e)

Level
HL only, the whole subtopic. If you are SL, none of this is on your papers.
Themes (key concepts)
representation, patterns, relationships. The same function can be read as a formula, as the quotient and remainder of a division, or as a graph, and each representation shows a different feature: the division shows the oblique asymptote, the factorised denominator shows the vertical ones, and the graph shows where the function never goes.
The question this unit answers
when a fraction has a linear expression over a quadratic, or a quadratic over a linear one, what do its asymptotes look like, and how do you sketch the whole graph and find its range without plotting?
Where it is examined
Paper 1, 5 to 8 marks: "write down the equations of all asymptotes", "express f(x) in the form Ax + B + C/(dx + e)", "sketch the graph of f, showing all asymptotes and intercepts", "find the range of f". Paper 2 adds the GDC for turning points. The same functions reappear in calculus (5.x HL), where you differentiate them to find turning points and integrate the divided form.

What you must be able to do

You must be able toLevelWhat it looks like in the exam
Find the vertical asymptotes of a rational function from the zeros of its denominatorHL"Write down the equations of the vertical asymptotes" (2 marks)
Know that (ax + b)/(cx² + dx + e) has horizontal asymptote y = 0, and that the graph may cross itHL"Write down the equation of the horizontal asymptote" (1 mark)
Divide (ax² + bx + c) by (dx + e) to find an oblique asymptoteHL"Express f(x) in the form Ax + B + C/(dx + e)", then "hence write down the equation of the oblique asymptote" (4 to 5 marks)
Find the intercepts with the axesHLPart of every sketch (1 mark each)
Sketch the graph with all asymptotes and intercepts, and the correct behaviour near each asymptoteHL"Sketch the graph of y = f(x)" (3 to 4 marks)
Find the range, by the GDC or by the discriminant methodHL"Find the range of f" (3 to 5 marks)
See the reciprocal function 1/x as a particular caseHLLinks back to 2.8

Before you start

You need the SL rational function (ax + b)/(cx + d) from 2.8: vertical asymptote x = −d/c, horizontal asymptote y = a/c. You need to factorise quadratics and use the discriminant (2.7), and polynomial division from 2.12. Transformations (2.11) explain why 1/x and its relatives look the way they do.


1The idea in one paragraph

A rational function is one polynomial divided by another. At HL you meet two new shapes. In (ax + b)/(cx² + dx + e) the bottom grows faster than the top, so for large x the fraction dies away to zero: the horizontal asymptote is y = 0. In (ax² + bx + c)/(dx + e) the top grows faster, so the fraction does not settle to a constant; divide it out and you get a straight line plus a remainder fraction that dies away, so the graph settles onto that line, an oblique asymptote. In both, the graph shoots off to infinity wherever the denominator is zero and the numerator is not, which gives the vertical asymptotes. Find the asymptotes and the intercepts, work out the sign of the function on each side, and the graph draws itself.

2Where the asymptotes come from

Two rules find every asymptote in this subtopic:

  • Vertical asymptotes: x = k for every real k that makes the denominator zero and the numerator non-zero. Near such a k the fraction is a normal number divided by something tiny, so it is huge, positive or negative.
  • The long-run asymptote comes from comparing degrees. Top degree lower: y = 0. Degrees equal (the SL case): y = a/c. Top degree one higher: an oblique line, found by division.

Why the degrees? For large x, only the leading terms matter. (ax + b)/(cx² + dx + e) behaves like ax/(cx²) = a/(cx), which tends to 0. (ax² + bx + c)/(dx + e) behaves like ax²/(dx) = (a/d)x, which grows without limit along a line of gradient a/d.

3Linear over quadratic: (ax + b)/(cx² + dx + e)

Worked example 1 · two vertical asymptotes (Paper 1). Sketch y = (x + 1)/(x² − x − 6).

denominator: x2 − x − 6 = (x − 3)(x + 2)zero at x = 3 and x = −2
numerator at those points: 4 and −1neither is zero, so both are asymptotes
vertical asymptotes: x = 3, x = −2
horizontal asymptote: y = 0top degree 1, bottom degree 2
x-intercept: x + 1 = 0, so (−1, 0)
y-intercept: x = 0 gives 1/(−6), so (0, −1/6)

Now the signs. The function can only change sign where the top or the bottom is zero, at −2, −1 and 3. Test one value in each interval, or count the negative factors:

Intervalx + 1x + 2x − 3Sign of y
x < −2−−−−
−2 < x < −1−+−+
−1 < x < 3++−−
x > 3++++

That table is the sketch. On the far left y is negative and near 0, so the curve sits just below y = 0 and plunges to −∞ as it reaches x = −2. Just right of −2 it is positive, so it comes down from +∞, crosses the axis at −1, carries on negative through (0, −⅙) and plunges to −∞ at x = 3. Right of 3 it comes down from +∞ towards y = 0, staying above it. Figure 1 is the result.

Figure 1 · y = (x + 1)/(x² − x − 6) Figure 1 · y = (x + 1)/(x² − x − 6) x y −4 2 4 6 −4 −2 2 4 x = −2 x = 3 (−1, 0) (0, −⅙) − + − + Two vertical asymptotes from the two roots of the denominator; y = 0 as x → ±∞. The signs show which side of y = 0 each branch lies on; the middle branch crosses y = 0 at x = −1.
Figure 1 · y = (x + 1)/(x² − x − 6)

Notice that the middle branch crosses the horizontal asymptote at (−1, 0). That is allowed: a horizontal asymptote describes what happens as x → ±∞, not near the middle. For this family the crossing happens exactly at the x-intercept, because the asymptote is y = 0.

When the denominator has no real roots. If the discriminant of cx² + dx + e is negative, the bottom is never zero and there is no vertical asymptote. The graph is one unbroken curve with a maximum and a minimum. Figure 2(a) shows y = (x + 1)/(x² + 3): x² + 3 ≥ 3 for all x. The intercepts are (−1, 0) and (0, ⅓), the asymptote is y = 0, and the turning points are (1, ½) and (−3, −⅙). You would find those with the GDC on Paper 2, or with calculus; section 6 finds the range without either.

When the denominator is a perfect square. For y = (x + 2)/(x − 1)² the only vertical asymptote is x = 1, but (x − 1)² is positive on both sides of it. Near x = 1 the numerator is about 3, so y → +∞ from both sides, as Figure 2(b) shows. A repeated factor in the denominator is the rational-function version of a double root: no change of sign.

Figure 2 · When the denominator has no real roots, or a repeated one Figure 2 · When the denominator has no real roots, or a repeated one (a) y = (x + 1)/(x² + 3) x y −6 −3 1 3 0.5 max (1, ½) min (−3, −⅙) (b) y = (x + 2)/(x − 1)² x y −2 1 3 4 6 x = 1 (−2, 0) (0, 2) min (−5, −1/12) (a) x² + 3 is never zero: no vertical asymptote, and the range is −⅙ ≤ y ≤ ½. (b) A squared factor below: both sides of x = 1 go to +∞, because (x − 1)² is never negative.
Figure 2 · When the denominator has no real roots, or a repeated one

The reciprocal function is a particular case. 1/x has a constant on top and a linear expression below, so it fits (ax² + bx + c)/(dx + e) with a = b = 0, c = 1, d = 1, e = 0: vertical asymptote x = 0, and the "oblique" asymptote is the line y = 0. Its reflection in y = x is itself, which is why 1/x is its own inverse (2.14). A reciprocal of a quadratic, such as 1/(x² − 4), is the other family with a = 0: asymptotes x = ±2 and y = 0.

A common factor is a hole, not an asymptote. If the top and bottom share a factor, as in (x − 2)/(x² − 4) = 1/(x + 2) for x ≠ 2, there is no asymptote at x = 2, only a missing point (a hole) at (2, ¼). That is why the rule says "denominator zero and numerator non-zero". Exam questions in this family are usually set so that it does not happen, but check.

4Quadratic over linear: (ax² + bx + c)/(dx + e) and the oblique asymptote

Here the top has the higher degree, so first divide. The aim is the form

f(x) = Ax + B + R/(dx + e)

where Ax + B is the quotient and R is a constant remainder. As x → ±∞, R/(dx + e) → 0, so the graph approaches the line y = Ax + B, the oblique asymptote. The vertical asymptote is x = −e/d as before.

Worked example 2 · finding the oblique asymptote (Paper 1). Let f(x) = (x² + 2x − 3)/(x − 2). Use comparing coefficients, as in 2.12:

x2 + 2x − 3 = (x − 2)(Ax + B) + R
x2: A = 1
x: B − 2A = 2, so B = 4
constant: −2B + R = −3, so R = 5
f(x) = x + 4 + 5/(x − 2)

Synthetic division gives the same with less writing: bring down 1, then 1 × 2 + 2 = 4, then 4 × 2 − 3 = 5. Quotient x + 4, remainder 5.

So the asymptotes are x = 2 and y = x + 4. The x-intercepts come from the numerator: x² + 2x − 3 = (x + 3)(x − 1), giving (−3, 0) and (1, 0). The y-intercept is f(0) = −3/−2, giving (0, 1.5).

Which side of the oblique asymptote? The gap between the curve and the line is exactly the remainder term, 5/(x − 2). For x > 2 it is positive, so the curve lies above y = x + 4; for x < 2 it is negative, so the curve lies below. Figure 3 shows both branches doing just that. It also shows why this curve can never cross its oblique asymptote: 5/(x − 2) is never zero.

Figure 3 · y = (x² + 2x − 3)/(x − 2): an oblique asymptote Figure 3 · y = (x² + 2x − 3)/(x − 2): an oblique asymptote x y −6 4 8 −5 5 10 15 x = 2 y = x + 4 (−3, 0) (1, 0) (0, 1.5) above: 5/(x − 2) > 0 below: 5/(x − 2) < 0 Division gives x + 4 + 5/(x − 2). Far out the last term dies away and the curve hugs y = x + 4.
Figure 3 · y = (x² + 2x − 3)/(x − 2): an oblique asymptote

On Paper 2, the GDC gives the turning points (−0.236, 1.53) and (4.24, 10.5); exactly, they are (2 − √5, 6 − 2√5) and (2 + √5, 6 + 2√5).

When the leading coefficient of the divisor is not 1. Divide 2x² − x + 3 by 2x + 1:

2x2 − x + 3 = (2x + 1)(Ax + B) + R
x2: 2A = 2, so A = 1
x: A + 2B = −1, so B = −1
constant: B + R = 3, so R = 4
(2x2 − x + 3)/(2x + 1) = x − 1 + 4/(2x + 1)

Oblique asymptote y = x − 1, vertical asymptote x = −½. Checking by multiplying back takes ten seconds: (2x + 1)(x − 1) + 4 = 2x² − x − 1 + 4 = 2x² − x + 3.

5Sketching: the full checklist

Figure 4 puts the asymptote rules on one card.

Figure 4 · Reading the asymptotes from the degrees Figure 4 · Reading the asymptotes from the degrees top degree < bottom degree (ax + b)/(cx² + dx + e) horizontal asymptote y = 0 equal degrees (ax + b)/(cx + d) (SL 2.8) horizontal asymptote y = a/c top one degree higher (ax² + bx + c)/(dx + e) oblique asymptote: divide every case vertical asymptote x = k wherever the denominator is 0 and the top is not Vertical asymptotes come from the denominator; the long-run asymptote comes from comparing degrees.
Figure 4 · Reading the asymptotes from the degrees

A sketch of a rational function earns its marks for these things, and only these: the correct shape of each branch, every asymptote drawn dashed and labelled with its equation, and every intercept labelled with its coordinates. Turning points are labelled only if the question asks.

  1. Factorise the denominator; its real zeros give the vertical asymptotes. Check the numerator is not also zero there.
  2. Compare degrees: y = 0, y = a/c, or divide for the oblique asymptote.
  3. Intercepts: y-intercept f(0); x-intercepts from numerator = 0.
  4. Signs: use the zeros of the top and bottom to split the x-axis, and find the sign in each interval. A single factor changes sign; a squared factor does not.
  5. Near each vertical asymptote, the sign on each side tells you whether the curve goes to +∞ or −∞ there.
  6. Far out, the sign of the remainder term (or of y itself, for the linear-over-quadratic family) says which side of the asymptote the curve approaches from.
  7. Join up, without crossing any vertical asymptote and without the curve turning back across an oblique one.

6The range, and the gap in the middle

A function of the second family often misses a whole band of y-values. Figure 5 shows y = (x² + 3)/(x − 1) = x + 1 + 4/(x − 1). The left branch rises to a maximum at (−1, −2) and falls away; the right branch falls to a minimum at (3, 6) and rises. Nothing in between is ever reached: the range is y ≤ −2 or y ≥ 6.

Figure 5 · y = (x² + 3)/(x − 1) never takes values between −2 and 6 Figure 5 · y = (x² + 3)/(x − 1) never takes values between −2 and 6 x y −5 −1 3 7 −10 −2 6 12 x = 1 y = x + 1 (−1, −2) (3, 6) no outputs here The two branches turn at (−1, −2) and (3, 6). The range is y ≤ −2 or y ≥ 6.
Figure 5 · y = (x² + 3)/(x − 1) never takes values between −2 and 6

On Paper 2 you would read the turning points off the GDC. On Paper 1 there is an algebraic method that needs no calculus, the discriminant method. It asks a clean question: for which values of y does the equation y = f(x) have a real solution x?

Worked example 3 · range by the discriminant (Paper 1). Find the range of f(x) = (x² + 3)/(x − 1).

y = (x2 + 3)/(x − 1)
y(x − 1) = x2 + 3multiply up; x ≠ 1
x2 − yx + (y + 3) = 0a quadratic in x
real x needs Δ ≥ 0: y2 − 4(y + 3) ≥ 0
y2 − 4y − 12 ≥ 0
(y − 6)(y + 2) ≥ 0
y ≤ −2 or y ≥ 6

The boundary values are where Δ = 0, a single repeated x, which is exactly the turning points: y = 6 gives x² − 6x + 9 = 0, so x = 3, and y = −2 gives x² + 2x + 1 = 0, so x = −1.

The same method works for the first family. For y = (x + 1)/(x² + 3), multiply up to get yx² − x + (3y − 1) = 0. For y ≠ 0 this is a quadratic in x, and real roots need 1 − 4y(3y − 1) ≥ 0, that is 12y² − 4y − 1 ≤ 0, or (6y + 1)(2y − 1) ≤ 0. So −⅙ ≤ y ≤ ½, and y = 0 is included too since x = −1 gives it. That is the range quoted in Figure 2(a).

Two cautions. The inequality from Δ is solved like any quadratic inequality (2.7), so sketch the parabola in y if the direction is unclear. And if the coefficient of x² in your quadratic can be zero for some y, check that value of y separately, as with y = 0 above.

7With technology

The guide expects graphs of these functions to be explored with dynamic graphing software, and Paper 2 expects the GDC. Graph the function, then graph each asymptote you found as a separate line and check the curve hugs it. Use the maximum and minimum tools for turning points and quote them to 3 s.f. Watch for two illusions: a connected-mode line drawn down a vertical asymptote, and a window too narrow to show that a curve is approaching an oblique line rather than bending away from it. Zoom out.

8Where marks are lost

Writing asymptotes as numbers. "Vertical asymptote 2" is not an equation. Write x = 2, y = 0, y = x + 4.

Giving (ax + b)/(cx² + dx + e) the SL asymptote y = a/c. That rule is for equal degrees. With a quadratic below, the horizontal asymptote is y = 0.

Missing the oblique asymptote. A quadratic over a linear expression has no horizontal asymptote. Divide, and write y = Ax + B.

Keeping the remainder in the asymptote. The asymptote is y = x + 4, not y = x + 4 + 5/(x − 2). The remainder term is what dies away.

Claiming an asymptote where the top is also zero. A common factor gives a hole, not an asymptote.

Drawing the curve crossing a vertical asymptote, or turning back across an oblique one. The function is undefined on the vertical line, and a nonzero remainder keeps the curve on one side of the oblique one on each branch.

Wrong direction at a repeated vertical asymptote. With (x − 1)² below, both sides go the same way. Check the sign of the numerator there.

Giving the range as an interval between turning points. For the quadratic-over-linear family the range is usually two pieces: y ≤ the maximum or y ≥ the minimum, with the local maximum below the local minimum.

9Work it right

  1. Factorise the denominator first; its real zeros, not shared with the numerator, are the vertical asymptotes.
  2. Compare degrees. Top lower: y = 0. Top one higher: divide into Ax + B + R/(dx + e).
  3. Check the division by multiplying back.
  4. Find both kinds of intercept; label them as coordinates.
  5. Build a sign table on the zeros of top and bottom; use it for the behaviour at each asymptote.
  6. For the range, use Δ ≥ 0 on the quadratic in x (Paper 1) or the GDC turning points (Paper 2).
  7. Draw every asymptote dashed and labelled with its equation, then the curve.

10Try it

Marks in brackets. Q1 to Q3 and Q5 are Paper 1 style, no calculator. Q4 is Paper 2 style, with a GDC.

Q1. Let f(x) = (2x − 4)/(x² − 2x − 3).

(a) Write down the equations of all the asymptotes of the graph of f. 3 marks

(b) Find the coordinates of the points where the graph meets the axes. 2 marks

(c) Sketch the graph of y = f(x). 3 marks

Q2. Let g(x) = (2x² − x + 3)/(2x + 1), x ≠ −½.

(a) Express g(x) in the form Ax + B + C/(2x + 1), where A, B and C are constants. 3 marks

(b) Hence write down the equations of the asymptotes of the graph of g. 2 marks

Q3. Let h(x) = x/(x² + 4). Find the range of h. 5 marks

Q4. Let f(x) = (x² − 5)/(x + 3), x ≠ −3.

(a) Write down the equation of the vertical asymptote, and find the equation of the oblique asymptote. 3 marks

(b) Find the coordinates of the local maximum and local minimum points. 2 marks

(c) Hence write down the range of f. 2 marks

Q5. The graph of y = (ax + 1)/(x² + bx + c) has vertical asymptotes x = 2 and x = −3 and passes through the point (1, 1). Find a, b and c. 4 marks

11In one breath

A rational function is a polynomial over a polynomial. Vertical asymptotes sit where the denominator is zero and the numerator is not; a shared factor is only a hole. For linear over quadratic, the bottom wins as x → ±∞, so the horizontal asymptote is y = 0, and the graph may cross it at its x-intercept; a denominator with negative discriminant gives no vertical asymptote at all, and a squared factor gives an asymptote with the same sign on both sides. For quadratic over linear, divide to get Ax + B + R/(dx + e): the vertical asymptote is x = −e/d, the oblique asymptote is y = Ax + B, and the sign of the remainder term says which side the curve is on. The reciprocal function 1/x is a particular case. Sketch with every asymptote dashed and labelled as an equation and every intercept as a point, using a sign table. For the range, write y = f(x) as a quadratic in x and demand Δ ≥ 0, or read the turning points from the GDC; for the quadratic-over-linear family the range often has a gap.


Answers

Q1. (a) x² − 2x − 3 = (x − 3)(x + 1), and the numerator is non-zero at 3 and −1, so x = 3 and x = −1. Top degree 1 < bottom degree 2, so y = 0. A1 for each equation. Asymptotes written as numbers score A0.

(b) f(0) = −4/−3, giving (0, 4/3). 2x − 4 = 0 gives (2, 0). A1 for each point.

(c) Signs: x < −1 negative; −1 < x < 2 positive; 2 < x < 3 negative; x > 3 positive. So the left branch lies below y = 0 and falls to −∞ at x = −1; the middle branch comes down from +∞ at x = −1, passes through (0, 4/3) and (2, 0), and falls to −∞ at x = 3; the right branch comes down from +∞ at x = 3 towards y = 0 from above. A1 for the three branches in the correct regions, A1 for the correct behaviour at both vertical asymptotes, A1 for the intercepts and asymptotes shown and labelled.

Q2. (a) 2x² − x + 3 = (2x + 1)(Ax + B) + C. Comparing: 2A = 2, so A = 1; A + 2B = −1, so B = −1; B + C = 3, so C = 4. g(x) = x − 1 + 4/(2x + 1). M1 for a valid division method, A1 for A and B, A1 for C.

(b) x = −½ and y = x − 1. A1 for each. Writing y = x − 1 + 4/(2x + 1) as the asymptote scores A0.

Q3. Let y = x/(x² + 4). Then yx² − x + 4y = 0. For y ≠ 0 this is a quadratic in x with real roots when Δ = 1 − 16y² ≥ 0, so y² ≤ 1/16 and −¼ ≤ y ≤ ¼. Also y = 0 is attained at x = 0. The range is −¼ ≤ h(x) ≤ ¼. M1 for rearranging into a quadratic in x, M1 for using Δ ≥ 0, A1 for 1 − 16y² ≥ 0, A1 for −¼ ≤ y ≤ ¼, R1 for dealing with y = 0. A GDC-free answer from "maximum at x = 2" with no justification scores at most A1.

Q4. (a) x = −3. Dividing: x² − 5 = (x + 3)(x − 3) + 4, so f(x) = x − 3 + 4/(x + 3), and the oblique asymptote is y = x − 3. A1 for x = −3, M1 for division, A1 for y = x − 3.

(b) Using the GDC: local maximum (−5, −10), local minimum (−1, −2). A1 for each point.

(c) The left branch never rises above −10 and the right branch never falls below −2, so the range is f(x) ≤ −10 or f(x) ≥ −2. A1 for each part. Writing −10 ≤ f(x) ≤ −2 is exactly the band the function misses and scores A0.

Q5. The vertical asymptotes are the zeros of the denominator, so x² + bx + c = (x − 2)(x + 3) = x² + x − 6: b = 1, c = −6. Then (a + 1)/(1 + 1 − 6) = 1 gives a + 1 = −4, so a = −5. Check: the numerator −5x + 1 is not zero at 2 or −3, so both asymptotes stand. M1 for building the denominator from its roots, A1 for b and c, M1 for substituting (1, 1), A1 for a = −5.


Educerie · written from the published IB Diploma Programme Mathematics: analysis and approaches guide, first assessment 2021, section 2.13 Rational functions of the form (ax + b)/(cx² + dx + e) and (ax² + bx + c)/(dx + e). Original text, examples and questions. Diagrams drawn by Educerie. Last reviewed 25 September 2026.

Mocks: in the future, hold tight!