IB MATHEMATICS: ANALYSIS AND APPROACHES • FUNCTIONS

Rational Functions — SL 2.8 Rational functions (asymptotes; intercepts) (intro)

Discover how dividing polynomials creates functions with invisible boundaries and dramatic behavior.

Historical Context & Motivation

Mathematics has always been fascinated by ratios. From the ancient Greeks comparing lengths on geometric figures to modern engineers modeling electrical circuits, the idea of dividing one quantity by another is deeply embedded in how we describe the world. Rational functions — functions formed by dividing one polynomial by another — grew out of this tradition, and they turned out to have surprisingly rich behavior that simple polynomials cannot produce.

~300 BCE
Greek Proportions
Euclid studied ratios of lengths in Elements, laying the groundwork for thinking about one quantity divided by another in geometry.
1637
Descartes & Coordinate Geometry
René Descartes introduced the coordinate plane, making it possible to graph equations like y = 1/x and visualize the curves they produce.
1748
Euler's Introductio
Leonhard Euler formally classified rational functions as quotients of polynomials and studied their asymptotic behavior in his influential textbook.
1800s
Applied Mathematics Boom
Rational functions became essential in physics and engineering — modeling optics, fluid flow, and electrical impedance where division by varying quantities is unavoidable.
Today
IB SL 2.8 & Beyond
Rational functions appear across the IB curriculum, from modeling real-world data to preparing for calculus, where limits of rational expressions are a central idea.

The key question that rational functions answer is: what happens to a function's output when the denominator can equal zero? Unlike polynomials, which are defined everywhere, rational functions have gaps in their domain — places where they blow up, approach invisible walls, or settle toward flat lines at extreme values of x. Understanding these features is the heart of SL 2.8.

Core Principles & Definitions

A rational function is any function that can be written in the form f(x) = p(x) / q(x), where p(x) and q(x) are polynomials and q(x) ≠ 0. The simplest example is f(x) = 1/x, which you may already recognize from earlier courses. Because dividing by zero is undefined, rational functions automatically come with restrictions on their domain, and those restrictions produce the dramatic features that make these functions so interesting.

1

Vertical Asymptote

A vertical line x = a that the graph approaches but never touches. It occurs where the denominator equals zero (and the numerator does not). The function's output heads toward +∞ or −∞ near this line.
2

Horizontal Asymptote

A horizontal line y = b that the graph approaches as x → +∞ or x → −∞. It describes the long-run behavior of the function — what value the outputs settle toward for very large or very small inputs.
3

x-intercept(s)

Points where the graph crosses the x-axis, meaning f(x) = 0. For a rational function, this happens only when the numerator equals zero (and the denominator does not).
4

y-intercept

The point where the graph crosses the y-axis, found by evaluating f(0). This exists only if x = 0 is in the domain — that is, if the denominator is not zero when x = 0.
5

Domain

The set of all real x-values for which the function is defined. For rational functions, exclude every x-value that makes the denominator equal to zero.
KEY TAKEAWAY
Think of a rational function like a highway with a bridge out. The road (graph) is perfectly smooth almost everywhere, but at the gap (vertical asymptote) you simply cannot cross — the road shoots off toward the sky or plunges into the ground. Meanwhile, far down the highway in either direction, the road gradually levels off toward a specific elevation (horizontal asymptote). Asymptotes are the invisible guardrails that shape the entire journey of the curve.

Visual Explanation — The Graph of f(x) = 1/x

The simplest rational function, f(x) = 1/x, is the building block for understanding all rational functions in SL 2.8. Its graph is called a rectangular hyperbola, and it beautifully illustrates both vertical and horizontal asymptotes. Study the diagram below closely — every rational function you meet in this course will share these structural features.

The graph of f(x) = 1/x showing two branches. The red dashed line is the vertical asymptote at x = 0, and the cyan dashed line is the horizontal asymptote at y = 0. Notice how the curve gets closer and closer to each asymptote but never actually reaches it.

In the diagram above, the curve lives in two separate pieces — one in the first quadrant (where both x and y are positive) and one in the third quadrant (where both are negative). As x approaches 0 from the right, the curve shoots upward toward +∞; from the left, it dives down toward −∞. Meanwhile, as x grows very large in either direction, the curve flattens out toward the x-axis. This pattern — explosive behavior near vertical asymptotes and calm settling near horizontal asymptotes — is the signature of all rational functions.

Mathematical Framework

For the IB SL 2.8 course, you will most often work with rational functions of the form shown below. Understanding how to find each key feature algebraically is essential, so let's walk through the formulas one at a time.

