Skip to main content

Functions

(Content adapted from Critchlow & Eck)

Both the real world and the world of mathematics are full of what are called, in mathematics, "functional relationships." A functional relationship is a relationship between two sets, which associates exactly one element from the second set to each element of the first set.

For example, each item for sale in a store has a price. The first set in this relationship is the set of items in the store. For each item in the store, there is an associated price, so the second set in the relationship is the set of possible prices. The relationship is a functional relationship because each item has a price. That is, the question "What is the price of this item?" has a single, definite answer for each item in the store.

Similarly, the question "Who is the (biological) mother of this person?" has a single, definite answer for each person. So, the relationship "mother of" defines a functional relationship. In this case, the two sets in the relationship are the same set, namely the set of people.1 On the other hand, the relationship "child of" is not a functional relationship. The question "Who is the child of this person?" does not have a single, definite answer for each person. A given person might not have any child at all. And a given person might have more than one child. Either of these casesa person with no child or a person with more than one childis enough to show that the relationship "child of" is not a functional relationship.

Or consider an ordinary map, such as a map of New York State or a street map of Rome. The whole point of the map, if it is accurate, is that there is a functional relationship between points on the map and points on the surface of the Earth. Perhaps because of this example, a functional relationship is sometimes called a mapping.

There are also many natural examples of functional relationships in mathematics. For example, every rectangle has an associated area. This fact expresses a functional relationship between the set of rectangles and the set of numbers. Every natural number nn has a square, n2n^2. The relationship "square of" is a functional relationship from the set of natural numbers to itself.

In mathematics, of course, we need to work with functional relationships in the abstract. To do this, we introduce the idea of function. You should think of a function as a mathematical object that expresses a functional relationship between two sets. The notation f ⁣:ABf\colon A\to B expresses the fact that ff is a function from the set AA to the set BB. That is, ff is a name for a mathematical object that expresses a functional relationship from the set AA to the set BB. The notation f ⁣:ABf\colon A\to B is read as "ff is a function from AA to BB" or more simply as "ff maps AA to BB."

If f ⁣:ABf\colon A\to B and if aAa\in A, the fact that ff is a functional relationship from AA to BB means that ff associates some element of BB to aa. That element is denoted f(a)f(a). That is, for each aAa\in A, f(a)Bf(a)\in B and f(a)f(a) is the single, definite answer to the question "What element of BB is associated to aa by the function ff\,?" The fact that ff is a function from AA to BB means that this question has a single, well-defined answer. Given aAa\in A, f(a)f(a) is called the value of the function ff at aa.

For example, if II is the set of items for sale in a given store and MM is the set of possible prices, then there is function c ⁣:IMc\colon I\to M which is defined by the fact that for each xIx\in I, c(x)c(x) is the price of the item xx. Similarly, if PP is the set of people, then there is a function m ⁣:PPm\colon P\to P such that for each person pp, m(p)m(p) is the mother of pp. And if N\N is the set of natural numbers, then the formula s(n)=n2s(n) = n^2 specifies a function s ⁣:NNs\colon \N\to\N. It is in the form of formulas such as s(n)=n2s(n)=n^2 or f(x)=x33x+7f(x)=x^3-3x+7 that most people first encounter functions. But you should note that a formula by itself is not a function, although it might well specify a function between two given sets of numbers. Functions are much more general than formulas, and they apply to all kinds of sets, not just to sets of numbers.

Composition

Suppose that f ⁣:ABf\colon A\to B and g ⁣:BCg\colon B\to C are functions. Given aAa\in A, there is an associated element f(a)Bf(a)\in B. Since gg is a function from BB to CC, and since f(a)Bf(a)\in B, gg associates some element of CC to f(a)f(a). That element is g(f(a))g(f(a)). Starting with an element aa of AA, we have produced an associated element g(f(a))g(f(a)) of CC. This means that we have defined a new function from the set AA to the set CC. This function is called the composition of gg with ff, and it is denoted by gfg\circ f. That is, if f ⁣:ABf\colon A\to B and g ⁣:BCg\colon B\to C are functions, then gf ⁣:ACg\circ f\colon A\to C is the function which is defined by

(gf)(a)=g(f(a))(g\circ f)(a) = g(f(a))

