IB Diploma Mathematics AA · Functions
Rational functions
1The reciprocal function
The reciprocal function is $f(x) = \dfrac{1}{x}$, for $x \neq 0$.
The reciprocal function and its asymptotes
- Its graph is a hyperbola, with two separate branches.
- It has a vertical asymptote at $x = 0$: the function is not defined there, and the graph shoots up or down as $x$ approaches 0.
- It has a horizontal asymptote at $y = 0$: as $x$ gets very large, $\dfrac{1}{x}$ gets close to 0 but never reaches it.
- It is self-inverse: $f^{-1}(x) = \dfrac{1}{x}$.
Check yourself
Where is the vertical asymptote of f(x) = 1/x?
Show the answer
x = 0
The function is not defined when x = 0.
2Rational functions
A rational function is one polynomial divided by another. The form you need is:
$$f(x) = \frac{ax + b}{cx + d}$$
Its graph is a hyperbola, shifted and stretched.
- Vertical asymptote: where the denominator is zero. $cx + d = 0$, so $x = -\dfrac{d}{c}$.
- Horizontal asymptote: $y = \dfrac{a}{c}$, the ratio of the coefficients of $x$. It is what $f(x)$ approaches for very large $x$.
- $y$-intercept: put $x = 0$, giving $\dfrac{b}{d}$.
- $x$-intercept: where the numerator is zero, $x = -\dfrac{b}{a}$.
Sketching a rational function
- For $f(x) = \dfrac{2x + 1}{x - 3}$.
- Vertical asymptote: $x - 3 = 0$, so $x = 3$.
- Horizontal asymptote: $y = \dfrac{2}{1} = 2$.
- $y$-intercept: $f(0) = \dfrac{1}{-3} = -\dfrac{1}{3}$. $x$-intercept: $2x + 1 = 0$, so $x = -\dfrac{1}{2}$.
- The domain is $x \neq 3$ and the range is $y \neq 2$.
Check yourself
What is the horizontal asymptote of f(x) = (3x + 2)/(x − 1)?
Show the answer
y = 3
It is the ratio of the coefficients of x.
3Harder rational functions (HL)
This section is for Higher Level.
Two more types are needed.
- $f(x) = \dfrac{ax + b}{cx^2 + dx + e}$: a linear expression over a quadratic. The horizontal asymptote is $y = 0$, because the denominator grows faster. There may be zero, one or two vertical asymptotes, where the quadratic is zero.
- $f(x) = \dfrac{ax^2 + bx + c}{dx + e}$: a quadratic over a linear expression. There is a vertical asymptote where $dx + e = 0$, and an oblique (slanted) asymptote, found by dividing.
An oblique asymptote
- For $f(x) = \dfrac{x^2 + 1}{x - 1}$, divide $x^2 + 1$ by $x - 1$.
- $x^2 + 1 = (x - 1)(x + 1) + 2$, so $f(x) = x + 1 + \dfrac{2}{x - 1}$.
- For large $x$, the last term approaches 0. The oblique asymptote is $y = x + 1$.
- The vertical asymptote is $x = 1$.
Check yourself
How is an oblique asymptote found?
Show the answer
By dividing the numerator by the denominator
The quotient gives the line the graph approaches.
4Sketching rational functions step by step
A reliable checklist for sketching $y = \frac{ax + b}{cx + d}$:
- Vertical asymptote: $x = -\frac{d}{c}$ (where the denominator is zero).
- Horizontal asymptote: $y = \frac{a}{c}$.
- $x$-intercept: $x = -\frac{b}{a}$.
- $y$-intercept: $y = \frac{b}{d}$.
- Sketch both branches approaching the asymptotes.
$y = \frac{2x - 4}{x + 1}$
- Vertical asymptote: $x = -1$.
- Horizontal asymptote: $y = 2$.
- $x$-intercept: $(2, 0)$.
- $y$-intercept: $(0, -4)$.
Check yourself
What is the horizontal asymptote of $y = \frac{3x + 1}{x - 2}$?
Show the answer
$y = 3$
Ratio of leading coefficients.
5Rational functions in context
Rational functions model situations such as average cost and concentration.
Average cost
- A company has fixed costs of 500 euros and each item costs 4 euros to make.
- Average cost per item: $C(n) = \frac{500 + 4n}{n}$.
- For 100 items: $C = 9$ euros. For 1 000 items: $C = 4.5$ euros.
- Horizontal asymptote: $C = 4$, so the average cost approaches 4 euros as production grows.
Check yourself
In $C(n) = \frac{500 + 4n}{n}$, what does the average cost approach for large $n$?
Show the answer
4 euros
Fixed costs spread out.
6Going deeper: a full analysis of one rational function, an HL oblique asymptote and a model
analyse $f(x) = \frac{2x - 6}{x + 1}$.
- Vertical asymptote: the denominator is zero at $x = -1$.
- Horizontal asymptote: the ratio of the leading coefficients, $y = \frac{2}{1} = 2$.
- $x$-intercept: the numerator is zero at $x = 3$, giving $(3, 0)$.
- $y$-intercept: $f(0) = -6$, giving $(0, -6)$.
- Solve $f(x) = 1$: $2x - 6 = x + 1$, so $x = 7$.
- Solve $f(x) > 0$: the sign changes at $x = -1$ and $x = 3$. Testing a value in each region gives $x < -1$ or $x > 3$.
- Domain $x \ne -1$; range $y \ne 2$.
- Inverse: swapping and rearranging gives $f^{-1}(x) = \frac{x + 6}{2 - x}$. The asymptotes swap roles.
Worked example (HL): $g(x) = \frac{x^2 - 3x + 4}{x - 1}$.
- Divide: $x^2 - 3x + 4 = (x - 1)(x - 2) + 2$, so $g(x) = x - 2 + \frac{2}{x - 1}$.
- As $x \to \pm\infty$ the fraction tends to 0, so the oblique asymptote is $y = x - 2$.
- Vertical asymptote: $x = 1$.
- Turning points: $g'(x) = 1 - \frac{2}{(x - 1)^2} = 0$ gives $(x - 1)^2 = 2$, so $x = 1 \pm \sqrt{2}$.
- There are no $x$-intercepts, because $x^2 - 3x + 4$ has discriminant $9 - 16 < 0$.
Worked example (a model): a company pays 500 to set up a print run and 2 per poster. The mean cost per poster for $n$ posters is $C(n) = \frac{500 + 2n}{n} = 2 + \frac{500}{n}$.
- As $n$ grows, $C(n)$ approaches 2: the horizontal asymptote is the cost that can never quite be reached.
- For a mean cost of 2.50: $\frac{500}{n} = 0.5$, so $n = 1000$ posters.
- The domain in context is positive whole numbers.
Common mistakes
- Drawing the curve crossing a vertical asymptote. It never does.
- Forgetting that a curve can cross a horizontal or oblique asymptote for small $x$; the asymptote describes behaviour for large $|x|$.
- A common factor in the numerator and denominator gives a hole, not an asymptote: $\frac{x^2 - 1}{x - 1} = x + 1$ with a hole at $x = 1$.
- Sketches need asymptotes drawn as dashed lines and labelled with their equations.
Check yourself
What is the horizontal asymptote of y = (6x + 1)/(2x − 5)?
Show the answer
y = 3
For large x the function approaches the ratio of the leading coefficients, 6 ÷ 2.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera