<< Chapter < Page Chapter >> Page >

Function is a special relation. It is also conceived as a “rule”, because function is a relation between elements of two sets, following certain rule. Every element of a set (say A) is related to exactly one element of other set (say B). This relationship is described as mapping of all elements of one set to elements of another set.

In order to emphasize, we need to enumerate the way “function” relation is special :

  • Every element of set “A” is related to elements in set “B”.
  • An element of set “A” is related to exactly one element of “B”.

It can be deduced from the above characterization of a function that the element of set “B” may be paired with none or one or more elements of set “A”.

In order to illustrate function relation, let us consider an example. Let "A" and "B" be two sets as given here :

A = { - 1,0,1,2,3 }

B = { - 1, 0,1,2,3,4,5,6,7,8,9,10 }

The two sets are related by the relation :

R = { x , y : y = x 2 1, x A , y B }

The values of “y” for given values of “x” are :

F o r x = 1, y = 1 1 = 0

F o r x = 0, y = 0 1 = 1

F o r x = 1, y = 1 1 = 0

F o r x = 2, y = 4 1 = 3

F o r x = 3, y = 9 1 = 8

The relation between two sets is pictorially shown with arrow diagram. We note that all elements of “A” are mapped. Further, elements in “A” are uniquely mapped i.e. they are paired to exactly one element of set “B”. It is, however, possible that few of the elements in set “A” are related to same element in “B” like "-1" and "1" in set "A" are related to "0" in set “B”. In the nutshell, we see that this relation meets both properties as enumerated for a function relation and hence is a function relation.

Function relation

Every element of set “A” is related to exactly one element in set “B”.

Looking in reverse direction, we see that elements in “B” may be paired – with no element (1,2,4,5,6,7,9,10) or with one element (-1,3,8) or with more than one element (0) in "A".

We generally drop word “relation” from “function relation” and call it simply as “function”. The function is denoted by a small letter like “f”. To elaborate the direction of function, we expand the symbol as :

f : A B

This means that function is mapped from “A” to “B”. Now, in order to define the function, we need to understand the concept of “image” and “pre-image” elements. We call first element “x” of set “A” in the ordered pair (x,y) of the function as the “pre-image” of second element “y” of set “B”. The second element “y” of set “B” is called the “image” of the first element “x” of set “A”.

The image is also denoted as “f(x)”. We read “f(x)” as image of “x” under rule “f”. For a particular value of x = a, "f(a)" is a particular instance of image :

f a = b

Function
A relation “f” is a function, if every element in set “A” has one and only one image in set “B”.

Domain, range and co-domain of function

As all the elements of set “A” are involved, it emerges that that the set of first elements in the ordered pairs i.e. domain set is same as set “A”. We can not say the same for set "B". The set “B” may have other elements than those, which have been mapped with the elements of “A”. The range is simply the set of images of the function. However, as defined earlier, the set “B” is co-domain of the relation and hence that of function in this special case. It is clear that range is a subset of co-domain "B".

Questions & Answers

how to create a software using Android phone
Wiseman Reply
how
basra
what is the difference between C and C++.
Yan Reply
what is software
Sami Reply
software is a instructions like programs
Shambhu
what is the difference between C and C++.
Yan
yes, how?
Hayder
what is software engineering
Ahmad
software engineering is a the branch of computer science deals with the design,development, testing and maintenance of software applications.
Hayder
who is best bw software engineering and cyber security
Ahmad
Both software engineering and cybersecurity offer exciting career prospects, but your choice ultimately depends on your interests and skills. If you enjoy problem-solving, programming, and designing software syste
Hayder
what's software processes
Ntege Reply
I haven't started reading yet. by device (hardware) or for improving design Lol? Here. Requirement, Design, Implementation, Verification, Maintenance.
Vernon
I can give you a more valid answer by 5:00 By the way gm.
Vernon
it is all about designing,developing, testing, implementing and maintaining of software systems.
Ehenew
hello assalamualaikum
Sami
My name M Sami I m 2nd year student
Sami
what is the specific IDE for flutter programs?
Mwami Reply
jegudgdtgd my Name my Name is M and I have been talking about iey my papa john's university of washington post I tagged I will be in
Mwaqas Reply
yes
usman
how disign photo
atul Reply
hlo
Navya
hi
Michael
yes
Subhan
Show the necessary steps with description in resource monitoring process (CPU,memory,disk and network)
samuel Reply
What is software engineering
Tafadzwa Reply
Software engineering is a branch of computer science directed to writing programs to develop Softwares that can drive or enable the functionality of some hardwares like phone , automobile and others
kelvin
if any requirement engineer is gathering requirements from client and after getting he/she Analyze them this process is called
Alqa Reply
The following text is encoded in base 64. Ik5ldmVyIHRydXN0IGEgY29tcHV0ZXIgeW91IGNhbid0IHRocm93IG91dCBhIHdpbmRvdyIgLSBTdGV2ZSBXb3puaWFr Decode it, and paste the decoded text here
Julian Reply
what to do you mean
Vincent
hello
ALI
how are you ?
ALI
What is the command to list the contents of a directory in Unix and Unix-like operating systems
George Reply
how can i make my own software free of cost
Faizan Reply
like how
usman
hi
Hayder
The name of the author of our software engineering book is Ian Sommerville.
Doha Reply
what is software
Sampson Reply
the set of intruction given to the computer to perform a task
Noor
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

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