Skip to content
IB Diploma ProgrammeSL & HL

Rational functions with quadratics

Mathematics: Analysis and Approaches SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Rational functions with quadratics notes as a printable PDF.

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

Read the notes

The full Rational functions with quadratics notes as text: skim, search, and jump between subtopics.

~11 min read

1. Vertical and horizontal asymptotes of (ax + b)/(cx² + dx + e)

A rational function is one polynomial divided by another. In f(x)=(ax+b)/(cx²+dx+e) the numerator has degree 1 and the denominator degree 2. The function is undefined wherever cx²+dx+e=0.

Factorise the denominator. Each zero that the numerator does not share gives a vertical asymptote, so the quadratic gives two, one or none. For large |x| the denominator grows faster than the numerator, so f(x)→0 and the line y=0 is the horizontal asymptote.

A ‘write down’ question wants the equation of the asymptote, such as x=-1, not a description of it. The reciprocal function is the simplest case of this family. The sketch shows y=(x+2)/((x-1)²) for x≥0: a repeated zero gives one vertical asymptote, x=1.

vertical asymptotes: cx²+dx+e=0

horizontal asymptote: y=0

y-intercept: (0, f(0))

Worked example 15 marks

Consider f(x)=(2x+1)/(x²-x-6).(a) Find the equations of the vertical asymptotes of the graph of f.(b) Write down the equation of the horizontal asymptote.(c) Find the coordinates of the points where the graph of f crosses the axes.

  1. 1

    (a) factorise the denominator: x²-x-6=(x-3)(x+2) (M1) [1]

  2. 2

    the numerator is not zero at x=3 or x=-2, so x=3 and x=-2 (A1) [1]

  3. 3

    (b) y=0 (A1) [1]

  4. 4

    (c) y-intercept: f(0)=1/(-6), so (0,-1/6) (A1) [1]

  5. 5

    x-intercept: 2x+1=0, so (-1/2,0) (A1) [1]

2. The oblique asymptote of (ax² + bx + c)/(dx + e)

When the numerator has degree 2 and the denominator degree 1, divide. The result is a straight line plus a remainder term: f(x)=px+q+R/(dx+e).

For large |x| the remainder term tends to 0, so the graph approaches the line y=px+q. This is the oblique asymptote. The zero of the denominator gives the vertical asymptote, here x=-e/d.

Show the attempt at division: long division, or the numerator written as (dx+e)(px+q)+R. The markscheme gives a method mark for that attempt.

f(x)=px+q+R/(dx+e)

oblique asymptote: y=px+q

vertical asymptote: x=-e/d

Worked example 14 marks

The function f is defined as f(x) = (x² + ax + b)/(x + 1), where x ≠ -1 and a, b ∈ Z. Now consider the case where the graph of f has a vertical asymptote, an oblique asymptote with equation y = x - 4, and at least one point of zero gradient.(b) Write down the equation of the vertical asymptote.(c) Show that a = -3.

  1. 1

    (b) x=-1 (A1) [1]

  2. 2

    (c) attempt at division by x+1: (x²+ax+b)/(x+1)=(x(x+1)+(a-1)(x+1)+…)/(x+1) (M1) [1]

  3. 3

    (x²+ax+b)/(x+1)=x+(a-1)+… (A1) [1]

  4. 4

    the oblique asymptote has equation y=x+(a-1), so a-1=-4 (A1) [1]

  5. 5

    a=-3 (AG)

3. When the numerator shares the zero: a finite limit

If the numerator is also zero where the denominator is zero, the two share a factor. The factor cancels and there is no vertical asymptote at that x.

For example (x²-1)/(x+1)=x-1 for x≠-1. The graph is a straight line with a discontinuity at x=-1: a single missing point at (-1,-2).

So a finite limit as x→-1 needs the numerator to tend to 0 there. Say so as a reason. The marks are for recognition that x+1 is a factor, for the equation that follows, and for the limit by division or l’Hôpital’s rule.

lim_x→-1f(x)finite⇒ lim_x→-1(x²+ax+b)=0

