function

The concept of function in mathematics is as complex and important as any mathematical idea, though perhaps the concept of space has more subtleties. This long entry discusses the syntax we use in talking about functions, the metaphors behind the idea, and the difficulties connected with it.

(a) Objects associated with a function When a function is discussed in the mathematical register, some or all of the following data will be referred to.

There is no single item in the preceding list that a discussion of a function must refer to. Below, I list many of the possibilities for referring to these data and the common restrictions on their use.

(b) The identifier of a function (See also value).

(i) Name Functions may have names, for example “sine” or “the exponential function”. The name in English and the symbol for the function may be different; for example “sine” and “sin”, “exponential function” and “exp”. See also definition.

(ii) Local identifier A function may be given a local identifier. This is by convention a single letter, often drawn from the Roman letters $f$ through $h$ or one of many Greek letters.

(iii) Anonymous reference A function may be specified without an identifier, using some form of structural notation. One form is to use the defining expression (discussed below). Other types of structural notation include barred arrow notation and lambda notation, discussed under those entries.

(iv) Naming a function by its value at $x$ It is common to refer to a function with identifier $f$ (which may or may not be a name) as $f (x)$ (of course some other variable may be used instead of $x$). This is used with functions of more than one variable, too.

Example 1 “Let $f (x)$ be a continuous function.”

Example 2 “The function $\sin x$ is bounded.” Citation: (164), (172), (304).

(v) The defining expression as the name of a function It is very common to refer to a function whose rule is given by an expression $f (x)$ by simply mentioning the expression, which is called its defining expression. This is a special case of naming a function by its value.

Example 3 “The derivative of $x^{3}$ is always nonnegative.”

Remark 1 It is quite possible that this usage should be analyzed as simply referring to the expression, rather than a function.

The defining equation is also used as the name of a function.

Example 4 The derivative of $y = x^{3}$ is always nonnegative.

Many authors deprecate this usage, but it is very common. See writing dilemma.

(vi) Using the name to refer to all the values The name of function can be used to stand for all values. Examples:

“$f \geq 0$.”

“$x^{2}$ is nonnegative.”

A related phenomenon is described under increasing function. Compare collective plural. Citation: (335).

(c) The argument The element of the domain at which the function is evaluated may be called the argument or the input. The latter word occurs most commonly with operators or algorithms. Another word used in some contexts is independent variable; then the output is the dependent variable. Citations: (93), (216), (429), (174), (362). See also arity.

(d) The rule for evaluation and the graph For a function $f$ with domain $D$, the graph of the function is the set

$$\{ (x, f(x)) \mid x \in D\}$$

Citation: (33). The word is often used for the picture of the graph.

The rule for evaluation of the function is an expression or algorithm that provides a means of determining the value of the function. The rule can be a symbolic expression or an algorithm, expressed informally or in a formal language. When the rule is given by an expression $e (x)$, the definition of the function often includes the assertion

$$y = e(x)$$

which is called the defining equation of the function.

Example 5 “Consider the function given by $y = x^{2} + 1$.” The defining equation is “$y = x^{2} + 1$”.

Example 6 “Consider the function $f(x) = x^{2} + 1$.” Note that this gives the defining equation as a parenthetic assertion. In this expression the variable $x$ is bound (see Example 3 under bound variable).

Remark 2 A subtle point, which perhaps students should not be bothered with too early, is that a function will always have a graph but it need not always have a defining rule. This is because the number of possible rules (which are strings in a finite alphabvet) is only countably infinite, but the cardinality of the set of all functions between two infinite sets is uncountable. Citation: (28), (45), (63), (302), (381), (396).

Disjunctive definitions An expression involving disjunctions can confuse students, who don’t recognize it as one expression defining one function.

Example 7 “Let $f(x) = \begin{cases} x + 1 & \text{if } x > 2 \\ 2x - 1 & \text{otherwise.} \end{cases}$” Citation: (140), (281).

Because of the practice of using defining equations, students often regard a function as an equation [Thompson, 1994], pp 24ff. So do teachers [Norman, 1992].

(e) How one thinks of functions A mathematician’s mental representation of a function is generally quite rich and involves several different metaphors. Some of the more common ways are noted here. These points of view have blurry edges!

(i) Expression to evaluate Function as expression to evaluate. This is the motivation for item (v) under “The identifier of a function” earlier in this entry. It is the image behind statements such as “the derivative of $x^{3}$ is $3x^{2}$”. This gives an intensional semantics to the expression. Citation: (93).

