DOMAIN, CODOMAIN, RANGE

ADMIN
0
Domain, Codomain, Range


Learning Objectives

By the end of this section, you should be able to:
  • Explain Domain of functions.
  • Explain Codomain and Range of Functions.


Introduction

In the previous blog post, we discussed functions, how to identify functions; we saw that a function is any rule that maps each element in one set, to one corresponding element in another set. 

At a certain point, we saw that not all input variables can enter into a function, these are input variables that make a function to be undefined, hence, we give a name to the set of all input variables which can go into a particular function (to produce valid output), this is called the Domain of the function. 

A set of all possible output variables which can come out of a function is called the Codomain of the function, whereas the set of the actual output variables which come out of a function is called the Range of the function.


Domain

You will find a lot of questions where you will be asked to find the domain of a function. What does this mean?

All that the question requires of you is to find values of x that can be plugged into the function, to produce defined outputs.

This is useful to know, because as stated earlier, what is permissible as input into some functions may be limited.

For instance, consider the function:
f(x)=1x

We know that it is impossible to divide by 0, therefore, our domain here, can not include the value x=0 (because this would lead to undefined, you will get a math error on a calculator).

However, all other values of x would be OK. We can plug in any other number into this function and we would get a valid output.

If we ever put a number into a function and we can’t get an output, then we know that there is some sort of domain issue.

The most common occurrences of domain issues are:

 • Dividing by 0 (e.g x+20, x20) ❌

 • Square root of negative numbers (e.g 2, 0.001) ❌

 • Logarithm of 0 or numbers less than 0 (e.g log0, log2, log0.001) ❌


How do we write the domain of a function?

There are two main ways to write the domain of a function:

 • Interval Notation
 • Set Notation


Interval Notation:

Whenever interval Notation is used to show the domain of a function, parentheses (or brackets) are used. 

For instance, considering the function f(x)=1x shown above, which permits any input variable but 0, using interval Notation, we write its domain as

dom(f)=(,0)(0,)

What this notation implies is that: 

(,0):

all values from to 0 can enter into the function f(x)=1x, but 0 is not included,


:

union, it means and,


(0,):

all values from 0 (0 is not included) to positive infinity can enter into the function as input variables.


