27  Examples

In this optional chapter we integrate familiar functions directly from the definition. I’ve written this merely to illustrate its possible (inspired by a challenge posed by past students to me), not because its useful: this entire chapter is rendered entirely superflouous following our proof of the fundamental theorem of calculus!

Recall our definition of axiomatically integrable says that f is integrable on [a,b] only if *every possible definition of satisfying the axioms agrees on the value of [a,b]f. This is quite a slippery concept to work with, so we developed the concepts of upper and lower sums to help us out.

27.1 Powers

Here

Proposition 27.1 (Integrating f(x)=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, it is enough to find a sequence Pn of shrinking partitions where limL(f,Pn)=limU(f,Pn). Then U(f)=L(f) necessarily.

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.

Exercise 27.1 Use the sum of the first n integers we have previously derived to prove that limU(x,Pn)=b22lim(1+1/n)=b22.

Thus x is integrable on [0,b] and

[0,b]x=b22

Knowing this, we complete the case for a general positive interval [a,b] with 0<a<b by subdivision:

Exercise 27.2 Show that [a,b]x=b2a22

*Hint: do 0<a<b first, then deal with the case where one or both may be negative, with another subdivision.

Proposition 27.2 (Integrating f(x)=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 27.3 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.

27.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! There are several facts about exponentials we will need from our previous investigations; listed here for ease of reference.

  • Exponentials are always nonzero
  • Exponentials are strictly increasing, or strictly decreasing
  • Exponentials are differentiable everywhere

Proposition 27.3 (Integrating Exponentials) 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, it is again 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 27.1 (Integrating the Natural Exponential) On any interval [a,b] the natural exponential is integrable, and [a,b]exp=exp(b)exp(a)

27.3 Trigonometric Functions

Theorem 27.1 For x[0,π/2], the sine function is integrable and [0,x]sin=1cos(x)

Proof. On the interval [0,x], we use the sequence of evenly spaced shrinking partitions Pn of width Δ=x/n, and prove integrability by showing limL(sin,Pn)=limU(sin,Pn). Because sin is monotonically increasing on [0,π/2] on any subinterval I=[a,b] that m=sina and M=sinb. Thus L(sin,Pn)=i=1nsin((i1)Δ)Δ U(sin,Pn)=i=1nsin(iΔ)Δ

Using sin(0)=0 we see the sums agree except for the final term of U, meaning

U(sin,Pn)L(sin,Pn)=sin(nΔ)Δ=sin(x)xn

As x is a fixed constant this tends to zero as n, so sin is integrable on [0,x] and we can compute its value as the limit of either the upper or lower sum.
We use the identity for 1knsinkx proven in ?exr-summing-angles: U(sin,Pn)=1insin(iΔ)Δ=sin(n2Δ)sin(n+12Δ)sin(Δ2)Δ

Substituting back Δ=x/n and re-arranging,

U(sin,Pn)=sin(x2)sin(n+1nx2)sin(x2n)xn=sin(x2)sin(n+1nx2)sin(x/2n)x/n

We evaluate the limit as n using the limit laws. The numerator is immediate sin(x2)sin(n+1nx2)sin(x2)sin(x2) using that n+1n1 and the continuity of sin. For the denominator, we use the fact that sinxx1 (?cor-sinc) to see

sin(x2n)x/n=12sin(x2n)x2n12

Thus

limU(sin,Pn)=sin(x2)sin(x2)12=2sin2x2

Using the half-angle identity , we can rewrite this

limU(sin,Pn)=21cos(x)2=1cosx

As we’ve already shown sin to be integrable, this limit of upper sums over a sequence of shrinking partitions gives the value:

[0,x]sin=1cos(x)

We can leverage this result and the symmetries of the sine function to calculate the integral over arbitrary intervals:

Exercise 27.4 Prove that sin is integrable on the interval [π/2,π] and for any x[π/2,π] [π2,x]sin=cos(x)

Hint: proceed either (1) directly, using the fact that sin is decreasing on this interval or (2) using the above, and the symmetry sin(π/2+x)=sin(π/2x).

Use this and subdivision to show for any x[0,π], [0,x]sin=1cosx

Corollary 27.2 [0,π/2]sin=1and[0,π]sin=2

Exercise 27.5 Use the fact that sine is an odd function and integrable on [0,π] to show sin is integrable on [π,0] and for any x[π,0] [x,0]sin=cos(x)1

Again by subdivision we can conclude that sin is integrable on [π,π].

Proposition 27.4 Let a,b[π,π]. Then sin is integrable on [a,b] and [a,b]sin=cos(a)cos(b)

Proof. We proceed by cases depending on the location of a,b. If both are positive and lie in [0,π/2] we evaluate using

[a,b]sin=[0,b]sin[0,a]sin=(1cosb)(1cosa)=cosacosb

A similar calculation applies if a,b<0. If a<0 and b>0 we evaluate as

[a,b]sin=[a,0]sin+[0,b]sin=(cosa1)+(1cosb)=cosacosb

Corollary 27.3 [π,π]sin=0

Since sin is 2π periodic this is enough to conclude that sin is in fact integrable on any interval

Theorem 27.2 (Integrating sine) Let a<b. Then sin is integrable on [a,b] and [a,b]sin=cos(a)cos(b)

Exercise 27.6 Prove this.

This work has immediate payoff for integrating cosine as well, since we know it to be just a shifted version of the sine:

Theorem 27.3 (Integrating cosine) Let a<b. Then cos is integrable on [a,b] and [a,b]cos=sin(b)sin(a)

Exercise 27.7 Prove using that sin(x+π/2)=cos(x) and cos(x+π/2)=sin(x) (?exr-trig-shift).