20  Elementary Functions

Highlights of this Chapter: we introduce the idea of defining functions by a Functional Equation specifying how a function should behave instead of specifying how to compute it. Following this approach, we give rigorous definitions for exponentials logarithms and trigonometric functions, and investigate some of their consequences. With these definitions in hand, we are able to define the field of Elementary Functions, familiar from calculus and the sciences.

At the heart of real analysis is the study of functions. But which functions should we study? Polynomials are a natural class built from the field operations, and power series are a natural thing to look at given polynomials and the concept of a limit. But there are many, many other functions out there, and we should wonder which among them are worthy of our attention. Looking to history as a guide, we see millennia of use of trigonometric functions, and centuries of use of exponentials and logarithms. Indeed these functions are not only important to the origins of analysis but also to its modern development. In this chapter we will not focus on how to compute such functions, but rather on the more pressing question of how to even define them: if all we have available to us are the axioms of a complete ordered field how do we rigorously capture aspects of circles in the plane (trigonometry) or continuous growth (exponentials)? The key is the idea of a functional equation: something that will let us define a function by how it behaves, instead of by directly specifying a formula to compute it.

20.1 Warm Up: What is Linearity?

We know how to express linear functions already using the field axioms, as maps f(x)=kx for some real number k. To speak of linear functions functionally however, we should not give a definition telling us how to compute their values (take the input, and multiply by a fixed constant k) but rather by what they’re for: by the defining property of linearity.

The most important property of a linear function is that it distributes over addition (think of how we use linear maps, say, in Linear Algebra). So, in the 1800

Definition 20.1 (Cauchy’s Functional Equation for Linearity) A function f:RR satisfies Cauchy’s functional equation if for all x,yR, f(x+y)=f(x)+f(y)

Note it follows for any finite sum x1+x2++xn, one can ‘distribute’ a solution to Cauchy’s functional equation, by induction: f(x1+x2++xn)=f(x1)+f(x2)++f(xn). Cauchy’s idea works: we can completely characterize the concept of Linear Function from R to R via this functional equation and continuity.

Theorem 20.1 (Characterizing Linear Functions) If f is a continuous solution to Cauchy’s functional equation, then f(x)=kx for some kR.

Exercise 20.1 Prove , following the outline below.

Let f:RR be a continuous function where f(x+y)=f(x)+f(y).

  • Prove that f(n)=nf(1) for all nN.
  • Extend this to negative integers.
  • Show that f(1/n)=1nf(1) for nN *Hint: use that 1n+1n++1n=1
  • From the above, deduce that for rational r=p/q, pZ qN that f(r)=rf(1).
  • Now use continuity! If k=f(1), then f(r)=kr on Q

20.2 Exponentials

Exponential functions occur all across the math and sciences, representing any kind of growth that compounds multiplicatively as time progresses linearly. THat is, the core feature of exponentials underlying their ubiquity is the law of exponents am+n=aman turning the addition of m and n into the multiplication of am and an. Following Cauchy’s lead, we will single this out and use it to define a class of functions via functional equation.

Definition 20.2 (The Law of Exponents) A function E:RR satisfies the law of exponents if for every x,yR E(x+y)=E(x)E(y) An exponential function is a continuous nonconstant solution to the law of exponents.

This just rigorously spells out what we want exponential functions to be. We still have to prove they exist! But before doing that, we pause to gain some comfort with the functional equation definition, and derive a few basic properties that exponentials must have.

Proposition 20.1 If E satisfies the law of exponents and evaluates to zero at any point, then E is the zero function.

Proof. Let E be an exponential function and assume there is some zR such that E(z)=0. Then for any xR we may write x=xz+z=(xz)+z=y+z for y=xzR. Evaluating E(x) using the law of exponents, E(x)=E(y+z)=E(y)E(z)=E(y)0=0

Proposition 20.2 Prove that if E is any exponential function, then E(0)=1, and that E(x)=1/E(x).

Proof. The number 0 has the property that 0+0=0. Plugging this into the exponential property, we find E(0)=E(0+0)=E(0)E(0) By the previous proposition, we know E(0) is nonzero, so we can divide by it, leaving 1=E(0). For the second part, we begin with the identity x+(x)=0. Exponentiating gives 1=E(0)=E(x+(x))=E(x)E(x) We can then divide by E(x) giving the result E(x)=1E(x).

Exercise 20.2 If E(x) is an exponential and s0 is a real number, then xE(sx) is also an exponential function.

20.2.1 Existence

