30  Examples

Highlights of this Chapter: we compute several integrals directly from the definition. The examples of x and x2 are perhaps familiar from many sources, but we also compute the integral of an exponential E(x), and prove that [1,x]1tdt is a logarithm.

This entire section is incredibly superfluous. After all, we already know that if our construction really yields an integral then the fundamental theorem of calculus must hold, and we can compute any of these integrals below by antidifferentiation.

So, as efficient mathematicians, we should not pause to try and compute any integrals by hand, but rather move immediately to try and prove the integration axioms for our construction (we do this right away, at the beginning of the next chapter). Nonetheless, when learning a new definition it is often instructive to use it: and below are several example integrals computed directly from the construction.

30.1 Some Polynomials

Proposition 30.1 (Integrating a Constant) Let f(x)=k be a constant function. Then f is integrable on any closed interval of R, and [a,b]k=k(ba)

Proof. Let P be any partition of [a,b] then since f(x)=k is constant, on every sub-interval Pi we have mi=k=Mi, and so L(f,P)=imi|Pi|=ik|Pi|=k(ba) U(f,P)=iMi|Pi|=ik|Pi|=k(ba)

Thus for all partitions the upper sum and lower sum are constant - and equal the same value! Taking the supremum over all lower sums and infimum over all upper sums then just yields this same constant, so the upper and lower integrals are equal. Thus

[a,b]fdx=k(ba)

Proposition 30.2 (Integrating x) Let [a,b] be any closed interval in R. Then f(x)=x is integrable on [a,b] and [a,b]x=b2a22

Proof. Start with [0,b], then look at 0<a<b using interval subdivision. To show x is integrable, we use , which assures us it is enough to find a sequence Pn of shrinking partitions where limL(f,Pn)=limU(f,Pn).

For each n, let Pn be the evenly spaced partition with n subintervals, of width Δn=(ba)/n. Since f(x)=x is monotone increasing, we know on each subinterval [ti1,ti] that mi=ti1=(i1)ΔnMi=ti=iΔn

Thus, the upper and lower sums for these partitions are

L(x,Pn)=1inmiΔn=(i1)ΔnΔn=Δn2(0+1+2++(n1))

U(x,Pn)=1inMiΔn=iΔnΔn=Δn2(1+2++n)

These are nearly identical formulae: the upper sum is just one term longer than the lower sum and so their difference is

U(x,Pn)L(x,Pn)=nΔn2=nb2n2=b2n

As n this converges to zero: thus, if either the upper or lower sum converges, then both do, and both converge to the same value by the limit theorems. For example, if we prove U(f,Pn) converges then

limL(x,Pn)=lim(U(x,Pn)U(f,Pn)+L(x,Pn))=limU(x,Pn)lim(U(x,Pn)L(x,Pn))=limU(xs,Pn)+0s

So, we focus on just proving that U(x,Pn) converges and finding its value. Because U(x,Pn) is a multiple of 1+2++n, we start by finding a closed form using the formula for the sum of the first n positive integers: 1+2++n=n(n+1)2.

U(x,Pn)=Δn2n(n+1)2=b2n2n(n+1)2=b22n(n+1)n2

The factor b2/2 out front is a constant independent of n, and the remainder simplifies directly with some algebra:

n(n+1)n2=n+1n=1+1n

Thus limU(x,Pn)=b22lim(1+1/n)=b22. Since this converges our previous work ensures that the lower sum does as well, and to the same value. Thus x is integrable on [0,b] and

[0,b]xdx=b22

Knowing this, we complete the case for a general positive interval [a,b] with 0<a<b by subdivision: [a,b]xdx=[0,a]xdx+[a,b]xdx Since we know the value of all integrals over intervals beginning at 0, this simplifies to b22=a22+[a,b]xdx And, subtracting to the other side gives our answer

[a,b]xdx=b2a22

Exercise 30.1 Complete the general proof by dealing with the cases where a,b may be negative.

The same style of argument works to integrate any xn for which we know how to sum the nth powers of the positive integers.

Proposition 30.3 (Integrating x2) Let [a,b] be any closed interval in R. Then f(x)=x2 is integrable on [a,b] and [a,b]x2dx=b3a33

Exercise 30.2 Following the same technique as above, show that x2 is integrable on [a,b]:

  • First, restrict yourself to intervals of the form [0,b] for b>0.
  • Use the monotonicity of x2 on these intervals to explicitly write out upper and lower sums.
  • Use the following identity on sums of squares from elementary number theory to compute their value 1kNk2=N(N+1)(2N+1)6
  • Explain how to generalize this to intervals of the form [a,0] for a<0, and finally to general intervals [a,b] for any a<bR using subdivision.

30.2 Exponentials

Here’s a quite long calculation showing that it’s possible to integrate exponential functions directly from first principles. The length of this calculation alone is a good selling point for the fundamental theorem of calculus!

Proposition 30.4 Let E be an exponential function, and [a,b] an interval. Then E is integrable on [a,b] and [a,b]E=E(b)E(a)E(0)

