Common mistake
Every relation is a function.
Correct understanding
Only relations in which each input has exactly one output are functions. The relation {(1, 2), (1, 3)} is not a function.
Maths · Lesson 2.3
Cartesian products, relations, domain, range and function notation.
By the end of this lesson, you should be able to:
A relation is any set of ordered pairs. A function is a special relation in which each input has exactly one output. This single restriction is what makes functions predictable and allows us to write y = f(x).
The Cartesian product gives the raw material for relations. From there we select pairs, identify domains and ranges, and test whether the result is a function.
The Cartesian product A × B is the set of all ordered pairs (a, b) with a ∈ A and b ∈ B. If A has m elements and B has n elements, then A × B has mn elements. A relation from A to B is any subset of A × B.
The domain of a relation is the set of all first coordinates that appear, and the range is the set of all second coordinates. For example, the relation {(1, 2), (1, 3), (2, 4)} has domain {1, 2} and range {2, 3, 4}.
A relation is a function if no two pairs have the same first coordinate but different second coordinates. In a graph, this is the vertical line test: a vertical line may meet the graph at most once. The notation f : A → B means that f maps elements of A to elements of B.
The domain of a function is the set of allowed inputs. For f(x) = 1/(x - 2), the domain is all real numbers except 2, because division by zero is undefined. The range is the set of outputs that actually occur.
A × B = {(1, 4), (1, 5), (2, 4), (2, 5), (3, 4), (3, 5)}.
The relation R contains three pairs, one for each element of A.
Each first coordinate 1, 2 and 3 appears exactly once, so each input has exactly one output.
Therefore R is a function from A to B.
Common mistake
Every relation is a function.
Correct understanding
Only relations in which each input has exactly one output are functions. The relation {(1, 2), (1, 3)} is not a function.
Yes. For example, f(x) = x2 gives f(2) = f(-2) = 4. A function only requires one output per input, not one input per output.
The domain is the set of inputs, and the range is the set of outputs.