for each aAa\in A. For example, suppose that pp is the function that associates to each item in a store the price of the item, and suppose that tt is a function that associates the amount of tax on a price to each possible price. The composition, tpt\circ p, is the function that associates to each item the amount of tax on that item. Or suppose that s ⁣:NNs\colon\N\to\N and r ⁣:NNr\colon\N\to\N are the functions defined by the formulas s(n)=n2s(n)=n^2 and r(n)=3n+1r(n)=3n+1, for each nNn\in\N. Then rsr\circ s is a function from N\N to N\N, and for nNn\in\N, (rs)(n)=r(s(n))=r(n2)=3n2+1(r\circ s)(n) = r(s(n)) = r(n^2) = 3n^2+1. In this case, we also have the function srs\circ r, which satisfies (sr)(n)=s(r(n))=s(3n+1)=(3n+1)2=9n2+6n+1(s\circ r)(n) = s(r(n)) = s(3n+1) = (3n+1)^2 = 9n^2+6n+1. Note in particular that rsr\circ s and srs\circ r are not the same function. The operation \circ is not commutative.

If AA is a set and f ⁣:AAf\colon A\to A, then fff\circ f, the composition of ff with itself, is defined. For example, using the function ss from the preceding example, sss\circ s is the function from N\N to N\N given by the formula (ss)(n)=s(s(n))=s(n2)=(n2)2=n4(s\circ s)(n) = s(s(n))= s(n^2) = (n^2)^2 = n^4. If mm is the function from the set of people to itself which associates to each person that person's mother, then mmm\circ m is the function that associates to each person that person's maternal grandmother.

Pairs

If aa and bb are entities, then (a,b)(a,b) denotes the ordered pair containing aa and bb. The ordered pair (a,b)(a,b) differs from the set {a,b}\{a,b\} because a set is not ordered. That is, {a,b}\{a,b\} and {b,a}\{b,a\} denote the same set, but if aba\not=b, then (a,b)(a,b) and (b,a)(b,a) are different ordered pairs. More generally, two ordered pairs (a,b)(a,b) and (c,d)(c,d) are equal if and only if both a=ca=c and b=db=d. If (a,b)(a,b) is an ordered pair, then aa and bb are referred to as the coordinates of the ordered pair. In particular, aa is the first coordinate and bb is the second coordinate.

If AA and BB are sets, then we can form the set A×BA\times B which is defined by

A×B={(a,b)aA and bB}.A\times B= \{(a,b)\mid a\in A \text{ and } b\in B\}.

This set is called the cross product or Cartesian product of the sets AA and BB. The set A×BA\times B contains every ordered pair whose first coordinate is an element of AA and whose second coordinate is an element of BB. For example, if X={c,d}X=\{c,d\} and Y={1,2,3}Y=\{1,2,3\}, then X×Y={(c,1),(c,2),(c,3),(d,1),(d,2),(d,3)}X\times Y=\{(c,1), (c,2), (c,3), (d,1),(d,2), (d,3)\}. It is possible to extend this idea to the cross product of more than two sets. The cross product of the three sets AA, BB, and CC is denoted A×B×CA\times B\times C. It consists of all ordered triples (a,b,c)(a,b,c) where aAa\in A, bBb\in B, and cCc\in C. The definition for four or more sets is similar. The general term for a member of a cross product is tuple or, more specifically, ordered n-tuple. For example, (a,b,c,d,e)(a,b,c,d,e) is an ordered 5-tuple.

Given a function f ⁣:ABf\colon A\to B, consider the set {(a,b)A×BaA and b=f(a)}\{(a,b)\in A\times B\mid a\in A \text{ and } b=f(a)\}. This set of ordered pairs consists of all pairs (a,b)(a,b) such that aAa\in A and bb is the element of BB that is associated to aa by the function ff. The set {(a,b)A×BaA and b=f(a)}\{(a,b)\in A\times B\mid a\in A \text{ and } b=f(a)\} is called the graph of the function ff. Since ff is a function, each element aAa\in A occurs once and only once as a first coordinate among the ordered pairs in the graph of ff. Given aAa\in A, we can determine f(a)f(a) by finding that ordered pair and looking at the second coordinate. In fact, it is convenient to consider the function and its graph to be the same thing, and to use this as our official mathematical definition.2

Let AA and BB be sets. A function from AA to BB is a subset of A×BA\times B which has the property that for each aAa\in A, the set contains one and only one ordered pair whose first coordinate is aa. If (a,b)(a,b) is that ordered pair, then bb is called the value of the function at aa and is denoted f(a)f(a). If b=f(a)b=f(a), then we also say that the function ff maps aa to bb. The fact that ff is a function from AA to BB is indicated by the notation f ⁣:ABf\colon A\to B.

For example, if X={a,b}X=\{a,b\} and Y={1,2,3}Y=\{1,2,3\}, then the set {(a,2),(b,1)}\{(a,2), (b,1)\} is a function from XX to YY, and {(1,a),(2,a),(3,b)}\{(1,a), (2,a), (3,b)\} is a function from YY to XX. On the other hand, {(1,a),(2,b)}\{(1,a),(2,b)\} is not a function from YY to XX, since it does not specify any value for 3. And {(a,1),(a,2),(b,3)}\{(a,1),(a,2),(b,3)\} is not a function from XX to YY because it specifies two different values, 1 and 2, associated with the same element, aa, of XX.

Even though the technical definition of a function is a set of ordered pairs, it's usually better to think of a function from AA to BB as something that associates some element of BB to every element of AA. The set of ordered pairs is one way of expressing this association. If the association is expressed in some other way, it's easy to write down the set of ordered pairs. For example, the function s ⁣:NNs\colon\N\to\N which is specified by the formula s(n)=n2s(n)=n^2 can be written as the set of ordered pairs {(n,n2)nN}\{(n,n^2)\mid n\in \N\}.

Additional Concepts

Suppose that f ⁣:ABf\colon A\to B is a function from the set AA to the set BB. We say that AA is the domain of the function ff and that BB is the range of the function. We define the image of the function ff to be the set {bBaA(b=f(a))}\{b\in B\mid \exists a\in A\,(b=f(a))\}. Put more simply, the image of ff is the set {f(a)aA}\{f(a)\mid a\in A\}. That is, the image is the set of all values, f(a)f(a), of the function, for all aAa\in A. (You should note that in some casesparticularly in calculus coursesthe term "range" is used to refer to what I am calling the image.) For example, for the function s ⁣:NNs\colon\N\to\N that is specified by s(n)=n2s(n)=n^2, both the domain and the range are N\N, and the image is the set {n2nN}\{n^2\mid n\in\N\}, or {0,1,4,9,16,}\{0,1,4,9,16,\dots\}.

Note that the image of a function is a subset of its range. It can be a proper subset, as in the above example, but it is also possible for the image of a function to be equal to the range. In that case, the function is said to be onto. Sometimes, the fancier term surjective is used instead. Formally, a function f ⁣:ABf\colon A\to B is said to be onto (or surjective) if every element of BB is equal to f(a)f(a) for some element of AA. In terms of logic, ff is onto if and only if

bB(aA(b=f(a))).\forall b\in B\,\big(\exists a\in A\, (b=f(a))\big).

For example, let X={a,b}X=\{a,b\} and Y={1,2,3}Y=\{1,2,3\}, and consider the function from YY to XX specified by the set of ordered pairs {(1,a),(2,a),(3,b)}\{(1,a),(2,a),(3,b)\}. This function is onto because its image, {a,b}\{a,b\}, is equal to the range, XX. However, the function from XX to YY given by {(a,1),(b,3)}\{(a,1),(b,3)\} is not onto, because its image, {1,3}\{1,3\}, is a proper subset of its range, YY. As a further example, consider the function ff from Z\Z to Z\Z given by f(n)=n52f(n) = n-52. To show that ff is onto, we need to pick an arbitrary bb in the range Z\Z and show that there is some number aa in the domain Z\Z such that f(a)=bf(a) = b. So let bb be an arbitrary integer; we want to find an aa such that a52=ba-52=b. Clearly this equation will be true when a=b+52a=b+52. So every element bb is the image of the number a=b+52a=b+52, and ff is therefore onto. Note that if ff had been specified to have domain N\N, then ff would not be onto, as for some bZb \in \Z the number a=b+52a=b+52 is not in the domain N\N (for example, the integer 73-73 is not in the image of ff, since 21-21 is not in N\N.)

