IB MATHEMATICS: ANALYSIS AND APPROACHES • FUNCTIONS

Function Notation & Inverses — SL 2.6 Function notation; domain and range; inverse functions (intro with domain restriction)

Master the language of functions and learn how to reverse their action through inverse operations.

Historical Context & Motivation

Mathematics has always been about relationships — how one quantity depends on another. Ancient astronomers tracked the position of stars as a function of time, and merchants calculated profit as a function of goods sold. Yet for most of history, these relationships were described with lengthy sentences rather than compact symbols. The idea that we could write a single letter like f(x) to represent an entire process — an input going in, a rule acting on it, and an output coming out — took centuries to develop.

The quest to formalize functions also raised a natural question: if a function transforms an input into an output, can we run the machine backwards? Given the output, can we recover the original input? This idea of inverse functions became essential not only in pure mathematics but in everyday applications such as decoding encrypted messages, converting between temperature scales, and solving equations in physics.

1673
Leibniz Introduces 'Function'
Gottfried Wilhelm Leibniz used the Latin word functio to describe quantities that depend on a curve, planting the seed for the modern concept of a function.
1734
Euler's f(x) Notation
Leonhard Euler popularized the notation f(x) in his writings, giving mathematicians a concise and universal way to express functional relationships.
1837
Dirichlet's Modern Definition
Peter Gustav Lejeune Dirichlet proposed that a function is any rule assigning exactly one output to each input, broadening the concept beyond formulas to include tables, graphs, and verbal descriptions.
1939
Bourbaki Formalizes Domain & Range
The French collective Nicolas Bourbaki rigorously defined domain, codomain, and range as part of set theory, establishing the framework used in today's IB curriculum.

The central question this lesson addresses is: How do we precisely describe what a function does, what inputs it accepts, what outputs it produces, and how to undo its action? Answering this question gives you the foundational language for every topic in IB Mathematics: Analysis and Approaches.

Core Principles & Definitions

Before diving into calculations, you need a solid grasp of the vocabulary. A function is a rule that assigns to each element in a set of inputs exactly one element in a set of outputs. The notation f(x) is read as "f of x" and tells you two things at once: the name of the function (f) and the input variable (x). Here are the foundational ideas you will build on throughout this course.

1

Function Notation

Writing f(x) = 2x + 3 names the rule f and shows that for any input x, the output is 2x + 3. You can evaluate f(5) by substituting x = 5 to get 13.
2

Domain

The domain is the complete set of allowable inputs. For f(x) = √x, the domain is x ≥ 0 because you cannot take the square root of a negative number (in the reals).
3

Range

The range is the set of all actual outputs produced. For f(x) = x², the range is y ≥ 0 because squaring any real number always gives a non-negative result.
4

Inverse Function

The inverse function f⁻¹ reverses the action of f. If f(3) = 7, then f⁻¹(7) = 3. A function must be one-to-one to have an inverse over its entire domain.
5

Domain Restriction

When a function is not one-to-one (like x²), we can restrict its domain (e.g., x ≥ 0) so that an inverse exists. This is called a domain restriction.
KEY TAKEAWAY
Think of a function like a vending machine: you press a button (input), the machine follows its internal rule, and out comes exactly one item (output). The domain is the set of buttons that actually work, the range is the set of items the machine can dispense, and the inverse is like a "return" machine — you put the item back in and it tells you which button produced it. For the return machine to work, each item must come from only one button, which is why we sometimes need to restrict the domain.

Visual Explanation — The Function Machine

The diagram below illustrates how a function maps elements from the domain to elements in the range, and how the inverse function reverses those arrows. Notice that each input maps to exactly one output — this is the defining property of a function.

The function f(x) = 2x + 3 sends each domain value (left) to exactly one range value (right) via solid cyan arrows. The inverse f⁻¹(x) = (x − 3) ÷ 2 reverses each arrow, shown by the dashed pink lines. Notice that every element in the domain maps to a unique element in the range — this one-to-one property is what makes the inverse possible.

In the diagram, every element in the domain has exactly one partner in the range — no input is left unmatched, and no input maps to two different outputs. This is the hallmark of a well-defined function. When you trace the dashed pink arrows backward, you see the inverse: each output returns to its original input. If any output had come from two different inputs, the inverse arrows would collide, and the inverse would fail to be a function.

Mathematical Framework

Let's formalise the key ideas with precise notation. In the IB syllabus, you need to be comfortable reading, writing, and manipulating function notation, specifying domains and ranges, and finding inverses algebraically.

