Functions and Relations (CSCI 2824, Spring 2015)This page covers the following concepts.
These topics can be found in Sections 4.1 and 4.3 of the textbook. Recap on the definitionsWe recall some definitions we learned last time. Relation
A (binary) relation from a set to another set is a subset of . A (binary) relation on a set is a subset of . Function
A function from a set to another set is a relation from to that satisfies the condition The set here is called the domain of and is called the codmain of . More concretely, we can think of functions as taking input from the domain and assign to that input something that lies in the codomain. A function is also called a map, or a mapping. Different ways to express a functionUsually, we write function as an assignment, emphasizing that it takes a certain input and assign a value to that input via some rule. We use the notation to denote a function with domain and codomain . More specifically, there are at least three different ways of expressing the assignment rule of the same function. Example 1Consider the update of any real number by incrementing 1. There are three different ways of expressing this as a function on .
More examples and non-examples of functionsWe review some examples and non-examples of functions. Example 2Consider . is not a function because is not defined for every number in the domain . (E.g. is undefined as a real number.) On the other hand, if we restrict the domain to the set of all nonnegative real numbers : then is in fact a function. Example 3Consider the relation . This relation is not a function because for the input 1 has two different output : and . The relation . is not a function either, because e.g. , as seen in Example 2. Finally the relation . is a function. Pre-image and image of a functionImage
The image of a function is the set , that is, the set of all possible outputs of the function . Image and preimage of a subset under a function
Let be a function, and . The image of under the function is the set . The pre-image of under the function is the set . Injective and surjective functionsInjective, surjective and bijective functions
A function is said to be
More descriptively,
|