Je bent je ingevulde velden bij deze pagina aan het verwijderen. Ben je zeker dat je dit wilt doen?
You are erasing your filled-in fields on this page. Are you sure that is what you want?
Nieuwe Versie BeschikbaarNew Version Available
Er is een update van deze pagina. Als je update naar de meest recente versie, verlies je mogelijk je huidige antwoorden voor deze pagina. Hoe wil je verdergaan ?
There is an updated version of this page. If you update to the most recent version, then your current progress on this page will be erased. Regardless, your record of completion will remain. How would you like to proceed?
Functions turn inputs into outputs, and it is important to determine what type of
inputs and outputs can or may occur. This is described using two concepts: the
domain of a function is the set of all allowed inputs and its codomain is the set to
which all outputs must belong:
Domain and codomain of a function
The domain of a function , noted , is the set of all allowed inputs of the
function.
The codomain of a function , noted , is the set containing all possible outputs of the
function.
The image of a function (also called range of ), noted , is the set containing all
effective outputs of the function.
For a function from a domain to a codomain we write:
where therefore and . The expression is sometimes also spread over two lines:
We read this expression as: is a function from to that maps (any) to
.
Domain and codomain of functions
Function
domain
codomain
image
If functions are given as , you can read the domain and codomain, you have to
calculate the image.
Not every element of the codomain has to be effectively reached by the
function . The elements that are effectively reached form exactly the image
or range of . Thus the range of is a subset of the codomain of , and the
image or range may be smaller than the codomain but never larger. The
function
has as codomain , but the image is because the square of a real number
is always positive.
Each element of the domain must have a (unique) image, and so the
following expression is wrong:
because the square root is not defined for negative numbers.
However, we can write the square root function as
Note that the domain does not have to be the largest possible set on
which the function can be defined. The following expression also defines a
function:
By convention, two functions are equal if they have the same domain, the
same codomain, and both map an element of their domain to the same
value of the codomain. So the above functions and are strictly speaking
different functions, and we will see further that this can be important
when studying graphs and especially inverse functions.
If no explicit domain is specified for real functions, the convention is to
take as the domain the largest possible subset of on which the function
can be defined. The codomain is usually if it is not explicitly specified.
Note the difference in the use of arrows: we use between the domain and
the codomain, but we always use to indicate where an element is mapped.
So the arrow indicates between which sets the function is defined, and
the arrow indicates on what an element is mapped.
One can make all kinds of variants of functions by changing the domain or
codomain:
Notation and definition of functions
A function is defined not only by what it does, but also by its possible (or ’allowed’)
input and output. For example, the function ’square-number’
is strictly speaking a different function than the function ’square-whole-numbers’
or the function ’square-real numbers’.
So, two functions are equivalent if and only if they have the same input set and
output set and if they assign the same output value to each input.
Even if each function , and each maps to , then strictly speaking they are still
different functions. In many cases, however, we will simply speak of the function
’square’ and ignore the distinction between domain and codomain. We then write
.
When discussing inverse functions, this distinction will become important.
Ill-defined functions
The expression is invalid because holds that and thus does not belong
to the declared codomain .
is a correctly defined function, as is
.
(Note: is the interval of the real numbers greater than or equal to .)
The expression is invalid because is not defined for , and thus cannot
belong to the domain.
is a correctly defined function, as is
Note: is the set of real numbers excluding the numbers and . The symbol means , i.e. the real numbers excluding zero.
The expression is invalid because can also be negative.
is a correctly defined function.
Extra 1: Variants of functions
For a function , one can typically make the domain smaller and the codomain larger:
If , then the constraint of to , noted , is defined as
If , then you can associate the following function with , almost always
notated with just :
For a function , one can sometimes make the domain bigger or the codomain smaller.
The smallest possible codomain is exactly the image:
The function can easily be extended to a function . The function cannot be
extended any further.