(x²-1)/(x+1)=x-1, x≠-1

Worked example 14 marks

The function f is defined as f(x) = (x² + ax + b)/(x + 1), where x ≠ -1 and a, b ∈ Z. First consider the case where lim_x → -1 f(x) is finite.(a)(i) Show that b = a - 1.(ii) Find lim_x → -1 f(x) in terms of a.

  1. 1

    (i) finite limit if lim_x→-1(x²+ax+b)=0 (R1) [1]

  2. 2

    1-a+b=0 (A1) [1]

  3. 3

    b=a-1 (AG)

  4. 4

    (ii) attempt to use l’Hôpital’s rule or division (M1) [1]

  5. 5

    (x²+ax+(a-1))/(x+1)=((x+1)(x+a-1))/(x+1)=x+(a-1)

  6. 6

    lim_x→-1f(x)=-1+a-1=a-2 (A1) [1]

4. Points of zero gradient

A point of zero gradient is a solution of f'(x)=0. Differentiate with the quotient rule; the markscheme also accepts the product or chain rule.

A fraction is zero only when its numerator is zero. So solve numerator =0. For a quadratic numerator, real solutions exist when the discriminant is at least 0, and a solution at the vertical asymptote is not a point of the graph.

A condition on a parameter can fail at its boundary value. Check the boundary: the graph may lose its asymptote there, as in the worked question.

f(x)=u/v ⇒ f'(x)=(u'v-uv')/v²

f'(x)=0 ⇒ u'v-uv'=0

Δ=B²-4AC≥0

Worked example 16 marks

The function f is defined as f(x) = (x² + ax + b)/(x + 1), where x ≠ -1 and a, b ∈ Z. Now consider the case where the graph of f has a vertical asymptote, an oblique asymptote with equation y = x - 4, and at least one point of zero gradient.(d) Show that b ≥ -3. (Use a=-3 from part (c).)

  1. 1

    attempt to use the quotient rule: f'(x)=((x+1)(2x+a)-(x²+ax+b))/((x+1)²) (M1) [1]

  2. 2

    with a=-3: f'(x)=(x²+2x-(b+3))/(x²+2x+1) (A1A1) [2]

  3. 3

    for zero gradient, x²+2x-(b+3)=0 must have solutions

  4. 4

    either 2²+4(b+3)≥0, so 4b+16≥0, or (x+1)²=b+4 (A1) [1]

  5. 5

    b≥-4 (A1) [1]

  6. 6

    if b=-4 then lim_x→-1f(x) is finite and there is no vertical asymptote (a straight line y=x-4 with a discontinuity at x=-1) (R1) [1]

  7. 7

    so b>-4, and b is an integer: b≥-3 (AG)

5. Sketching a rational function: the checklist

A sketch shows the shape and labels the key features. For these functions the features are the same every time.

First the asymptotes, each with its equation: vertical, then horizontal or oblique. Then the intercepts: f(0) for the y-axis, and numerator =0 for the x-axis. Then any points of zero gradient, as coordinates. Last, the behaviour on each side of every asymptote: which way the curve runs off.

A mark scheme gives separate marks for the asymptote equations, the coordinates, and the asymptotic behaviour. Leaving any one out costs its mark.

y-intercept: f(0)

x-intercepts: numerator =0

turning points: f'(x)=0

Worked example 18 marks

Consider f(x)=(x²-4)/(x-1), x≠1.(a) Find the equations of the vertical and the oblique asymptotes.(b) Find the coordinates of the points where the graph of f crosses the axes.(c) Show that the graph of f has no point of zero gradient.

  1. 1

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

  2. 2

    attempt at division: x²-4=(x-1)(x+1)-3, so f(x)=x+1-3/(x-1) (M1) [1]

  3. 3

    oblique asymptote y=x+1 (A1) [1]

  4. 4

    (b) f(0)=(-4)/(-1)=4, so (0,4) (A1) [1]

  5. 5

    x²-4=0, so (-2,0) and (2,0) (A1) [1]

  6. 6

    (c) quotient rule: f'(x)=(2x(x-1)-(x²-4))/((x-1)²)=(x²-2x+4)/((x-1)²) (M1A1) [2]

  7. 7

    f'(x)=0 needs x²-2x+4=0, with Δ=(-2)²-4(1)(4)=-12<0 (R1) [1]

  8. 8

    so there is no real solution and no point of zero gradient (AG)

