AA HL · Functions and their graphs · course

Rational functions.

AA HL resourcesPDF

Divide by $x$ and the graph breaks in two: near $x=0$ the values race off to infinity, far away they fade to nothing. Every rational function of the syllabus is this hyperbola, moved and stretched; two lines, the asymptotes, hold its whole shape.

IThe reciprocal functionSL 2.8 · $f(x)=\frac1x$, its graph and its asymptotes

I.1 The graph of $\frac1x$

Definition 1

reciprocal function

$f(x)=\dfrac1x$, for $x\ne0$. Its graph is a hyperbola in two branches, with the vertical asymptote $x=0$ and the horizontal asymptote $y=0$: the graph comes as close as we like to these lines without meeting them.
Figure 1 — Example 1: $y=\frac1x$ hugs both axes but never touches them.
Watch out 1
$\dfrac1x$ is not defined at $x=0$, and $0$ is never one of its values: domain $x\ne0$, range $y\ne0$.
Example 1

Let $f(x)=\dfrac1x$. Find $f(4)$ and $f(-0.5)$, then solve $f(x)=8$.

What you do
What you write
Step 1 Substitute
$f(4)=\dfrac14$, $f(-0.5)=-2$
Step 2 Write the equation
$\dfrac1x=8$
Step 3 Multiply by $x$, divide by $8$
$x=\dfrac18$

Apply

  1. $f(x)=\dfrac1x$: find $f(0.01)$.
    Answer$100$
  2. Solve $\dfrac1x=-5$.
    Answer$x=-0.2$
  3. Domain and range of $\dfrac1x$.
    Answer$x\ne0$; $y\ne0$

I.2 $\frac kx$ is its own inverse

Property 1

self-inverse

$f\big(f(x)\big)=\dfrac{1}{1/x}=x$: $\dfrac1x$ is its own inverse, and its graph is symmetric about $y=x$ and about $y=-x$.
Example 2

Let $f(x)=\dfrac4x$. Find $f^{-1}(x)$.

What you do
What you write
Step 1 Exchange $x$ and $y$
$x=\dfrac4y$
Step 2 Make $y$ the subject
$y=\dfrac4x$
Step 3 Conclude
$f^{-1}(x)=\dfrac4x$: $f$ is its own inverse

Apply

  1. $f(x)=-\dfrac3x$: find $f^{-1}(x)$.
    Answer$-\dfrac3x$
  2. Solve $\dfrac1x=x$.
    Answer$x=1$ or $x=-1$, on the line $y=x$

IIRational functions (ax + b) / (cx + d)SL 2.8 · asymptotes, intercepts, domain and range

II.1 The asymptotes

Property 2

asymptotes and intercepts

For $f(x)=\dfrac{ax+b}{cx+d}$, $c\ne0$: vertical asymptote $x=-\dfrac dc$ (denominator $0$); horizontal asymptote $y=\dfrac ac$ (ratio of the $x$-coefficients); $x$-intercept $-\dfrac ba$; $y$-intercept $\dfrac bd$.
Example 3

Write down the equations of the asymptotes of the graph of $f(x)=\dfrac{4x-1}{2x+6}$.

What you do
What you write
Step 1 Vertical: denominator $=0$
$2x+6=0$: $x=-3$
Step 2 Horizontal: ratio of the $x$-coefficients
$y=\dfrac42=2$
Step 3 Write them as equations
$x=-3$ and $y=2$

Apply

  1. Asymptotes of $\dfrac{x+5}{x-4}$.
    Answer$x=4$, $y=1$
  2. Asymptotes of $\dfrac{6x}{3x-1}$.
    Answer$x=\frac13$, $y=2$
  3. Asymptotes of $\dfrac{2-x}{x+1}$.
    Answer$x=-1$, $y=-1$

II.2 The intercepts

Example 4

Find the intercepts of the graph of $f(x)=\dfrac{3x-6}{x+4}$ with the axes.

What you do
What you write
Step 1 $x$-intercept: numerator $=0$
$3x-6=0$: $(2,\,0)$
Step 2 $y$-intercept: $f(0)$
$\dfrac{-6}{4}=-\dfrac32$: $\left(0,\,-\dfrac32\right)$
Step 3 Write both as points
$(2,\,0)$ and $\left(0,\,-\frac32\right)$
Figure 2 — Exam-style question 1. Far away the graph settles on $y=2$; near $x=3$ it shoots off.

Apply

  1. Intercepts of $\dfrac{2x+8}{x-1}$.
    Answer$(-4,\,0)$, $(0,\,-8)$
  2. Intercepts of $\dfrac{5x-10}{2x+5}$.
    Answer$(2,\,0)$, $(0,\,-2)$

II.3 Domain and range

Property 3

domain and range

Domain of $\dfrac{ax+b}{cx+d}$: $x\ne-\dfrac dc$; range: $y\ne\dfrac ac$.
Watch out 2
The horizontal asymptote is $\dfrac ac$, not $\dfrac bd$ (that is the $y$-intercept). On a sketch, the asymptotes are dashed and labelled with their equations.
Example 5

