Week 3
Week 3
FUNCTIONS
• Functions
- domain ,codomain and range
- describing functions
- Surjections , Injections and Bijections
FUNCTIONS
- Function Definitions
Domain, Codomain and range
A function is a rule that assigns each input exactly one output. We call the output the
image of the input. The set of all inputs for a function is called the domain. The set of all
allowable outputs is called the codomain. We would write f : X → Y to describe a function with
name f , domain X and codomain Y. This does not tell us which function f is though. To define
the function, we must describe the rule. This is often done by giving a formula to compute the
output for any input (although this is certainly not the only way to describe the rule). The set of
natural numbers that are outputs is called the range of the function
The key thing that makes a rule a function is that there is exactly one output for each
input. That is, it is important that the rule be a good rule. There can only be one answer for
any particular function.
Describing Functions
Describing a function graphically usually means drawing
the graph of the function: plotting the points on the plain.
We can do this, and might get a graph like the following
for a function f : {1, 2, 3} → {1, 2, 3}.