6. Reflecting the graph: y = f(|x|)

For y=f(|x|), keep the part of the graph with x≥0 and reflect it in the y-axis. The new graph is symmetrical about the y-axis. The two halves meet at (0,f(0)), at a cusp unless f'(0)=0.

A vertical asymptote at a negative x disappears, because |x| is never negative. Each asymptote of the right-hand part is reflected too.

Take f(x)=(x²-3x+1)/(x+1). Division gives f(x)=x-4+5/(x+1). The graph of y=f(|x|) has both asymptotes, y=x-4 and y=-x-4, a cusp at (0,1) and minimum points at (±1.24, -0.528).

f(|x|)=f(x), x≥0

f(|x|)=f(-x), x<0

Worked example 12 marks

The function f is defined as f(x) = (x² + ax + b)/(x + 1), where x ≠ -1 and a, b ∈ Z. In the case where a = -3 and b = 1

(ii) solve f(|x|) < f(x).

  1. 1

    for x≥0, |x|=x, so f(|x|)=f(x) and there is no solution

  2. 2

    for x<0, f(|x|)=f(-x) and f(x)-f(-x)=(x²-3x+1)/(x+1)-(x²+3x+1)/(1-x)=(-2x(x²+4))/(1-x²)

  3. 3

    f(|x|)<f(x) needs this to be positive. For x<0, -2x(x²+4)>0, so 1-x²>0

  4. 4

    correct endpoints -1 and 0 (A1) [1]

  5. 5

    correct inequality signs: -1<x<0 (A1) [1]

