Contents
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 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:
We know that it is impossible to divide by 0, therefore, our domain here, can not include the value (because this would lead to undefined, you will get a math error on a calculator).
However, all other values of 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 , ) ❌
• Square root of negative numbers (e.g , ) ❌
• Logarithm of 0 or numbers less than 0 (e.g , , ) ❌
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 shown above, which permits any input variable but 0, using interval Notation, we write its domain as
What this notation implies is that:
all values from to can enter into the function , but 0 is not included,
union, it means and,
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 , this type of bracket, , shows that all numbers from to infinity can be plugged into the function, with included; but when we have , the bracket, , means that is not included.
Set Notation:
Set notation uses sets to say explicitly where a function is defined or not.
For instance, in , any value but 0 is permissible into the function, hence, we write the Domain using set Notation as
This is read as domain of the function is any value, , which is an element of the set of all real numbers, ( ), such that is not equal to .
What this notation implies is that:
Our domain includes any value for except .
PRO TIP:
• Every input value can enter a linear function, hence, domain of all linear functions is the set of all real numbers { }.
• Every input value can enter a quadratic, polynomial function, hence, domain of all quadratic or polynomial functions is the set of all real numbers { }.
• 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 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 ), as greater than 0.
Examples
Using interval and set Notation, show the domain of:
A.
B.
C.
D.
E.
F.
G.
H.
I.
J.
Solution
A.
This is a linear function.
All linear functions can accept any input value for ,
Domain for the above function is:
Interval Notation:
Set Notation:
B.
This is a quadratic function.
All quadratic functions can accept any input value for x,
Domain for the above function is:
Interval Notation:
Set Notation:
C.
This is a polynomial function.
All polynomial functions can accept any input value for x,
Domain for the above function is:
Interval Notation:
Set Notation:
D.
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,
We can simplify this simple equation, we have;
Domain for the above function is then shown as:
Interval Notation:
Set Notation:
You can see that we were not concerned with the numerator, we are concerned only with the denominator.
E.
This is another Quotient. This means that for the function to be defined, the denominator must not be equal to zero.
Thus,
We can factorise this quadratic equation,
We can then write the domain for the function as:
Interval Notation:
Set Notation:
F.
This is a square root function.
A square root can only accept values starting from zero, upwards, i.e, no negative value
Thus,
The domain for the function is:
Interval Notation:
Set Notation:
G.
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,
For square root,
This means that all values between –2 and +2 cannot enter into the function as input.
Thus, domain is written as:
Interval Notation:
Set Notation:
H.
In this function, we have a Logarithmic expression, and a fraction:
In ,
Therefore,
In Fraction ,
Domain is therefore:
Interval Notation:
Set Notation:
I.
All exponential functions can accept any input value.
Domain is:
Interval Notation:
Set Notation:
J.
This is also an exponential function.
Domain is:
Interval Notation:
Set Notation:
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.
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 is not a function, because we can have positive and negative outputs for every valid input; however, when we limit the Codomain for as {positive real numbers}, this means that every input will have an output of only positive numbers, we then see that 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
In other words, if we have a function , all input (domain) are , while all output (range) are which is equal to , we then show the relation as:
This is still equal to , 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:
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 , we know the domain of this function is the set of all 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 as the subject of the formula:
Taking a look at this simple inverse function, all values except 0 can enter as input for ; this means that from the original function , 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 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.
B.
C.
D.
E.
F.
G.
H.
I.
J. Prove that in
Solution
A.
To get , we'll need to get the inverse of this function;
This is a linear inverse function, and every linear function can accept all real numbers, hence,
Range is:
Interval Notation:
Set Notation:
B.
To get , we'll need to get the inverse of this function;
Making the subject of the formulae:
Using quadratic formula to simplify for ;
This inverse function has a square root; the expression inside the square root must not be less than 0;
This means that our output values cannot be less than –5.25
Range is therefore written as;
Interval Notation:
Set Notation:
C.
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:
Set Notation:
D.
We can quickly get the inverse of this function,
From this inverse function, we can see that can be any value except value for which ; this means that
Range is therefore:
Interval Notation:
Set Notation:
E.
Calculating for inverse of the function;
Radicand of the square root above must be non-negative;
Simplifying the inequality by using quadratic formula;
Range is therefore;
Interval Notation:
Set Notation:
F.
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, , 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;
This implies that no value needs to be excluded, since y would accommodate all real values,
Range is then shown to be:
Interval Notation:
Set Notation:
G.
Solving for inverse of the function;
Values that can enter into this inverse function are those such that and ;
since must not give a square root that is equal to zero, we have
Evaluating this inequality by using quadratic formula;
It is therefore seen that
Range is therefore:
Interval Notation:
Set Notation:
can only take values greater than 0, hence, range is:
or
H.
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 and
We have and
We then find the inverses of both individual (detached) equations;
|
|
We conclude that will yield the set of all real numbers; whilst 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
Range:
Interval Notation:
Set Notation:
I.
We can quickly get the range of the above function by solving for the inverse function;
Taking the natural log of both sides:
Interval Notation:
Set Notation:
J.
Prove that in
What this question is trying to require of us is that we should check if all for 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;
Let
Using quadratic formula to simplify ;
Recall,
From the above inverse function, the radicand must not be negative;
For the logarithmic expression, must be greater than ;
This implies must take only positive values,
Range is therefore:
It is therefore, seen that
Domain and Range on a Graph
As you would normally know, on a Graph, the horizontal axis is the –axis, while the vertical axis is the –axis.
This means that the domain of a function is shown along the –axis of a graph, while range are shown along the –axis.
Domain and Range Calculator
Domain and Range Calculator | ||
---|---|---|
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 forA.
B.
C.
D.
Question 2
Calculate domain and range ofA.
B.
C.
D.
Question 3
Find domain and range forA.
B.
C.
D.
Question 4
Find domain and range forA.
B.
C.
D.
Question 5
Find domain and range forA.
B.
C.
D.
Question 6
Find domain and range forA.
B.
C.
D.
Question 7
Calculate domain and range forA.
B.
C.
D.
Question 8
Find domain and range forA.
B.
C.
D.
Question 9
Find domain and range forA.
B.
C.
D.
Question 10
Calculate domain and range forA.
B.
C.
D.
Recommended Videos
Domain of a Function
Range of a Function
Domain And range of trigonometric functions
Test Questions
DOMAIN, RANGE
please fill above required data
DOMAIN, RANGE
Total Questions: 20
you'll have 60 second to answer each question.
Quiz Result
Total Questions:
Attempt:
Correct:
Wrong:
Percentage:
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}