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.

IB Mathematics Analysis and Approaches emblem with a function, curved graph, and sigma notation
Inside this lesson 10 sections 5 questions 9 figures

SECTION 1

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.

SECTION 2

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.

SECTION 3

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.

xy1234−1−2−3−4123−1−2−3f(x) = 1/xVertical asymptote x = 0Horizontal asymptote y = 0Curve f(x) = 1/x
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.

SECTION 4

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),wherec≠0f(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

Setdenominator=0:cx+d=0→x=−d/cSet 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(ratioofleadingcoefficients)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:setf(x)=0→ax+b=0→x=−b/a∣y−intercept:f(0)=b/dx-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.

SECTION 5

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.

f(x) = (2x + 1) / (x − 3)xy1234567−1−2−3−4−51234−1−2−3x-int (−0.5, 0)y-int (0, −1/3)VA: x = 3HA: y = 2Curvex-intercept & y-intercept
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.
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

Summary of key features for f(x) = (2x+1)/(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.

SECTION 6

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. 1

    Step 1 — Identify the Vertical Asymptote

    Set 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. 2

    Step 2 — Identify the Horizontal Asymptote

    Both 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. 3

    Step 3 — Find the x-intercept

    Set 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. 4

    Step 4 — Find the y-intercept

    Substitute x = 0 into the function: f(0) = (3(0) − 6) / (0 + 2) = −6/2 = −3.
    y-intercept: (0, −3)
  5. 5

    Step 5 — State the Domain

    The function is defined for all real numbers except where the denominator is zero.
    Domain: x ∈ ℝ, x ≠ −2
  6. 6

    Step 6 — Determine Behavior Near the Vertical Asymptote

    Test 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. 7

    Step 7 — Sketch the Graph

    Draw 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 → +∞.

SECTION 7

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 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).

Common mistakes when working with rational functions

⚡

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.

SECTION 8

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.

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

How SL 2.8 concepts extend into higher-level mathematics

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.

SECTION 9

Practice Problems

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

Question 1: CONCEPTUAL

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.
Show answer
When the denominator q(x) equals zero, the fraction becomes undefined because division by zero is not permitted in mathematics. If the numerator p(x) is not also zero at that point, then you have a nonzero number divided by a value that gets closer and closer to zero. As the denominator shrinks toward zero, the magnitude of the fraction grows without bound — the output heads toward +∞ or −∞. This unbounded behavior is exactly what creates the vertical asymptote: the graph rockets upward or downward near that x-value but can never actually have a y-value at that point.

Question 2: BASIC 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.
Show answer
(a) Set x + 5 = 0, giving x = −5, so the vertical asymptote is x = −5. (b) Both numerator and denominator are degree 1. The ratio of leading coefficients is 4/1 = 4, so the horizontal asymptote is y = 4. (c) Set the numerator to zero: 4x − 8 = 0, so x = 2. The x-intercept is (2, 0). (d) Evaluate f(0) = (4(0) − 8)/(0 + 5) = −8/5 = −1.6. The y-intercept is (0, −1.6). Remember to verify that x = 2 does not make the denominator zero (2 + 5 = 7 ≠ 0), confirming it is a valid intercept.

Question 3: INTERMEDIATE

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 → +∞.
Show answer
Vertical asymptote: Set 2x − 4 = 0, so x = 2. Horizontal asymptote: The ratio of leading coefficients is −1/2, so y = −0.5. x-intercept: Set −x + 3 = 0, so x = 3, giving (3, 0). y-intercept: g(0) = (−0 + 3)/(2(0) − 4) = 3/(−4) = −0.75, so (0, −0.75). To determine the approach direction as x → +∞, test a large value such as x = 100: g(100) = (−100 + 3)/(200 − 4) = −97/196 ≈ −0.4949. Since −0.4949 > −0.5, the graph approaches the horizontal asymptote y = −0.5 from above as x → +∞.

Question 4: APPLIED

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.
Show answer
The horizontal asymptote is y = 50/1 = 50 (ratio of leading coefficients). In context, this means the concentration approaches but never exceeds 50 mg/L as time goes on — this is the theoretical maximum concentration. To find when C(t) = 40: set (50t + 10)/(t + 2) = 40. Multiply both sides by (t + 2): 50t + 10 = 40(t + 2) = 40t + 80. Subtract 40t: 10t + 10 = 80. Subtract 10: 10t = 70, so t = 7 hours. After 7 hours the concentration reaches 40 mg/L, and it will continue to rise ever more slowly toward the limiting value of 50 mg/L.

Question 5: CRITICAL 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.
Show answer
Since the vertical asymptote is x = 1, the denominator must be zero at x = 1, so use (x − 1) as the denominator. The horizontal asymptote y = −3 means the ratio of leading coefficients is a/c = −3. With denominator (x − 1), c = 1, so a = −3. The function is f(x) = (−3x + b)/(x − 1). Use the y-intercept condition: f(0) = (0 + b)/(0 − 1) = −b = 5, so b = −5. Therefore f(x) = (−3x − 5)/(x − 1). Verification: VA at x = 1 ✓. HA: −3/1 = −3 ✓. f(0) = (−5)/(−1) = 5 ✓. x-intercept: −3x − 5 = 0 → x = −5/3, so the x-intercept is (−5/3, 0), confirming it exists ✓. This synthesis problem requires combining multiple feature-finding techniques into one coherent function construction.

SUMMARY

Lesson Summary

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)