Here we show that exponential functions exist, and fully characterize them. We’ve already done plenty of work understanding rational and irrational powers, so we can make perfect sense of the expression ax for arbitrary a>1 and real x. Furthermore in algebra and calculus classes we have certainly treated such expressions as exponentials: we’ve used the law of exponents on their powers without worry! But now in our rigorous mindset there is much more to do, we need to confirm that our rather complicated definition of xax actually is (1) continuous nonconstant and (2) satisfies the laws of exponents.

To do so we make use of all our previous work with exponents: namely the following facts (the first two are from our inital investigation into numbers and operations, the second two from when we studied Monotone Convergence)

  • If r=p/q then ar is defined as ap/q=apq.
  • If r,s are rational numbers ar+s=aras, so powers satisfy the law of exponents on rational inputs.
  • If rn is a monotone increasing sequence of rational numbers arn converges.
  • If rn is a sequence of positive rationals with rn0 then arn1.

From these we can prove an important lemma that helps us make a rigorous definition of the function ax:

Lemma 20.1 (Irrational Powers) If xR and rn is any monotone increasing sequence of rational numbers rnx, then arn converges to the same limit.

Proof. Let sn and rn be two monotone increasing sequences of rationals converging to x. We know (by monotone convergence) that arn and asn both converge, so let’s name their limits limarn=R and asn=S. We wish to prove R=S.

Defining zn=rnsn, note that znQ we can write rn=sn+zn, and using the law of exponents for rational numbers, arn=asn+zn=asnazn

Applying the limit law for differences we see limzn=limrnlimsn=xx=0, and so we know (from our earlier fact) that azn1. Thus all three of the sequences above converge, and we can use the limit law for products:

R=limarn=lim(asnazn)=(limasn)(limazn)=(limasn)(limazn)=(limasn)(1)=S

Because the limiting value of ax does not depend on which sequence we take, we can define irrational powers by saying take any monotone sequence of rationals and compute the limit without worrying if different people will get different answers.

Definition 20.3 (Raising to the Power of x) Given a positive a1, we define the function xax via

