Access free live classes and tests on the app
Download
+
Unacademy
  • Goals
    • AFCAT
    • AP EAMCET
    • Bank Exam
    • BPSC
    • CA Foundation
    • CAPF
    • CAT
    • CBSE Class 11
    • CBSE Class 12
    • CDS
    • CLAT
    • CSIR UGC
    • GATE
    • IIT JAM
    • JEE
    • Karnataka CET
    • Karnataka PSC
    • Kerala PSC
    • MHT CET
    • MPPSC
    • NDA
    • NEET PG
    • NEET UG
    • NTA UGC
    • Railway Exam
    • SSC
    • TS EAMCET
    • UPSC
    • WBPSC
    • CFA
Login Join for Free
avtar
  • ProfileProfile
  • Settings Settings
  • Refer your friendsRefer your friends
  • Sign outSign out
  • Terms & conditions
  • •
  • Privacy policy
  • About
  • •
  • Careers
  • •
  • Blog

© 2023 Sorting Hat Technologies Pvt Ltd

JEE Main 2026 Preparation: Question Papers, Solutions, Mock Tests & Strategy Unacademy » JEE Study Material » Mathematics » Domain Codomain

Domain Codomain

Domain, Codomain, range and domain, domain and range, function of range, relationship between domain and codomain, learning domain and codomain, understanding function of range

Table of Content
  •  

Domain in mathematics is very common and used in the subject of relation and function. The domain is basically the set of all the values for which a relation or function is defined. Let us say the relation is defined as below:

In the above example, it is defined only for x, y, z, and v and hence it is the domain of function. The function is not defined for value w. So, w is not included in the domain of above relation. 

The domain set can be written as {x, y, z, v}. The corresponding range will be {1, 2, 3, 4}. Here, 5 is not in the range as it is not mapped with any domain value. 

In the above example, each member of the domain set is mapped with a unique value of the set in range. So the above relation is also a function. Whenever two or more than two values of a domain are associated with the same value of range then it is not called function. However, domain is defined for both relation as well as function. The following example showed the domain and range for a relation which is not a function.

In the above example, the domain is {x,y,z,w,v} as the above relation is defined for all values of the set. However, y and w are mapped with the same value of range 2. So, the above is not a function. It is just a relationship. In very simple words, we can say that the domain is all those values which go into a function, and the range is all those values which come out. But in fact they are very important in defining a function.

We can also say that a function relates an input to an output. Example: Suppose a tree grows 40 cm every year, therefore, the height of the tree is related to its age. Using the function h:

h(age) = age × 40

So, if the age is 20 years, the height is h(20) = 800 cm

If we are saying that, “h(20) = 800” it means we are saying that 20 is related to 800.

Input and Output

But in some cases all values may work!

  • The function may not work, if we will give it the wrong values (such as a negative age) etc.
  • And knowing the values that can come out (such as it should be always positive) can also help.

So we need to say all the values that can go into and come out of a function.

This can be done in a better way using sets. 

A set is a collection of some things, such as numbers.

Here, we are giving some examples:

Set of even numbers: {…, -4, -2, 0, 2, 4, 6, 8, …}
Set of odd numbers: {…, -3, -1, 1, 3, 5, 7, …}
Set of prime numbers: {2, 3, 5, 7, 11, 13, 17,19, 23 …}
Positive multiples of 3 that are less than 20: {3, 6, 9, 12, 15, 18}

In fact, a function is defined in terms of sets also. 

In more complex functions, domain is defined as the set of all the values for which a function is defined. 

Codomain:

In a function, domain and range are clearly defined. However, codomain has little difference with range of function. Let us try to understand codomain in a better way. Codomain is basically the set of all possible values which might come with a given set of domain. Range is the set of value which actually comes with given domain and defined function. In this way, the range is a subset of the codomain.  The another way to differentiate range and codomain is when we might know that what might be the range of a given function that is codomain however exact output is not known such as if real numbers are codomain of a given function is well known however exact values are only known when domain values are actually put in to the function.

Going into the complex examples, let us take the example of f(x) = x2+1. So, we can say that the function is defined for all real values of x. so, all real values are the domain of function. Also, we can say that the range of functions will also be real values which can be said to be codomain. However, we can see that f(x) can have only positive values for any values of x. So, the range of functions includes only positive real numbers.

Let us take another example, f(x) = 1x-2.

Here, f(x) is defined for all values of x except x=2. So, the domain of the function includes all real values of x other than x=2.  

Conclusion:

Based on above discussion, Domain and Codomain can be put as follows:

  1. Domain: All the values for which a relation or function is defined.
  2. Codomain: The values which may come out when domain values are put as per given relation or function. 
faq

Frequently asked questions

Get answers to the most common queries related to the JEE Examination Preparation.

Q: What is a range?

Range of a function is the set of all the outputs of a function.

Q: What is range and Codomain?

The codomain is the set of all possible values that can come out as a result but the range is the set of values whic...Read full

