Chapter 11
Rigorous

Taylor Series Advanced

00 · Symbol Glossary

$T_n(x)$T sub n of x — nth-degree Taylor polynomial

The finite partial sum of a Taylor series (Chapter 10) through the xnx^n term: Tn(x)=k=0nf(k)(a)k!(xa)kT_n(x) = \displaystyle\sum_{k=0}^{n}\frac{f^{(k)}(a)}{k!}(x-a)^k. An ordinary polynomial, unlike the full infinite Taylor series.

$R_n(x)$R sub n of x — remainder

The error: Rn(x)=f(x)Tn(x)R_n(x) = f(x) - T_n(x), the gap between the true function value and the nn-th degree Taylor polynomial's approximation of it.

$c$c — the unnamed point in the Lagrange remainder

A specific (but generally unknown) number strictly between aa and xx, guaranteed to exist by the Lagrange remainder formula in Section 01. Its exact value is rarely known — only its existence and the resulting bound matter in practice.

$M$M — a bound on the (n+1)th derivative

Any number satisfying f(n+1)(t)M\lvert f^{(n+1)}(t)\rvert \leq M for every tt between aa and xx. Used to convert the Lagrange remainder formula (which involves the unknown cc) into a concrete numerical bound on the error.


01 · Taylor's Theorem and the Lagrange Remainder

Chapter 10 built the infinite Taylor series of a function. In practice, only a finite number of terms are ever actually computed — so the natural question is: how far off is that finite approximation?

Definition — Taylor's Theorem with Lagrange Remainder

If ff has n+1n+1 derivatives on an interval containing aa and xx, then

f(x)=Tn(x)+Rn(x),Rn(x)=f(n+1)(c)(n+1)!(xa)n+1f(x) = T_n(x) + R_n(x), \qquad R_n(x) = \frac{f^{(n+1)}(c)}{(n+1)!}(x-a)^{n+1}

for some (generally unknown) number cc strictly between aa and xx.

Reading the remainder formula

Rn(x)R_n(x) has exactly the same shape as the next term that would appear in the Taylor series (n+1n+1 derivatives, divided by (n+1)!(n+1)!, times (xa)n+1(x-a)^{n+1}) — the only difference is that the derivative is evaluated at the mystery point cc instead of at aa itself. The proof of why such a cc must exist is a calculus result in its own right and is not derived here; the formula is used as a given tool for bounding error.


02 · Bounding the Error

Since cc is unknown, Rn(x)R_n(x) itself cannot usually be computed exactly. But if a bound MM on f(n+1)\lvert f^{(n+1)}\rvert can be found over the relevant interval, the remainder can be bounded without ever knowing cc.

Definition — Taylor Error Bound

If f(n+1)(t)M\lvert f^{(n+1)}(t)\rvert \leq M for every tt between aa and xx, then

