Mathematics for Computer Science

(avery) #1

Chapter 13 Sums and Asymptotics508


tion 13.2 and Theorem 13.1.1:


1 C1=2C1=4CD

X^1


iD 0




1


2


i
D

1


1 .1=2/


D 2 (13.6)


0:99999D0:9


X^1


iD 0




1


10


i
D0:9

1


1 1=10


!


D0:9


10


9


!


D 1 (13.7)


1 1=2C1=4D


X^1


iD 0




1


2


i
D

1


1 .1=2/


D


2


3


(13.8)


1 C 2 C 4 CC 2 n^1 D

nX 1

iD 0

2 iD

1  2 n
1 2

D 2 n 1 (13.9)

1 C 3 C 9 CC 3 n^1 D

nX 1

iD 0

3 iD

1  3 n
1 3

D


3 n 1
2

(13.10)


If the terms in a geometric sum grow smaller, as in equation 13.6, then the sum is
said to begeometrically decreasing. If the terms in a geometric sum grow progres-
sively larger, as in equations 13.9 and 13.10, then the sum is said to begeometrically
increasing. In either case, the sum is usually approximately equal to the term in the
sum with the greatest absolute value. For example, in equations 13.6 and 13.8, the
largest term is equal to 1 and the sums are 2 and 2/3, both relatively close to 1. In
equation 13.9, the sum is about twice the largest term. In equation 13.10, the largest
term is 3 n^1 and the sum is.3n1/=2, which is only about a factor of1:5greater.
You can see why this rule of thumb works by looking carefully at equation 13.2
and Theorem 13.1.1.


13.1.6 Variations of Geometric Sums


We now know all about geometric sums—if you have one, life is easy. But in
practice one often encounters sums that cannot be transformed by simple variable
substitutions to the form


P


xi.
A non-obvious but useful way to obtain new summation formulas from old ones
is by differentiating or integrating with respect tox. As an example, consider the
following sum:


nX 1

iD 1

ixiDxC2x^2 C3x^3 CC.n1/xn^1

This is not a geometric sum. The ratio between successive terms is not fixed, and
so our formula for the sum of a geometric sum cannot be directly applied. But

Free download pdf