# The Unapologetic Mathematician

## Real-Valued Functions of a Single Real Variable

At long last we can really start getting into one of the most basic kinds of functions: those which take a real number in and spit a real number out. Quite a lot of mathematics is based on a good understanding of how to take these functions apart and put them together in different ways — to analyze them. And so we have the topic of “real analysis”. At our disposal we have a toolbox with various methods for calculating and dealing with these sorts of functions, which we call “calculus”. Really, all calculus is is a collection of techniques for understanding what makes these functions tick.

Sitting behind everything else, we have the real number system $\mathbb{R}$ — the unique ordered topological field which is big enough to contain limits of all Cauchy sequences (so it’s a complete uniform space) and least upper bounds for all nonempty subsets which have any upper bounds at all (so the order is Dedekind complete), and yet small enough to exclude infinitesimals and infinites (so it’s Archimedean).

Because the properties that make the real numbers do their thing are all wrapped up in the topology, it’s no surprise that we’re really interested in continuous functions, and we have quite a lot of them. At the most basic, the constant function $f(x)=1$ for all real numbers $x$ is continuous, as is the identity function $f(x)=x$.

We also have ways of combining continuous functions, many of which are essentially inherited from the field structure on $\mathbb{R}$. We can add and multiply functions just by adding and multiplying their values, and we can multiply a function by a real number too.

• $\left[f+g\right](x)=f(x)+g(x)$
• $\left[fg\right](x)=f(x)g(x)$
• $\left[cf\right](x)=cf(x)$

Since all the nice properties of these algebraic constructions carry over from $\mathbb{R}$, this makes the collection of continuous functions into an algebra over the field of real numbers. We get additive inverses as usual in a module by multiplying by $-1$, so we have an $\mathbb{R}$-module using addition and scalar multiplication. We have a bilinear multiplication because of the distributive law holding in the ring $\mathbb{R}$ where our functions take their values. We also have a unit for multiplication — the constant function $1$ — and a commutative law for multiplication. I’ll leave you to verify that all these operations give back continuous functions when we start with continuous functions.

What we don’t have is division. Multiplicative inverses are tough because we can’t invert any function which takes the value zero anywhere. Even the identity function $f(x)=\frac{1}{x}$ is very much not continuous at $x=0$. In fact, it’s not even defined there! So how can we deal with this?

Well, the answer is sitting right there. The function $\frac{1}{x}$ is not continuous at that point. We have two definitions (by neighborhood systems and by nets) of what it means for a function between two topological spaces to be continuous at one point or another, and we said a function is continuous if it’s continuous at every point in its domain. So we can throw out some points and restrict our attention to a subspace where the function is continuous. Here, for instance, we can define a function $f:\mathbb{R}\setminus\{0\}\rightarrow\mathbb{R}$ by $f(x)=\frac{1}{x}$, and this function is continuous at each point in its domain.

So what we should really be considering is this: for each subspace $X\subseteq\mathbb{R}$ we have a collection $C^0(X)$ of those real-valued functions which are continuous on $X$. Each of these is a commutative $\mathbb{R}$-algebra, just like we saw for the collection of functions continuous on all of $\mathbb{R}$.

But we may come up with two functions over different domains that we want to work with. How do we deal with them together? Well, let’s say we have a function $f\in C^0(X)$ and another one $g\in C^0(Y)$, where $Y\subseteq X$. We may not be able to work with $g$ at the points in $X$ that aren’t in $Y$, but we can certainly work with $f$ at just those points of $X$ that happen to be in $Y$. That is, we can restrict the function $f$ to the function $f|_Y$. It’s the exact same function, except it’s only defined on $Y$ instead of all of $X$. This gives us a homomorphism of $\mathbb{R}$-algebras $\underline{\hphantom{X}}|_Y:C^0(X)\rightarrow C^0(Y)$. (If you’ve been reading along for a while, how would a category theorist say this?)

As an example, we have the identity function $f(x)=x$ in $C^0(\mathbb{R})$ and the reciprocal function $g(x)=\frac{1}{x}$ in $C^0(\mathbb{R}\setminus\{0\})$. We can restrict the identity function by forgetting that it has a value at ${0}$ to get another function $f|_{\mathbb{R}\setminus\{0\}}$, which we will also denote by $x$. Then we can multiply $f|_{\mathbb{R}\setminus\{0\}}g$ to get the function $1\in C^0(\mathbb{R}\setminus\{0\})$. Notice that the resulting function we get is not the constant function on $\mathbb{R}$ because it’s not defined at ${0}$.

Now as far as language goes, we usually drop all mention of domains and assume by default that the domain is “wherever the function makes sense”. That is, whenever we see $\frac{1}{x}$ we automatically restrict to nonzero real numbers, and whenever we combine two functions on different domains we automatically restrict to the intersection of their domains, all without explicit comment.

We do have to be a bit careful here, though, because when we see $\frac{x}{x}$, we also restrict to nonzero real numbers. This is not the constant function $1:\mathbb{R}\rightarrow\mathbb{R}$ because as it stands it’s not defined for $x=0$. Clearly, this is a little nutty and pedantic, so tomorrow we’ll come back and see how to cope with it.

About these ads

December 18, 2007 - Posted by | Analysis, Calculus

## 2 Comments »

1. [...] Okay, so we’ve got one of our real-valued functions defined on some domain : . Let’s start analyzing [...]

Pingback by Derivatives « The Unapologetic Mathematician | December 21, 2007 | Reply

2. [...] Clearly we can restrict such a function to whatever open subset we want — and, in fact, we have. The nice thing is that this gives us a way of talking about and dealing with functions on our [...]

Pingback by Presheaves « The Unapologetic Mathematician | March 16, 2011 | Reply