GENERAL FORM (SL 2.8)
f(x) = (ax + b) / (cx + d), where c ≠ 0
Here a, b, c, and d are real constants. This creates a rational function whose numerator and denominator are both linear (degree 1). The condition c ≠ 0 ensures the denominator is not just a constant.
VERTICAL ASYMPTOTE
Set denominator = 0: cx + d = 0 → x = −d/c
The vertical asymptote is the x-value that makes the denominator zero. The function is undefined here, and the graph heads toward ±∞.
HORIZONTAL ASYMPTOTE
y = a/c (ratio of leading coefficients)
When the numerator and denominator have the same degree (both linear here), the horizontal asymptote equals the ratio of their leading coefficients. As x → ±∞, the lower-order terms become negligible.
INTERCEPTS
x-intercept: set f(x) = 0 → ax + b = 0 → x = −b/a | y-intercept: f(0) = b/d
The x-intercept comes from setting the numerator to zero (as long as a ≠ 0). The y-intercept is found by substituting x = 0, which gives f(0) = b/d (provided d ≠ 0).
📝 IB Exam Tip
In IB exams, you are often asked to sketch rational functions and label asymptotes and intercepts. Always start by finding the vertical asymptote first (it divides your graph into separate regions), then the horizontal asymptote (it tells you the end behavior), and finally plot the intercepts. These three steps give you the skeleton of the graph.

Detailed Breakdown — Behavior Near Asymptotes

Knowing where the asymptotes are is only half the story. You also need to understand how the function behaves as it approaches each asymptote. Does the curve go up or down on each side of a vertical asymptote? Does it approach the horizontal asymptote from above or below? Let's use f(x) = (2x + 1) / (x − 3) to explore this in detail.

Graph of f(x) = (2x + 1)/(x − 3). The vertical asymptote is at x = 3 and the horizontal asymptote is at y = 2. The x-intercept is at (−0.5, 0) and the y-intercept is at (0, −1/3). Notice how the left branch approaches y = 2 from below, while the right branch approaches from above.
Summary of key features for f(x) = (2x+1)/(x−3)
FeatureHow to find itResult for f(x) = (2x+1)/(x−3)
Vertical AsymptoteSet denominator = 0: x − 3 = 0x = 3
Horizontal AsymptoteRatio of leading coefficients: 2/1y = 2
x-interceptSet numerator = 0: 2x + 1 = 0x = −0.5, so (−0.5, 0)
y-interceptEvaluate f(0) = (0+1)/(0−3)y = −1/3, so (0, −1/3)
DomainAll real numbers except where denominator = 0x ∈ ℝ, x ≠ 3

To determine behavior near the vertical asymptote, test values just to the left and right of x = 3. Plugging in x = 2.9 gives f(2.9) = (5.8 + 1)/(2.9 − 3) = 6.8/(−0.1) = −68, so the function plunges toward −∞ from the left. Plugging in x = 3.1 gives f(3.1) = 7.2/0.1 = 72, so the function shoots toward +∞ from the right. This sign analysis near the vertical asymptote tells you which direction each branch of the curve goes.

Worked Example

Let's work through a complete analysis of a rational function, finding all key features and sketching the graph — exactly as you would on an IB exam.

Analyze and sketch f(x) = (3x − 6) / (x + 2)
1
Step 1 — Identify the Vertical AsymptoteSet the denominator equal to zero: x + 2 = 0. Solving gives x = −2. Since the numerator at x = −2 is 3(−2) − 6 = −12 ≠ 0, this is indeed a vertical asymptote (not a hole).
Vertical asymptote: x = −2
2
Step 2 — Identify the Horizontal AsymptoteBoth the numerator and denominator are degree 1 (linear). The leading coefficient of the numerator is 3, and the leading coefficient of the denominator is 1. The horizontal asymptote is the ratio: y = 3/1 = 3.
Horizontal asymptote: y = 3
3
Step 3 — Find the x-interceptSet the numerator equal to zero: 3x − 6 = 0, so 3x = 6, which gives x = 2. Check that x = 2 is in the domain (the denominator at x = 2 is 2 + 2 = 4 ≠ 0, so it is valid).
x-intercept: (2, 0)
4
Step 4 — Find the y-interceptSubstitute x = 0 into the function: f(0) = (3(0) − 6) / (0 + 2) = −6/2 = −3.
y-intercept: (0, −3)
5
Step 5 — State the DomainThe function is defined for all real numbers except where the denominator is zero.
Domain: x ∈ ℝ, x ≠ −2
6
Step 6 — Determine Behavior Near the Vertical AsymptoteTest x = −2.1 (left): f(−2.1) = (3(−2.1) − 6)/(−2.1 + 2) = (−12.3)/(−0.1) = 123, so the curve goes toward +∞. Test x = −1.9 (right): f(−1.9) = (3(−1.9) − 6)/(−1.9 + 2) = (−11.7)/(0.1) = −117, so the curve goes toward −∞.
As x → −2⁻, f(x) → +∞. As x → −2⁺, f(x) → −∞.
7
Step 7 — Sketch the GraphDraw the asymptotes as dashed lines. Plot the intercepts (2, 0) and (0, −3). The left branch rises from the horizontal asymptote y = 3 upward toward +∞ as it approaches x = −2 from the left. The right branch falls from −∞ near x = −2, passes through the y-intercept and x-intercept, and then levels off approaching y = 3 from below as x → +∞.

Common Mistakes & How to Avoid Them

Rational functions are a common source of errors in IB exams. Understanding what can go wrong — and why — will help you avoid losing marks. The table below compares frequent mistakes with the correct approaches.

