2.13 · AHL · HL onlyPaper 1Paper 2

Rational functions

In a minute

A is one polynomial divided by another. At HL the top or the bottom can be quadratic, so the graph can have two vertical or a slanted one. You'll find every asymptote, the intercepts and the range, then sketch the graph.

You'll be able to

  • Find the vertical and horizontal asymptotes of y=ax+bcx2+dx+ey = \frac{ax + b}{cx^{2} + dx + e}, and see y=1xy = \frac{1}{x} as the simplest case.
  • Divide to find the of y=ax2+bx+cdx+ey = \frac{ax^{2} + bx + c}{dx + e}.
  • Sketch a rational function with every asymptote and axis intercept labelled.
  • Find the range of a rational function from its turning points.
Before you start3 quick questions on what this builds on
Check yourself
What is the horizontal asymptote of the graph of y=4x−12x+5y = \frac{4x - 1}{2x + 5}?
Check yourself
Find the remainder when x2+5x+1x^{2} + 5x + 1 is divided by x+2x + 2.
Check yourself
Solve x2−2x−15=0x^{2} - 2x - 15 = 0.

Revise first: 2.8 Reciprocal and linear-over-linear rational functions and 2.12 Polynomial functions

Linear over quadratic

In 2.8 the top and the bottom of a were both linear. Now the bottom can be quadratic: f(x)=ax+bcx2+dx+ef(x) = \frac{ax + b}{cx^{2} + dx + e}, with c≠0c \ne 0.

Take f(x)=2x+1x2−4x−5f(x) = \frac{2x + 1}{x^{2} - 4x - 5}. Far out, the x2x^{2} on the bottom grows much faster than the 2x2x on top. For example, f(100)=2019595≈0.021f(100) = \frac{201}{9595} \approx 0.021. So the graph flattens towards the xx-axis.

The bottom factorises as (x+1)(x−5)(x + 1)(x - 5), so it is 0 at x=−1x = -1 and at x=5x = 5. Near each of these values the fraction blows up. So the graph has two vertical , not one.

Learn this
y=ax+bcx2+dx+e:cancel common factors, then vertical asymptotes where the simplified bottom is 0,horizontal asymptote y=0y = \frac{ax + b}{cx^{2} + dx + e}: \quad \text{cancel common factors, then vertical asymptotes where the simplified bottom is } 0, \quad \text{horizontal asymptote } y = 0

Learn this: it isn't in the formula booklet. When nothing cancels, the of the bottom tells you whether there are two, one or no vertical asymptotes.

If the top and the bottom share a factor, cancel it first. In x−1x2−1\frac{x - 1}{x^{2} - 1} the factor x−1x - 1 cancels completely, leaving 1x+1\frac{1}{x + 1}. So x=1x = 1 is a gap in the graph, not an asymptote. Only x=−1x = -1 is an asymptote.

A factor can cancel and still leave some of itself on the bottom. In x−1(x−1)2\frac{x - 1}{(x - 1)^{2}} one x−1x - 1 cancels, leaving 1x−1\frac{1}{x - 1}. That bottom is still 0 at x=1x = 1, so x=1x = 1 is a vertical asymptote, not a gap.

The y=1xy = \frac{1}{x} is the simplest rational function: a constant on top and xx on the bottom. The same two rules give its asymptotes. The bottom is 0 at x=0x = 0, and far out the fraction tends to 0, so y=0y = 0.

Unlike in 2.8, this graph can cross its horizontal asymptote. It meets y=0y = 0 where the top is 0, at x=−bax = -\frac{b}{a}. It never crosses a vertical asymptote, because ff isn't defined there.

Worked exampleLet f(x)=2x+1x2−4x−5f(x) = \frac{2x + 1}{x^{2} - 4x - 5}, for x≠−1x \ne -1, x≠5x \ne 5. Find the equations of the vertical asymptotes of the graph of ff.

Try it first, then reveal one step at a time.

  1. Set the bottom equal to 0 and factorise: x2−4x−5=(x+1)(x−5)=0x^{2} - 4x - 5 = (x + 1)(x - 5) = 0.
Check yourself
What is the horizontal asymptote of the graph of y=5x−12x2+3y = \frac{5x - 1}{2x^{2} + 3}?

To sketch, you need to know whether the graph goes up or down beside each vertical asymptote. Signs are enough to decide.

1. Draw each asymptote as a dashed line, labelled with its equation.

2. Mark the intercepts as coordinates: (0,be)\left(0, \frac{b}{e}\right) if e≠0e \ne 0, and (−ba,0)\left(-\frac{b}{a}, 0\right) if a≠0a \ne 0.

3. Find the sign of f(x)f(x) just left and just right of each vertical asymptote. Positive means the curve shoots up. Negative means it plunges down.

4. Join up each piece through its intercepts. Far out, each end gets close to y=0y = 0.