FUNCTION NOTATION
f : x ↦ f(x) or equivalently y = f(x)
The notation f : x ↦ f(x) reads "f maps x to f(x)." Here, x is the independent variable (input), and f(x) or y is the dependent variable (output).
DOMAIN & RANGE
Domain: {x ∈ ℝ | conditions on x} Range: {y ∈ ℝ | conditions on y}
Common domain restrictions: denominators ≠ 0 (e.g., x ≠ 2), expressions under a square root ≥ 0 (e.g., x ≥ 0), and logarithm arguments > 0 (e.g., x > 0).
FINDING THE INVERSE
Step 1: y = f(x) Step 2: swap x and y Step 3: solve for y → f⁻¹(x)
The domain of f becomes the range of f⁻¹, and the range of f becomes the domain of f⁻¹. This swap is critical when stating the inverse.
VERIFICATION PROPERTY
f(f⁻¹(x)) = x and f⁻¹(f(x)) = x
If you compose a function with its inverse in either order, you get the identity — the input comes back unchanged. This is the ultimate check that your inverse is correct.
📝 IB Exam Tip
In IB exams, you are often asked to state the domain of the inverse explicitly. Remember: the domain of f⁻¹ equals the range of f. Many students lose marks by forgetting to swap the domain and range.

Inverse Functions & Domain Restriction

Not every function has an inverse — at least, not without some adjustment. A function must be one-to-one (each output comes from exactly one input) for its inverse to also be a function. Graphically, a function is one-to-one if and only if every horizontal line crosses its graph at most once; this is called the horizontal line test. Consider f(x) = x². Since f(−3) = 9 and f(3) = 9, two different inputs produce the same output, which means the inverse would try to send 9 to both −3 and 3 — violating the definition of a function.

The solution is to restrict the domain so that the function becomes one-to-one on the restricted interval. For f(x) = x², we commonly restrict to x ≥ 0, producing the inverse f⁻¹(x) = √x. Alternatively, we could restrict to x ≤ 0 and obtain f⁻¹(x) = −√x. Both choices are valid; the context determines which restriction makes sense.

The amber curve shows f(x) = x² restricted to x ≥ 0, and the emerald curve shows its inverse f⁻¹(x) = √x. Note how the two curves are mirror images across the line y = x (dashed). This reflection property holds for every function-inverse pair.

The graph confirms a powerful visual rule: the graph of f⁻¹ is always the reflection of the graph of f across the line y = x. This happens because swapping x and y in the equation (the algebraic step for finding an inverse) is geometrically identical to reflecting a point over that diagonal. Whenever you are asked to sketch an inverse on the IB exam, draw y = x first, then reflect the original curve.

⚠️ Why Domain Restrictions Matter
Without the restriction x ≥ 0, the parabola y = x² fails the horizontal line test — every positive y-value is hit by two x-values. Restricting the domain removes the ambiguity and guarantees each output traces back to a single input. In IB questions, you will often need to state the largest possible domain on which a function is one-to-one.

Worked Example

Let's walk through a complete IB-style problem that ties together function notation, domain, range, and finding an inverse with a domain restriction.

Finding the Inverse of a Quadratic with Domain Restriction
1
Step 1 — State the Function and Its DomainWe are given f(x) = (x − 2)² + 1 with domain x ≥ 2. The domain restriction tells us we only consider the right half of the parabola, where the function is increasing.
f(x) = (x − 2)² + 1, x ≥ 2
2
Step 2 — Find the Range of fWhen x = 2 (the smallest input), f(2) = (2 − 2)² + 1 = 1. As x increases, (x − 2)² grows without bound, so the output increases from 1 to ∞.
Range of f: y ≥ 1
3
Step 3 — Set Up the InverseWrite y = (x − 2)² + 1. To find the inverse, swap x and y: x = (y − 2)² + 1.
x = (y − 2)² + 1
4
Step 4 — Solve for ySubtract 1 from both sides: x − 1 = (y − 2)². Take the square root: y − 2 = ±√(x − 1). Because the original domain was x ≥ 2 (meaning y ≥ 2 in the inverse), we take the positive root: y − 2 = √(x − 1). Finally, add 2: y = √(x − 1) + 2.
f⁻¹(x) = √(x − 1) + 2
5
Step 5 — State the Domain and Range of f⁻¹The domain of f⁻¹ equals the range of f, so the domain of f⁻¹ is x ≥ 1. The range of f⁻¹ equals the domain of f, so the range of f⁻¹ is y ≥ 2.
Domain of f⁻¹: x ≥ 1 · Range of f⁻¹: y ≥ 2
6
Step 6 — VerifyCheck: f(f⁻¹(x)) = f(√(x − 1) + 2) = (√(x − 1) + 2 − 2)² + 1 = (√(x − 1))² + 1 = x − 1 + 1 = x ✓. The composition returns x, confirming the inverse is correct.
f(f⁻¹(x)) = x ✓