Common mistakes when working with rational functions
Common MistakeWhy It's WrongCorrect Approach
Saying the graph "touches" the asymptoteVertical asymptotes are never touched or crossed. The function is undefined there.Say the graph "approaches" the asymptote. Note: horizontal asymptotes can sometimes be crossed for finite x-values.
Setting the numerator = 0 to find vertical asymptotesThe numerator equaling zero gives x-intercepts, not asymptotes.Set the denominator = 0 for vertical asymptotes; set the numerator = 0 for x-intercepts.
Forgetting to exclude the VA from the domainThe domain must exclude values that make the denominator zero.Always write the domain as x ∈ ℝ, x ≠ (value of VA).
Confusing the HA rule for different degreesThe HA depends on comparing the degrees of numerator and denominator.Same degree → y = ratio of leading coefficients. Lower numerator degree → y = 0. Higher numerator degree → no HA (oblique asymptote at HL).
REMEMBER THIS
A useful mnemonic: "Numerator for Nought, Denominator for Danger." The numerator being zero gives you the x-intercepts (where the function equals nought/zero). The denominator being zero gives you the danger zones (vertical asymptotes, where the function is undefined). Keep this phrase in mind during exams to avoid mixing them up.

Connection to Advanced Theory

The rational functions you study in SL 2.8 are the starting point for more complex ideas you may encounter in HL Mathematics or in calculus. Understanding how this introductory content connects to the bigger picture can deepen your intuition and motivate careful study now.

How SL 2.8 concepts extend into higher-level mathematics
SL 2.8 (This Course)HL / Calculus Extension
Linear/linear rational functions: f(x) = (ax+b)/(cx+d)General rational functions with quadratic or higher-degree numerators/denominators, including partial fractions
Horizontal asymptotes found by comparing leading coefficientsLimits at infinity (lim x→∞) used to rigorously define asymptotic behavior
Vertical asymptotes where denominator = 0Removable discontinuities (holes) when both numerator and denominator share a common factor
Sketching by plotting key featuresUsing first and second derivatives to find turning points, concavity, and more precise sketches
Only horizontal asymptotes for end behaviorOblique (slant) asymptotes when the numerator's degree is exactly one more than the denominator's

One particularly important extension involves transformations. Any linear-over-linear rational function f(x) = (ax + b)/(cx + d) can be rewritten through polynomial long division into the form f(x) = A + k/(x − h), where (h, k/A) reveals a translation of the parent function y = 1/x. This transformation approach, connecting to SL 2.4 (transformations of functions), gives you a powerful alternative way to graph rational functions.

Practice Problems

Test your understanding with these five problems, arranged from conceptual to challenging. Try each one on paper before checking the answer.

PROBLEM 1CONCEPTUAL
Explain in your own words why a rational function f(x) = p(x)/q(x) must have a vertical asymptote at any x-value where q(x) = 0, assuming p(x) ≠ 0 at that point.
PROBLEM 2BASIC CALCULATION
For f(x) = (4x − 8)/(x + 5), find: (a) the vertical asymptote, (b) the horizontal asymptote, (c) the x-intercept, and (d) the y-intercept.
PROBLEM 3INTERMEDIATE
Consider g(x) = (−x + 3)/(2x − 4). Find all asymptotes and intercepts. Then determine whether the graph approaches the horizontal asymptote from above or below as x → +∞.
PROBLEM 4APPLIED
A chemistry student models the concentration C (in mg/L) of a dissolved substance over time t (in hours) using C(t) = (50t + 10)/(t + 2). Find the horizontal asymptote and interpret its real-world meaning. Also find how long it takes for the concentration to reach 40 mg/L.
PROBLEM 5CRITICAL THINKING
A rational function has vertical asymptote x = 1, horizontal asymptote y = −3, passes through the point (0, 5), and has an x-intercept. Determine a possible equation for this function in the form f(x) = (ax + b)/(cx + d), and verify it satisfies all given conditions.

Lesson Summary

A rational function is a ratio of two polynomials, f(x) = p(x)/q(x). In SL 2.8, you work primarily with linear-over-linear functions of the form f(x) = (ax + b)/(cx + d). These functions have a vertical asymptote at x = −d/c (where the denominator is zero) and a horizontal asymptote at y = a/c (the ratio of leading coefficients). The x-intercept is found by setting the numerator to zero (x = −b/a), and the y-intercept is f(0) = b/d. The domain excludes the x-value that creates the vertical asymptote.

To sketch a rational function, follow a clear workflow: (1) find the vertical asymptote and draw it as a dashed line, (2) find the horizontal asymptote and draw it, (3) plot the intercepts, and (4) use sign analysis near the vertical asymptote to determine which direction each branch curves. Remember: "Numerator for Nought, Denominator for Danger" — the numerator gives zeros, and the denominator gives asymptotes. These skills form the foundation for more advanced rational function analysis in HL and calculus.

Varsity Tutors • IB Mathematics: Analysis and Approaches • Rational Functions — SL 2.8 Rational functions (asymptotes; intercepts) (intro)