Write down the domain and the range of $f(x)=\dfrac{x-7}{2x+3}$.

What you do
What you write
Step 1 Domain: leave out the vertical asymptote
$x\ne-\dfrac32$
Step 2 Range: leave out the horizontal asymptote
$f(x)\ne\dfrac12$

Apply

  1. Domain and range of $\dfrac{4x+1}{x-5}$.
    Answer$x\ne5$; $f(x)\ne4$
  2. Domain and range of $\dfrac{3-2x}{x+6}$.
    Answer$x\ne-6$; $f(x)\ne-2$

II.4 $\frac1x$ moved and stretched

Example 6

Show that $4-\dfrac2{x+1}=\dfrac{4x+2}{x+1}$, and write down the asymptotes.

What you do
What you write
Step 1 One denominator
$\dfrac{4(x+1)-2}{x+1}$
Step 2 Simplify the numerator
$=\dfrac{4x+2}{x+1}$
Step 3 Read the asymptotesThe constant $4$ is the horizontal asymptote.
$x=-1$ and $y=4$

Apply

  1. Write $1+\dfrac6{x-2}$ as one fraction.
    Answer$\dfrac{x+4}{x-2}$
  2. Write $\dfrac{3x+5}{x+1}$ as $3+\dfrac{k}{x+1}$.
    Answer$k=2$

II.5 Coefficients from the asymptotes

Example 7

The graph of $f(x)=\dfrac{ax+2}{x+b}$ has asymptotes $x=-4$ and $y=5$. Find $a$ and $b$.

What you do
What you write
Step 1 Vertical: the denominator is $0$ at $x=-4$
$-4+b=0$: $b=4$
Step 2 Horizontal: ratio of the $x$-coefficients
$\dfrac a1=5$: $a=5$
Step 3 Check a point
$f(0)=\dfrac24=\dfrac12$

Apply

  1. $f(x)=\dfrac{ax-1}{2x+b}$, asymptotes $x=3$, $y=-2$: find $a$ and $b$.
    Answer$b=-6$, $a=-4$
  2. $f(x)=\dfrac{ax+b}{x-1}$, asymptote $y=2$, through $(0,\,5)$: find $a$ and $b$.
    Answer$a=2$, $b=-5$

II.6 The inverse of a rational function

Example 8

Let $f(x)=\dfrac{x+5}{x-3}$, for $x\ne3$. Find $f^{-1}(x)$.

What you do
What you write
Step 1 Exchange $x$ and $y$
$x=\dfrac{y+5}{y-3}$
Step 2 Multiply out, collect the $y$ terms
$xy-3x=y+5$, $y(x-1)=3x+5$
Step 3 DivideThe asymptotes swap: $x=1$, $y=3$.
$f^{-1}(x)=\dfrac{3x+5}{x-1}$

Apply

  1. $f(x)=\dfrac{2x-3}{x+4}$: find $f^{-1}(x)$.
    Answer$\dfrac{4x+3}{2-x}$

II.7 A line and a hyperbola on the GDC

Example 9

Let $f(x)=\dfrac{x+3}{x+1}$ and $g(x)=2x$. Solve $f(x)\gt g(x)$.

What you do
What you write
Step 1 Intersections on the GDC
$x=-1.5$ and $x=1$
Step 2 Mark the vertical asymptote
$x=-1$ splits the graph of $f$ in two
Step 3 Read where $f$ is above $g$
left of $-1.5$, and between the asymptote and $1$
Step 4 Write the solutionThe asymptote is a boundary too.
$x\lt -1.5$ or $-1\lt x\lt 1$

Apply

  1. Solve $\dfrac{x+3}{x-2}=x$.
    Answer$x=-0.791$ or $x=3.79$
  2. Solve $\dfrac2{x+1}=3-x$.
    Answer$x=-0.414$ or $x=2.41$

IIIExam-style questionsfrom the shortest to the longest · every one in steps, with its marks

A Asymptotes, intercepts, domain and range

Exam-style question 1Paper 1 · no calculator · [Maximum mark: 6]

Let $f(x)=\dfrac{2x+1}{x-3}$, for $x\ne3$.

(a)Write down the equation of the vertical asymptote and the equation of the horizontal asymptote of the graph of $f$.[2]
(b)Find the coordinates of the points where the graph of $f$ meets the axes.[2]
(c)Write down the range of $f$.[1]
(d)Solve $f(x)=3$.[1]
More questions like this

Working (a)

What you do
What you write
Step 1 Vertical: denominator $=0$
$x=3$
Step 2 Horizontal: ratio of the $x$-coefficients
$y=2$

Working (b)

What you do
What you write
Step 1 $x$-intercept: numerator $=0$
$\left(-\dfrac12,\,0\right)$
Step 2 $y$-intercept: $f(0)$
$\left(0,\,-\dfrac13\right)$

Working (c)

What you do
What you write
Step 1 Range: leave out the horizontal asymptote
$f(x)\ne2$
The horizontal asymptote is the value never taken.

Working (d)

What you do
What you write
Step 1 Write the equation and solve
$2x+1=3x-9\Rightarrow x=10$