Proof. We will show the argument for E an increasing exponential (its base E(1)>1): an identical argument applies to decreasing exponentials (only switching U and L in the computations below).

To show E(x) is integrable, we use , which assures us it is enough to find a sequence Pn of shrinking partitions where limL(f,Pn)=limU(f,Pn). Indeed - for each n, let Pn denote the evenly spaced partition of [a,b] with widths Δn=(ba)/n Pn={a,a+Δn,a+2Δn,,a+nΔn=b}

We will begin by computing the lower sum. Because E is continuous, it achieves a maximum and minimum value on each interval Pi=[ti,ti+1]. And, since E is monotone increasing, this value occurs at the leftmost endpoint. Thus,

L(E,Pn)=0i<ninfPi{E(x)}|Pi|=0i<nE(ti)Δn=0i<nE(a+iΔn)Δn

Using the law of exponents for E we can simplify this expression somewhat:

E(a+iΔn)=E(a)E(iΔn)=E(a)E(Δn+Δn++Δn)=E(a)E(Δn)E(Δn)E(Δn)=E(a)E(Δn)i

Plugging this back in and factoring out the constants, we see that the summation is actually a partial sum of a geometric series:

0i<nE(a+iΔn)Δn=0i<nE(a)E(Δn)iΔn=E(a)Δn0i<nE(Δn)i

Having previously derived the formula for the partial sums of a geometric series, we can write this in closed form:

0i<nE(Δn)i=1E(Δn)n1E(Δn)

But, we can simplify even further! Using again the laws of exponents we see that E(Δn)n is the same as E(nΔn), and nΔn is nothing other than the width of our entire interval, so ba. Thus the numerator becomes 1E(ba), and putting it all together yields a simple expression for L(E,Pn):

L(E,Pn)=E(a)Δn1E(ba)1E(Δn)

Some algebraic re-arrangement is beneficial: first, note that by the laws of exponents we have

E(a)(1E(ba))=E(a)E(ba)E(a)=E(a)E(b)

Thus for every n we have

L(E,Pn)=(E(a)E(b))Δn1E(Δn)

We are interested in the limit as n: by the limit laws we can pull the constant E(a)E(b) out front, and only concern ourselves with the fraction involving Δn. There’s one final trick: look at the negative reciprocal of this fraction:

1Δn1E(Δn)=E(Δn)1Δn

Because we know E(0)=1 for all exponentials, this latter term is none other than the difference quotient defining the derivative for E! Since we have proven E to be differentiable, we know that evaluating this along any sequence converging to zero yields the derivative at zero. And as Δn0 this implies

limE(Δn)E(0)Δn=E(0)

Thus, our original limit Δn/(1E(Δn)) is the negative reciprocal of this, and

limL(E,Pn)=lim(E(a)E(b))Δn1E(Δn)=(E(a)E(b))limΔn1E(Δn)=(E(a)E(b))1E(0)=E(b)E(a)E(0)

Phew! That was a lot of work! Now we have to tackle the upper sum. But luckily this will not be nearly as bad: we can reuse most of what we’ve done! Since E is monotone increasing, we know that the maximum on any interval occurs at the rightmost endpoint, so

U(E,Pn)=0i<nsupPi{E(x)}|Pi|=0i<nE(ti+1)Δn=0i<nE(a+(i+1)Δn)Δn

Comparing this with our previous expression for L(E,Pn), we see (unsurprisingly) its identical except for a shift of ii+1. The law of exponents turns this additive shift into a multiplicative one:

U(E,Pn)=0i<nE(a+(i+1)Δn)Δn=0i<nE(Δn)E(a+iΔn)Δn=E(Δn)0i<nE(a+iΔn)Δn=E(Δn)L(E,Pn)

Thus, U(E,Pn)=E(Δn)L(E,Pn) for every n. Since E is continuous, limE(Δn)=E(limΔn)=E(0)=1

And, as L(E,Pn) converges (as we proved above) we can apply the limit theorem for products to get

limU(E,Pn)=lim(E(Δn)L(E,Pn))=(limE(Δn))(limL(E,Pn))=limL(E,Pn)=E(b)E(a)E(0)

Thus, the limits of our sequence of upper and lower bounds are equal! And, by the argument at the beginning of this proof, that squeezes L(E) and U(E) to be equal as well. Thus, E is integrable on [a,b] and its value is what we have squeezed:

[a,b]E=E(b)E(a)E(0)

Corollary 30.1 On any interval [a,b] the natural exponential is integrable, and [a,b]expdx=exp(b)exp(a)

30.3 A Logarithm

Proposition 30.5 Let a<b be positive numbers. Then the function f(x)=1/x is integrable on the interval [a,b].

Proof. Here we attempt to prove integrability without necessarily computing the value of the function at the same time. So, its enough to use the ϵ-integrability criterion, where we show that for any ϵ>0 there exists some partition P where U(1/x,P)L(1/x,P)<ϵ.

Note that 1/x is monotone decreasing on the positive reals, so for any sub-interval [ti1,ti] of any partition, we have mi=1tiMi=1ti1

