Concept of function
A function is a relation between two sets which satisy that for every element of the domain one and only one element in the codomain is assigned. We can understand the function as a machine that transforms an element of the first set (domain) into an element of the other set (codomain). A useful way of representing the functions are the well-known Venn diagrams. We observe that to every element of the domain
To see the difference between what a function is and is not, we can observe the following figure:
This way, while the first relation
The set of inputs receives the name of domain, and the set of outputs the name of codomain.
The values of the initial set to which we can apply the function constitute the domain of the function. The elements of the set of outputs that we can obtain after applying the function to an element of the domain constitute the codomain (or image set) of the function.
The elements of the domain are called antiimages, and those of the image, images.
Example
Let's imagine that to prepare a rice dish, we put three cups of rice for every two people plus two cups "extra" if someone wants to have seconds. We can represent this relation in the following way:
Initial set
Final set
In this function, the domain coincides with the set of antiimages. On the other hand, the image is only a subset of the rational positives. This is translated into:
Finally, if we want to know how many cups of rice we need for
Therefore, we need
On the other hand, if we know that we have put
Therefore the rice was for
Equation of a function
The equation of a function is the algebraic expression that summarizes how one can obtain the values of the final set from the values of the initial set.
Example
Considering the function
The values that can take the elements of the domain of the function is: the independent variable . Generally, it is denoted by
This is called the dependent variable, the set of values that the images may take. Generally, it is denoted by the letter
Example
In the previous example,