Common Pitfalls & Comparisons

Students often confuse related concepts or make procedural errors when working with function notation and inverses. The table below highlights common mix-ups and clarifies the differences.

Common confusions when learning function notation and inverses
Concept / NotationWhat It MeansCommon Mistake
f⁻¹(x)The inverse function — it undoes what f does.Confusing f⁻¹(x) with 1/f(x). The superscript −1 is NOT an exponent here.
f(a)The output when the input is a.Treating f(a) as f × a (multiplication). The parentheses denote function evaluation, not multiplication.
Domain restrictionLimiting inputs to make a function one-to-one so that an inverse exists.Forgetting to restrict the domain before finding the inverse of a many-to-one function like x².
Range vs. CodomainThe range is the set of actual outputs; the codomain is the set of possible outputs.Stating the range as ℝ when only non-negative values are actually produced.
KEY TAKEAWAY
The notation f⁻¹(x) looks like a negative exponent, but it is not. Think of the "−1" as a label meaning "reverse." Just as "undo" on your computer reverses your last action, f⁻¹ reverses the action of f. And just as "undo" only works if the original action was clear and unambiguous, f⁻¹ only exists when f is one-to-one.

Connection to Advanced Theory

The ideas in SL 2.6 form the backbone for many advanced topics you will encounter later in the IB course and beyond. Understanding function notation, domain, range, and inverses prepares you for composition of functions, transformations, and eventually calculus.

How SL 2.6 concepts connect to future topics
SL 2.6 FoundationAdvanced Extension
f(x) notation and evaluating functionsComposition of functions: (f ∘ g)(x) = f(g(x)), explored in SL 2.5
Domain and range of basic functionsAnalysing domains/ranges of transformed functions: af(b(x − h)) + k
Inverse of linear and simple quadratic functionsInverse trigonometric functions with principal domains (HL 3.8)
Domain restriction to create one-to-one functionsBijections, injectivity, and surjectivity in university-level set theory
Verification: f(f⁻¹(x)) = xThe chain rule in calculus uses composition, and the derivative of an inverse function relates to 1/f′(x)

In HL Analysis and Approaches, you will encounter functions where domain restrictions become even more critical — for example, arcsin(x) is defined as the inverse of sin(x) only on [−π/2, π/2]. The habit of carefully specifying domains that you build now will save you significant effort later. Similarly, in calculus, the relationship between a function and its inverse leads to a beautiful result: the derivative of f⁻¹ at a point equals the reciprocal of the derivative of f at the corresponding point.

Practice Problems

PROBLEM 1CONCEPTUAL
Explain in your own words why the function f(x) = x² does not have an inverse over its natural domain (all real numbers), and describe how a domain restriction solves this problem.
PROBLEM 2BASIC CALCULATION
Given f(x) = 3x − 5, find f⁻¹(x) and verify that f(f⁻¹(7)) = 7.
PROBLEM 3INTERMEDIATE
Let g(x) = (x + 4)/(2x − 1), x ≠ 1/2. Find g⁻¹(x) and state its domain.
PROBLEM 4APPLIED
A temperature conversion formula is C(F) = (5/9)(F − 32), where F is temperature in Fahrenheit and C is temperature in Celsius. Find C⁻¹(F) and interpret its meaning. If a lab requires a temperature of 100 °C, what Fahrenheit setting is needed?
PROBLEM 5CRITICAL THINKING
Consider h(x) = x² − 6x + 10. Complete the square to rewrite h(x) in vertex form, then determine the largest domain of the form x ≥ k for which h has an inverse. Find h⁻¹(x) on this domain and state the domain and range of h⁻¹.

Lesson Summary

In this lesson you learned that function notation f(x) provides a compact way to name a rule and specify its input. Every function has a domain (the set of allowable inputs) and a range (the set of actual outputs). To find the inverse function f⁻¹(x), you swap x and y and solve for y, remembering that the domain of f⁻¹ equals the range of f and vice versa.

A function must be one-to-one (pass the horizontal line test) for its inverse to be a function. When a function like x² is not one-to-one, you apply a domain restriction to make it one-to-one. Graphically, the curve of f⁻¹ is always the reflection of f across the line y = x. Finally, you can verify an inverse by showing that f(f⁻¹(x)) = x and f⁻¹(f(x)) = x. These skills form the foundation for every functions topic in the IB course.

Varsity Tutors • IB Mathematics: Analysis and Approaches • Function Notation & Inverses