If P is an evenly spaced partition of [a,b] with |Pi|=Δ for some Δ>0 this lets us express the difference UL as a telescoping sum:

UL=1iNMiΔ1iNmiΔ=Δ1iN(Mimi)=Δ1iN1ti11ti=Δ((1t01t1)+(1t11t2)++(1tN11tN))=Δ(1t01tN)=Δ(1a1b)

Write L=1a1b for this constant value. Then to make the difference between upper and lower sums less than ϵ all we need is to set Δ<ϵ/L.

Proposition 30.6 For any positive kR, and any interval [a,b](0,) [a,b]1x=[ka,kb]1x

Proof (Proof). For any partition P of [a,b] and number k let kP be the partition of [ka,kb] resulting from multiplying all points by k. This assignment determines a bijection between the sets of partitions of [a,b] and the partitions of [ka,kb].

Because we already know f(x)=1/x to be integrable on both intervals, we may choose to work with just lower sums without loss of generality. We aim to show that for every PP[a,b] L[a,b](1x,P)=L[ka,kb](1x,kP)

Assuming we have this, since PkP is a bijection P[a,b]P[ka,kb], this implies the sets of all possible lower sums are equal:

{L[a,b](1x,P):PP[a,b]}={L[ka,kb](1x,P):PP[ka,kb]}

Thus as the sets are equal, their suprema are equal, which are by definition the lower integrals L[a,b]1x=L[ka,kb]1x. But, as we already know this function is integrable on each of these intervals, these values are just the integrals themselves, so we are done. Thus, it only remains to prove equality of the upper sums for partitions in bijective correspondence.

Exercise 30.3 Let P be an arbitrary partition of [a,b]. Prove that U[a,b](1x,P)=U[ka,kb](1x,kP)

Hint:1/x is monotone decreasing, so we know its infimum on each interval is the right endpoint

Theorem 30.1 The function L(x)=[1,x]1t is a logarithm.

Proof (Proof 1). For any x,y(1,) we directly compute using the above lemma. The idea of the proof is immediate in the first case, where we consider x,y>1: L(xy)=[1,xy]1t=[1,x]1t+[x,xy]1t=[1,x]1t+[1,y]1t=L(x)+L(y)

This function extends to all of (0,), if we use the definition of the integral allowing oriented intervals (), as you can check in the exercise below.

Exercise 30.4 What are the other cases? Prove them by similarly breaking into sub-intervals and rescaling ().

30.4 Using the Freedom of Partition

We can use the freedom of choice of partition to our advantage even more, in calculating more difficult integrals, such as below:`

Exercise 30.5 Follow the argument structure of in the simpler case below to show if a,b,cR and f is an integrable function on the interval [a+c,b+c], then f(x+c) is integrable on [a,b] and [a+c,b+c]f(x)=[a,b]f(x+c)

Exercise 30.6 Let [a,b] be an interval and k>0. Then if f(x) is integrable on [ka,kb], the function f(kx) is integrable on [a,b] and [ka,kb]f(x)=k[a,b]f(kx)

Example 30.1 Let f be an integrable function. Then [a2,b2]f(x)=2[a,b]xf(x2)

Proof. We begin with some preliminary calculations involving partitions. Let P={ti} be a partition of the interval I=[a,b] and S the set of midpoint samples si=(ti+ti1)/2 for P. Now consider the squares P2={ti2} and S2={si2} of these.

As squaring is monotone, ti<ti+1 implies ti2<ti+12, so P2 is still a partition, but now of the interval I2 from t02=a2 to tn2=b2. Again by the monotonicity of squaring, since siPi for each i, it follows that si2Pi2 so S2 is a sample set for P2. The key to our computation is to work out this Riemann sum for f with the partition P2:

I2(f,P2,S2)=if(ti2)|Pi2|=if(si2)(ti2ti12)=if(si2)(ti+ti1)(titi1)=if(si2)(ti+ti1)|Pi|

As the samples occur at interval midpoints, by definition 2si=ti+ti1, so the Riemann sum simplifies

if(si2)(ti+ti1)|Pi|=if(si2)2si|Pi|=2isif(si2)|Pi| But this is precisely the Riemann sum for xf(x2) on I, using the partition P! Thus we’ve shown for any partition P, and midpoint samples S

I2(f(x),P2,S2)=2I(xf(x2),P,S)

Finally, we can begin the computation. Let Pn be a sequence of shrinking partitions on [a,b] and Sn the corresponding sequences of midpoints. Then the squares Pn2 form a sequence of shrinking partitions on the interval [a2,b2] which we may use to compute the integrals [a,b]xf(x2) and [a2,b2]f(x) respectively.

[a2,b2]f(x)=lim[a2,b2](f(x),Pn2,Sn2)=2lim[a,b](xf(x2),Pn,Sn)=2[a,b]xf(x2)

Exercise 30.7 Verify the fact used in the proof: if Pn is any sequence of partitions of [a,b] with maxW(Pn)0 then the max-widths of the corresponding sequence Pn2 on [a2,b2] also goes to zero.