Lecture notes
Definition of a function
Definition
A function f is a mapping from a set A to a set B. To be a function, has a unique value for every element x of A:
- A → Domain (asse x)
- B → Codomain (asse y)
- Range:
- Codomain and Range are different!
Examples of function definition
- where
- where
Composition of functions
Definition
Consider functions and Then is the function obtained first using g and then using f
- Domain of → domain of g
- Codomain of → codomain of f
- This condition must be true for the compound function:
Examples
-
-
, where
-
is properly defined, since the codomain of g and the domain of f are the same
-
is properly defined, since the codomain of f and the domain of g are the same
Key takeaways
- Do you understand what a function is?
- Do you know the meaning of ‘domain’, ‘co-domain’ and ‘range?
- Do you understand how function composition works?