<< Chapter < Page Chapter >> Page >

Example

Problem 1 : Let “A” be the set of first three natural numbers. A real function is defined as :

f : A N b y f x = x 2 + 1

Find (i) domain of “f” (ii) range of “f” (iii) co-domain of “f” (iv) f(3) and (v) pre-images of 2 and 4.

Solution : Here set “A” is the domain of “f”. Hence,

Domain of "f" = A = { 1,2,3 }

For determining the range, we need to find images for the each element of the domain as :

For x = 1, f x = x 2 + 1 = 1 2 + 1 = 2

For x = 2, f x = x 2 + 1 = 2 2 + 1 = 5

For x = 3, f x = x 2 + 1 = 3 2 + 1 = 10

Hence, range of function is given as :

Range of "f" = A = { 2,5,10 }

Co-domain of the function is the second set on which the elements of first set are mapped. It is given that “f” is a function from set “A” to set “N”. Hence,

Co-domain of "f" = N

The image of set for x = 3 has been already calculated. It is :

f 3 = x 2 + 1 = 3 2 + 1 = 10

For pre-image of f(x) = 2, we have :

f x = 2 = x 2 + 1

x 2 = 1

x = 1, - 1

But, only "1" is an element of domain set "A" - not "-1". Hence, "pre-image" of "2" is "1".

For pre-image of f(x) = 4, we have :

f x = 4 = x 2 + 1

x 2 = 3

x = 3, - 3

But it is given that domain is first three natural numbers only. Thus, we conclude that “4” has no pre-image.

Numbers of functions

We can find out maximum numbers or total possible numbers of functions that can be generated by the rule from given domain and co-domain sets, provided these sets are finite sets. We have noted that the total numbers of relations generated from Cartesian product of two sets “A” and “B” is given by :

N = 2 p q

where “p” and “q” are the finite numbers of elements in sets “A” and “B”.

However, function is a special relation, in which each element of set ”A” is related to exactly one element of set “B” - unlike in the case of power set in which we count all possible combinations. Hence, number of possible relations is not same as the numbers of possible functions.

For determining total numbers of functions from two given sets, let us consider that “m” and “n” denote the numbers of elements in domain “A” and co-domain “B” respectively. Then, an element of domain can combine with one of the “n” elements in “B”. Hence, total numbers of such relations for a total of “m” elements in set “A” is :

N f = m X n = m n

Finite and infinite functions

The numbers of elements of ordered pair in the function set is equal to the numbers of elements in domain set. This follows from the fact that every element of domain set “A” is related to an unique element in “B”. Thus, if domain is a finite set, then the resulting function is finite. Consider the earlier example, when A = {1,2,3} and function is defined as :

f : A N b y f x = x 2 + 1

The function set is a finite set :

f = { 1,2 , 2,5 , 3,10 }

On the other hand, if we expand this function by defining the relation from the infinite set of natural numbers, “N” to “N”, then resulting set of ordered pair is an infinite set and so is the function :

g : N N b y f x = x 2 + 1

The resulting function set, in the set builder form, is given as :

g = { x , y : y = x 2 + 1, w h e r e x , y N }

Function graphs

Here, we shall introduce an alternative way to represent a function. We should be aware that we can define a function even with a graph. Graphical representation of function is intuitive and revealing about their characteristics.

Function is a set of ordered pairs between “x” and “y” from domain and co-domain sets respectively in accordance with certain rule. If we look closely at the function set, then it is easy to realize that the elements of ordered pair (x,y) can be considered to be coordinates “x” and “y” of a planar coordinate system.

We represent independent variable, “x” i.e. the element of domain set “A” as abscissa along x-axis and dependent variable, “y”, i.e. the element of co-domain “B” as ordinate along y-axis. A point on the plot represented by coordinate (x,y) is an instance of or value of the function for a given value of “x”. Compositely, the graph itself is the collection of all such points, which form part of the function set.

For example, we draw a graph, which is defined as :

f : N N b y f x = x , w h e r e x N

In order to plot the function, we evaluate function values for values of “x” :

F o r x = 1, y = 1

F o r x = 2, y = 2

F o r x = n , y = n

Function graph

The plot is a collection of discrete points.

Note that plot of the function is a collection of discrete points only.

For the plot to be continuous, it is clear that the domain and co-domain of the function should be set of real numbers. In that case, we can define the function as :

g : R R b y f x = x , w h e r e x R

The corresponding plot is a bisector straight line, passing through the origin, as shown in the figure here :

Function graph

The plot is a continuous straight line passing through origin.

Classification of real functions

Real functions can be classified from different point of views. Here, we present few major classifications.

Based on expression types

1: Algebraic function : The function (function rule) consists of algebraic expression, consisting of terms, which are constituted of constants and variables. The variables of algebraic expressions may be raised to a constant exponent. Example :

3 x 2 + 2 x ; x 0

2: Transcendental function : The non algebraic functions are called transcendental functions. They include logarithmic, exponential, trigonometric and inverse trigonometric functions etc. Example :

sin x + cos x

Based on independent and dependent variables

1: Explicit function : A function is an explicit function, if its dependent variable can be expressed in terms of independent variables only. Example :

y = x 2 + 1

2: Implicit function : A function is an implicit function, if its dependent variable can not be expressed in terms of independent variables only. Example :

x y = sin x + y

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