Lesson 2.7.2 wrote ex as a series and said it works for every x. Its partial sums are the Taylor polynomials
pn(x)=1+x+2!x2+⋯+n!xn
Far from 0 the terms first grow. The cell prints the term k!xk for x=10, then the ratio of the next term to it, k+1x.
⌘/Ctrl + Enter runs the cell
The terms climb to 2755.7319 at k=9 and k=10, then fall: 41.1032 at k=20, 0.0038 at k=30. They turn round once the ratio k+1x drops below 1, and the ratio keeps falling towards 0.
Now compare pn(x) with ex. The cell prints the error ∣ex−pn(x)∣ next to the remainder bound of lesson 2.7.2, which the next section writes out.
⌘/Ctrl + Enter runs the cell
Every error is below its bound, and both shrink fast. At x=−5 the bound is loose, 1.385×10−3 against a true error of 7.593×10−6 for n=20, but it still heads to 0.
Conjecture
For every real number x, the partial sums of the series for ex tend to ex:
pn(x)=k=0∑nk!xk→exas n→∞
Two values of x, three degrees each. The claim is about every real x, and the proof must also handle the terms that grow before they shrink.
The plan: a bound, then a limit
Every derivative of et is et (lesson 2.3.4). Between 0 and x, t is at most ∣x∣, so et≤e∣x∣. The remainder bound of lesson 2.7.2, with M=e∣x∣, becomes:
Rule: Remainder bound for the exponential
ex−pn(x)≤e∣x∣(n+1)!∣x∣n+1
For every real x and every n≥0. The first factor stays fixed as n grows, so the proof only needs the second to tend to 0.
This lesson takes the remainder bound from lesson 2.7.2 as given. Its proof needs the mean value theorem, which this stage does not cover. Everything else is proved here.
Format 1
Reorder the steps
Here is the proof of the claim, with its lines shuffled. Put them in order with the arrows, or drag a line by its handle.
1The series ∑k≥0k!∣x∣k has positive terms, and the ratio of each term to the one before it is k+1∣x∣, which tends to 0.
2So pn(x)→ex: the series for ex converges to ex, for every real x.
3By the term test (lesson PG5.1), its terms tend to 0. In particular (n+1)!∣x∣n+1→0 as n→∞.
4By the ratio test (lesson PG5.2), with L=0<1, the series ∑k≥0k!∣x∣k converges.
5Let ε>0, and choose N with (n+1)!∣x∣n+1<εe−∣x∣ for every n≥N. Then ∣ex−pn(x)∣<ε for every n≥N.
6Fix x=0; at x=0 every pn(0)=1=e0. By the remainder bound, ∣ex−pn(x)∣≤e∣x∣(n+1)!∣x∣n+1 for every n.
An N you can compute
The ratio test shows that n!∣x∣n→0, but it does not say from where the terms are small. A direct proof names N. It waits until every new factor j∣x∣ is below 21, then halves.
Try it
For x=10, take the first whole number m with m≥2∣x∣, so m=20. The cell prints C=20!1020 and log2εC for ε=10−6, both used in the proof below.
The last line finds where the terms n!10n really drop below 10−6 for good.
⌘/Ctrl + Enter runs the cell
Format 2
Fill the gap
The direct proof that n!∣x∣n→0, with its key steps left out. Type each missing piece as you would a quick answer, such as n+m or 1/3, then check.
Split the product. Fix x, pick a whole number m≥2∣x∣, and write C=m!∣x∣m. For n>m,
n!∣x∣n=C⋅m+1∣x∣⋅m+2∣x∣⋯n∣x∣
The bottoms run from m+1 to n, so there are factors after C.
Bound each factor. Each bottom j is at least m+1, which is above 2∣x∣. So every factor j∣x∣ is less than , and
0≤n!∣x∣n≤C(21)n−m=2nC2m
Choose N. Given ε>0, choose a whole number N≥m with 2N>εC2m. For every n≥N, n!∣x∣n≤2nC2m≤2NC2m<ε. So n!∣x∣n→0.
With numbers. For x=10 and m=20, the cell gave C=41.1032. For ε=10−6 the condition is 2N−20>εC, and log2εC=25.29. So N−20 must be at least , and N= works.
How to type answers
Powers with ^, brackets round a power that is a sum: r^k, r^(k+1).
Fractions with / and brackets: (1-r)/(1+r). Multiply with * or side by side: 2k+1.
Press Enter in any box to check them all.
The terms really drop below 10−6 for good from n=37, so 46 is not the smallest place. A proof needs an N that works, not the best one.
Simulate
One N for every x?
The proof finds an N for each x. Does one N serve every x at once?
For x>0 every term left out is positive, so the error only shrinks as n grows. The cell finds the first n with error below 10−6, using 60-digit decimals so rounding cannot fake an answer.
⌘/Ctrl + Enter runs the cell
The degree needed grows with x: n=9 at x=1, 36 at x=10 and 119 at x=40. With n=20 fixed, the error is 34.984 at x=10 and 2.353×1017 at x=40.
Conjecture
For each ε>0, no single N makes ∣ex−pn(x)∣<ε for every n≥N and every real x at once.
Five values of x and a pattern. The next proof claims the opposite, and gets one line wrong.
Format 3
Find the error
A proof that one N serves every real x at once, which the simulation contradicts. One line does not follow. Select it.
Uniform convergence, lightly
On a bounded interval the trouble disappears. Take R>0. For every x in [−R,R], the remainder bound gives ∣ex−pn(x)∣≤eR(n+1)!Rn+1, a number that does not depend on x.
That number tends to 0, by the proof above with x=R. So one N makes it below ε, and that N works for every x in [−R,R] at once.
Rule: Uniform convergence
pn→f uniformly on a set I:for every ε>0 there is one Nwith ∣f(x)−pn(x)∣<εfor every n≥Nand every x∈I
The series for ex converges uniformly on every interval [−R,R], but not on the whole real line.
Try it
For R=5, the cell prints the bound e5(n+1)!5n+1 that serves every x in [−5,5].
It is 1.815×102 at n=10, but 1.385×10−3 at n=20 and 8.405×10−11 at n=30.
⌘/Ctrl + Enter runs the cell
Uniform convergence is what lets you integrate or differentiate a series term by term, a topic for a full analysis course. Lebl's Basic Analysis, in the further reading below, treats it in chapter 6.
Summary card
The remainder bound gives ∣ex−pn(x)∣≤e∣x∣(n+1)!∣x∣n+1 for every x.
n!∣x∣n→0 for every x: by the ratio test and the term test, or directly, once every new factor j∣x∣ is below 21.
So the series for ex converges to ex for every real x.
The N needed grows with ∣x∣. One N works for all of [−R,R] (uniform convergence there), but none works for the whole line.