•  
agra,ahmedabad,ajmer,akola,aligarh,ambala,amravati,amritsar,aurangabad,ayodhya,bangalore,bareilly,bathinda,bhagalpur,bhilai,bhiwani,bhopal,bhubaneswar,bikaner,bilaspur,bokaro,chandigarh,chennai,coimbatore,cuttack,dehradun,delhi ncr,dhanbad,dibrugarh,durgapur,faridabad,ferozpur,gandhinagar,gaya,ghaziabad,goa,gorakhpur,greater noida,gurugram,guwahati,gwalior,haldwani,haridwar,hisar,hyderabad,indore,jabalpur,jaipur,jalandhar,jammu,jamshedpur,jhansi,jodhpur,jorhat,kaithal,kanpur,karimnagar,karnal,kashipur,khammam,kharagpur,kochi,kolhapur,kolkata,kota,kottayam,kozhikode,kurnool,kurukshetra,latur,lucknow,ludhiana,madurai,mangaluru,mathura,meerut,moradabad,mumbai,muzaffarpur,mysore,nagpur,nanded,narnaul,nashik,nellore,noida,palwal,panchkula,panipat,pathankot,patiala,patna,prayagraj,puducherry,pune,raipur,rajahmundry,ranchi,rewa,rewari,rohtak,rudrapur,saharanpur,salem,secunderabad,silchar,siliguri,sirsa,solapur,sri-ganganagar,srinagar,surat,thrissur,tinsukia,tiruchirapalli,tirupati,trivandrum,udaipur,udhampur,ujjain,vadodara,vapi,varanasi,vellore,vijayawada,visakhapatnam,warangal,yamuna-nagar

Functions: Definition, Domain, Codomain and Range of Function and Number of Functions

Functions: Definition, Domain, Codomain and Range of Function and Number of Functions

A 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

  • What is a Function?
  • Domain of a Function
  • Codomain of a Function
  • Range of a Function
  • Domain & Range of some standard functions
  • Number of Functions
  • Practice Problems
  • FAQs

What is a Function?

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.

Domain of 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

  1. D(f+g)=D(f)D(g)
  2. D(f-g)=D(f)D(g)
  3. D(fg)=D(f)D(g)
  4. D(fg)=D(f)D(g)-{xD(g) : g(x)=0}

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.

Range of a Function

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

Domain & Range of some standard functions

Function

Domain

Range

ax, (a>0, a1)

<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x211D;</mi></math>

(0,)

ex

<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x211D;</mi></math>

(0,)

logax, a>0, a1

(0,)

<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x211D;</mi></math>

|x|

<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x211D;</mi></math>

(0,)

[x]

<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x211D;</mi></math>

<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x2124;</mi></math>

{x}

<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x211D;</mi></math>

[0,1)

x

[0,)

[0,)

sin x

<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x211D;</mi></math>

[-1,1]

cos x

<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x211D;</mi></math>

[-1,1]

tan x

<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x211D;</mi><mo>-</mo><mfenced open="{" close="}"><mrow><mfenced><mrow><mn>2</mn><mi>n</mi><mo>+</mo><mn>1</mn></mrow></mfenced><mfrac><mi mathvariant="normal">&#x3C0;</mi><mn>2</mn></mfrac><mo>:</mo><mi>n</mi><mo>&#x2208;</mo><mi mathvariant="normal">&#x2124;</mi></mrow></mfenced></math>

<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x211D;</mi></math>

cosec x

<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x211D;</mi><mo>-</mo><mfenced open="{" close="}"><mrow><mi>n</mi><mi mathvariant="normal">&#x3C0;</mi><mo>&#xA0;</mo><mo>:</mo><mo>&#xA0;</mo><mi mathvariant="normal">n</mi><mo>&#x2208;</mo><mi mathvariant="normal">&#x2124;</mi></mrow></mfenced></math>

<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x211D;</mi></math>-(-1,1)

sec x

<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x211D;</mi><mo>-</mo><mfenced open="{" close="}"><mrow><mfenced><mrow><mn>2</mn><mi>n</mi><mo>+</mo><mn>1</mn></mrow></mfenced><mfrac><mi mathvariant="normal">&#x3C0;</mi><mn>2</mn></mfrac><mo>:</mo><mi>n</mi><mo>&#x2208;</mo><mi mathvariant="normal">&#x2124;</mi></mrow></mfenced></math>

<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x211D;</mi></math>-(-1,1)

cot x

<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x211D;</mi><mo>-</mo><mfenced open="{" close="}"><mrow><mi>n</mi><mi mathvariant="normal">&#x3C0;</mi><mo>&#xA0;</mo><mo>:</mo><mo>&#xA0;</mo><mi mathvariant="normal">n</mi><mo>&#x2208;</mo><mi mathvariant="normal">&#x2124;</mi></mrow></mfenced></math>

