Chapter 2 — Functions
2.1 — The Notion of Function: from Correspondence to Determinism
Before asking how a function behaves, one must ask what kind of object it is.
The previous chapter worked with numbers, expressions and curves: a value of that satisfies an equation, a point of the plane that belongs to a circle. Still missing is the object that systematically links the elements of one set with those of another: the function. A function is neither a formula nor a graph; both are, as we will see, ways of presenting something more elementary. It is a relation between two sets that satisfies a very particular condition. Fixing that condition precisely, before handling a single concrete function, is the purpose of this section.
§1. The Cartesian product
Section titled “§1. The Cartesian product”Given two sets and , their Cartesian product is the set of all ordered pairs whose first component belongs to and whose second component belongs to :
This is the set-builder notation of §1.1: the bar separates the elements from the condition they satisfy, and indicates membership. As in §1.8, order matters: means and , so that and are different pairs unless . That is why and are, in general, different sets.
The case is already familiar to us, although we did not call it that: is the set of §1.8, the Cartesian plane. The analytic geometry of the previous chapter can be reread as the study of certain subsets of this Cartesian product.
§2. Set inclusion and relations
Section titled “§2. Set inclusion and relations”Before going on, it is worth fixing a symbol the book has been using without defining it, since the chain of number sets in §1.1. Given two sets and , we say that is a subset of , and write , when every element of also belongs to :
The arrow reads “implies”: if is in , then it is in . When moreover , we say that is a proper subset of and use the strict symbol , the same one as in the chain .
With this vocabulary, a relation from to is, by definition, any subset . The definition requires nothing about how the pairs are distributed within . The circle of §1.8, for example, is a relation on :
with , is a subset of and therefore a legitimate relation. But, as we will see shortly, not every relation deserves to be called a function.
§3. The function: existence and uniqueness
Section titled “§3. The function: existence and uniqueness”Among all the relations from to , one particular kind is of interest: those in which each element of determines, without ambiguity, a single element of .
Definition. A relation is a function from to if it satisfies two conditions:
(Existence) for every there is such that ;
(Uniqueness) if and , then .
The two conditions are abbreviated with symbols we will use from now on. The symbol reads “for all”, reads “there exists” and reads “there exists a unique”. With them, the two conditions fit on one line:
When this holds, the unique associated with is denoted , and it is called the image of under or the value of at .
Why are both conditions required? Existence guarantees that no element of is left unassociated: the function is defined on all of . Uniqueness is the condition that separates a function from the rest of the relations: it forbids the same from being linked to two different values. Without it, the expression "" would be ambiguous, because we would not know which of the possible values it designates, and everything the book builds on functions, from solving to composing functions, would lose its meaning.
The circle of §2 shows how both conditions can fail. If , then , and there are two different values of satisfying , namely and : uniqueness fails. If , then , and no real satisfies : existence fails. The circle is a legitimate relation, but not a function from to . Its upper half, , is a function from to : for each in that interval, the root exists and is unique by §1.2.
§4. Domain, codomain and image
Section titled “§4. Domain, codomain and image”If is a function from to , we write
and say that is the domain of , denoted , and that is its codomain. The notation declares the two sets. The rule of assignment is declared with another arrow, , which carries a small bar at its tail: reads ” is assigned ”. Thus , describes a function completely.
There is a subtlety here. As a set of pairs, does not remember its codomain: the same set of pairs is a subset of and of for any containing all the values of . Yet the codomain is a piece of data we will need in §2.7, when defining what it means for a function to be surjective. We therefore adopt the usual convention: a function is determined by three pieces of data, its domain, its codomain and its set of pairs, and two functions with the same pairs but a different declared codomain are regarded as different.
Not every element of the codomain has to be reached. The subset of that is reached is the image of :
The inclusion may be proper: nothing in the definition of function requires the whole codomain to be covered. This difference between what is declared as possible and what is actually reached looks like a technicality for now, but it is exactly what will allow us, in §2.7, to specify what it means for a function to be surjective.
Example. Let , . Its image is the interval , in the notation of §1.1. To prove it we must see two things. On the one hand, no negative real is reached, because no real square is negative (§1.3). On the other, every is reached: by §1.2, exists, and . The codomain is and the image is : they do not coincide, and both are legitimate data of the function.
§5. Representations of a function
Section titled “§5. Representations of a function”The same function can be presented in different ways, and recognizing them as presentations of a single object is part of understanding the concept.
Verbal representation. It describes the rule in ordinary language: “each real number is assigned its square”. It is the least precise form, but it is often the starting point when translating a problem, as in §1.6.
Numerical representation. It is a table of pairs for some values of the domain. When the domain is infinite it is necessarily incomplete, because no table exhausts , but it is the most direct way of working with experimental data.
Algebraic representation. It is a formula that computes from with the operations already available: sums, products, powers, roots and quotients. It is the predominant form in the rest of the book, with one caveat: not every function admits a single formula valid on its whole domain. When the rule changes according to the value of , the function is said to be piecewise defined, and it is written with a brace that distinguishes the cases. The absolute value of §1.1 is the first example:
The definition of §3 does not require a single formula: it requires that each in the domain correspond to a single value, regardless of whether that value is computed one way for and another way for . For a piecewise expression to actually define a function, two things must be checked: that the cases cover the whole declared domain, which is existence, and that, if two cases overlap at some value of , they give the same result there, which is uniqueness.
Graphical representation. The graph of a function whose domain is contained in is the set
It is not a drawing that is traced and then interpreted, but a precise subset of the plane of §1.8. In fact, with the definition of §3, the graph is the set of pairs itself; the name emphasizes that we look at it as a figure in the plane. A natural question remains: given an arbitrary subset of the plane, how can we recognize whether it is the graph of some function? The answer, a geometric translation of the uniqueness condition, is the first topic of §2.3.
The uniqueness condition of §3 is not a formal whim: it is the mathematical way of expressing determinism. An arbitrary relation, such as the full circle, allows the same input value to coexist with more than one output value. A function, on the other hand, establishes that, once the input is fixed, the output is completely determined. The same requirement is expected of a physical law: to each initial state, a single resulting state. A question remains open that the rest of the chapter does not fully resolve: is this uniqueness a property that mathematics discovers in the world, or a condition that mathematics imposes in order to speak about it precisely?
With the function defined as an object and its representations distinguished, the next section takes up the question that every formula raises at once: for which values of does it make sense to compute ? It is the question of the implicit domain, the topic of §2.2.
Copyright © 2026 Carlos Dagorret — Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)