5.6. EXERCISES 135

This follows easily from consideration of the following graph. The larger trapezoidis obtained from the tangent line through (n+ 1

2 , ln(n+12 )).

n n+1n+ 12

(a) Now ∑n−1k=1

(∫ k+1k ln(t)dt− 1

2 (ln(k+1)+ ln(k)))

is an increasing sequence ofpartial sums.

(b) Next consider the following computations coming from the above inequalities

∫ n

1ln(t)dt−

n−1

∑k=1

12(ln(k+1)+ ln(k))

=n−1

∑k=1

(∫ k+1

kln(t)dt− 1

2(ln(k+1)+ ln(k))

)

≤n−1

∑k=1

ln(k+1/2)− 12(ln(k+1)+ ln(k))

=n−1

∑k=1

12(ln(k+1/2)− ln(k))−

n

∑k=2

12(ln(k)− ln(k−1/2))

=12

ln(

32

)− 1

2(ln(n)− ln(n−1/2)) ≤ 1

2ln(

32

)Therefore, the series in part a.) converges to some c.

(c) Note that the series in a.) equals

Sn ≡∫ n

1ln(t)dt−

n−1

∑k=1

12(ln(k+1)+ ln(k)) .

Hence limn→∞ exp(Sn) = ec. Thus

limn→∞

exp(n lnn−n+1)

∏n−1k=1 exp

(√(k+1)k

)=

nne−ne

∏n−1k=1

√k+1∏

n−1k=1

√k

=nne−nen1/2

∏n−1k=1

√k+1∏

nk=1

√k=

nn+(1/2)en!en = ec

Thus there is a constant k = 1/e1−c such that limn→∞n!en

n(n+(1/2)) = k. It is possible

to show that k =√

2π but in most applications, it suffices to know the existenceof the limit. This is Stirling’s formula.

5.6. EXERCISES 135This follows easily from consideration of the following graph. The larger trapezoidis obtained from the tangent line through (n + 5,In(n + 5)).n nt 5 nti(a) Now Ye} (Ca In(t) dt — 5 (In(k+1)+In (k))) is an increasing sequence ofpartial sums.(b) Next consider the following computations coming from the above inequalities[om In(1 yar 5 (In(k-+1) +In(&))- (fm oat ee +n)n—1S Y in(k+1/2)—5 (In(k+1) +In(&))k=1= ¥ E an(k-+1/2)—In(k)) — (in(&) In (—1/2))k=l k=2_ zim (5) — 5 (Inn) ~In(n—1/2)) sTherefore, the series in part a.) converges to some c.(c) Note that the series in a.) equalsn n—1 1Sn =| In(t)dt— J" 5 (In(k+1) +In(&)).| k=lHence lim,-,.. exp (S,) = e°. Thuskim —°2P. (nlInn—n-+1)"= THE | exp (kk)nee© Tit Ver TTS} Vkn'e—en!/2 n't(1/2)6TSE VeFTTL, Vk ale”Thus there is a constant k = 1/e!~¢ such that limp... ST a 7 =k. Itis possibleto show that k = \/27z but in most applications, it suffices to know the existenceof the limit. This is Stirling’s formula.