PRO TIP: if you see an interval Notation that is shown as [0,), this type of bracket, [, shows that all numbers from 0 to infinity can be plugged into the function, with 0 included; but when we have (0,), the bracket, (, means that 0 is not included.


Set Notation:

Set notation uses sets to say explicitly where a function is defined or not. 

For instance, in f(x)=1x, any value but 0 is permissible into the function, hence, we write the Domain using set Notation as

dom(f)={xR:x0}

This is read as domain of the function f is any value, x, which is an element of the set of all real numbers, (R), such that x is not equal to 0.

What this notation implies is that:

Our domain includes any value for x except 0.



PRO TIP:

Every input value can enter a linear function, hence, domain of all linear functions is the set of all real numbers {R}.

Every input value can enter a quadratic, polynomial function, hence, domain of all quadratic or polynomial functions is the set of all real numbers {R}.

A Function which is a fraction (or Quotient) has limited domain, its denominator must not be equal to 0, hence, domain of all rational functions is the set of all real numbers excluding any value that will make the denominator of the function, equal to 0.

A Function which has a square root, or an even root, cannot produce an output for a negative radicand (=number or expression inside a root), hence, domain of any even root functions is the set of all values that will not make its radicand equal to negative.

A Logarithmic Function, or a function which involves Logarithm, cannot produce an output for the log of any expression that yields 0 or less than 0, hence, domain of all logarithmic functions is the set of all values that will render the expression (bounded by the log), as greater than 0.


Examples

Using interval and set Notation, show the domain of:

A. f(x)=x+7

B. f(x)=x2+7x+7

C. g(x)=x918x5+6x48

D. f(x)=x+7x2

E. g(x)=xx23x+2

F. h(x)=x5

G. h(x)=7xx24x

H. h(x)=log(x+2)+xx+2

I. f(x)=ex

J. f(x)=12(3x+3x)


Solution

A.
f(x)=x+7

This is a linear function. 

All linear functions can accept any input value for x,

Domain for the above function is:

Interval Notation: dom(f)=(,)

Set Notation: dom(f)={x:xR}



B.
f(x)=x2+7x+7

This is a quadratic function. 

All quadratic functions can accept any input value for x,

Domain for the above function is:

Interval Notation: dom(f)=(,)

Set Notation: dom(f)={x:xR}



C.
g(x)=x918x5+6x48

This is a polynomial function. 

All polynomial functions can accept any input value for x,

Domain for the above function is:

Interval Notation: dom(g)=(,)

Set Notation: dom(g)={x:xR}



D.
f(x)=x+7x2

This is a rational (or Quotient) function. 

A rational function can only accept input values for x that will not make its denominator to equal zero.

Thus, 

x20

We can simplify this simple equation, we have;

x2

Domain for the above function is then shown as:

Interval Notation: dom(f)=(,2)(2,)

Set Notation: dom(f)={xR:x2}

You can see that we were not concerned with the numerator, we are concerned only with the denominator.



E.
g(x)=xx23x+2

This is another Quotient. This means that for the function to be defined, the denominator must not be equal to zero.

Thus,

x23x+20

We can factorise this quadratic equation,

x22xx+20

(x22x)(x+2)0

x(x2)1(x2)0

(x1)(x2)0

x1,x2

We can then write the domain for the function as:

Interval Notation: dom(g)=(,1)(1,2)(2,)

Set Notation: dom(g)={xR:x1,x2}



F.
h(x)=x5

This is a square root function. 

A square root can only accept values starting from zero, upwards, i.e, no negative value

Thus,

x50

x5

The domain for the function is:

Interval Notation: dom(h)=[5,)

Set Notation: dom(h)={xR:x5}



G.
h(x)=7xx24x

This is a quotient, and it contains a square root expression; a quotient must not have its denominator equal to zero, and a square root must not have its radicand as negative, we will analyse these two separately;

For quotient, x0

For square root, x240

x240

x24

x2,x2

This means that all values between –2 and +2 cannot enter into the function as input.

Thus, domain is written as:

Interval Notation: dom(h)=(,2][2,)

Set Notation: dom(h)={xR:2x,2x}



H.
h(x)=log(x+2)+xx+2

In this function, we have a Logarithmic expression, and a fraction:

In log(x+2),

x+2>0

Therefore, x>2

In Fraction xx+2, x+20

x2


Domain is therefore:

Interval Notation: dom(h)=(2,)

Set Notation: dom(h)={xR:x>2}



I.
f(x)=ex

All exponential functions can accept any input value.

Domain is:

Interval Notation: dom(f)=(,)

Set Notation: dom(f)={x:xR}



J.
f(x)=12(3x+3x)

This is also an exponential function.

Domain is:

Interval Notation: dom(f)=(,)

Set Notation: dom(f)={x:xR}



Codomain and Range

In simple terms, Codomain is usually a larger set which contains the Range of a function, and many other times, Codomain may be equal to Range.

Codomain is the set of all possible outputs that a function can produce. It includes values that will be produced by a function, and values which may not produced by the function.

Range on the other hand is a set of all the actual output that a function produces. It includes only values that are produced by a function. It is also called the image of a function.


PRO TIP: where you see preimage of a function, we are talking about the domain of the function, while the image of a function is the range of the function.


Mapping of domain to Codomain
Mapping of domain X to Codomain Y


Mapping of domain X to range Z
Mapping of domain X to range Z


Mapping of domain to Codomain, range


It is important for you to note that a Codomain can change a relation that is not a function, to one that is a function. 

For instance, we learnt from the previous post that f(x)=x is not a function, because we can have positive and negative outputs for every valid input; however, when we limit the Codomain for f(x)=x as {positive real numbers}, this means that every input will have an output of only positive numbers, we then see that f(x)=x will have only one output for every input, therefore actively depicting a function relation.

A function maps its domain (inputs) to its Range (outputs), we can normally show it as f:inputoutput
In other words, if we have a function f(x)=x2+7, all input (domain) are x, while all output (range) are f(x) which is equal to x2+7, we then show the relation as:

f:xx2+7

This is still equal to f(x)=x2+7, same thing, but different depiction.


More acceptably, We map the domain of a function to a Codomain. For instance, say the domain of a function is the set of all real numbers, we may not know the range of the function, but we can assume that the Codomain of the function is also set of all real numbers, since the range will always be a subset of the codomain. We then depict this as:

f:domaincodomain

f:RR

This is generally and considerably more accepted than the earlier depiction of mapping a domain to its range, because many attimes, the range of a function may be complicated.



The Codomain of a function is not usually found or calculated, because it can usually be assumed, however range which is specific, needs to be gotten.


How do we get the range of a function?

Normally, we get the range of a function by taking a look at the graph of the function.

But in our case here, we cannot always plot the the graph of functions, especially when you have just a minute to attempt such a question in your test or examination, we employ the use of inverse of functions.

Recall from the previous post, we said that while a function maps an input to an output, an inverse function does the reverse, by mapping an output to an input. In this reverse sense, we can see output values which will be valid, hence, getting the range of functions.

For instance,
Considering the function f(x)=1x, we know the domain of this function is the set of all R except 0; we can get the range by first solving for the inverse of the function;

Recall how to get the inverse of a function? We make the input x as the subject of the formula:

y=1x

x=1y

Taking a look at this simple inverse function, all values except 0 can enter as input for y; this means that from the original function f(x)=1x, we could get other output values but we will never get zero, we can then interpret that the range of the above function is all R except 0.

It's quite simple to do, to get the range of a function:

1. Find the inverse of the function.

2. Check for all valid input that can enter the inverse function. Remember that we follow the rules stated while discussing domain; quotients must not have a denominator equal to zero, radicand of all square roots (or even roots) must be greater than or equal to zero, logarithmic expression must be greater than 0.

Other methods are by graph checking, or checking for maximum and minimum values using differential calculus.



Examples

Using interval and set Notation, show the range of:

A. f(x)=x+7

B. f(x)=x2+7x+7

C. g(x)=x918x5+6x48

D. f(x)=x+7x2

E. g(x)=xx23x+2

F. h(x)=x5

G. h(x)=7xx24x

H. h(x)=log(x+2)+xx+2

I. f(x)=ex

J. Prove that f(x)1 in f(x)=12(3x+3x)


Solution

A.
f(x)=x+7

To get rng(f), we'll need to get the inverse of this function;

y=x+7

x=y7

This is a linear inverse function, and every linear function can accept all real numbers, hence,

Range is:

Interval Notation: rng(f)=(,)

Set Notation: rng(f)={y:yR}



B.
f(x)=x2+7x+7

To get rng(f), we'll need to get the inverse of this function;

y=x2+7x+7

Making x the subject of the formulae:


x2+7x+7y=0

Using quadratic formula to simplify for x;

x=b±b24ac2a

x=7±724×1×(7y)2×1

x=7±494(7y)2

x=7±4928+4y2

x=7±21+4y2

x=7±21+4y2

This inverse function has a square root; the expression inside the square root must not be less than 0;

21+4y0

4y21

y214

y5.25

This means that our output values cannot be less than –5.25

Range is therefore written as;

Interval Notation: rng(f)=[5.25,)

Set Notation: rng(f)={y:yR,y5.25}



C.
g(x)=x918x5+6x48

There's a simple trick for this; 

it is useful to know that when the highest exponent of a function is an odd number, the range of the function is the set of all real numbers.

When we try to plot a graph for the above function, or try to calculate for the inverse of the function, we will end up spending a whole lot of time, but we can quickly evaluate for the range of the polynomial function by looking at its highest power. 

In the polynomial function above, the highest power is 9, 9 is an odd number, then we can predict that the range of the function will be the set of all real numbers. The same does not occur if the highest exponent of a function is an even number.

Interval Notation: rng(g)=(,)

Set Notation: rng(g)={y:yR}



D.
f(x)=x+7x2

We can quickly get the inverse of this function,

y=x+7x2

xy2y=x+7

xyx=2y+7

x(y1)=2y+7

x=2y+7y1


From this inverse function, we can see that y can be any value except value for which y1=0; this means that y1

Range is therefore:

Interval Notation: rng(f)=(,1)(1,)

Set Notation: rng(f)={yR:y1}


E.
g(x)=xx23x+2

Calculating for inverse of the function;

y=xx23x+2

x2y3xy+2y=x

x2y3xyx+2y=0

x2yx(3y+1)+2y=0

x=[(3y+1)]±[(3y+1)]24×y×2y2×y

x=3y+1±9y2+6y+18y22y

x=3y+1±y2+6y+12y


Radicand of the square root above must be non-negative;

y2+6y+10

Simplifying the inequality by using quadratic formula;

y6±6242

y6±3642

y6±322

y6±16×22

y6±422

y3±22

y3+22

y322

Range is therefore;

Interval Notation: rng(g)=(,322][3+22,)

Set Notation: rng(g)={yR:y322,y3+22}



F.
h(x)=x5

There's something you need to note whenever you see a square root function:

Normally, a square root relation yields both positive and negative outputs for every valid (non-negative) input, which makes it (the square root relation) not to be a function.

But for a square root relation to become a function, we must have only one output for each valid input. 

This makes it that whenever we see a function that is a square root, or involves square root, we limit the outputs to be the set of positive real numbers only.

This means that every square root functions produce only positive outputs, we do not consider the negative outputs.

Thus, for the above function, h(x)=x5, outputs must be only positive values.

To find out other output values that we might have to exclude from the range, we go ahead to solve for inverse of the function;

y=x5

y2=x5

x=y2+5

This implies that no value needs to be excluded, since y would accommodate all real values,


Range is then shown to be:

Interval Notation: rng(h)=[0,)

Set Notation: rng(h)={yR:y0}



G.
h(x)=7xx24x

Solving for inverse of the function;

y=7xx24x

xy=7xx24

x24=7xxy

x24=(7xxy)2

x24=49x214x2y+x2y2

x249x2+14x2yx2y2=4

48x2+14x2yx2y2=4

x2(48+14yy2)=4

x2=448+14yy2

x=448+14yy2

x=248+14yy2


Values that can enter into this inverse function are those such that y2+14y480 and y2+14y480

since y2+14y48 must not give a square root that is equal to zero, we have y2+14y48>0

Evaluating this inequality by using quadratic formula;

y>14±1424×1×482×1

y>14±1961922

y>14±42

y>14±22

y>14+22 and y<1422

y>122 and y<162

y>6 and y<8

It is therefore seen that 6<y<8

Range is therefore:

Interval Notation: rng(h)=(6,8)

Set Notation: rng(h)={yR:6<y<8}



H.
h(x)=log(x+2)+xx+2

As a beginner, you can only understand the range of this type of function by plotting its graph;

But We can boycott having to plot the graph of the above function by detaching log(x+2) and xx+2

We have y=log(x+2) and y=xx+2

We then find the inverses of both individual (detached) equations;

y=log(x+2)

10y=x+2

x=10y2





y=xx+2

xy+2y=x

xxy=2y

x(1y)=2y

x=2y1y

We conclude that log(x+2) will yield the set of all real numbers; whilst xx+2 will have an asymptote (explained in next blog post) at 1; since we will end up having to add these two outputs, we see that we have an output of all real numbers for the function h(x)=log(x+2)+xx+2

Range:

Interval Notation: rng(h)=(,)

Set Notation: rng(h)={y:yR}



I.
f(x)=ex

We can quickly get the range of the above function by solving for the inverse function;

y=ex

Taking the natural log of both sides:

logey=logeex

logey=xlogee

logey=x

x=lny

y can only take values greater than 0, hence, range is:

Interval Notation: rng(f)=(0,)

Set Notation: rng(f)={yR:y>0}



J.
Prove that f(x)1 in f(x)=12(3x+3x)

What this question is trying to require of us is that we should check if all f(x) for f(x)=12(3x+3x) is greater than 1; this, in other words, mean that we should check if the range of the function is greater than 1.


Solving for the inverse of the function;

y=12(3x+3x)

2y=3x+3x

2y=3x+13x

2y=32x+13x

2y3x=32x+1

32x2y3x+1=0

Let 3x=a

a22ay+1=0

Using quadratic formula to simplify a;

a=(2y)±(2y)24×1×12×1

a=2y±4y242

a=2y±4(y21)2

a=2y±2y212

a=y±y21

Recall, 3x=a

3x=y±y21

log3x=log(y±y21)

xlog3=log(y±y21)

x=log(y±y21)log3


From the above inverse function, the radicand y21 must not be negative;

y210

y21

y1

y1 or y1


 For the logarithmic expression, y±y21 must be greater than 0;

This implies y must take only positive values,


Range is therefore:

rng(f)={yR:y1}

It is therefore, seen that f(x)1


Domain and Range on a Graph

As you would normally know, on a Graph, the horizontal axis is the x–axis, while the vertical axis is the y–axis.

x–axis is the axis for independent variables, that is, inputs; while y–axis is the axis for dependent variables, that is, outputs.

This means that the domain of a function is shown along the x–axis of a graph, while range are shown along the y–axis.

Domain and Range on a graph



Domain and Range Calculator


Domain and Range Calculator
Enter the Function:
Calculate Domain and Range


Summary

📌 The domain of a function is the set of all input values that will make a function defined.

📌 The Codomain of a function is the set of all possible output values that may come out of a function.

📌 The Range of a function is the set of all actual output values that come out of a function.

📌 For a function to have a domain that will make it defined:
  • Denominator must not be equal to zero.
  • Radicand inside a square root must be non-negative.
  • Logarithmic expression must be greater than 0, etc.


Practice Questions

Question 1

Which of these is the Domain for f(x)=x37x2+5x2



A. dom(f):{x|xR,x2}

B. dom(f):{x|xR}

C. dom(f):{x|xR,x2}

D. dom(f):{x|xR,x>2}






Question 2

Calculate domain and range of f(x)=sinx



A. dom(f)={xR}
       rng(f)={yR:1y1}

B. dom(f)={xR}
       rng(f)={yR}

C. dom(f)={xR:0x360}
       rng(f)={yR:1y1}

D. dom(f)={xR}
       rng(f)={yR:y0}






Question 3

Find domain and range for 2x+3y=4



A. dom(f)={xR:x1}
       rng(f)={yR}

B. dom(f)={xR}
       rng(f)={yR}

C. dom(f)={xR:x3}
       rng(f)={yR:y2}

D. dom(f)={xR:x3}
       rng(f)={yR:y2}






Question 4

Find domain and range for f(x)=3x2+2x5



A. dom(f)={x:xR}
        rng(f)={y:yR}

B. dom(f)={x:xR}
        rng(f)={yR:y163}

C. dom(f)={x:xR}
        rng(f)={yR:y163}

D. dom(f)={x:xR}
        rng(f)={yR:y163}






Question 5

Find domain and range for f(x)=x2xx2



A. dom(f)={xR:x2}
        rng(f)={yR:y322,y3+22}

B. dom(f)={xR:x2}
        rng(f)={yR:y322,y3+22}

C. dom(f)={xR:x2}
        rng(f)={yR:322y3+22}

D. dom(f)={xR:x2}
        rng(f)={yR:y3+22}






Question 6

Find domain and range for f(x)=x5+4x43x2+7



A. dom(f)={xR:x7}
        rng(f)={yR:y3}

B. dom(f)={xR}
        rng(f)={yR:y3}

C. dom(f)={xR}
        rng(f)={yR}

D. dom(f)={xR}
        rng(f)={yR:y3}






Question 7

Calculate domain and range for f(x)=xx29



A. dom(f)={xR:x3}
        rng(f)={yR:y2}

B. dom(f)={xR:x3,x3}
        rng(f)={yR}

C. dom(f)={xR}
        rng(f)={yR}

D. dom(f)={xR:x9}
        rng(f)={yR:y9}






Question 8

Find domain and range for f(x)=ln(x+2)



A. dom(f)={xR}
        rng(f)={yR}

B. dom(f)={xR:x2}
        rng(f)={yR}

C. dom(f)={xR:x>2}
        rng(f)={yR}

D. dom(f)={xR:x<2}
        rng(f)={yR}






Question 9

Find domain and range for     f(x)=sin2(x2)



A. dom(f)={xR}
        rng(f)={yR:0y1}

B. dom(f)={xR:0x1}
        rng(f)={yR}

C. dom(f)={xR}
        rng(f)={yR:1y1}

D. dom(f)={xR}
        rng(f)={yR}






Question 10

Calculate domain and range for f(x)=646x2



A. dom(f)={xR:13x<3}
        rng(f)={yR:y<0,y32}

B. dom(f)={xR:x>3}
        rng(f)={yR:y<0,y32}

C. dom(f)={xR:13x<3,x>3}
        rng(f)={yR:y<0,y32}

D. dom(f)={xR:13x<3,x>3}
        rng(f)={yR:y<0}







Recommended Videos

Domain of a Function







Range of a Function




Domain And range of trigonometric functions




Test Questions

Quiz Application

DOMAIN, RANGE

please fill above required data

DOMAIN, RANGE

Total Questions: 20

you'll have 60 second to answer each question.

Time's Up
score:
Kerala PSC

Quiz Result


Total Questions:

Attempt:

Correct:

Wrong:

Percentage:


HTML Quiz Generator

Quiz Answers

1.

{x ∈ R : x ≠ 1, x ≠ –1}


2.

{x ∈ R}


3.

{x ∈ R : x ≠ 2}


4.

{x ∈ R : x > 1/2}


5.

{x ∈ R : x ≥ 0}


6.

{x ∈ R : x > 1/2}


7.

{x ∈ R : x ≥ –4}


8.

{x ∈ R : x > 4}


9.

{x ∈ R}


10.

{x ∈ R}


11.

{y ∈ R : y ≥ 0}


12.

{y ∈ R : y > 5}


13.

{y ∈ R : y ≥ 2 or y≤–2}


14.

{y ∈ R}


15.

{y ∈ R : y ≠ 1}


16.

{y ∈ R : y ≠ log 2}


17.

{y ∈ R}


18.

{y ∈ R}


19.

{y ∈ R : y ≠ 0}


20.

{y ∈ R}


Blogger tips and tricks
Tags

#buttons=(Accept) #days=(20)

This website uses cookies to enhance your experience. Learn More
Accept
To Top