<< Chapter < Page Chapter >> Page >

Function is a relation on two sets by a rule. It is a special mapping between two sets. It emerges that it is possible to combine two functions, provided co-domain of one function is domain of another function. The composite function is a relation by a new rule between sets, which are not common to the functions.

We can understand composition in terms of two functions. Let there be two functions defined as :

f : A B by f(x) for all x A

g : B C by g(x) for all x B

Observe that set “B” is common to two functions. The rules of the functions are given by “f(x)” and “g(x)” respectively. Our objective here is to define a new function h : A C and its rule.

Thinking in terms of relation, “A” and “B” are the domain and co-domain of the function “f”. It means that every element “x” of “A” has an image “f(x)” in “B”.

Similarly, thinking in terms of relation, “B” and “C” are the domain and co-domain of the function “g”. In this function, "f(x)" – which was the image of pre-image “x” in “A” – is now pre-image for the function “g”. There is a corresponding unique image in set "C". Following the symbolic notation, "f(x)" has image denoted by "g(f(x))" in "C". The figure here depicts the relationship among three sets via two functions (relations) and the combination function.

Composition of two functions

Composition functions is a special relation between sets not common to two functions.

For every element, “x” in “A”, there exists an element f(x) in set “B”. This is the requirement of function “f” by definition. For every element “f(x)” in “B”, there exists an element g(f(x)) in set “B”. This is the requirement of function “g” by definition. It follows, then, that for every element “x” in “A”, there exists an element g(f(x)) in set “C”. This concluding statement is definition of a new function :

h : A C by g(f(x)) for all x A

By convention, we call this new function as “gof” and is read as "g circle f" or "g composed with f".

g o f x = g f x for all x A

The two symbolical representations are equivalent.

Example

Problem 1: Let two sets be defined as :

h : R R by x 2 for all x R

k : R R by x + 1 for all x R

Determine “hok” and “koh”.

Solution : According to definition,

h o k x = h k x

h o k x = h x + 1

h o k x = x + 1 2

Again, according to definition,

k o h x = k h x

k o h x = k x 2

k o h x = x 2 + 1

Importantly note that h o k x k o h x . It indicates that composition of functions is not commutative.

Existence of composition set

In accordance with the definition of function, “f”, the range of “f” is a subset of its co-domain “B”. But, set “B” is the domain of function “g” such that there exists image g(f(x)) in “C” for every “x” in “A”. This means that range of “f” is subset of domain of “g” :

Range of “f” Domain of “g”

Clearly, if this condition is met, then composition “gof” exists. Following this conclusion, “fog” will exist, if

Range of “g” Domain of “f”

And, if both conditions are met simultaneously, then we can conclude that both “gof” and “fog” exist. Such possibility is generally met when all sets involved are set of real numbers, “R”.

Example

Problem 2: Let two functions be defined as :

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Functions. OpenStax CNX. Sep 23, 2008 Download for free at http://cnx.org/content/col10464/1.64
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Functions' conversation and receive update notifications?

Ask