JEE Exam » 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

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