(ii) Graph Function as graph. A function illustrated graphically is usually numerical. This provides a picture of the function as a relation between argument and value; of course it is a special kind of relation. Citation: (84).

(iii) Dependency relation Function as a dependency relation. This is the metaphor behind such descriptions as “let $x$ depend smoothly on $t$”. It is related to the graph point of view, but may not carry an explicit picture; indeed, an explicit picture may be impossible. Citation: (239).

(iv) Transformer Function as transformer, that takes an object and turns it into another object. In this picture, the function $F(x) = x^{3}$ transforms 2 into 8. This is often explicitly expressed as a “black box” interpretation, meaning that all that matters is input and output and not how it is performed. This point of view is revealed by such language as “2 becomes 8 under $f$”.

A black box with an arrow labeled 2 going in and an arrow labeled 8 coming out

(v) Algorithm Function as algorithm or set of rules that tell you how to take an input and convert it into an output. This is a metaphor related to those of function as expression and as transformer, but the actual process is implicit in the expression view (in the intensional semantics of the expression) and hidden in the transformer (black box) view. Citation: (385).

(vi) Relocator Function as relocator. In this version, the function $F(x) = x^{3}$ moves the point at 2 over to the location labeled 8. This is the “alibi” interpretation of [Mac Lane and Birkhoff, 1993] (page 256). It is revealed by such language as “$f$ takes 2 to 8”. Citation: (423).

(vii) Map Function as map. This is one of the most powerful metaphors in mathematics. It takes the point of view that the function $F(x) = x^{3}$ renames the point labeled 2 as 8. A clearer picture of a function as a map is given by some function that maps the unit circle onto, say, an ellipse in the plane. The ellipse is a map of the unit circle in the same way that a map of Ohio has a point corresponding to each point in the actual state of Ohio (and preserving shapes in some approximate way). This is something like the “alias” interpretation of [Mac Lane and Birkhoff, 1993]: The point on the map labeled “Oberlin”, for example, has been renamed “Oberlin”. Citation: (252), (357).

References: [Lakoff and Núñez, 1997], [Selden and Selden, 1992]

(f) Mathematical definitions of function Texts in calculus and discrete mathematics often define the concept of function as a mathematical object. There are two nonequivalent definitions in common use.

a) A function is a set of ordered pairs with the functional property: pairs with the same first coordinate have the same second coordinate.

b) A function consists of two sets called the domain and the codomain of the function, and a set of ordered pairs with the functional property, subject to the requirements that

The set of ordered pairs in the second definition is called the graph of the function.

Example 8 Consider two sets $A$ and $B$ with $A \subseteq B$, and consider the identity function from $A$ to $A$ and the inclusion function $i : A \to B$ defined by $i(a) = a$.

Under the definition (1) above, the identity function and the inclusion function are the same function. Under the definition (2), they are different functions because they have different codomains, even though they have the same graph.

Authors vary much more in the treatment of the codomain than they do in the treatment of the domain. Many authors use definition (1) and do not mention a codomain at all. Others don’t make it clear whether they require it or not. Even when authors do require specification of the codomain, the specification is often an empty gesture since the text fudges the question of whether two functions with the same domains and same graphs but different codomains are really different.

See composite, range and image. Citations: (65), (180).

(g) Difficulties Typically, the definition of “function” does not correspond very well with actual usage. For example, one generally does not see the function expressed in terms of ordered pairs, one more commonly uses the $f (x)$ notation instead. To avoid this discrepancy, I suggested in [Wells, 1995] the use of a specification for functions instead of a definition. I have discussed the discrepancy in the treatment of the codomain in the preceding section.

These discrepancies probably cause some difficulty for students, but for the most part students’ difficulties are related to their inability to reify the concept of function or to their insistence on maintaining just one mental representation of a function (for example as a set of ordered pairs, a graph, an expression or a defining equation).

There is a large literature on the difficulties functions cause students, I am particularly impressed with [Thompson, 1994]. Another important source is the book [Harel and Dubinsky, 1992] and the references therein, especially [Dubinsky and Harel, 1992], [Norman, 1992], [Selden and Selden, 1992], [Sfard, 1992]. See also [Vinner and Dreyfus, 1989], [Eisenberg, 1992] and [Carlson, 1998]. [Hersh, 1997a] discusses the confusing nature of the word “function” itself.

Acknowledgments: Michael Barr.

Pages 104–110 of the book (PDF).