5 Functions
Highlights of this Chapter: we briefly explore the evolution of the modern conception of a function, and give foundational definitions for reference.
5.1 Freedom from Formulas
The term function was first introduced to mathematics by Leibniz during his development of the Calculus in the 1670s (he also introduced the idea of parameters and constants familiar in calculus courses to this day). In the first centuries of its mathematical life, the term function usually denoted what we would think of today as a formula or algebraic expression. For example, Euler’s definition of function from his 1748 book Introductio in analysin infinitorum embodies the sentiment:
A function of a variable quantity is an analytic expression composed in any way whatsoever of the variable quantity and numbers or constant quantities.
As a first step to adding functions to our theory of real analysis, we would somehow like to make this definition rigorous. But upon closer inspection, this concept, of “something expressible by a (single) analytic expression” is actually logically incoherent! For example, say that we decide, after looking at the definition of
But we also agree that
It seems we have found a perfectly good “single algebraic expression” for the absolute value after all! This even happens for functions with infinitely many pieces (which surely would have been horrible back then)
This can be written as a composition involving just one piecewise function
Which can, by the earlier trick, be reduced to a function with no “pieces” at all:
So the idea of “different pieces” or different rules, seemingly so clear to us, is not a good mathematical notion at all! We are forced by logic to include such things, whether we aimed to or not. This became clear rather quickly, as even Euler had altered a bit his notion of functions by 1755:
When certain quantities depend on others in such a way that they undergo a change when the latter change, then the first are called functions of the second. This name has an extremely broad character; it encompasses all the ways in which one quantity can be determined in terms of others.
The modern approach is to be much more open minded about functions, and define a function as any rule whatsoever which uniquely specifies an output given an input. This seems to have first been clearly articulated by Lobachevsky (of hyperbolic geometry fame) in 1834, and independently by Dirichlet in 1837
The general concept of a function requires that a function of x be defined as a number given for each x and varying gradually with x. The value of the function can be given either by an analytic expression, or by a condition that provides a means of examining all numbers and choosing one of them; or finally the dependence may exist but remain unknown. (Lobachevsky)
If now a unique finite
corresponding to each , and moreover in such a way that when ranges continuously over the interval from $ to , also varies continuously, then is called a continuous function of x for this interval. It is not at all necessary here that be given in terms of by one and the same law throughout the entire interval, and it is not necessary that it be regarded as a dependence expressed using mathematical operations. (Dirichlet)
Through this definitions added generality comes simplicity: we are not trying to police what sort of rules can be used to define a function, and so the notion can be efficiently captured in the language of sets and logic.
Definition 5.1 A function from a set
The definition of a function comes with three parts, so its good to have precise names for all of these.
Definition 5.2 If
If the codomain of a function
5.2 Composition and Inverses
Likely familiar from previous math classes, but it is good to get rigorous definitions down on paper when we are starting anew.
Definition 5.3 (Composition) If
Every set has a particularly simple function defined on it known as the identity function:
Definition 5.4 (Inverse Functions) If
Example 5.1 The function
The squaring function
5.3 Useful Terminology
Definition 5.5 (Restricting the Domain) Given a function
Definition 5.6 Given a function with a domain
Definition 5.7 (Increasing / Decreasing) A function
Exercise 5.1 If
This exercise implies that strict monotone functions are invertible, as the inverse of any one-to-one function is defined by sending a given
Definition 5.8 (Convexity) Let
A function
Definition 5.9 (Local Extrema)
- Increasing Decreasing
- Convex
- Local Extrema
5.4 A Zoo of Examples
Example 5.2 (Polynomial Functions) A polynomial function is an assignment
The idea of a function defined by a formula can be extended even farther by allowing the field operation of division; though this time we must be careful about the inputs.
Example 5.3 (Rational Functions) A rational function is a an assignment
We already saw that piecewise formulas count in our modern definition, but perhaps didn’t fully think through the implications: they can be very, very piecewise
Example 5.4 (The Characteristic Function of
Here’s another monstrous piecewise function we will encounter again soon:
Example 5.5 (Thomae’s Function) This is the function
We’ve stressed that functions don’t need to be given by explicit formulas, so we should give an example of that: here’s a function that is defined at each point as a different limit (using the completeness axiom)
Example 5.6 A function may be defined for each
A function can also be defined by a less explicit limit procedure, like the limits defining powers: where we’ve previously seen that any sequence
Example 5.7 (Exponential as Powers) For any
A function can also be defined by an existence proof telling us that a certain relationship determines a function, without giving us any hint on how to compute its value:
Example 5.8 (
We can easily see that such a number is unique: if
Alright - that’s plenty of examples to get ourselves in the right mindset. Let’s give a non-example, to remind us that while there need not be formulas, the modern notion of function is not ‘anything goes’!
Example 5.9 The assignment taking an integer to one of its prime factors does not define a function. This would take the integer
Exercise 5.2 (Invertibility implies Monotonicity) Let