Here is a very interesting summation formula that generalizes many familiar ones:
It can be proven by induction; we will not do this here.
Another standard summation formula is for the geometric series,
for
:
which is very easy to prove by elementary algebraic manipulation.
When the upper limit
is
and when
, this gives
By differentiating, we can get yet another summation formula
and then by multiplying through by
, yet another:
However, sometimes summations cannot be reduced exactly to a familiar compact formula. In such cases we may use approximations instead. Here is a simple example using the method called bounding:
This summation is a famous one, called the harmonic series and we have encountered it before in the average case runtime for insertion sort, but we did not know then how to approximate it.
So, how do use bounding to see that the sum lies between the two
limits given? Well, every term is at least as large as the smallest,
and there are
terms, so if we replaced them all by the smallest, the sum would
be only
.
Also
is the largest term, and so replacing
all the terms by the largest--which gives
--can only
increase the result.
On the other hand, this is a very crude approximation, and does not
tell us very much about how big the sum is. Instead of replacing all
terms by the least term, we could have simply taken the first two
terms of the sum (
and
) and since there are no negative
terms, the sum must be at least as large as the sum of the first two,
giving a lower limit of
, a slight improvement. Or, instead of
the first two terms, we could use, say, the first ten, on the left,
getting an even better lower bound.
But a more sophisticated method is that of first splitting:
(supposing
to be even) and then bounding each of these new
sums by replacing all their terms by the smallest (and then the
largest) values:
The LHS has not gotten any better than before, it is still
. But
at least the RHS has dropped down a lot, and for large
it is
essentially just
. For the particular sum in this example, an
even better method exists, that we will see soon. However, splitting
and bounding, used together, often are fairly good, as the next example
shows (again where we assume
is even for simplicity):
Thus
, and for example if
we have
This still it does not pin the sum down very tightly; we will soon see
a stronger method. But sometimes even the weaker method is enough;
for instance, if we need to know whether the above sum to 20 is greater
than, say, 500, then we have the answer. And we also were able to
show that the general sum to
is
.
Sometimes, for very special summations, the following ratio method variation on bounding works well:
Let
be a series of positive terms and suppose
there is a constant
such that
for all
. Then
Here is an example:
where
,
and we compute the ratio
. So we
choose
and then
.
Now we turn to the integral method for approximating
summations. Consider the sum
where
is a
function of a real variable
. There are two standard cases:
The harmonic series is a good one to use here: since
is a
decreasing function, then we get:
However, the integral on the right is not well-defined, since
is
unbounded at 0. We can get around this by splitting off the first
term in the sum:
Products have a notation analogous to summations:
and because of the familiar fact about the logarithm of a product, we have