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 A (binary) relation on a set Function
A function from a set ![]() The set 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 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
On the other hand, if we restrict the domain to the set of all nonnegative real numbers then Example 3Consider the relation
This relation is not a function because for the input 1 has two different output The relation
is not a function either, because e.g. Finally the relation
is a function. Pre-image and image of a functionImage
The image of a function Image and preimage of a subset under a function
Let The image of
The pre-image of
Injective and surjective functionsInjective, surjective and bijective functions
A function
More descriptively,
|