Call Now
1800-102-2727A function is basically a special type of Relation.We can visualize a function as a machine, which takes some valid inputs(domain) and generates some outputs(range) corresponding to each valid input.
There are many terms such as ‘map’ or ‘mapping’ used to denote a function.Let us now try to understand “ functions” in detail in this article.
Table of contents
A relation f from a set A to a set B is said to be a function if every element of set A has one and only one image (unique image) in set B and we write f: A B
In other words, a function f is a relation from a non-empty set A to a non-empty set B such that the domain of f is A and no two distinct ordered pairs in f have the same first element.
Mathematically, if f: A B and (a, b)f, then f (a) = b, where b is called the image of a under f and a is called the preimage of b under f.
Note: Method to identify if a relation is a function:
Every element in set A should be uniquely associated with some element in set B
Or
Vertical Line Test(Graphical approach),any straight line drawn parallel to y-axis should intersect the graph only once.
Example: Consider these relations represented by the following arrow diagrams.
For R1 the elements 3 & 5 of set A do not have an image in set B. Therefore, the given relation R1 is not a function.For R2 all the elements in A have unique image in B.Therefore, R2 is a function.
The set of all the points where the given function is defined is the Domain of the function, denoted by D(f) is the set of all those reals x for which f(x) is meaningful.
Let f:AB, then the set A is known as the domain of f . It is denoted by D(f)=A
Note: For two functions f and g
Codomain of a Function
Let f:AB, then the set B is known as the co-domain of f . It is denoted by C(f)=B.
What actually comes out of a function as an output is known as the range (collection of images).
Let f:AB. Then the set of all the images of elements of A under f is known as the range of f. It is denoted by R(f)={f(x):xA}
Note: Range Codomain
Example: Let f:AB, A= {1, 2, 3} & B={3, 4, 5, 6, 7, 8, 9} such that f(x) = 2x+1, then find the domain, codomain, and range of f.
Solution:
Domain of the function, D(f) =A= {1, 2, 3}
Codomain of the function, C(f) =B= {3, 4, 5, 6, 7, 8, 9}
For Range, we need to find the output corresponding to each element in the Domain of f
f(1) = 2(1)+1 = 3
f(2) = 2(2)+1 = 5
f(3) = 2(3)+1 = 7
So, Range of the function, R(f) = {3, 5, 7}.
Related Concept Video: Functions & Types of Functions | Relations and Functions Class 12 Maths | Target JEE 2023 Exam Prep
Function |
Domain |
Range |
|x| |
||
[x] |
||
{x} |
[0,1) |
|
sin x |
[-1,1] |
|
cos x |
[-1,1] |
|
tan x |
||
cosec x |
-(-1,1) |
|
sec x |
-(-1,1) |
|
cot x |
Let f:AB such that n(A)=p & n(B)=q.
Then, Total number of possible functions from set A to set B is qp.
Example:Let f:AB where A= {2,5,9} and a set B={3,8}
Here, n(A) =3 & n(B)=2
Therefore, the total number of functions possible from A to B=23=8.
Example:Consider the following arrow diagrams and check whether they represent a function or not.
(a) (b)
Solution
(a) From the arrow diagram,we have (5,m), (1,l), (6,n) as ordered pairs.
We can clearly observe that the element 2 of set A is not related to any element of B. Hence, it is not a function
(b) From the arrow diagram, we have (a,d), (b,e), (c,e), (d,f) as the ordered pairs.
Therefore, it represents a function as all the elements of set A are uniquely related to the elements of set B.(image of two or more elements can be the same).
Example:Which of the following graphs represents a function?
(a) (b)
(c) (d)
Solution:
If we draw vertical lines parallel to y-axis (Vertical line test), the graph in part (c) will have more than one intersection point and (a), (b), (d) will have only one point of intersection. So, (a), (b), (d) represents a function, while (c) is not a function.
Example: Find the domain of .
Solution
For domain of numerator i.e. we have,
For domain of denominator i.e. we have,
For values of x where the denominator becomes zero we have,
Domain (f)= {Domain of Numerator Domain of Denominator }- {Values of x where Denominator is zero}
Therefore, Domain
Example: Find the domain and range of the function
Solution:
f(x) is defined for all xR except for the values of x where the denominator becomes zero. Hence, the domain of f is -{-1}.
For range, let
For x to be defined, clearly y0. Hence,range of f is -{0}.
Example: Find the domain of the function
Solution:
f(x) is defined for all xR except for the values of x where the denominator becomes zero.
Now for obtaining the values of x where the denominator becomes zero, we have
So, the domain of f will be -{-2,2}.
Example:Find the range of the function
Solution:
We know that modulus functions always yields non negative values
Therefore, the range of the function is [-2,).
Example:Find the domain and range of the function
Solution
Let us try to get the domain and range of with the help of graph.
Clearly, the given function is defined for all non positive real numbers. Hence,domain is (-,0] .
Since, the graph of the function -x lies above x-axis, therefore the range is [0,)
Example: Find the Range of
Solution:
We know A.M≥G.M
.....(i)
And similarly .....(ii)
Now,
( using (i) & (ii) )
Hence, y6. Therefore, the range is [6,)
1.Is there any difference between Relation and Function?
Answer: Yes, every function is a relation but every relation is not a function.
2.How many elements can be present in the Domain and Range of a function?
Answer: There can be infinite number of elements in the domain and range of a function
3.Is there any Horizontal line Test also just like the Vertical line test?
Answer: Yes, Horizontal line test is there to check whether a function is one one or not.
4.Can we represent functions using Capital letters?
Answer: Yes, functions can be represented using capital letters.