Play this question in Mark it: find each mark yourself →

B Coefficients and the inverse

Exam-style question 2Paper 1 · no calculator · [Maximum mark: 6]

Let $f(x)=\dfrac{ax+3}{x+b}$. The graph of $f$ has a vertical asymptote $x=-2$ and a horizontal asymptote $y=4$.

(a)Write down the value of $a$ and the value of $b$.[2]
(b)Find $f^{-1}(x)$.[3]
(c)Write down the equations of the asymptotes of the graph of $f^{-1}$.[1]
More questions like this

Working (a)

What you do
What you write
Step 1 Read the coefficients from the asymptotes
$b=2$
The denominator is $0$ at $x=-2$.
$a=4$
$\frac a1=4$.

Working (b)

What you do
What you write
Step 1 Exchange $x$ and $y$
$x=\dfrac{4y+3}{y+2}$
Step 2 Collect the $y$ terms on one side
$xy+2x=4y+3\Rightarrow y(x-4)=3-2x$
Step 3 Divide
$f^{-1}(x)=\dfrac{3-2x}{x-4}$

Working (c)

What you do
What you write
Step 1 The asymptotes swap
$x=4$ and $y=-2$
The asymptotes swap, like every point: reflection in $y=x$.

Play this question in Mark it: find each mark yourself →

C A hyperbola moved and stretched

Exam-style question 3Paper 1 · no calculator · [Maximum mark: 5]

Let $f(x)=3+\dfrac{2}{x-1}$, for $x\ne1$.

(a)Write down the equations of the asymptotes of the graph of $f$.[2]
(b)Show that $f(x)=\dfrac{3x-1}{x-1}$.[2]
(c)Find the $x$-intercept of the graph of $f$.[1]
More questions like this

Working (a)

What you do
What you write
Step 1 Read the asymptotes
$x=1$
$y=3$
$\frac{2}{x-1}\to0$ far from the origin.

Working (b)

What you do
What you write
Step 1 One denominator
$\dfrac{3(x-1)+2}{x-1}$
A common denominator, then simplify.
Step 2 Simplify to the given form
$=\dfrac{3x-1}{x-1}$

Working (c)

What you do
What you write
Step 1 Numerator $=0$
$x=\dfrac13$
The numerator is $0$.

Play this question in Mark it: find each mark yourself →

D With the GDC (Paper 2)

Exam-style question 4Paper 2 · calculator · [Maximum mark: 6]

Let $f(x)=\dfrac{x+4}{2x-3}$, for $x\ne1.5$, and $g(x)=x-1$.

(a)Write down the equations of the asymptotes of the graph of $f$.[2]
(b)Find the $x$-coordinates of the points where the graphs of $f$ and $g$ intersect.[2]
(c)Hence solve $f(x)\gt g(x)$.[2]
More questions like this

Working (a)

What you do
What you write
Step 1 Read the asymptotes
$x=1.5$
$y=0.5$

Working (b)

What you do
What you write
Step 1 Intersections on the GDC
$x=-0.158$ ($-0.158312\ldots$)
$x=3.16$ ($3.15831\ldots$)

Working (c)

What you do
What you write
Step 1 Left of the first intersection
$x\lt -0.158$
Left of the first intersection, on the left branch.
Step 2 Between the asymptote and the second
$1.5\lt x\lt 3.16$
The asymptote $x=1.5$ starts the second interval.

Play this question in Mark it: find each mark yourself →

IVWhich method? Read the questionthe whole topic on one page

The question says
You write
A function $\dfrac{ax+b}{cx+d}$ is given and you must “write down the asymptotes”: vertical where the denominator $=0$, horizontal at the ratio of the $x$-terms.
$x=-\dfrac dc$ and $y=\dfrac ac$, as equations P2
You must find “the intercepts” of a rational function: $x=0$ gives the $y$-intercept, numerator $=0$ the $x$-intercept.
$\left(0,\,\frac bd\right)$ and $\left(-\frac ba,\,0\right)$, as points P2
You must give “the domain” or “the range” of a rational function: both come from the asymptotes.
$x\ne-\dfrac dc$ and $y\ne\dfrac ac$ P3
The asymptotes are given, the coefficients of $f$ are unknown: $c$ and $d$ come from the vertical asymptote, $a$ from the horizontal one.
read them, then check a point P2
You must “find $f^{-1}$” of a rational function $\dfrac{ax+b}{cx+d}$: exchange $x$ and $y$, then gather the $y$ terms.
collect the $y$ terms, factorise $y$; asymptotes swap
You must “sketch” a rational function: first draw the asymptotes and the intercepts, then the curve.
dashed asymptotes labelled; two branches, each through its intercepts W2
On Paper 2, you must solve $f(x)\gt g(x)$ where $f$ is rational: you need the intersections and the vertical asymptote.
the GDC for the intersections; the asymptote splits the solution
In the exam 1

command terms

Asymptote: give its equation, $x=\ldots$ or $y=\ldots$. Sketch: both branches, the asymptotes dashed and labelled, the intercepts. Write down: read from the formula, no working needed.