A function is a special relation between two sets. If A and B are sets, then a function f assigns to every element in A exactly one element in B. This means that the function is a subset of the Cartesian product A × B, but the assignment is unique.
By definition: ∀a ∈ A, ∃! b ∈ B such that (a,b) ∈ f. That is, for every a, there is exactly one b.
Let A = {1,2,3}, B = {a,b,c}, and define the function f: f(1)=a, f(2)=b, f(3)=c. This means that the relation f = {(1,a), (2,b), (3,c)}. This is a function because every element in A is assigned exactly one element in B.
Not every relation is a function. For example, if g = {(1,a), (1,b), (2,c)}, then this is not a function because the element 1 is assigned two different outputs (a and b).
Let A = {1,2,3,4}, B = {x,y}, and examine the following assignment: h = {(1,x), (2,y), (3,y), (4,y)}.
A function is a special relation: each input has exactly one output. There are different types (injective, surjective, bijective) that determine the properties of the function.
We have reviewed and checked the materials, but errors may still occur. The content is provided for educational purposes only, so use it at your own responsibility and verify with other sources if needed.
Please sign in to ask Lara about Functions as Relations.
Select Language
Set theme
© 2025 ReadyTools. All rights reserved.