01 / 21

Rational
Functions

Explore functions of the form \(\frac{P(x)}{Q(x)}\): find asymptotes, intercepts, and learn to sketch their distinctive graphs.

IB Mathematics AA

What Is a Rational Function?

A rational function is any function that can be written as the ratio of two polynomials:

The domain excludes every \(x\)-value where \(Q(x) = 0\), because division by zero is undefined. These excluded values often produce the most interesting features of the graph.

The Parent Function: \(f(x) = \frac{1}{x}\)

x y -1 1 1 -1 \(f(x) = \tfrac{1}{x}\) VA: \(x = 0\) HA: \(y = 0\)

Why Study Rational Functions?

Modelling
Rates, concentrations, and inverse-square laws all produce rational expressions.
IB Syllabus
SL 2.8 expects you to find asymptotes, intercepts, and sketch graphs.
Calculus
Limits and continuity in later topics rely heavily on rational function behaviour.

Vertical Asymptotes

A vertical asymptote occurs at \(x = a\) if the denominator equals zero at \(x = a\) and the numerator does not also equal zero there.

Horizontal Asymptotes

A horizontal asymptote describes the long-run behaviour of \(f(x)\) as \(x \to \pm\infty\). Compare the degrees of numerator and denominator:

1
\(\deg P < \deg Q\): HA is \(y = 0\).
2
\(\deg P = \deg Q\): HA is \(y = \frac{\text{leading coeff of } P}{\text{leading coeff of } Q}\).
3
\(\deg P > \deg Q\): No horizontal asymptote (look for an oblique asymptote instead).

Vertical vs Horizontal Asymptotes

Vertical Asymptote Horizontal Asymptote
Equation form \(x = a\) \(y = b\)
How to find Set denominator = 0 Compare degrees of P, Q
Graph behaviour \(f(x) \to \pm\infty\) \(f(x) \to b\) as \(x \to \pm\infty\)
Can graph cross it? Never Sometimes (at finite x)

Finding Intercepts

y-intercept
Set \(x = 0\) and compute \(f(0) = \frac{P(0)}{Q(0)}\). If \(Q(0) \neq 0\), the y-intercept is \(\bigl(0,\, f(0)\bigr)\).
x-intercept(s)
Set the numerator \(P(x) = 0\) and solve. Each solution where \(Q(x) \neq 0\) is an x-intercept \((a,\,0)\).

How to Analyse a Rational Function

1
Factor numerator and denominator fully.
2
State the domain: exclude values where \(Q(x) = 0\).
3
Vertical asymptotes: non-cancelling zeros of \(Q(x)\).
4
Horizontal asymptote: compare degrees of \(P\) and \(Q\).
5
Intercepts: set \(x = 0\) for the y-intercept; set \(P(x) = 0\) for x-intercepts.
6
Sketch: plot asymptotes (dashed lines), intercepts, then draw branches approaching the asymptotes.

Example 1: \(f(x) = \frac{2x}{x - 3}\)

1
Domain: \(x \neq 3\).
2
VA: \(x - 3 = 0 \Rightarrow\) \(x = 3\).
3
HA: \(\deg P = \deg Q = 1\), so the HA is \(y = \frac{2}{1} = 2\).
4
y-int: \(f(0) = \frac{0}{-3} = 0\). Point: \((0,\,0)\).
5
x-int: \(2x = 0 \Rightarrow x = 0\). Point: \((0,\,0)\) (same as y-int).

Graph of \(f(x) = \frac{2x}{x-3}\)

x y 3 1 2 -1 2 3 -2 \((0, 0)\) \(x = 3\) \(y = 2\)

Example 2: \(g(x) = \frac{x+1}{x^2 - 4}\)

1
Factor: \(g(x) = \frac{x+1}{(x-2)(x+2)}\).
2
Domain: \(x \neq 2\) and \(x \neq -2\).
3
VA: \(x = 2\) and \(x = -2\) (neither cancels with numerator).
4
HA: \(\deg 1 < \deg 2\), so \(y = 0\).
5
y-int: \(g(0) = \frac{1}{-4} = -\frac{1}{4}\). Point: \((0,\,-0.25)\).
6
x-int: \(x + 1 = 0 \Rightarrow x = -1\). Point: \((-1,\,0)\).

Graph of \(g(x) = \frac{x+1}{x^2-4}\)

x y -4 -3 -2 -1 1 2 3 4 1 -1 \(x = -2\) \(x = 2\) \((-1, 0)\) \((0, -0.25)\)

Example 3: \(h(x) = \frac{x^2 - 1}{x^2 - 9}\)

1
Factor: \(h(x) = \frac{(x-1)(x+1)}{(x-3)(x+3)}\).
2
VA: \(x = 3\) and \(x = -3\).
3
HA: \(\deg P = \deg Q = 2\), so \(y = \frac{1}{1}\) = \(y = 1\).
4
y-int: \(h(0) = \frac{-1}{-9} = \frac{1}{9}\). Point: \(\left(0,\,\frac{1}{9}\right)\).
5
x-int: \(x^2 - 1 = 0 \Rightarrow\) \(x = 1\) and \(x = -1\).

Common Mistakes

✕ Cancelling incorrectly
Cancelling factors that appear in both numerator and denominator creates a hole, not a vertical asymptote. Always check for common factors first.
✕ Forgetting domain restrictions
The domain excludes all values where \(Q(x)=0\), even those that cancel. The function is still undefined there.
✕ Wrong HA when degrees are equal
When \(\deg P = \deg Q\), the HA is the ratio of leading coefficients, not the constant terms.

Quick Reference Summary

Feature How to Find Result
Domain Solve \(Q(x) = 0\) Exclude those x-values
Vertical Asymptote Non-cancelling zeros of \(Q(x)\) \(x = a\)
Horizontal Asymptote Compare deg P vs deg Q \(y = 0\), \(y = \frac{a_n}{b_n}\), or none
y-intercept Evaluate \(f(0)\) \((0,\,f(0))\)
x-intercept(s) Solve \(P(x) = 0\) \((a,\,0)\) where \(Q(a) \neq 0\)

Question 1 of 5

What is the vertical asymptote of \(f(x) = \frac{5}{x + 4}\)?

Question 2 of 5

Find the horizontal asymptote of \(g(x) = \frac{3x - 1}{2x + 7}\).

Question 3 of 5

What are the x-intercepts of \(h(x) = \frac{x^2 - 4}{x + 5}\)?

Question 4 of 5

For \(f(x) = \frac{x - 3}{(x-3)(x+1)}\), what happens at \(x = 3\)?

Question 5 of 5

Which statement about the function \(p(x) = \frac{2}{x^2 + 1}\) is true?