Worked exampleLet h(x)=6−2xx2+2x−8h(x) = \frac{6 - 2x}{x^{2} + 2x - 8}, for x≠−4x \ne -4, x≠2x \ne 2. (a) Write down the equations of the asymptotes of y=h(x)y = h(x). (b) Find where the graph meets each axis, as coordinates. (c) Sketch y=h(x)y = h(x).

Try it first, then reveal one step at a time.

  1. (a) The bottom is (x+4)(x−2)(x + 4)(x - 2), and the top is not 0 at x=−4x = -4 or x=2x = 2. So the vertical asymptotes are x=−4x = -4 and x=2x = 2. The bottom has the higher power, so the horizontal asymptote is y=0y = 0.
Sketch of y equals 6 minus 2x over x squared plus 2x minus 8, with dashed vertical asymptotes x equals minus 4 and x equals 2 x y x = −4 x = 2 y = 0 (0, −3/4) (3, 0)
Three pieces. The middle one sits between the vertical asymptotes, and the right one crosses y=0y = 0 at (3,0)(3, 0).
Check yourself
How many vertical asymptotes does the graph of y=x+2x2+6x+10y = \frac{x + 2}{x^{2} + 6x + 10} have?
Check yourself
How many vertical asymptotes does the graph of y=2x−6x2−6x+9y = \frac{2x - 6}{x^{2} - 6x + 9} have?
Check yourself
The graph of y=x−6x2+4y = \frac{x - 6}{x^{2} + 4} crosses its horizontal asymptote at x=kx = k. Find kk.

Quadratic over linear: oblique asymptotes

Now swap them: a quadratic on top and a linear bottom, f(x)=ax2+bx+cdx+ef(x) = \frac{ax^{2} + bx + c}{dx + e}, with a≠0a \ne 0 and d≠0d \ne 0. The top grows faster than the bottom, so the graph doesn't level off. There is no horizontal .

Split g(x)=x2+1xg(x) = \frac{x^{2} + 1}{x} into x+1xx + \frac{1}{x}. Far out, 1x\frac{1}{x} is tiny, so g(x)g(x) is close to xx. For example, g(10)=10.1g(10) = 10.1. The graph hugs the slanted line y=xy = x.

To find it, divide the top by the bottom, as you did with polynomials in 2.12. You get a linear quotient px+qpx + q and a constant remainder rr.

Learn this
ax2+bx+cdx+e=px+q+rdx+e⇒oblique asymptote y=px+q,vertical asymptote x=−ed\frac{ax^{2} + bx + c}{dx + e} = px + q + \frac{r}{dx + e} \quad \Rightarrow \quad \text{oblique asymptote } y = px + q, \quad \text{vertical asymptote } x = -\frac{e}{d}
Worked exampleLet f(x)=x2+3x−1x−2f(x) = \frac{x^{2} + 3x - 1}{x - 2}, for x≠2x \ne 2. Divide to find the equation of the oblique asymptote of y=f(x)y = f(x).

Try it first, then reveal one step at a time.

  1. Divide x2+3x−1x^{2} + 3x - 1 by x−2x - 2. First term: x2÷x=xx^{2} \div x = x. Subtract x(x−2)=x2−2xx(x - 2) = x^{2} - 2x to leave 5x−15x - 1.

Instead of long division, you can compare coefficients. Write ax2+bx+c≡(px+q)(dx+e)+rax^{2} + bx + c \equiv (px + q)(dx + e) + r and expand. The x2x^{2} terms give pp, then the xx terms give qq.

The remainder term also tells you which side of the asymptote the curve is on. Where rdx+e>0\frac{r}{dx + e} > 0, the curve is above the line. Where it is negative, the curve is below.

Check yourself
Which line is the oblique asymptote of y=x2−x+5x−3y = \frac{x^{2} - x + 5}{x - 3}?
Worked exampleLet f(x)=2x2−5x−3x+2f(x) = \frac{2x^{2} - 5x - 3}{x + 2}, for x≠−2x \ne -2. (a) State the vertical asymptote as an equation. (b) Find the oblique asymptote. (c) Find the axis intercepts as coordinates. (d) Sketch y=f(x)y = f(x).

Try it first, then reveal one step at a time.

  1. (a) The bottom is 0 at x=−2x = -2, and the top there is 8+10−3=15≠08 + 10 - 3 = 15 \ne 0. So the vertical asymptote is x=−2x = -2.
Sketch of y equals 2x squared minus 5x minus 3 over x plus 2, with dashed vertical asymptote x equals minus 2 and dashed oblique asymptote y equals 2x minus 9 x y x = −2 y = 2x − 9 (−1/2, 0) (3, 0) (0, −3/2)
The right piece sits above y=2x−9y = 2x - 9 and the left piece below it, as the sign of 15x+2\frac{15}{x + 2} predicts.
Check yourself
The graph of y=3x2+bx+1x+2y = \frac{3x^{2} + bx + 1}{x + 2} has the oblique asymptote y=3x+1y = 3x + 1. Find bb.

