Function Composition and Inverse (CSCI 2824, Spring 2015)In this lecture we look at the following topics:
InversesWe will first talk about inverse relations. Let Note that ExampleAs an example, write down the inverse of the following relation:
Example-2Consider the relation Answer
To show that, we will first show that if Let Now, it is easy to show that (a) Inverse of a FunctionThe inverse of a function is always a relation. On the other hand, the inverse of a function need not always be a function. For the figures below, say whether the function represented has an inverse or not.
We can look at graphs of functions to check if an inverse exists. Does the function depicted below have an inverse?
We will expand on these topics when we learn about one-to-one and onto functions in the next lecture. Compositions of Relations and FunctionsGiven two functions or two relations, we can talk about the functional and relational compositions, respectively. Function CompositionLet us take two functions The order of composition is important. Please note. Examples of Function CompositionWe will now do some examples. Example 1Take What is Answer
The order of composition can be really confusing. Relation CompositionRelation composition is similar to function composition. It is an important operation in databases and is therefore called a join of two relations in database jargon. Let The picture below provides an illustration:
We see that Answer Example-2Suppose we provide a social network between people in the class in the form of the Friends relation, where
Answer Simply do Example-3Suppose we have a relation The answer is to find the relation Invertibility of FunctionsLet us now investigate the question of invertibility of
functions. Suppose Informally we can say the following:
Therefore, we define the following properties of functions:
|