Recap

  • f(x)=(ax+b)/(cx²+dx+e): vertical asymptotes at the zeros of the denominator, horizontal asymptote y=0.
  • f(x)=(ax²+bx+c)/(dx+e): divide. The line y=px+q is the oblique asymptote and x=-e/d the vertical one.
  • Write an asymptote as an equation, such as x=-1 or y=x-4.
  • A zero of the numerator at the same x cancels the factor: a finite limit, a discontinuity and no vertical asymptote.
  • Intercepts: f(0) for the y-axis, numerator =0 for the x-axis.
  • Zero gradient: quotient rule, then numerator of f' equal to 0. Check the boundary values of a parameter.
  • y=f(|x|): keep x≥0, reflect in the y-axis. Symmetrical, meeting on the axis at (0,f(0)).
  • A sketch needs asymptote equations, intercepts, turning-point coordinates and the behaviour near each asymptote.

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 f(x)=(3x+2)/(x²+4).1 mark
    Answer
    1. y=0 (A1)

    Trap: The leading coefficient 3 does not give y=3. The denominator has the higher degree, so f(x)→0.

  2. Write down the equations of the vertical asymptotes of the graph of f(x)=(x-4)/(x²-2x-3).2 marks
    Answer
    1. x²-2x-3=(x-3)(x+1) (M1).
    2. x=3 and x=-1 (A1). The numerator is zero at x=4, so nothing cancels.

    Trap: The bracket (x-3) gives x=3, not x=-3. The sign flips.

  3. Which is the equation of the oblique asymptote of the graph of f(x)=(x²+3x-1)/(x-2)? A. y=x+3 B. y=x+5 C. y=x-2 D. y=x+12 marks
    Answer
    1. B. y=x+5 (A1).
    2. Division: x²+3x-1=(x-2)(x+5)+9, so f(x)=x+5+9/(x-2) (M1).
    3. A copies the +3 from the numerator. C copies the denominator. D adds 3 and -2.

    Trap: The quotient comes from dividing, not from reading off coefficients.

  4. Consider f(x)=(2x²-x+3)/(x+1). Find the equations of the vertical asymptote and the oblique asymptote.3 marks
    Answer
    1. Vertical asymptote: x=-1 (A1).
    2. 2x²-x+3=(x+1)(2x-3)+6 (M1).
    3. f(x)=2x-3+6/(x+1), so the oblique asymptote is y=2x-3 (A1).

    Trap: Dividing leading terms only gives y=2x. The constant -3 needs the full division.

  5. Find the coordinates of the points where the graph of f(x)=(x²-5x+4)/(x+2) crosses the axes.3 marks
    Answer
    1. y-intercept: f(0)=4/2=2, so (0,2) (A1).
    2. x-intercepts: x²-5x+4=(x-1)(x-4)=0 (M1).
    3. (1,0) and (4,0) (A1).

    Trap: f(0) divides by the denominator's value 2. The value 4 is only the numerator.

  6. The function f is defined by f(x)=(x²+kx-6)/(x-2), x≠2. The limit of f(x) as x→2 is finite. (a) Find the value of k. (b) Find the limit.4 marks
    Answer
    1. (a)
    2. The numerator must be zero at x=2 (R1): 4+2k-6=0, so k=1 (A1).
    3. (b)
    4. (x²+x-6)/(x-2)=((x+3)(x-2))/(x-2)=x+3 (M1).
    5. The limit is 5 (A1).

    Trap: Do not claim a vertical asymptote at x=2. The factor (x-2) cancels.

  7. Find the coordinates of the points of zero gradient of the graph of f(x)=(x²-4x+7)/(x-1).5 marks
    Answer
    1. Quotient rule: f'(x)=((2x-4)(x-1)-(x²-4x+7))/((x-1)²) (M1).
    2. f'(x)=(x²-2x-3)/((x-1)²) (A1).
    3. f'(x)=0: (x-3)(x+1)=0 (M1), so x=3 and x=-1 (A1).
    4. f(3)=4/2=2 and f(-1)=12/(-2)=-6, so (3,2) and (-1,-6) (A1).

    Trap: The question asks for coordinates. Stopping at the x-values loses the last mark.

  8. The graph of f(x)=(x²+ax+b)/(x-1) has an oblique asymptote with equation y=x+2 and crosses the y-axis at (0,-4). Determine the values of a and b.5 marks
    Answer
    1. Division: x²+ax+b=(x-1)(x+a+1)+(a+b+1) (M1).
    2. The oblique asymptote is y=x+a+1 (A1).
    3. a+1=2, so a=1 (A1).
    4. f(0)=b/(-1)=-4 (M1), so b=4 (A1).
    5. Check: x²+x+4=(x-1)(x+2)+6.

    Trap: The remainder is a+b+1, not b. The y-intercept is -b because the denominator is -1 at x=0.

  9. Consider f(x)=(x²+3x+c)/(x+2), where c∈R. Determine the set of values of c for which the graph of f has a vertical asymptote and two distinct points of zero gradient.6 marks
    Answer
    1. Quotient rule: f'(x)=((2x+3)(x+2)-(x²+3x+c))/((x+2)²) (M1).
    2. f'(x)=(x²+4x+6-c)/((x+2)²) (A1A1).
    3. Two distinct solutions need Δ=16-4(6-c)>0 (M1).
    4. 4c-8>0, so c>2 (A1).
    5. Vertical asymptote: the numerator at x=-2 is 4-6+c=c-2≠0 when c>2 (R1).

    Trap: c=2 gives Δ=0, one solution, and (x²+3x+2)/(x+2)=x+1: no asymptote. Use c>2, not c≥2.

  10. The concentration of a drug in the blood, C mg L⁻¹, is modelled by C(t)=12t/(t²+9), where t≥0 is the time in hours after the injection. (a) Find the greatest concentration and the time at which it occurs. (b) Find the set of values of t for which the concentration is at least 1.5 mg L⁻¹. Give exact values. (c) Write down the equation of the horizontal asymptote of the graph of C, and state what it tells you about the concentration.10 marks
    Answer
    1. (a)
    2. Quotient rule: C'(t)=(12(t²+9)-12t(2t))/((t²+9)²) (M1).
    3. C'(t)=(12(9-t²))/((t²+9)²) (A1).
    4. C'(t)=0 gives t²=9 (M1), so t=3 hours, since t≥0 (A1).
    5. C(3)=36/18=2 mg L⁻¹ (A1).
    6. (b)
    7. 12t/(t²+9)=1.5 gives 1.5t²-12t+13.5=0, so t²-8t+9=0 (M1).
    8. t=4±√7, about 1.35 and 6.65 (A1). C(3)=2>1.5, so the concentration is at least 1.5 between them.
    9. 4-√7≤ t≤4+√7 (A1).
    10. (c)
    11. C=0 (A1).
    12. The concentration tends to 0 as t increases but never reaches it, since C>0 for t>0 (R1).

    Trap: 'At least' needs ≤ at both ends: the markscheme for this topic gives A1A0 for correct endpoints with the wrong inequality signs. The asymptote C=0 is approached, not reached.