Turning points and the range

In 2.8 the range was every real number except one. Here the graph can turn. A on one piece and a on another can leave a band of yy-values that the graph never reaches.

The turning values themselves are reached. So the uses ≤\le and ≥\ge at those values, not << and >>.

Find the turning values with your GDC on Paper 2, or with calculus (5.8). An algebra method using the (2.7) also works: rearrange to a quadratic in xx.

Worked exampleLet g(x)=4xx2+4g(x) = \frac{4x}{x^{2} + 4}, for x∈Rx \in \mathbb{R}. Find the range of gg.

Try it first, then reveal one step at a time.

  1. The bottom, x2+4x^{2} + 4, is never 0, so there is no vertical . The horizontal asymptote is y=0y = 0.
Check yourself
The range of y=2xx2+9y = \frac{2x}{x^{2} + 9} is −k≤y≤k-k \le y \le k. Find kk. Give your answer to 3 s.f.

With a vertical asymptote, the range often has two parts. Each piece runs off to +∞+\infty or −∞-\infty, and the gap sits between the turning values.

Worked exampleLet f(x)=x2+x+7x−3f(x) = \frac{x^{2} + x + 7}{x - 3}, for x≠3x \ne 3. Use your calculator to find the range of ff. Give the boundary values to 3 s.f.

Try it first, then reveal one step at a time.

  1. Find the asymptotes first. The vertical one is x=3x = 3. Dividing gives f(x)=x+4+19x−3f(x) = x + 4 + \frac{19}{x - 3}, so the oblique one is y=x+4y = x + 4.
Check yourself
The graph of y=x2+8x−1y = \frac{x^{2} + 8}{x - 1} has a local maximum at (−2,−4)(-2, -4) and a local minimum at (4,8)(4, 8). What is its range?

Common mistakes

  • Giving an asymptote as a number, or as x≠5x \ne 5. Asymptotes are lines, so write equations such as x=5x = 5, y=0y = 0 or y=2x−9y = 2x - 9.
  • Putting a piece on the wrong side of an asymptote. Test the sign of f(x)f(x) just either side of each vertical asymptote before you draw.
  • Comparing constant terms to find the oblique asymptote. The constant also holds the remainder, so use only the x2x^{2} and xx coefficients.
  • Writing a range with strict inequalities. The turning values are reached, so use ≤\le and ≥\ge.
  • Thinking the graph can never cross y=0y = 0. A linear-over-quadratic graph crosses its horizontal asymptote at its xx-intercept.
  • Giving only xx-values when a question asks for the coordinates of the intercepts. Write points, such as (3,0)(3, 0).

Exam tips

  • "Write down the equations of the asymptotes": no working is needed, but each must be a full equation, such as x=−2x = -2 or y=2x−9y = 2x - 9.
  • "Sketch": show every asymptote as a dashed line with its equation, and every intercept with its coordinates. If the question gives a domain such as −10≤x≤10-10 \le x \le 10, draw only that part.
  • "Find the oblique asymptote": show the division or the coefficient comparison. That line earns the method mark, even if a slip follows.
  • "Find the range" on Paper 2: write down the turning values from your GDC to full accuracy, then give the range to 3 s.f. with ≤\le and ≥\ge.

Key takeaways

Learn thisy=ax+bcx2+dx+e:cancel common factors, then vertical asymptotes where the simplified bottom is 0,horizontal asymptote y=0y = \frac{ax + b}{cx^{2} + dx + e}: \quad \text{cancel common factors, then vertical asymptotes where the simplified bottom is } 0, \quad \text{horizontal asymptote } y = 0
Learn thisax2+bx+cdx+e=px+q+rdx+e⇒oblique asymptote y=px+q,vertical asymptote x=−ed\frac{ax^{2} + bx + c}{dx + e} = px + q + \frac{r}{dx + e} \quad \Rightarrow \quad \text{oblique asymptote } y = px + q, \quad \text{vertical asymptote } x = -\frac{e}{d}
Learn thisCancel common factors first. Vertical asymptotes sit where the simplified bottom is 0, and a factor that cancels completely leaves a gap. The graph never crosses a vertical asymptote, but it may cross y=0y = 0.
Learn thisThe reciprocal function y=1xy = \frac{1}{x} is the simplest case, with asymptotes x=0x = 0 and y=0y = 0.
Learn thisTo sketch: dashed asymptotes with equations, intercepts as coordinates, and the sign of f(x)f(x) just either side of each vertical asymptote.
Learn thisRange: use the turning values, with ≤\le and ≥\ge. Or rearrange to a quadratic in xx and make its discriminant at least 0.

Practise this

7 past-paper questions on 2.13 in the AA HL bank, each with a mark scheme and a worked explanation.

Practise 2.13 →