Chapter II · Functions of real variables
The idea of a function
What it means for to be a function of , and which familiar features of functions are not part of the idea at all.
Why this matters
Chapter I built the real numbers. Chapter II asks what it means for one real quantity to depend on another. Hardy calls functional dependence perhaps the most important notion in higher mathematics, and every later chapter (limits of functions, continuity, derivatives, integrals) is about functions. The point of §20 is to strip the idea down to its essentials, so that you do not mistake the features of your favourite examples for part of the definition.
The idea
Picture two number lines. A point moves on the first, at distance from a fixed origin; a point moves on the second, at distance . Suppose that the position of settles the position of : once you know , you know . Then is a function of .
The functions you met at school, such as or , have three features in common:
- is given for every value of . You can square any real number.
- Each gives one and only one .
- There is a formula: substitute the value of and calculate.
Hardy’s observation is that none of these is essential. All that matters is that there is a rule connecting and under which at least some values of have values of attached. A rule may leave many without a value, may attach several values of to one , and may have no formula at all.
Try this. Choose a rule, then probe it at each offered value of and read how many values of the rule gives there. Then answer Hardy’s three questions and press Check. Start with , then try the largest prime factor and the denominator of .
- graph of the rule
- values at the chosen x
What to notice
Probing at single values is exactly how (1) and (2) are decided: (1) fails as soon as one gets no value, and (2) fails as soon as one gets two. The rule fails both, yet it plainly connects and . The prime-factor rule only works for positive integers, and the denominator rule only for rational numbers, and neither has a formula. All of them are functions in Hardy’s sense.
The gallery collects Hardy’s Examples X and a few later ones. Two of them come from physics. A gas in a cylinder obeys Boyle’s law at moderate pressures and van der Waals’ law
at high pressures. Nothing stops us from declaring that the first law holds exactly for and the second for . That defines as a function of by two formulas on two ranges, and only for positive , since a negative volume means nothing. The bouncing ball is similar: its depth below its starting point is when , a different formula for each bounce.
Precise statements
Let and be real variables. We say that is a function of if there is a relation between them such that to some values of , at any rate, there correspond one or more values of .
The function is one-valued (single-valued) at if exactly one corresponds to , and many-valued there if several do. The set of for which some corresponds is where the function is defined.
Hardy’s three characteristics can now be stated as properties that a particular function may or may not have: (1) it is defined for every real ; (2) it is one-valued wherever it is defined; (3) it is given by an analytical formula. Characteristics (1) and (2) are precise. Characteristic (3) is not: “formula” is never defined, and the gallery shows rules such as where the answer depends on what you are willing to call a formula. That vagueness is one more reason Hardy refuses to build it into the definition.
Two everyday words get precise meanings here.
- A constant is a function that attaches the same to every , such as or (Examples X, 2). It is a function even though does not “vary”.
- When the rule is one-valued, we write and call the independent and the dependent variable (this is the start of §21).
Proofs
There is no theorem in §20, but one fact is used constantly in the rest of the chapter: you can see whether a rule is one-valued by looking at its graph. (Graphs are made official in §21: the graph is the set of all points with a value attached to .)
A rule is one-valued wherever it is defined if and only if every vertical line meets its graph in at most one point. It is defined at exactly when the line meets the graph at all.
Translate “values of attached to ” into “points of the graph on the line ”. The two statements are then the same statement in different words.
Points on the line are values at
A point lies on the graph exactly when is one of the values the rule attaches to . So the points of the graph on the line are the points , one for each value at , and different values give different points.
Count them
The number of points where the line meets the graph therefore equals the number of values of at : none, one, or several.
Read off both claims
“At most one point on every vertical line” says “at most one value at every ”, which is one-valuedness. “At least one point on the line ” says “some value at ”, which is being defined at .
The dashed probe line in the gallery is this test in action. For the line meets the graph twice, at and ; the line misses it.
Worked examples and exercises
Describe exactly for which the relation gives no value, one value, and two values of , and decide which of Hardy’s characteristics it has.
Hint
Solution
If , no real has , so there is no value. If , then forces : one value. If , both and work, and they are different, while any with must be one of them (since ). So there are exactly two values. The function lacks (1) and (2), but it is given by a formula, so it has (3).
Suppose Boyle’s law holds for and van der Waals’ law for , where . What must be if the two laws are to give the same pressure at ? Check that the gallery’s numbers (, , , ) satisfy your condition.
Hint
Solution
At Boyle’s law gives . Van der Waals’ law gives the same pressure exactly when . With the gallery’s numbers, . Note that the function is perfectly well defined whether or not this condition holds; without it, the pressure simply jumps at . A function need not be “smooth” either.
A perfectly elastic ball is dropped from rest and falls a height to a horizontal floor, rebounding forever. Let be its depth below the starting point at time . Show that when , for (with ).
Hint
Hint
Solution
For the ball falls freely from rest: , which is the formula with . It reaches the floor (depth ) at with speed . A perfectly elastic bounce sends it up with speed , so the rise is the fall run backwards: it is back at the start, momentarily at rest, at , and then falls again, reaching the floor at . Between and the ball is therefore at depth , where is the time since (or until) it was at the top. That is , the formula with . The motion repeats every , with tops at , so in general on . At a join both neighbouring formulas give , so they agree. The function is defined only for and needs a different formula on each interval.
Let be the largest prime factor of and the denominator of in lowest terms. Find , , and . Why is meaningless?
Hint
Solution
, so . , so . in lowest terms, so (not : the rule is about the number, not the way it is written). , so . Finally is irrational (Chapter I), so it is not for any integers, and “its denominator” refers to nothing.
Check yourself
In Hardy’s sense, defines as a function of .
True. Hardy only asks that some values of have one or more values of . Most modern books would instead say that defines two functions, and , on ; see the note on Hardy’s language below.
Which characteristic does “the largest prime factor of ” have?
It is defined only for positive integers, so (1) fails; there is no formula, so (3) fails; but each integer has exactly one largest prime factor, so (2) holds. And even a rule with none of the three properties would still be a function, as long as some has a value.
Let be the denominator of in lowest terms (with a positive denominator). What is when ?
, so . The answer reads the denominator off the way the number happens to be written; the rule is about the number itself, which is why Hardy insists on lowest terms.
A function must be given by a formula; otherwise we cannot know its values.
False. The largest prime factor and the denominator of have no formula, yet their values are perfectly definite. Hardy’s definition asks for a relation, not a formula.
Hardy’s language
All that is essential is that there should be some relation between x and y such that to some values of x at any rate correspond values of y.
Summary
- is a function of when a rule attaches values of to (some) values of .
- Being defined for all , being one-valued and having a formula are features of familiar examples, not of the definition.
- A rule is one-valued exactly when every vertical line meets its graph at most once, and it is defined at exactly when the line meets the graph.
- Modern usage keeps one-valuedness and a stated domain; Hardy’s many-valued functions are split into branches.