<math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x211D;</mi></math>

Number of Functions

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.

Practice Problems

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 f(x)=29-x2log(x3-x)..

Solution

For domain of numerator i.e. 2 log(x3-x) we have,

 

x3-x>0x(x2-1)>0x(x-1)(x+1)>0x(-1,0)(1,)

 

For domain of denominator i.e. 9-x2 we have,

9-x20

(x-3)(x+3)0

x[-3,3]

For values of x where the denominator becomes zero we have,

9-x2=0

x=±3

Domain (f)= {Domain of Numerator Domain of Denominator }- {Values of x where Denominator is zero}

Therefore, Domain(f)=(-1,0)(1,)(-3,3)

=(-1,0)(1,3).

Example: Find the domain and range of the function  f(x)=2x+1

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 <math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x211D;</mi></math>-{-1}.

For range, let y=f(x)=2x+1

 

y(x+1)=2(x+1)=2yx=2y-1

 

For x to be defined, clearly y0. Hence,range of f is <math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x211D;</mi></math>-{0}.

Example: Find the domain of the function f(x)=1|x2-4|.

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

(x2-4)=0,wegetx=-2,2.

So, the domain of f will be <math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x211D;</mi></math>-{-2,2}.

Example:Find the range of the function f(x)=|x+3|-2.

Solution:

We know that modulus functions always yields non negative values

|x+3|0forallx <math xmlns="http://www.w3.org/1998/Math/MathML"><mi mathvariant="normal">&#x211D;</mi></math>

|x+3|-2-2

f(x)-2

Therefore, the range of the function is [-2,).

Example:Find the domain and range of the function f(x)=-x.

Solution

Let us try to get the domain and range of f(x)=-x.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 y=6x +3x +6-x+3-x+2

Solution:

y=6x +3x +6-x+3-x+2

We know A.M≥G.M

 6x +6-x 2 6x .6-x    6x +6-x  2 .....(i)

And similarly 3x +3-x  2 .....(ii)

Now, y=(6x +6-x)+(3x +3-x)+2

ymin=2+2+2=6 ( using (i) & (ii) )

Hence, y6. Therefore, the range is [6,)

FAQs

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.

Aakashians JEE Topper

Aakashians NEET UG 2023 Champions Again

Historic Results 2023 Aakashians Qualified +1 Lakh

JEE Advanced 2023

JEE Advanced 2023 Stats

JEE Advanced 2022 Topper

NEET Related Links

NEET Exam 2024

NEET 2024 Exam Dates

NEET 2024 Exam pattern

NEET 2024 Syllabus

NEET 2024 Eligibility Criteria

NEET 2024 Application

NEET UG Counselling

NEET FAQ

NEET UG Result

NEET 2024 Cut Off

Neet 2023 Toppers List Names & Rank

Neet Result 2023 Toppers list rank cut off

Neet Answer key Live Download PDF

Neet 2023 State Toppers List

JEE MAIN Related Links

JEE Main 2024

JEE Main Rank Predictor 2024

JEE Main College Predictor 2024

JEE Main 2024 Exam Dates

JEE Main 2024 Exam pattern

JEE Main 2024 Application

JEE Main 2024 Eligibility Criteria

JEE Main 2024 Syllabus

JEE Main 2024 Physics Syllabus

JEE Main 2024 Maths Syllabus

JEE Main 2024 Chemistry Syllabus

JEE Main 2024 Admit Card

JEE Main 2024 Counselling

JEE Main marks vs rank vs percentile

JEE Advanced Result 2023 live topper list

JEE Exam Preparation - How to calculate your rank jee

JEE Maths Syllabus - Important topics and weightage

JEE Advanced Related Links

JEE Advanced 2024 Exam Dates

JEE Advanced 2024 Application

JEE Advanced 2024 Eligibility Criteria

JEE Advanced 2024 Syllabus

JEE Advanced 2024 Maths Syllabus

JEE Advanced 2024 Physics Syllabus

JEE Advanced 2024 Chemistry Syllabus

JEE Advanced Exam Result

JEE Advanced Exam Dates

JEE Advanced Registration Dates

CUET Related Links

CUET 2024 Eligibility Criteria

CUET 2024 Admit Card

CUET 2024 Exam Pattern

CUET 2024 FAQs

CUET 2024 Counselling

CUET 2024 Syllabus

CUET 2024 Result

CUET 2024 Answer Key

CUET 2024 Preparation

CUET CUTOFF

CUET 2024 Application Form

Talk to Our Expert
Resend OTP Timer =
By submitting up, I agree to receive all the Whatsapp communication on my registered number and Aakash terms and conditions and privacy policy