Infinite Series
And now we come to one of the most hated parts of second-semester calculus: infinite series. An infinite series is just the sum of a (countably) infinite number of terms, and we usually collect those terms together as the image of a sequence. That is, given a sequence of real numbers, we define the sequence of “partial sums”:
and then define the sum of the series as the limit of this sequence:
Notice, though, that we’ve seen a way to get finite sums before: using step functions as integrators. So let’s use the step function , which is defined for any real number
as the largest integer less than or equal to
.
This function has jumps of unit size at each integer, and is continuous from the right at the jumps. Further, over any finite interval, its total variation is finite. Thus if is any function continuous from the left at every integer it will be integrable with respect to
over any finite interval. Further, we can easily see
Now given any sequence we can define a function
by setting
for any
. That is, we round each number up to the nearest integer
and then give the value
. This gives us a step function with the value
on the subinterval
, which we see is continuous from the left at each jump. Thus we can always define the integral
Then as we let go to infinity,
goes to infinity with it. Thus the sum of the series is the same as the improper integral.
So this shows that any infinite series can be thought of as a Riemann-Stieltjes integral of an appropriate function. Of course, in many cases the terms of the sequence are already given as values
of some function, and in that case we can just use that function instead of this step-function we’ve cobbled together.