Concept and equation of a function

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 $$A$$, an element of the codomain $$B$$ is assigned to it:

$$f:$$

imagen

To see the difference between what a function is and is not, we can observe the following figure:

$$g:$$

imagen

This way, while the first relation $$f$$ is a function, since it assigns only one element of the codomain to every element of the domain, the relation $$g$$ is not a function since there exist elements of the domain to which are assigned more than one element of the codomain.

The set of inputs receives the name of domain, and the set of outputs the name of codomain.

imagen

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.

imagen

The elements of the domain are called antiimages, and those of the image, images.

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:$$$\mbox{number rice cups }=\displaystyle \frac{3}{2}\cdot \mbox{ number people }+2$$$We observe that the initial set will be the set of natural numbers and that positive fractions will be the set of images. Therefore:

Initial set $$=\mathbb{N} = {1, 2, 3, 4, 5...}$$

Final set$$ = \mathbb{Q}^+=\Big\{ \displaystyle \frac{1}{2}, \frac{2}{3}, \frac{2}{5}, 3, \frac{7}{2}, \frac{9}{4}, \frac{10}{3}, \frac{12}{5}, \ldots\Big\}$$

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:

$$Dom \ (f) = \mathbb{N}$$

$$Im (f) =\displaystyle \Big\{\frac{7}{2}, 5,\frac{13}{2},8,\frac{19}{2},11, \ldots\Big\}$$

Finally, if we want to know how many cups of rice we need for $$10$$ people, we have to ask ourselves what the image of $$10$$ is, that is to say, $$f (10)$$: $$$f(10)=\displaystyle \frac{3}{2}\cdot 10+2=17$$$

Therefore, we need $$17$$ rice cups for $$10$$ people.

On the other hand, if we know that we have put $$15,5$$ cups of rice we ask ourselves the number of people that the rice will ce, what we are actually wondering is the value of the antiimage of $$15,5$$, that is to say $$f^{-1}(15,5)$$: $$$\displaystyle 15,5=\frac{3}{2}x+2 \\ 13.5=\frac{3}{2}x \\ x=\displaystyle \frac{2 \cdot 13.5}{3}=9$$$

Therefore the rice was for $$9$$ people and $$f^{-1}(15,5)=9$$.

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.

Considering the function $$f$$ defined by doing the third part and reducing two to an integer, the equation of such a function is:

$$$f(x)=\displaystyle \frac{x}{3}-2$$$

The values that can take the elements of the domain of the function is: the independent variable . Generally, it is denoted by $$x$$. In the previous example,$$x \in \mathbb{Z}$$ since in this case the statement specifies it.

This is called the dependent variable, the set of values that the images may take. Generally, it is denoted by the letter $$y$$, where $$y = f (x)$$.

In the previous example, $$$y \in \Big\{-2,\displaystyle \frac{-5}{3}, \frac{-7}{3},\frac{-4}{3},\frac{-8}{3}, -1, \ldots\Big\} \subset \mathbb{Q}$$$