If f ⁣:ABf\colon A\to B and if aAa\in A, then aa is associated to only one element of BB. This is part of the definition of a function. However, no such restriction holds for elements of BB. If bBb\in B, it is possible for bb to be associated to zero, one, two, three, , or even to an infinite number of elements of AA. In the case where each element of the range is associated to at most one element of the domain, the function is said to be one-to-one. Sometimes, the term injective is used instead. The function ff is one-to-one (or injective) if for any two distinct elements xx and yy in the domain of ff, f(x)f(x) and f(y)f(y) are also distinct. In terms of logic, f ⁣:ABf\colon A\to B is one-to-one if and only if

xAyA(xyf(x)f(y)).\forall x\in A\,\,\forall y\in A\,\big(x\not=y\rightarrow f(x)\not=f(y)\big).

Since a proposition is equivalent to its contrapositive, we can write this condition equivalently as

xAyA(f(x)=f(y)x=y).\forall x\in A\,\,\forall y\in A\,\big(f(x)=f(y)\rightarrow x=y\big).

Sometimes, it is easier to work with the definition of one-to-one when it is expressed in this form. The function that associates every person to his or her mother is not one-to-one because it is possible for two different people to have the same mother. The function s ⁣:NNs\colon\N\to\N specified by s(n)=n2s(n)=n^2 is one-to-one. However, we can define a function r ⁣:ZZr\colon\Z\to\Z by the same formula: r(n)=n2r(n)=n^2, for nZn\in\Z. The function rr is not one-to-one since two different integers can have the same square. For example, r(2)=r(2)r(-2)=r(2).

A function that is both one-to-one and onto is said to be bijective. The function that associates each point in a map of New York State to a point in the state itself is presumably bijective. For each point on the map, there is a corresponding point in the state, and vice versa. If we specify the function ff from the set {1,2,3}\{1,2,3\} to the set {a,b,c}\{a,b,c\} as the set of ordered pairs {(1,b),(2,a),(3,c)}\{(1,b),(2,a),(3,c)\}, then ff is a bijective function. Or consider the function from Z\Z to Z\Z given by f(n)=n52f(n) = n-52. We have already shown that ff is onto. We can show that it is also one-to-one: pick an arbitrary xx and yy in Z\Z and assume that f(x)=f(y)f(x) = f(y). This means that x52=y52x-52 = y-52, and adding 52 to both sides of the equation gives x=yx=y. Since xx and yy were arbitrary, we have proved xZyZ(f(x)=f(y)x=y)\forall x\in \Z\,\,\forall y\in \Z\,(f(x)=f(y)\rightarrow x=y), that is, that ff is one-to-one. Altogether, then, ff is a bijection.

First-Class Functions

One difficulty that people sometimes have with mathematics is its generality. A set is a collection of entities, but an "entity" can be anything at all, including other sets. Once we have defined ordered pairs, we can use ordered pairs as elements of sets. We could also make ordered pairs of sets. Now that we have defined functions, every function is itself an entity. This means that we can have sets that contain functions. We can even have a function whose domain and range are sets of functions. Similarly, the domain or range of a function might be a set of sets, or a set of ordered pairs. Computer scientists have a good name for this. They would say that sets, ordered pairs, and functions are first-class objects. Once a set, ordered pair, or function has been defined, it can be used just like any other entity. If they were not first-class objects, there could be restrictions on the way they can be used. For example, it might not be possible to use functions as members of sets. (This would make them "second class.")

For example, suppose that AA, BB, and CC are sets. Then since A×BA\times B is a set, we might have a function f ⁣:A×BCf\colon A\times B\to C. If (a,b)A×B(a,b)\in A\times B, then the value of ff at (a,b)(a,b) would be denoted f((a,b))f((a,b)). In practice, though, one set of parentheses is usually dropped, and the value of ff at (a,b)(a,b) is denoted f(a,b)f(a,b). As a particular example, we might define a function p ⁣:N×NNp\colon \N\times\N\to\N with the formula p(n,m)=nm+1p(n,m)=nm+1. Similarly, we might define a function q ⁣:N×N×NN×Nq\colon \N\times\N\times\N\to\N\times\N by q(n,m,k)=(nmk,nkn)q(n,m,k)=(nm-k,nk-n).