Q: What is Domain and Codomain in sets?

The Domain is the set of input numbers, Codomain is the set of possible output numbers, and Range is the set of actu...Read full

Q: Is the domain left to right?

The domain and range are always written from smaller to larger values, and from left to right for domain, and from t...Read full

Range of a function is the set of all the outputs of a function.

The codomain is the set of all possible values that can come out as a result but the range is the set of values which actually comes out.

The Domain is the set of input numbers, Codomain is the set of possible output numbers, and Range is the set of actual output images.

The domain and range are always written from smaller to larger values, and from left to right for domain, and from the bottom of the graph to the top of the graph for range.

Crack IIT JEE with Unacademy

Get subscription and access unlimited live and recorded courses from India’s best educators

  • Structured syllabus
  • Daily live classes
  • Ask doubts
  • Tests & practice
Learn more

Notifications

Get all the important information related to the JEE Exam including the process of application, important calendar dates, eligibility criteria, exam centers etc.

Allotment of Examination Centre
JEE Advanced Eligibility Criteria
JEE Advanced Exam Dates
JEE Advanced Exam Pattern 2023
JEE Advanced Syllabus
JEE Application Fee
JEE Application Process
JEE Eligibility Criteria 2023
JEE Exam Language and Centres
JEE Exam Pattern – Check JEE Paper Pattern 2024
JEE Examination Scheme
JEE Main 2024 Admit Card (OUT) – Steps to Download Session 1 Hall Ticket
JEE Main Application Form
JEE Main Eligibility Criteria 2024
JEE Main Exam Dates
JEE Main Exam Pattern
JEE Main Highlights
JEE Main Paper Analysis
JEE Main Question Paper with Solutions and Answer Keys
JEE Main Result 2022 (Out)
JEE Main Revised Dates
JEE Marking Scheme
JEE Preparation Books 2024 – JEE Best Books (Mains and Advanced)
Online Applications for JEE (Main)-2022 Session 2
Reserved Seats
See all

Related articles

Learn more topics related to Mathematics
Zero Vector

A zero vector is defined as a line segment coincident with its beginning and ending points. Primary Keyword: Zero Vector

ZERO MATRIX

In this article, we will discuss about the zero matrix and it’s properties.

YARDS TO FEET

In this article we will discuss the conversion of yards into feet and feets to yard.

XVI Roman Numeral

In this article we are going to discuss XVI Roman Numerals and its origin.

See all
Access more than

10,505+ courses for IIT JEE

Get subscription

Trending Topics

  • JEE Main 2024
  • JEE Main Rank Predictor 2024
  • JEE Main Mock Test 2024
  • JEE Main 2024 Admit Card
  • JEE Advanced Syllabus
  • JEE Preparation Books
  • JEE Notes
  • JEE Advanced Toppers
  • JEE Advanced 2022 Question Paper
  • JEE Advanced 2022 Answer Key
  • JEE Main Question Paper
  • JEE Main Answer key 2022
  • JEE Main Paper Analysis 2022
  • JEE Main Result
  • JEE Exam Pattern
  • JEE Main Eligibility
  • JEE College predictor
combat_iitjee

Related links

  • JEE Study Materials
  • CNG Full Form
  • Dimensional Formula of Pressure
  • Reimer Tiemann Reaction
  • Vector Triple Product
  • Swarts Reaction
  • Focal length of Convex Lens
  • Root mean square velocities
  • Fehling’s solution
testseries_iitjee
Predict your JEE Rank
.
Company Logo

Unacademy is India’s largest online learning platform. Download our apps to start learning


Starting your preparation?

Call us and we will answer all your questions about learning on Unacademy

Call +91 8585858585

Company
About usShikshodayaCareers
we're hiring
BlogsPrivacy PolicyTerms and Conditions
Help & support
User GuidelinesSite MapRefund PolicyTakedown PolicyGrievance Redressal
Products
Learner appLearner appEducator appEducator appParent appParent app
Popular goals
IIT JEEUPSCSSCCSIR UGC NETNEET UG
Trending exams
GATECATCANTA UGC NETBank Exams
Study material
UPSC Study MaterialNEET UG Study MaterialCA Foundation Study MaterialJEE Study MaterialSSC Study Material

© 2026 Sorting Hat Technologies Pvt Ltd

Unacademy
  • Goals
    • AFCAT
    • AP EAMCET
    • Bank Exam
    • BPSC
    • CA Foundation
    • CAPF
    • CAT
    • CBSE Class 11
    • CBSE Class 12
    • CDS
    • CLAT
    • CSIR UGC
    • GATE
    • IIT JAM
    • JEE
    • Karnataka CET
    • Karnataka PSC
    • Kerala PSC
    • MHT CET
    • MPPSC
    • NDA
    • NEET PG
    • NEET UG
    • NTA UGC
    • Railway Exam
    • SSC
    • TS EAMCET
    • UPSC
    • WBPSC
    • CFA

Share via

COPY