E(x)={axxQlimarnxQ for rnQ,rnx

Theorem 20.2 (Existence: Powers Are Exponentials) Exponential functions exist.
Precisely, any positive a1, E(x)=ax is a continuous function which satisfies the law of exponents ax+y=axay for all x,yR.

We prove these two claims separately. To simplify things, we work with the case a>1: for a<1 one can either perform analogous arguments, or write a=1/b fo$ b>1, and work with E(x)=1/bx where we already fully understand bx.

Proposition 20.3 The function ax satisfies the law of exponents

Proof (Laws of Exponents). Let x,yR, we wish to show that ax+y=axay. Note that if both x and y are rational we are done, as we already know that the law of exponents holds for rational powers. So, the interesting case is when at least one is irrational, where the function definition involves limits.

Let’s continue with the case where both x and y are irrational (we’ll see the case where only one is irrational also follows from the same logic). To define ax and ay we need to choose monotone sequences of rational numbers xnx and yny: then we have ax=limaxn and ay=limayn. Since both of these sequences converge, we can use the limit law for products to conclude

limaxnayn=(limaxn)(limayn)=axay

But since xn and yn are rational numbers, we know the law of exponents holds for them: axnayn=axn+yn for each n. By the limit law for sums we know that xn+ynx+y, but furthermore its a sequence of rational numbers (since xn and yn are) and its monotone increasing (since xn and yn are). This means (by definition!) limaxn+yn=ax+y.

Stringing these equalities together yields the law of exponents for x and y:

ax+y=limaxn+yn=lim(axnayn)=(limaxn)(limayn)=axay

We can use the same argument when only one of the numbers is rational: if xQ but yQ, we still need to choose a monotone sequence yny of rationals, but there’s an obvious choice of sequence for x: just take the constant sequence x,x,x,: this is rational monotone (because its constant), and converges to x after all! Running the same argument as above with these two sequences yields ax+y=axay as well.

Exercise 20.3 Prove the exponential function ax for a>1 is monotone increasing: that is, if x<y, axay.

Hint: we know its monotone on rational inputs, so the interesting cases are again when at least one is irrational (and, the argument for both irrational can be generalized to include the other case). Write down monotone increasing sequences, truncate the sequences until you can insure xn<yn for all n, and then apply the limit laws.

We will additionally need (for a later argument) that the exponential is strictly increasing: that is, if x<y then ax<ay (that is, the equals case is impossible), so we’ll prove that now as well.

Lemma 20.2 If x<y then ax<ay, when a>1.

Proof. This is equivalant to showing 1<ay/ax, which, since we know the laws of exponents hold, means showing 1<ayx. That is, our problem is equivalent to proving for any z>0 the exponential az is strictly greater than 1.

First note this is clearly true for rational z=p/q, as a>1 implies ap>1p=1, which implies apq>1q=1. For irrational z we proceed by choosing a rational sequence znz. By picking an epsilon (say ε=z) we can truncate our sequence and after some point, and assume its always positive. So (possibly re-labeling the indices) we can assume without loss of generality zn>0 for all n. Since z is monotone increasing, we see znz1 for all n, and since the exponential is monotone for rational numbers, z1znaz1azn

Thus, by the inequality for limits, we see az1limazn=az. Since z1 is rational we know az1 is strictly greater than 1, so az is as well.

We are now ready to prove continuity. The sequence criterion looks suspiciously similar to our definition of ax, so this sounds like it might be easy. But as with many things in analysis, there are details to be considered: the definition of our function ax considers monotone, rational sequences whereas the definition of continuity requires we consider arbitrary sequences. So, we need to bridge this gap. To do so, it will be useful to have a quick lemma, which relies on similar techinques to the above proof

Proof (Continuity). Let xR and xnx be arbitrary. Choose an arbitrary sequence xnx, we wish to show that axn converges to ax. We proceed by contradiction, assuming it does not. Our goal is to throw away terms of this sequence until we get something nicer (less arbitrary) to work with.

Negating the definition of convergence, there must be some bad ε where for every N there is an n>N where axnk differs from ax by more than ε. Taking N=1,N=2,N=3, we can build a subsequence xnk where every single term is more than ε away from ax. But we can go even further, recalling that every sequence has a monotone subsequence, we can throw away more terms until we have a subsequence xnk which is monotone and has axnk not converging ax.

Phew! That’s a lot of subsequences. Its annoying to carry them all around in print, and so we will just rename things: let’s call this sequence y. Since the original sequence xn converged to x and this is a subsequence, we know yx as well. And, its much closer to something we might know about (its monotone, and the definition of ax requires talking about monotone sequences). The only thing left to confront is rationality. We have no idea if the terms y are rational (and they need not be). So we are going to do a very cool trick, to replace this with a different sequence.

By the density of rationals we can find an r between each pair y,y+1. This defines a sequence of rational numbers, yry+1, which converges to x by the squeeze theorem (since limy=limy+1=x). This was useful: we learned something about the r sequence using something we know about the y sequence. But since the sequences are interleaved

y1r1y2r2y3r3y4r4y4r5y6

We can also think about the y sequence as trapped between the r sequence: r1y<r. Because the exponential is monotone (increasing, for a>1) this implies that ar1ay<ar. But now we know about the convergence of the outer two sequences limar=ax by definition, as rnx is a monotone rational sequence. The same holds for r+1 as truncating the first term doesn’t change convergence. Thus by the squeeze theorem,

limay=ax

But this is a contradiction! As the terms y were specifically chosen so that ay was always further from ax than ε, so it can’t eventually be less than ε from it.

We’ve done it! We’ve rigorously confirmed all the calculations we’ve done from pre-calculus onwards, involving the law of exponents: this really does hold for the continuous function ax, even at irrational powers! Before moving onwards, its useful to pause for a minute and put our newfound knowledge to the test, proving a couple other facts about the exponential.

Corollary 20.1 The exponential function ax is one-to-one on its entire domain.

Proof. Let xy be real numbers, we want to show axay.
By trichotomy, we know either x<y or x>y. In the first case, by strict monotonicity, ax<ay, and in the second ax>ay. That is, in both cases axay, so we are done.

Exercise 20.4 Prove range of the exponential function ax is all positive real numbers: that is, for any positive y, show there is some x where ax=y.

Hint: can you find some nN where an>y? If so, can you modify the idea to get an m with am<y? Once you have these two values, can you apply a theorem about continuity?

Exercise 20.5 (Convexity of exponentials) Prove that exponential functions are convex (): their secant lines lie above their graphs.

20.3 Logarithms

We’ve completely put the theory of exponential functions on a rigorous footing, so its time to do the same for logarithms. We define logarithms similarly to what we did for exponentials, by a functional equation telling us what they are for.

Definition 20.4 (The Law of Logarithms) A function L satisfies the law of logarithms if for every x,y>0, L(xy)=L(x)+L(y) A logarithm is a continuous nonconstant solution to the law of logarithms.

Exercise 20.6 Let L(x) be a logarithm and rQ a rational number. Prove directly from the functional equation that L(xr)=rL(x).

One might be initially concerned: we don’t have a nice candidate function on the rationals that we know satisfies this, and we just need to extend: so how are we going to prove the existence of such functions? Happily this case actually turns out to be much less technical than it looks - because we can put all the hard work we did above to good use!

Theorem 20.3 (Logarithms Exist, and are Inverses to Exponentials) Let E(x) be an exponential function. Then its inverse function is a logarithm.

Proof. Let E be an exponential function, and L be its inverse. Because E is continuous, implies that L is also continuous and nonconstant, so we just need to show L satisfies the law of logarithms. Since the range of E is (0,) this means we must check for any a,b>0 that L(ab)=L(a)+L(b).
With a,b in the range fo E we may find x,y with E(x)=a and E(y)=b, and (by the definition of L as the inverse) L(a)=x and L(b)=y. By the law of exponents for E we see ab=E(x)E(y)=E(x+y), and as L and E are inverses, L(E(x+y))=x+y. Putting this all together gives what we need: L(ab)=L(E(x)E(y))=L(E(x+y))=x+y=L(a)+L(b)

Definition 20.5 The base of a logarithm L is the real number a such that L(a)=1. That is, the log base a is the inverse of ax.

20.4 Trigonometric Functions

Like for the exponential and logarithm functions, to propose a rigorous definition of the trigonometric functions, we require them to satisfy the trigonometric identities. To make a specific choice, we take the angle difference identities

Definition 20.6 (Angle Identities) A pair of two functions (c,s) are trigonometric if they are a continuous nonconstant solution to the angle identities s(xy)=s(x)c(y)c(x)s(y) c(xy)=c(x)c(y)+s(x)s(y)

Definition 20.7 (Other Trigonometric Functions) Given a trigonometric pair s,c we define the tangent function t(x)=s(x)/c(x), as well as the secant 1/c(x), cosecant 1/s(x) and cotangent 1/t(x).

It may seem strange at first: is this really enough to fully nail down trigonometry? It turns out it is: if s,c satisfy these identities then they actually satisfy all the usual trigonometric identities! Its good practice working with functional equations to confirm some of this, which is laid out in the exercises below. I’ll start it off, by confirming at least such functions take the right value at zero.

Lemma 20.3 (Values at Zero) If s,c are trigonometric, then we can calculate their values at 0: s(0)=0c(0)=1

Proof. Setting x=y in the first immediately gives the first claim s(0)=s(xx)=s(x)c(x)c(x)s(x)=0

Evaluating the second functional equation also at x=y c(0)=c(xx)=c(x)c(x)+s(x)s(x)=c(x)2+s(x)2

From this we can see that c(0)0, as if it were, we would have c(x)2+s(x)2=0: since both c(x)2 and s(x)2 are nonnegative this implies each are zero, and so we would have c(x)=s(x)=0 are constant, contradicting the definition. Now, plug in 0 to what we’ve derived, and use that we know s(0)=0

c(0)=c(0)2+s(0)2=c(0)2

Finally, since c(0) is nonzero we may divide by it, which gives c(0)=1 as claimed.

An important corollary showed up during the proof here, when we observed that c(0)=c(x)2+s(x)2: now that we know c(0)=1, we see that (c,s) satisfy the Pythagorean identity!

Exercise 20.7 (Pythagorean Identity) If s,c are trigonometric, then for every xR s(x)2+c(x)2=1

Continuing this way, we can prove many other trigonometric identities: for instance, the double angle identity (which will be useful to us later)

Exercise 20.8 (Evenness and Oddness) If s, are trigonometric, then s is odd and c is even: s(x)=s(x)c(x)=c(x)

Exercise 20.9 (Angle Sums) If s,c are trigonometric, then for every xR s(x+y)=c(x)s(y)+s(x)c(y) c(x+y)=c(x)c(y)s(x)s(y)

Exercise 20.10 (Double Angles) If s,c satisfy the angle sum identities, then for any xR, s(2x)=2s(x)c(x)

Another useful identity we’ll need is the ‘Half Angle Identites’:

Lemma 20.4 If s,c are trigonometric functions, then c(x)2=1+c(2x)2

Proof. Using the angle sum identity we see c(2x)=c(x)c(x)s(x)s(x)=c(x)2s(x)2 Then applying the pythagorean identity c(2x)=c(x)2s(x)2=c(x)2(1c(x)2)=2c(x)21

Re-arranging yields the claimed identity.

Exercise 20.11 If s,c are trigonometric functions then s(x)2=1c(2x)2

Just like for exponentials and logs we don’t expect this to pick out a unique pair of functions, but rather there many be many solutions to the angle identities (corresponding to different units we could measure angles with)

Exercise 20.12 Prove that if s(x),c(x) are a trigonometric pair then so are s(kx),c(kx) for any constant k>0.

To prove the existence of trigonometric functions, we’ll follow a similar path to exponentials: we’ll propose a pair of functions, and confirm they are continuous and nonconstant, and satisfy the trig identities. This is one of the options of the final project, for those interested!