Suppose that AA and BB are sets. There are, in general, many functions that map AA to BB. We can gather all those functions into a set. This set, whose elements are all the functions from AA to BB, is denoted BAB^A. (We'll see later why this notation is reasonable.) Using this notation, saying f ⁣:ABf\colon A\to B is exactly the same as saying fBAf\in B^A. Both of these notations assert that ff is a function from AA to BB. Of course, we can also form an unlimited number of other sets, such as the power set P(BA){\mathscr P}\big(B^A\big), the cross product BA×AB^A\times A, or the set AA×AA^{A\times A}, which contains all the functions from the set A×AA\times A to the set AA. And of course, any of these sets can be the domain or range of a function. An example of this is the function E ⁣:BA×AB{\mathscr E}\colon B^A\times A\to B defined by the formula E(f,a)=f(a){\mathscr E}(f,a) = f(a). Let's see if we can make sense of this notation. Since the domain of E{\mathscr E} is BA×AB^A\times A, an element in the domain is an ordered pair in which the first coordinate is a function from AA to BB and the second coordinate is an element of AA. Thus, E(f,a){\mathscr E}(f,a) is defined for a function f ⁣:ABf\colon A\to B and an element aAa\in A. Given such an ff and aa, the notation f(a)f(a) specifies an element of BB, so the definition of E(f,a){\mathscr E}(f,a) as f(a)f(a) makes sense. The function E{\mathscr E} is called the "evaluation function" since it captures the idea of evaluating a function at an element of its domain.

Exercises

  1. Let A={1,2,3,4}A=\{1,2,3,4\} and let B={a,b,c}B=\{a,b,c\}. Find the sets A×BA\times B and B×AB\times A.

    Answer

    A×B={(1,a),(1,b),(1,c),(2,a),(2,b),(2,c),(3,a),(3,b),(3,c),(4,a),(4,b),(4,c)}A\times B=\{(1,a),(1,b),(1,c),(2,a),(2,b),(2,c),(3,a),(3,b),(3,c),(4,a),(4,b),(4,c)\}

    B×A={(a,1),(a,2),(a,3),(a,4),(b,1),(b,2),(b,3),(b,4),(c,1),(c,2),(c,3),(c,4)}B\times A=\{(a,1),(a,2),(a,3),(a,4),(b,1),(b,2),(b,3),(b,4),(c,1),(c,2),(c,3),(c,4)\}

  2. Let AA be the set {a,b,c,d}\{a,b,c,d\}. Let ff be the function from AA to AA given by the set of ordered pairs {(a,b),(b,b),(c,a),(d,c)}\{(a,b),(b,b),(c,a),(d,c)\}, and let gg be the function given by the set of ordered pairs {(a,b),(b,c),(c,d),(d,d)}\{(a,b),(b,c),(c,d),(d,d)\}. Find the set of ordered pairs for the composition gfg\circ f.

    Answer

    g(f(a))=g(b)=cg(f(a)) = g(b) = c, g(f(b))=g(b)=cg(f(b)) = g(b) = c, g(f(c))=g(a)=bg(f(c)) = g(a) = b, and g(f(d))=g(c)=dg(f(d)) = g(c) = d, so the ordered pairs are {(a,c),(b,c),(c,b),(d,d)}\{(a,c), (b,c), (c,b), (d,d)\}.

  3. Let A={a,b,c}A=\{a,b,c\} and let B={0,1}B=\{0,1\}. Find all possible functions from AA to BB. Give each function as a set of ordered pairs. (Hint: Every such function corresponds to one of the subsets of AA.)

    Answer

    Given a subset SAS\subseteq A, the characteristic function of SS is the function χS\chi_S from AA to {0,1}\{0,1\} defined by (χS(x)=1)(xA)(\chi_S(x)=1)\equiv(x\in A). Conversely, given a function ff from AA to B={0,1}B=\{0,1\}, we may find a subset of AA whose characteristic function is ff by taking the set of elements of AA that are mapped to 1 by ff (this is known as the inverse image, f1(1)f^{-1}(1)). Here are the subsets along with their corresponding characteristic functions:

    SSχS\chi_S
    {}\{\}{(a,0),(b,0),(c,0)}\{(a,0), (b,0), (c,0)\}
    {c}\{c\}{(a,0),(b,0),(c,1)}\{(a,0), (b,0), (c,1)\}
    {b}\{b\}{(a,0),(b,1),(c,0)}\{(a,0), (b,1), (c,0)\}
    {b,c}\{b,c\}{(a,0),(b,1),(c,1)}\{(a,0), (b,1), (c,1)\}
    {a}\{a\}{(a,1),(b,0),(c,0)}\{(a,1), (b,0), (c,0)\}
    {a,c}\{a,c\}{(a,1),(b,0),(c,1)}\{(a,1), (b,0), (c,1)\}
    {a,b}\{a,b\}{(a,1),(b,1),(c,0)}\{(a,1), (b,1), (c,0)\}
    {a,b,c}\{a,b,c\}{(a,1),(b,1),(c,1)}\{(a,1), (b,1), (c,1)\}
  4. Consider the functions from Z\Z to Z\Z which are defined by the following formulas. Decide whether each function is onto and whether it is one-to-one; prove your answers.

    • f(n)=2nf(n)=2n
      Answer

      ff is one-to-one, because if f(x)=f(y)f(x)=f(y), then 2x=2y2x=2y, hence x=yx=y. ff is not onto, because the image of ff is only the even integers.

    • g(n)=n+1g(n)=n+1
      Answer

      gg is both one-to-one and onto; given any xZx\in\Z, there is exactly one nZn\in\Z (namely, x1x-1) such that g(n)=xg(n) = x.

    • h(n)=n2+n+1h(n)=n^2+n+1
      Answer

      hh is neither one-to-one nor onto. In particular, h(1)=h(0)=1h(-1)=h(0)=1, and there is no nZn\in\Z such that h(n)=0h(n)=0.

    • s(n)=n/2s(n)=n/2, if nn is even, and s(n)=(n+1)/2s(n)=(n+1)/2, if nn is odd
      Answer

      ss is onto, because given any xZx\in\Z we may see that s(2x)=xs(2x)=x. ss is not one-to-one, because s(1)=s(2)=1s(1)=s(2)=1.

  5. Prove that composition of functions is an associative operation. That is, prove that for functions f ⁣:ABf\colon A\to B, g ⁣:BCg\colon B\to C, and h ⁣:CDh\colon C\to D, the compositions (hg)f(h\circ g)\circ f and h(gf)h\circ(g\circ f) are equal.

    Answer

    It is enough to observe that, for any xAx\in A, the compositions ((hg)f)(x)((h\circ g)\circ f)(x) and (h(gf))(x)(h\circ(g\circ f))(x) both evaluate to h(g(f(x)))h(g(f(x))).

  6. Suppose that f ⁣:ABf\colon A\to B and g ⁣:BCg\colon B\to C are functions and that gfg\circ f is one-to-one.

    • Prove that ff is one-to-one. (Hint: use a proof by contradiction.)
      Answer

      Suppose we had distinct elements xx and yy in AA such that f(x)=f(y)f(x)=f(y). Then we would also have that g(f(x))=g(f(y))g(f(x))=g(f(y)), so gfg\circ f would agree on xx and yy. But gfg\circ f is one-to-one, so that is a contradiction. Therefore, there must not be such elements in AA, hence ff is one-to-one.

    • Find a specific example that shows that gg is not necessarily one-to-one.
      Answer

      Consider functions on the integers (Z\Z), and let f(n)=2nf(n)=2n and g(n)=n/2g(n)=n/2 if nn is even, g(n)=0g(n)=0 if nn is odd. Then gfg\circ f is the identity function, which is one-to-one, but gg is clearly not one-to-one.

  7. Suppose that f ⁣:ABf\colon A\to B and g ⁣:BCg\colon B\to C, and suppose that the composition gfg\circ f is an onto function.

    • Prove that gg is an onto function.
      Answer

      Given any xCx\in C, the fact that gfg\circ f is onto means that we can find a yAy\in A such that g(f(y))=xg(f(y))=x. But that means that we have an element of BB, namely f(y)f(y), which gg maps onto xx. Since we can do this for any element of CC, the function gg is onto.

    • Find a specific example that shows that ff is not necessarily onto.
      Answer

      Consider functions on the integers (Z\Z), and let f(n)=2nf(n)=2n and g(n)=n/2g(n)=n/2 if nn is even, g(n)=0g(n)=0 if nn is odd. Then gfg\circ f is the identity function, which is onto, but ff is clearly not onto.


  1. I'm avoiding here the question of Adam and Eve or of pre-human ape-like ancestors. (Take your pick.)
  2. This is a convenient definition for the mathematical world, but as is often the case in mathematics, it leaves out an awful lot of the real world. Functional relationships in the real world are meaningful, but we model them in mathematics with meaningless sets of ordered pairs. We do this for the usual reason: to have something precise and rigorous enough that we can make logical deductions and prove things about it.