Rn(x)M(n+1)!xan+1\lvert R_n(x)\rvert \leq \frac{M}{(n+1)!}\lvert x-a\rvert^{n+1}
Step-by-step — Bound the error of $T_3(x)$ approximating $e^x$ at $x=0.5$
1
Recall the Maclaurin series of exe^x (Chapter 10, Section 03): T3(x)=1+x+x22+x36T_3(x) = 1+x+\dfrac{x^2}{2}+\dfrac{x^3}{6} (degree-3 partial sum, a=0a=0).
2
Identify nn and the derivative needed: n=3n=3, so the remainder involves f(4)(c)=ecf^{(4)}(c) = e^c (Chapter 02, Section 10: every derivative of exe^x is exe^x).
3
Bound ece^c over the relevant interval: cc lies between a=0a=0 and x=0.5x=0.5, so 0<c<0.50<c<0.5. Since ete^t is increasing (Chapter 02, Section 10's derivative ex>0e^x>0 everywhere means exe^x is always increasing, Chapter 04, Section 01), the largest value of ece^c on this interval is bounded by e0.5<e1<3e^{0.5}<e^1<3 (using e2.718<3e\approx2.718<3). Take M=3M=3.
4
Apply the error bound formula: R3(0.5)M(n+1)!xan+1=34!(0.5)4=324×0.0625\lvert R_3(0.5)\rvert \leq \dfrac{M}{(n+1)!}\lvert x-a\rvert^{n+1} = \dfrac{3}{4!}(0.5)^4 = \dfrac{3}{24}\times0.0625.
5
Compute the numeric bound: 324=0.125\dfrac{3}{24}=0.125; 0.125×0.0625=0.00781250.125\times0.0625 = 0.0078125. So the degree-3 Taylor polynomial approximates e0.5e^{0.5} with error at most about 0.00780.0078 — without ever computing e0.5e^{0.5} exactly first.
6
Verify against the known value: T3(0.5)=1+0.5+0.125+0.02083=1.64583T_3(0.5) = 1+0.5+0.125+0.0208\overline{3} = 1.6458\overline{3}; the true value e0.51.64872e^{0.5}\approx1.64872. Actual error 0.00289\approx0.00289, comfortably within the bound of 0.00780.0078 from step 5 — the bound is a guarantee, not a tight estimate.
❌ Using a bound M that only holds at one point, not the whole interval

On the same problem, a common mistake: setting M=f(4)(0)=e0=1M = f^{(4)}(0) = e^0 = 1 — evaluating the bounding derivative only at the center a=0a=0 instead of over the whole interval from aa to xx.

Why it breaks: the error bound formula requires MM to bound f(n+1)(t)\lvert f^{(n+1)}(t)\rvert for every tt between aa and xx, not just at the endpoint aa. Here ete^t is increasing, so its largest value on [0,0.5][0,0.5] occurs at t=0.5t=0.5, not t=0t=0 — using M=1M=1 understates the true maximum of ece^c on the interval.

Consequence: the resulting "bound" 124(0.5)40.0026\dfrac{1}{24}(0.5)^4 \approx 0.0026 is smaller than the actual error computed in step 6 above (0.00289\approx0.00289) — an invalid bound that the true error already exceeds. MM must be a valid upper bound over the entire interval between aa and xx, which in this case meant using the right endpoint, not the center.


03 · Common Maclaurin Series, Radius of Convergence, and Approximation

Definition — Reference Table of Maclaurin Series
ex=n=0xnn!sinx=n=0(1)nx2n+1(2n+1)!cosx=n=0(1)nx2n(2n)!e^x = \sum_{n=0}^\infty \frac{x^n}{n!} \qquad \sin x = \sum_{n=0}^\infty \frac{(-1)^n x^{2n+1}}{(2n+1)!} \qquad \cos x = \sum_{n=0}^\infty \frac{(-1)^n x^{2n}}{(2n)!}
ln(1+x)=n=1(1)n+1xnn11x=n=0xn\ln(1+x) = \sum_{n=1}^\infty \frac{(-1)^{n+1}x^n}{n} \qquad \frac{1}{1-x} = \sum_{n=0}^\infty x^n

The first three are built from Chapter 02's derivatives of exe^x, sinx\sin x, cosx\cos x (Sections 09–10) following Chapter 10, Section 03's construction; ln(1+x)\ln(1+x) was built in Chapter 10, Exercise 10.3; 11x\dfrac{1}{1-x} is Chapter 10, Section 01's geometric series.

Step-by-step — Apply the ratio test (Chapter 10, Section 02) to confirm $e^x$'s series converges for every real x
1
Set up the ratio test on the terms an=xnn!a_n=\dfrac{x^n}{n!}: an+1an=xn+1(n+1)!n!xn=xn+1\left\lvert\dfrac{a_{n+1}}{a_n}\right\rvert = \left\lvert\dfrac{x^{n+1}}{(n+1)!}\cdot\dfrac{n!}{x^n}\right\rvert = \dfrac{\lvert x\rvert}{n+1} (using (n+1)!n!=n+1\dfrac{(n+1)!}{n!}=n+1).
2
Take the limit as nn\to\infty for any fixed xx: xn+10\dfrac{\lvert x\rvert}{n+1}\to0, since the numerator is a fixed constant and the denominator grows without bound.
3
Conclude: ρ=0<1\rho=0<1 for every real xx, so by the ratio test the series converges for all xx — radius of convergence R=R=\infty. This holds for sinx\sin x and cosx\cos x's series too, by the identical argument (their coefficients also carry a factorial in the denominator).
❌ Assuming ln(1+x)'s series converges everywhere, like e^x's does

A tempting generalization from Section 03's step-block: assuming every Maclaurin series converges for all real xx, since exe^x's did.

Why it breaks: applying the ratio test to ln(1+x)=(1)n+1xnn\ln(1+x)=\sum\frac{(-1)^{n+1}x^n}{n}: an+1an=xn+1n+1nxn=xnn+1x\left\lvert\dfrac{a_{n+1}}{a_n}\right\rvert = \left\lvert\dfrac{x^{n+1}}{n+1}\cdot\dfrac{n}{x^n}\right\rvert = \lvert x\rvert\cdot\dfrac{n}{n+1} \to \lvert x\rvert as nn\to\infty (no factorial in the denominator to force the ratio to 00, unlike exe^x's series). The ratio test then requires x<1\lvert x\rvert<1 for convergence — a finite radius of convergence R=1R=1, not all of R\mathbb{R}.

Consequence: the series for ln(1+x)\ln(1+x) is only valid for 1<x<1-1<x<1 (with the right endpoint x=1x=1 separately checkable); plugging in, say, x=5x=5 into the series gives a divergent sum of numbers with no relationship to the actual value ln6\ln6. Each Taylor series carries its own radius of convergence — it must be checked individually, never assumed from a different function's series.


04 · Exercises

EXERCISE 11.1

Identify nn, find the (n+1)(n+1)-th derivative, bound it over the interval from aa to xx, then apply the error bound formula.

Approximating cos(0.3)\cos(0.3) with T2(x)=1x22T_2(x)=1-\dfrac{x^2}{2} (n=2n=2, a=0a=0): the third derivative of cosx\cos x is sinx\sin x (Chapter 02, Section 09: cosxsinxcosxsinx\cos x\to-\sin x\to-\cos x\to\sin x), and sint1\lvert\sin t\rvert\leq1 for all tt, so M=1M=1. Bound: R2(0.3)13!(0.3)3=0.0276=0.0045\lvert R_2(0.3)\rvert \leq \dfrac{1}{3!}(0.3)^3 = \dfrac{0.027}{6}=0.0045.

Bound the error when T2(x)=1x22T_2(x)=1-\dfrac{x^2}{2} is used to approximate cos(0.3)\cos(0.3).

EXERCISE 11.2

Compute T2T_2 directly from the coefficients, then compare to the true value using a calculator-level approximation of cos(0.3)\cos(0.3).

T2(0.3)=1(0.3)22=10.092=10.045=0.955T_2(0.3) = 1-\dfrac{(0.3)^2}{2} = 1-\dfrac{0.09}{2}=1-0.045=0.955. True value cos(0.3)0.95534\cos(0.3)\approx0.95534. Actual error 0.00034\approx0.00034, well within the bound of 0.00450.0045 from Exercise 11.1.

Compute T2(0.3)T_2(0.3) from Exercise 11.1 and compare to the true value of cos(0.3)0.95534\cos(0.3)\approx0.95534.

EXERCISE 11.3

Apply the ratio test to the general term of the series, exactly as done for exe^x's series in Section 03.

sinx=(1)nx2n+1(2n+1)!\sin x = \sum\dfrac{(-1)^n x^{2n+1}}{(2n+1)!}: ratio of consecutive terms' absolute values involves x2n+3(2n+3)!(2n+1)!x2n+1=x2(2n+3)(2n+2)0\dfrac{\lvert x\rvert^{2n+3}}{(2n+3)!}\cdot\dfrac{(2n+1)!}{\lvert x\rvert^{2n+1}} = \dfrac{\lvert x\rvert^2}{(2n+3)(2n+2)}\to0 as nn\to\infty for any fixed xx (fixed numerator, denominator grows without bound). So ρ=0<1\rho=0<1 always — converges for every real xx, R=R=\infty.

Show that the Maclaurin series for sinx\sin x converges for every real number xx, using the ratio test.

EXERCISE 11.4

Recall which of the series in Section 03 was shown to have a finite radius of convergence, and by how much its ratio-test limit failed to vanish.

ln(1+x)\ln(1+x)'s series (Section 03's FailBlock) has radius of convergence R=1R=1, unlike exe^x, sinx\sin x, and cosx\cos x's series, which all converge for every real xx (R=R=\infty). The difference traces back to the denominator of the coefficients: the factorial n!n! in exe^x, sinx\sin x, cosx\cos x's coefficients forces the ratio-test limit to 00 regardless of xx, while ln(1+x)\ln(1+x)'s coefficients have only a plain nn in the denominator, leaving a nonzero x\lvert x\rvert in the ratio-test limit.

Which Maclaurin series from Section 03 has a finite radius of convergence rather than R=R=\infty, and what feature of its coefficients causes the difference?

EXERCISE 11.5

Determine how many terms are needed by requiring the error bound formula to be less than the target precision, solving for the smallest valid nn.

Approximate e0.2e^{0.2} to within 0.00010.0001 using TnT_n centered at a=0a=0. Bound: Rn(0.2)M(n+1)!(0.2)n+1\lvert R_n(0.2)\rvert \leq \dfrac{M}{(n+1)!}(0.2)^{n+1} with MM bounding ece^c for 0<c<0.20<c<0.2; since e0.2<e<3e^{0.2}<e<3, take M=3M=3. Try n=2n=2: 33!(0.2)3=36(0.008)=0.004\dfrac{3}{3!}(0.2)^3 = \dfrac{3}{6}(0.008)=0.004 — too large. Try n=3n=3: 34!(0.2)4=324(0.0016)=0.0002\dfrac{3}{4!}(0.2)^4 = \dfrac{3}{24}(0.0016)=0.0002 — still too large. Try n=4n=4: 35!(0.2)5=3120(0.00032)=0.000008\dfrac{3}{5!}(0.2)^5=\dfrac{3}{120}(0.00032)=0.000008 — within 0.00010.0001. So n=4n=4 terms (through T4T_4) suffice.

How many terms of the Maclaurin series for exe^x are needed to approximate e0.2e^{0.2} to within 0.00010.0001? Use the error bound formula to determine the smallest sufficient nn.


05 · Chapter Summary

ConceptFormula / Rule
Taylor polynomialTn(x)=k=0nf(k)(a)k!(xa)kT_n(x) = \sum_{k=0}^n \frac{f^{(k)}(a)}{k!}(x-a)^k
RemainderRn(x)=f(x)Tn(x)R_n(x) = f(x)-T_n(x)
Lagrange remainderRn(x)=f(n+1)(c)(n+1)!(xa)n+1R_n(x) = \dfrac{f^{(n+1)}(c)}{(n+1)!}(x-a)^{n+1}, cc between a,xa,x
Error boundRn(x)M(n+1)!xan+1\lvert R_n(x)\rvert \leq \dfrac{M}{(n+1)!}\lvert x-a\rvert^{n+1} where f(n+1)M\lvert f^{(n+1)}\rvert\leq M on [a,x][a,x]
exe^x, sinx\sin x, cosx\cos x seriesConverge for all real xx (R=R=\infty)
ln(1+x)\ln(1+x) seriesConverges only for 1<x<1-1<x<1 (R=1R=1)

Next: Chapter 12 — Convergence Tests, which builds out the full toolkit for deciding whether a series converges, beyond the ratio test introduced here.