Say this, not that

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

Loses the markGets the mark
-1≤ x≤0 for the solution of f(|x|)<f(x). The markscheme gives A1A0 for correct endpoints with incorrect inequality signs-1<x<0, with strict signs because f(-1) is undefined and f(|x|)=f(x) at x=0
b≥-4, then b≥-3 with no reasonif b=-4 then the limit is finite and there is no vertical asymptote, so b>-4 and b≥-3
a=-3 written with no division shownattempt at division by x+1, oblique asymptote y=x+(a-1), then a-1=-4
b=a-1 written down with no reasonfinite limit if lim_x→-1(x²+ax+b)=0, so 1-a+b=0

Frequently asked questions

How do I find the asymptotes of a rational function?
Factorise the denominator. Each zero that the numerator does not share gives a vertical asymptote, written as an equation such as x = 3. For f(x) = (2x + 1)/(x² - x - 6) the vertical asymptotes are x = 3 and x = -2. The horizontal asymptote is y = 0, because the denominator grows faster than the numerator.
How do I find the oblique asymptote of a rational function?
When the numerator has degree 2 and the denominator degree 1, divide. Write f(x) = px + q + R/(dx + e). The line y = px + q is the oblique asymptote, and the zero of the denominator gives the vertical asymptote. Show the attempt at division, because the markscheme gives a method mark for it. For (x² - 4)/(x - 1) the oblique asymptote is y = x + 1.
How do I find the points where a rational function has zero gradient?
Differentiate with the quotient rule, f'(x) = (u'v - uv')/v². A fraction is zero only when its numerator is zero, so solve u'v - uv' = 0. Give the coordinates of each point, not only the x-values. For (x² - 4x + 7)/(x - 1) the points of zero gradient are (3, 2) and (-1, -6).
What happens when the numerator and denominator share a zero?
If the numerator is also zero where the denominator is zero, the two share a factor and it cancels, so there is no vertical asymptote at that x. For (x² - 1)/(x + 1) = x - 1 with x ≠ -1, the graph has a single missing point at (-1, -2). A finite limit needs the numerator to tend to 0 there.
How do I sketch the graph of a rational function?
Show the asymptotes first, each with its equation. Then give the intercepts: f(0) for the y-axis, and the numerator equal to 0 for the x-axis. Add any points of zero gradient as coordinates, and show how the curve behaves on each side of every asymptote. For (x² - 4)/(x - 1) the asymptotes are x = 1 and y = x + 1, and the intercepts are (0, 4), (-2, 0) and (2, 0).
Why do I lose a mark when my inequality signs are wrong at the endpoints?
For f(|x|) < f(x) the solution is -1 < x < 0, with strict signs, because f(-1) is undefined and f(|x|) = f(x) at x = 0. A markscheme gives A1A0 for correct endpoints with incorrect inequality signs. Write the endpoints and the signs together, and check each one.

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