Mathematics · Book 3 · Bachelor Year 1

University Mathematics — Year 1

University Mathematics — Year 1 · Bachelor Year 1

16Taylor Formulas and Asymptotic Expansions

Near a point, a smooth function is as good as a polynomial — with a controllable error. The Taylor formulas make this exact in three flavors (integral remainder, Lagrange remainder, Young remainder), and the resulting asymptotic expansions, manipulated algebraically, become the sharpest tool of elementary analysis: limits, equivalents, local behavior, asymptotes.

16.1 Comparison notation

Definition 16.1 (Landau notation)

Let f,gf, g be defined near x0x_0 (x0Rx_0 \in \R or ±\pm\infty). One writes, as xx0x \to x_0:

  • f=o(g)f = o(g) (“little-o”) when f=εgf = \varepsilon g with ε(x)0\varepsilon(x) \to 0;
  • f=O(g)f = O(g) (“big-O”) when f=ugf = u g with uu bounded near x0x_0;
  • fgf \sim g (“equivalent”) when f=(1+ε)gf = (1 + \varepsilon) g with ε0\varepsilon \to 0 — equivalently fg=o(g)f - g = o(g).

The same notation applies to sequences (nn \to \infty).

Proposition 16.2 (Rules)

As xx0x \to x_0:

  1. \sim is an equivalence relation; fgf \sim g implies that ff and gg share limits, signs (near x0x_0), and zeros’ absence;
  2. equivalents multiply and divide: f1g1f_1 \sim g_1, f2g2f_2 \sim g_2 imply f1f2g1g2f_1 f_2 \sim g_1 g_2 and f1f2g1g2\frac{f_1}{f_2} \sim \frac{g_1}{g_2};
  3. equivalents do not add: x+1xx + 1 \sim x and xx+2-x \sim -x + 2 at ++\infty, yet the sums 11 and 22 are not equivalent. To add, return to expansions with explicit o()o(\cdot) terms;
  4. o(g)+o(g)=o(g)o(g) + o(g) = o(g),   uo(g)=o(ug)\;u \cdot o(g) = o(ug),   o(o(g))=o(g)\;o(o(g)) = o(g), and fg    f=g+o(g)f \sim g \iff f = g + o(g).

Proof. Each is a short manipulation of the definitions; for instance f1f2=(1+ε1)(1+ε2)g1g2f_1 f_2 = (1+\varepsilon_1)(1+\varepsilon_2) g_1 g_2 and (1+ε1)(1+ε2)1(1 + \varepsilon_1)(1+\varepsilon_2) \to 1. Two items of (4) deserve their line. uo(g)=o(ug)u\cdot o(g) = o(ug): if f=εgf = \varepsilon g with ε0\varepsilon \to 0, then uf=ε(ug)uf = \varepsilon\,(ug) with the same ε\varepsilon. o(o(g))=o(g)o(o(g)) = o(g): if f=ε1hf = \varepsilon_1 h and h=ε2gh = \varepsilon_2 g with both εi0\varepsilon_i \to 0, then f=(ε1ε2)gf = (\varepsilon_1\varepsilon_2) g and the product of the two infinitesimals is one. The equivalence fg    f=g+o(g)f \sim g \iff f = g + o(g) is the definition read twice: fg=εgf - g = \varepsilon g. The counterexample in (3) is the proof of (3).

Example 16.3 (The comparison scale)

As x+x \to +\infty, the standard scale reads, in increasing order of strength:

1  =  o(lnx),lnx=o(x0.01),x0.01=o(x),x=o(x10),x10=o(ex),ex=o(e2x),1 \;=\; o(\ln x), \quad \ln x = o(x^{0.01}), \quad x^{0.01} = o(\sqrt x), \quad \sqrt x = o(x^{10}), \quad x^{10} = o(\eu^{x}), \quad \eu^x = o(\eu^{2x}) ,

every step being an instance of the growth comparisons of Proposition 4.6 (powers beat logarithms, exponentials beat powers, and within one family the exponent decides). Two habits worth forming: first, an O()O(\cdot) landing in a smaller class upgrades silently (O(lnx)O(\ln x) is also o(x0.01)o(x^{0.01})); second, at x0+x \to 0^+ the whole ladder reverses through the substitution x1xx \mapsto \frac1xlnx=o(x0.01)\ln x = o(x^{-0.01}) there, so “xαlnx0x^\alpha \ln x \to 0” holds for every α>0\alpha > 0. Keeping the scale straight is half of every asymptotic argument in Chapter 17.

Example 16.4 (Uniqueness of expansions, and a parity dividend)

If a function admits two expansions at 00 to the same order,

a0+a1x++anxn+o(xn)=b0+b1x++bnxn+o(xn),a_0 + a_1 x + \dots + a_n x^n + o(x^n) = b_0 + b_1 x + \dots + b_n x^n + o(x^n),

then ak=bka_k = b_k for every kk: subtracting and setting ck=akbkc_k = a_k - b_k, evaluate the identity c0+c1x++cnxn=o(xn)c_0 + c_1 x + \dots + c_n x^n = o(x^n) at x0x \to 0 to get c0=0c_0 = 0; divide by xx and repeat — each division is legitimate because the remaining expression is again o(xnk)o(x^{n-k}). Coefficients are therefore intrinsic, and one may compute them by any route (Taylor derivatives, algebra on known expansions, integration): all routes must agree. Dividend: an even function has only even powers in its expansion — replace xx by x-x and invoke uniqueness; likewise odd functions have odd powers. This is why cos\cos carries o(x2p+1)o(x^{2p+1}) rather than o(x2p)o(x^{2p}) in the table below: the absent odd term is free information, one order of precision for nothing.

16.2 The three Taylor formulas

Theorem 16.5 (Taylor with integral remainder)

Let ff be of class Cn+1C^{n+1} on an interval containing aa and xx. Then

f(x)=k=0nf(k)(a)k!(xa)k+ax(xt)nn!f(n+1)(t) ⁣dt.f(x) = \sum_{k=0}^{n} \frac{f^{(k)}(a)}{k!}\,(x - a)^k + \int_a^x \frac{(x - t)^n}{n!}\, f^{(n+1)}(t)\, \dd t .

Proof. Induction on nn. For n=0n = 0: f(x)=f(a)+axf(t) ⁣dtf(x) = f(a) + \int_a^x f'(t)\dd t is the fundamental theorem (Theorem 15.9). Step: integrate the remainder by parts,

ax(xt)nn!f(n+1)(t) ⁣dt=[(xt)n+1(n+1)!f(n+1)(t)]ax+ax(xt)n+1(n+1)!f(n+2)(t) ⁣dt,\int_a^x \frac{(x-t)^n}{n!} f^{(n+1)}(t)\,\dd t = \Bigl[-\frac{(x-t)^{n+1}}{(n+1)!} f^{(n+1)}(t)\Bigr]_a^x + \int_a^x \frac{(x-t)^{n+1}}{(n+1)!} f^{(n+2)}(t)\,\dd t ,

the bracket contributing the term f(n+1)(a)(n+1)!(xa)n+1\frac{f^{(n+1)}(a)}{(n+1)!}(x - a)^{n+1}.

Example 16.6 (An exact expansion with its remainder)

For ln(1+x)\ln(1 + x) the integral remainder can be made completely explicit without differentiating anything nn times: integrate the finite geometric identity 11+t=k=0n1(t)k+(t)n1+t\frac{1}{1+t} = \sum_{k=0}^{n-1}(-t)^k + \frac{(-t)^n}{1+t} from 00 to xx:

ln(1+x)=k=1n(1)k1xkk+(1)n0xtn1+t ⁣dt,\ln(1 + x) = \sum_{k=1}^{n} \frac{(-1)^{k-1}x^k}{k} + (-1)^n \int_0^x \frac{t^n}{1 + t}\,\dd t ,

and for 0x10 \leq x \leq 1 the remainder is bounded by 0xtn ⁣dt=xn+1n+1\int_0^x t^n\,\dd t = \frac{x^{n+1}}{n+1}. This is stronger than Taylor–Young in two ways: it is an identity valid for a fixed xx (not only x0x \to 0), and the error bound is numerical. The weekend problem (Problem 16.1) lives on such exact forms; Taylor–Young below is the lighter tool for limits, where only the shape of the error matters.

Theorem 16.7 (Taylor–Lagrange inequality)

Let ff be Cn+1C^{n+1} with f(n+1)M\abs{f^{(n+1)}} \leq M between aa and xx. Then

f(x)k=0nf(k)(a)k!(xa)kMxan+1(n+1)!.\Bigl| f(x) - \sum_{k=0}^{n} \frac{f^{(k)}(a)}{k!}(x-a)^k \Bigr| \leq M\, \frac{\abs{x - a}^{n+1}}{(n+1)!} .

Proof. Bound the integral remainder: ax(xt)nn!f(n+1)(t) ⁣dtMaxxtnn! ⁣dt=Mxan+1(n+1)!\bigl|\int_a^x \frac{(x-t)^n}{n!} f^{(n+1)}(t)\,\dd t\bigr| \leq M \bigl|\int_a^x \frac{\abs{x-t}^n}{n!}\dd t\bigr| = M\frac{\abs{x-a}^{n+1}}{(n+1)!}.

Example 16.8 (Certified numerics)

What is 1.02\sqrt{1.02}? Apply Taylor–Lagrange to f(t)=1+tf(t) = \sqrt{1 + t} at a=0a = 0, order 22, x=0.02x = 0.02:

1.021+0.0220.0228=1.00995,f(t)=38(1+t)5/238,\sqrt{1.02} \approx 1 + \frac{0.02}{2} - \frac{0.02^2}{8} = 1.00995 , \qquad \abs{f'''(t)} = \frac{3}{8}(1+t)^{-5/2} \leq \frac 38 ,

so the error is at most 380.0236=5107\frac38 \cdot \frac{0.02^3}{6} = 5\cdot10^{-7}: 1.02=1.00995\sqrt{1.02} = 1.00995 with six certified decimals (true value 1.00995049381.0099504938\dots — the bound is nearly sharp). The closing insight: Taylor–Young says only how fast the error vanishes; Taylor–Lagrange converts the same polynomial into a certificate, a number plus a proven error bar. Whenever a decimal claim is made in this book, a Lagrange-type bound is standing behind it; the weekend problem (Problem 16.1) industrializes the idea.

Theorem 16.9 (Taylor–Young)

Let ff be nn times differentiable at aa. Then, as xax \to a:

f(x)=k=0nf(k)(a)k!(xa)k+o((xa)n).f(x) = \sum_{k=0}^{n} \frac{f^{(k)}(a)}{k!}\,(x-a)^k + o\bigl((x-a)^n\bigr) .

Proof. Induction on nn. For n=1n = 1 this is the definition of the derivative (Definition 14.1). Assume the statement at order n1n - 1, and let ff be nn times differentiable at aa. Apply the induction hypothesis to ff' (which is n1n-1 times differentiable at aa):

f(t)=k=0n1f(k+1)(a)k!(ta)k+r(t),r(t)=o((ta)n1).f'(t) = \sum_{k=0}^{n-1} \frac{f^{(k+1)}(a)}{k!}(t-a)^k + r(t), \qquad r(t) = o\bigl((t-a)^{n-1}\bigr).

Let g(x)=f(x)k=0nf(k)(a)k!(xa)kg(x) = f(x) - \sum_{k=0}^{n} \frac{f^{(k)}(a)}{k!}(x-a)^k; then g=rg' = r and g(a)=0g(a) = 0. Given ε>0\varepsilon > 0, choose δ\delta with r(t)εtan1\abs{r(t)} \leq \varepsilon\abs{t - a}^{n-1} for taδ\abs{t-a} \leq \delta; the mean value inequality (Theorem 14.9) applied on the segment from aa to xx (where gεxan1\abs{g'} \leq \varepsilon\abs{x-a}^{n-1}) yields g(x)εxan\abs{g(x)} \leq \varepsilon\abs{x - a}^n: exactly g(x)=o((xa)n)g(x) = o((x-a)^n).

Remark 16.10 (Three formulas, three prices, three products)

The hypotheses grade exactly with the conclusions. Taylor–Young asks the least (nn derivatives at the point only) and yields the least: a qualitative o((xa)n)o((x-a)^n), perfect for limits, useless for certified digits. The Lagrange inequality asks for Cn+1C^{n+1} on the interval and a bound MM there, and returns a numerical error bar. The integral form asks the same regularity and returns the most: the error as an explicit object one can transform (integrate by parts, bound piecewise, change variables) — it is the form that powered the irrationality machine of Problem 15.1. Choosing the weakest formula that supports the goal is not pedantry: the flat function of Problem 16.1 satisfies Taylor–Young at every order while every stronger conclusion about it is false away from 00.

Proposition 16.11 (Standard expansions at 00)

As x0x \to 0, for every fixed order nn:

ex=1+x+x22!++xnn!+o(xn),cosx=1x22!+x44!+(1)px2p(2p)!+o(x2p+1),sinx=xx33!++(1)px2p+1(2p+1)!+o(x2p+2),11x=1+x+x2++xn+o(xn),ln(1+x)=xx22+x33+(1)n1xnn+o(xn),(1+x)α=1+αx+α(α1)2!x2++(αn)xn+o(xn),\begin{align*} \eu^x &= 1 + x + \frac{x^2}{2!} + \dots + \frac{x^n}{n!} + o(x^n),\\ \cos x &= 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \dots + \frac{(-1)^p x^{2p}}{(2p)!} + o(x^{2p+1}),\\ \sin x &= x - \frac{x^3}{3!} + \dots + \frac{(-1)^p x^{2p+1}}{(2p+1)!} + o(x^{2p+2}),\\ \frac{1}{1 - x} &= 1 + x + x^2 + \dots + x^n + o(x^n),\\ \ln(1 + x) &= x - \frac{x^2}{2} + \frac{x^3}{3} - \dots + \frac{(-1)^{n-1} x^n}{n} + o(x^n),\\ (1 + x)^\alpha &= 1 + \alpha x + \frac{\alpha(\alpha-1)}{2!}x^2 + \dots + \binom{\alpha}{n} x^n + o(x^n), \end{align*}

where (αn)=α(α1)(αn+1)n!\binom{\alpha}{n} = \frac{\alpha(\alpha - 1)\cdots(\alpha - n + 1)}{n!} for real α\alpha. (cosh\cosh and sinh\sinh: same as cos\cos, sin\sin without the alternating signs.)

Proof. Each function is smooth near 00 with derivatives easy to evaluate: (ex)(k)=ex(\eu^x)^{(k)} = \eu^x; the derivatives of sin\sin and cos\cos cycle with period 44; ((1+x)α)(k)=α(α1)(αk+1)(1+x)αk\bigl((1+x)^\alpha\bigr)^{(k)} = \alpha(\alpha - 1)\cdots(\alpha - k + 1)(1+x)^{\alpha - k}; (ln(1+x))(k)=(1)k1(k1)!(1+x)k\bigl(\ln(1+x)\bigr)^{(k)} = \frac{(-1)^{k-1}(k-1)!}{(1+x)^k}. Apply Taylor–Young at a=0a = 0. (The geometric one is exact: 11x0nxk=xn+11x=o(xn)\frac{1}{1-x} - \sum_0^n x^k = \frac{x^{n+1}}{1 - x} = o(x^n).)

Method 16.12 (Computing with expansions)

  1. Fix the target order nn first, and truncate every intermediate result there — carrying higher terms is wasted work, dropping lower ones is an error.
  2. Sums, products: expand each factor to order nn and multiply, discarding beyond xnx^n.
  3. Composition f(u(x))f(u(x)) with u(x)0u(x) \to 0: substitute the expansion of uu into that of ff, order by order.
  4. Quotients: write 11+v\frac{1}{1 + v} with v0v \to 0 and use the geometric expansion.
  5. Integrate an expansion term by term (differentiating requires more care — justification: integral of o(tn)o(t^n) from 00 to xx is o(xn+1)o(x^{n+1}), by direct bounding).

Example 16.13 (Composition, with the bookkeeping shown)

Expand esinx\eu^{\sin x} to order 33. Inner expansion: u=sinx=xx36+o(x3)u = \sin x = x - \frac{x^3}{6} + o(x^3), which indeed tends to 00. Outer: eu=1+u+u22+u36+o(u3)\eu^u = 1 + u + \frac{u^2}{2} + \frac{u^3}{6} + o(u^3), and o(u3)=o(x3)o(u^3) = o(x^3) since uxu \sim x. Powers of uu, truncated at x3x^3:

u2=x2+o(x3),u3=x3+o(x3)u^2 = x^2 + o(x^3), \qquad u^3 = x^3 + o(x^3)

(the cross term 2x(x36)2x\cdot(-\frac{x^3}{6}) is already x4x^4). Assemble:

esinx=1+(xx36)+x22+x36+o(x3)=1+x+x22+o(x3):\eu^{\sin x} = 1 + \Bigl(x - \frac{x^3}{6}\Bigr) + \frac{x^2}{2} + \frac{x^3}{6} + o(x^3) = 1 + x + \frac{x^2}{2} + o(x^3) :

the two x3x^3 contributions cancel exactly. The closing insight: esinx\eu^{\sin x} and ex\eu^x agree to order 33 — not because sinxx\sin x \approx x crudely, but because the first disagreement of the exponents (x36-\frac{x^3}{6}) enters multiplied by e0=1\eu^0 = 1 and is then met by the cubic term of the outer exponential; order-by-order bookkeeping detects such conspiracies, eyeballing never does. (The next term is x48-\frac{x^4}{8}: the truce ends at order 44.)

Example 16.14

Expansion of tan\tan at order 55. Write tanx=sinx1cosx\tan x = \sin x \cdot \frac{1}{\cos x}:

1cosx=11(x22x424+o(x5))=1+(x22x424)+(x22) ⁣2+o(x5)=1+x22+5x424+o(x5),\frac{1}{\cos x} = \frac{1}{1 - \bigl(\frac{x^2}{2} - \frac{x^4}{24} + o(x^5)\bigr)} = 1 + \Bigl(\frac{x^2}{2} - \frac{x^4}{24}\Bigr) + \Bigl(\frac{x^2}{2}\Bigr)^{\!2} + o(x^5) = 1 + \frac{x^2}{2} + \frac{5x^4}{24} + o(x^5),

then

tanx=(xx36+x5120)(1+x22+5x424)+o(x5)=x+x33+2x515+o(x5).\tan x = \Bigl(x - \frac{x^3}{6} + \frac{x^5}{120}\Bigr) \Bigl(1 + \frac{x^2}{2} + \frac{5x^4}{24}\Bigr) + o(x^5) = x + \frac{x^3}{3} + \frac{2x^5}{15} + o(x^5) .
The sine (dark) against its Taylor polynomials at 0: T_1 = x, T_3 = x - x3/6 (dashed), T_5 = x - x3/6 + x5/120 (dotted). Each new pair of terms hugs the curve over a visibly wider window, but every polynomial eventually tears away: a Taylor expansion is a local contract, sharpened at 0 and silent far away. The Taylor–Lagrange bound |x|n+1(n+1)! quantifies the window; the flat function of  shows the contract can even be empty beyond the point itself.
The sine (dark) against its Taylor polynomials at 00: T1=xT_1 = x, T3=xx36T_3 = x - \frac{x^3}{6} (dashed), T5=xx36+x5120T_5 = x - \frac{x^3}{6} + \frac{x^5}{120} (dotted). Each new pair of terms hugs the curve over a visibly wider window, but every polynomial eventually tears away: a Taylor expansion is a local contract, sharpened at 00 and silent far away. The Taylor–Lagrange bound xn+1(n+1)!\frac{\abs{x}^{n+1}}{(n+1)!} quantifies the window; the flat function of Problem 16.1 shows the contract can even be empty beyond the point itself.

16.3 Applications

Example 16.15 (Limits)

limx0xsinxx3:xsinx=x36+o(x3)x36,so the limit is 16\lim_{x \to 0} \frac{x - \sin x}{x^3}: \qquad x - \sin x = \frac{x^3}{6} + o(x^3) \sim \frac{x^3}{6}, \qquad\text{so the limit is } \frac16

— settling the question raised in Exercise 4.9. Likewise limx0(sinxx)1/x2\displaystyle\lim_{x\to0}\Bigl(\frac{\sin x}{x}\Bigr)^{1/x^2}: the logarithm is

1x2ln(1x26+o(x2))=1x2(x26+o(x2))16,limit e1/6.\frac{1}{x^2}\ln\Bigl(1 - \frac{x^2}{6} + o(x^2)\Bigr) = \frac{1}{x^2}\Bigl(-\frac{x^2}{6} + o(x^2)\Bigr) \longrightarrow -\frac16, \qquad\text{limit } \eu^{-1/6}.

Remark 16.16 (Common pitfalls with expansions)

(i) Never add or subtract equivalents: from tanxx\tan x \sim x and sinxx\sin x \sim x one may not conclude tanxsinx0\tan x - \sin x \sim 0 (meaningless) — the honest route is expansions:

tanxsinx=(x+x33)(xx36)+o(x3)=x32+o(x3)x32.\tan x - \sin x = \Bigl(x + \frac{x^3}{3}\Bigr) - \Bigl(x - \frac{x^3}{6}\Bigr) + o(x^3) = \frac{x^3}{2} + o(x^3) \sim \frac{x^3}{2} .

(ii) Expand past the massacre: in the same computation, order 11 sees only xx=0x - x = 0; whenever leading terms cancel, raise the order until a nonzero coefficient survives, and only then convert back to an equivalent. (iii) Equivalents do not pass through exponentials: n2+nn2n^2 + n \sim n^2, yet en2+n=enen2\eu^{n^2+n} = \eu^{n}\,\eu^{n^2} is not equivalent to en2\eu^{n^2} — exponentiate only expansions of the exponent whose error tends to 00, never equivalents of the exponent. (Logarithms are safer: if unvn1u_n \sim v_n \to \ell \neq 1, >0\ell > 0, then lnunlnvn\ln u_n \sim \ln v_n.) (iv) The o()o(\cdot) calculus is one-directional: o(x2)+o(x2)=o(x2)o(x^2) + o(x^2) = o(x^2), 5o(x2)=o(x2)5\,o(x^2) = o(x^2), xo(x2)=o(x3)x\cdot o(x^2) = o(x^3) — but an o(x2)o(x^2) is not a specific function, so never cancel two of them against each other: o(x2)o(x2)o(x^2) - o(x^2) is o(x2)o(x^2), not 00.

Proposition 16.17 (Local behavior)

Suppose f(x)=f(a)+c(xa)p+o((xa)p)f(x) = f(a) + c\,(x - a)^p + o\bigl((x-a)^p\bigr) with c0c \neq 0 (first nonzero term after the constant; p2p \geq 2 at a critical point).

  • If pp is even: ff has a local minimum at aa if c>0c > 0, a local maximum if c<0c < 0.
  • If pp is odd: no extremum (ff(a)f - f(a) changes sign); if moreover the expansion starts after a linear term f(a)(xa)f'(a)(x - a), the graph crosses its tangent: an inflection.

Proof. Near aa, f(x)f(a)=(xa)p(c+o(1))f(x) - f(a) = (x-a)^p\bigl(c + o(1)\bigr) has the sign of c(xa)pc\,(x-a)^p: constant sign for pp even, changing for pp odd.

Example 16.18 (Exponents must be expanded to o(1)o(1))

Find an equivalent of un=(1+1n)n2u_n = \bigl(1 + \frac1n\bigr)^{n^2}. Expand the exponent until its error tends to 00:

n2ln(1+1n)=n2(1n12n2+O(1n3))=n12+O(1n),n^2 \ln\Bigl(1 + \frac1n\Bigr) = n^2\Bigl(\frac1n - \frac{1}{2n^2} + O\Bigl(\frac{1}{n^3}\Bigr)\Bigr) = n - \frac12 + O\Bigl(\frac1n\Bigr),

so un=en1/2eO(1/n)u_n = \eu^{\,n - 1/2}\,\eu^{O(1/n)} with eO(1/n)1\eu^{O(1/n)} \to 1:

un    en12.u_n \;\sim\; \eu^{\,n - \frac12} .

Note what would have gone wrong with less care: stopping the exponent at n21n=n+O(1)n^2\cdot\frac1n = n + O(1) leaves an eO(1)\eu^{O(1)} factor — bounded but not tending to 11 — and no equivalent can be asserted. The rule of the pitfalls above, in positive form: an equivalent of ean\eu^{a_n} requires the expansion of ana_n up to a term tending to zero, every coefficient before that being kept exactly.

Example 16.19 (Classifying a flat critical point)

Study f(x)=cosx+x22f(x) = \cos x + \frac{x^2}{2} near 00. Both f(0)=0f'(0) = 0 and f(0)=cos0+1=0f''(0) = -\cos 0 + 1 = 0: the second-derivative test is mute. Expand instead:

f(x)=(1x22+x424+o(x4))+x22=1+x424+o(x4):f(x) = \Bigl(1 - \frac{x^2}{2} + \frac{x^4}{24} + o(x^4)\Bigr) + \frac{x^2}{2} = 1 + \frac{x^4}{24} + o(x^4) :

first nonzero term cxpc\,x^p with p=4p = 4 even and c=124>0c = \frac{1}{24} > 0: a local minimum, of unusual flatness (the graph leaves its minimum value like x4x^4, not x2x^2). The closing insight: the expansion sees in one line what iterated differentiation obscures — and Proposition 16.17 is the systematic dictionary from “first surviving term” to “local shape”.

Example 16.20 (Expansions at infinity)

Two computations where the variable runs to ++\infty and the substitution h=1x0+h = \frac1x \to 0^+ imports the whole toolbox. First,

xx2ln(1+1x)=xx2(1x12x2+O(1x3))=12+O(1x)12.x - x^2\ln\Bigl(1 + \frac1x\Bigr) = x - x^2\Bigl(\frac1x - \frac{1}{2x^2} + O\Bigl(\frac{1}{x^3}\Bigr)\Bigr) = \frac12 + O\Bigl(\frac1x\Bigr) \longrightarrow \frac12 .

Second, the arctangent at infinity: from arctanx+arctan1x=π2\arctan x + \arctan\frac1x = \frac\pi2 for x>0x > 0 (Proposition 4.12) and the expansion of arctan\arctan at 00 (Exercise 16.3),

arctanx=π2arctan1x=π21x+13x3+o(1x3):\arctan x = \frac\pi2 - \arctan\frac1x = \frac\pi2 - \frac1x + \frac{1}{3x^3} + o\Bigl(\frac{1}{x^3}\Bigr) :

the graph approaches its asymptote y=π2y = \frac\pi2 from below at speed 1x\frac1x. The closing insight: there is no separate theory of expansions at infinity — one reciprocal substitution reduces them to expansions at 00, provided every intermediate OO and oo is carried along honestly.

Example 16.21 (Asymptote by expansion)

As x+x \to +\infty,

x2+x=x1+1x=x(1+12x18x2+o(1x2))=x+1218x+o(1x):\sqrt{x^2 + x} = x\sqrt{1 + \tfrac1x} = x\Bigl(1 + \frac{1}{2x} - \frac{1}{8x^2} + o\bigl(\tfrac{1}{x^2}\bigr)\Bigr) = x + \frac12 - \frac{1}{8x} + o\bigl(\tfrac 1x\bigr):

the line y=x+12y = x + \frac12 is an asymptote, approached from below (the next term 18x-\frac{1}{8x} is negative).

Remark 16.22 (Where expansions work next)

Asymptotic expansions are the standing language of the rest of the book: in Chapter 17 they decide convergence (equivalents feed the comparison tests, and the study of 1nα\sum \frac{1}{n^\alpha} is an expansion in disguise); in the Year 2 volume they become power series, where the Taylor polynomial acquires infinitely many terms and a radius of convergence; and every linearization in physics — the pendulum, first-order perturbation — is a Taylor–Young statement with the o()o(\cdot) silently dropped. The one warning worth engraving: an expansion describes a function only near one point — see the flat function of the weekend problem, whose expansion at 00 is identically zero without the function being so.

Remark 16.23 (Perspectives inside this volume)

Expansions are the working language of the remaining analysis and of the geometry to come. Chapter 17 converts them into convergence verdicts: an equivalent of the general term is an expansion truncated at its first term, and the finer tests (alternating with error control) consume the second term too. Chapter 24 reads local geometry from expansions of the two coordinate functions: whether a parametrized curve crosses, kisses, or cusps at a point is decided by which powers of tt survive in x(t)x(t) and y(t)y(t) — the plane version of Proposition 16.17. And Chapter 25 stops at order one on purpose: the tangent plane is a two-variable Taylor–Young statement, with the full second-order theory (Hessians, saddle points) deferred to the Year 2 volume. The common thread: every “local” question in this book is answered by writing down the first surviving term of an expansion.

16.4 Exercises

Exercise 16.1

Give the expansions at 00: e2x\eu^{2x} to order 33;   ln(1x)\;\ln(1 - x) to order 44;   1+x\;\sqrt{1 + x} to order 33;   11+x2\;\dfrac{1}{1 + x^2} to order 66.

Solution

Solution of Exercise 16.1.

e2x=1+2x+2x2+4x33+o(x3);ln(1x)=xx22x33x44+o(x4);\eu^{2x} = 1 + 2x + 2x^2 + \frac{4x^3}{3} + o(x^3); \qquad \ln(1 - x) = -x - \frac{x^2}{2} - \frac{x^3}{3} - \frac{x^4}{4} + o(x^4);
1+x=1+x2x28+x316+o(x3);11+x2=1x2+x4x6+o(x6),\sqrt{1+x} = 1 + \frac x2 - \frac{x^2}{8} + \frac{x^3}{16} + o(x^3); \qquad \frac{1}{1 + x^2} = 1 - x^2 + x^4 - x^6 + o(x^6),

the last by substituting x2-x^2 into the geometric expansion.

Exercise 16.2

Compute the limits:

limx0ex1xx2,limx0cosx1x2x4,limx0ln(1+x)sinxx2.\lim_{x\to 0} \frac{\eu^x - 1 - x}{x^2}, \qquad \lim_{x\to 0} \frac{\cos x - \sqrt{1 - x^2}}{x^4}, \qquad \lim_{x\to 0} \frac{\ln(1+x) - \sin x}{x^2}.
Solution

Solution of Exercise 16.2.

ex1x=x22+o(x2)\eu^x - 1 - x = \frac{x^2}{2} + o(x^2): limit 12\dfrac12.

cosx=1x22+x424+o(x4)\cos x = 1 - \frac{x^2}{2} + \frac{x^4}{24} + o(x^4) and 1x2=1x22x48+o(x4)\sqrt{1 - x^2} = 1 - \frac{x^2}{2} - \frac{x^4}{8} + o(x^4): difference x424+x48=x46+o(x4)\frac{x^4}{24} + \frac{x^4}{8} = \frac{x^4}{6} + o(x^4): limit 16\dfrac16.

ln(1+x)sinx=(xx22)x+o(x2)=x22+o(x2)\ln(1+x) - \sin x = \bigl(x - \frac{x^2}{2}\bigr) - x + o(x^2) = -\frac{x^2}{2} + o(x^2): limit 12-\dfrac12.

Exercise 16.3

Expand arctanx\arctan x at 00 to order 55 by integrating the expansion of 11+x2\frac{1}{1 + x^2}, and arcsinx\arcsin x to order 55 by integrating that of (1x2)1/2(1 - x^2)^{-1/2}.

Solution

Solution of Exercise 16.3.

11+t2=1t2+t4+o(t5)\frac{1}{1+t^2} = 1 - t^2 + t^4 + o(t^5); integrating from 00 to xx (Method 16.12 (5)):

arctanx=xx33+x55+o(x5)  (even o(x6), by oddness).\arctan x = x - \frac{x^3}{3} + \frac{x^5}{5} + o(x^5)\ \ (\text{even }o(x^6)\text{, by oddness}).

(1t2)1/2=1+t22+38t4+o(t5)(1 - t^2)^{-1/2} = 1 + \frac{t^2}{2} + \frac38 t^4 + o(t^5) (binomial expansion with α=12\alpha = -\frac12, x=t2x = -t^2: (1/22)=(12)(32)2=38\binom{-1/2}{2} = \frac{(-\frac12)(-\frac32)}{2} = \frac38); integrating:

arcsinx=x+x36+3x540+o(x5).\arcsin x = x + \frac{x^3}{6} + \frac{3x^5}{40} + o(x^5) .

Exercise 16.4

Using Taylor–Lagrange for exp\exp on [0,1]\intcc{0}{1}, prove that

ek=0n1k!3(n+1)!,\Bigl| \eu - \sum_{k=0}^{n} \frac{1}{k!} \Bigr| \leq \frac{3}{(n+1)!},

and determine an nn guaranteeing 66 exact decimals of e\eu.

Solution

Solution of Exercise 16.4.

Taylor–Lagrange (Theorem 16.7) for exp\exp at a=0a = 0, x=1x = 1: the (n+1)(n+1)-st derivative is ete<3\eu^t \leq \eu < 3 on [0,1]\intcc{0}{1}, so

ek=0n1k!3(n+1)!.\Bigl|\eu - \sum_{k=0}^{n} \frac{1}{k!}\Bigr| \leq \frac{3}{(n+1)!} .

For 66 exact decimals, want 3(n+1)!<5×107\frac{3}{(n+1)!} < 5\times 10^{-7}, i.e. (n+1)!>6×106(n+1)! > 6\times 10^{6}: since 10!=362880010! = 3\,628\,800 and 11!=3991680011! = 39\,916\,800, n+1=11n + 1 = 11, i.e. n=10n = 10 suffices.

Exercise 16.5 ★★

Expand to order 22 in 1n\frac1n and deduce the limit and the speed of convergence:

(1+1n) ⁣n=e(112n+1124n2+o(1n2)).\Bigl(1 + \frac 1n\Bigr)^{\!n} = \eu\Bigl(1 - \frac{1}{2n} + \frac{11}{24n^2} + o\Bigl(\frac{1}{n^2}\Bigr)\Bigr).
Solution

Solution of Exercise 16.5.

nln(1+1n)=n(1n12n2+13n3+o(1n3))=112n+13n2+o(1n2)n\ln\bigl(1 + \frac1n\bigr) = n\Bigl(\frac1n - \frac{1}{2n^2} + \frac{1}{3n^3} + o\bigl(\frac{1}{n^3}\bigr)\Bigr) = 1 - \frac{1}{2n} + \frac{1}{3n^2} + o\bigl(\frac{1}{n^2}\bigr). Exponentiating, with u=12n+13n2u = -\frac{1}{2n} + \frac{1}{3n^2} and eu=1+u+u22+o(u2)\eu^u = 1 + u + \frac{u^2}2 + o(u^2):

(1+1n)n=eeu=e(112n+13n2+18n2+o(1n2))=e(112n+1124n2+o(1n2)).\Bigl(1 + \frac1n\Bigr)^n = \eu\cdot \eu^{u} = \eu\Bigl(1 - \frac{1}{2n} + \frac{1}{3n^2} + \frac{1}{8n^2} + o\Bigl(\frac{1}{n^2}\Bigr)\Bigr) = \eu\Bigl(1 - \frac{1}{2n} + \frac{11}{24n^2} + o\Bigl(\frac{1}{n^2}\Bigr)\Bigr).

Limit e\eu; the error is e2n\sim \dfrac{\eu}{2n}: slow (one digit per tenfold increase of nn).

Exercise 16.6 ★★

Study the local behavior at 00 of f(x)=x2x4f(x) = x^2 - x^4 and of g(x)=x3+x5g(x) = x^3 + x^5; and find the position of the graph of h(x)=exh(x) = \eu^x relative to its tangent at a=1a = 1, locally then globally.

Solution

Solution of Exercise 16.6.

f(x)=x2x4=x2(1+o(1))f(x) = x^2 - x^4 = x^2(1 + o(1)): first term x2x^2, p=2p = 2 even, coefficient >0> 0: local minimum at 00 (not global: f(2)=12f(2) = -12).

g(x)=x3+x5g(x) = x^3 + x^5: first term x3x^3, odd pp: no extremum; gg crosses its (horizontal) tangent: inflection at 00.

h=exph = \exp at a=1a = 1: h(x)=e+e(x1)+e2(x1)2+o((x1)2)h(x) = \eu + \eu(x-1) + \frac{\eu}{2}(x-1)^2 + o((x-1)^2); the difference with the tangent is e2(x1)2+o()>0\frac{\eu}{2}(x-1)^2 + o(\cdot) > 0 locally. Globally: exex0\eu^x - \eu x \geq 0 for all xx by convexity (Theorem 14.19 (3)): the graph lies above every tangent, with equality only at the contact point.

Exercise 16.7 ★★

Determine the asymptotes at ±\pm\infty of f(x)=x3+x23f(x) = \sqrt[3]{x^3 + x^2} and the position of the curve relative to them.

Solution

Solution of Exercise 16.7.

For x+x \to +\infty:

f(x)=x(1+1x)1/3=x(1+13x19x2+o(1x2))=x+1319x+o(1x):f(x) = x\Bigl(1 + \frac1x\Bigr)^{1/3} = x\Bigl(1 + \frac{1}{3x} - \frac{1}{9x^2} + o\Bigl(\frac{1}{x^2}\Bigr)\Bigr) = x + \frac13 - \frac{1}{9x} + o\Bigl(\frac1x\Bigr):

asymptote y=x+13y = x + \frac13, curve below it near ++\infty. As xx \to -\infty, the same computation is valid (the cube root is defined for all reals, and 1x0\frac1x \to 0): same asymptote y=x+13y = x + \frac13, but now 19x>0-\frac{1}{9x} > 0: curve above the line.

Exercise 16.8 ★★

Find the equivalent, as nn \to \infty, of

un=n+1n,vn=ln(n+1)lnn,wn=sin1ntan1n,u_n = \sqrt{n+1} - \sqrt n, \qquad v_n = \ln(n+1) - \ln n, \qquad w_n = \sin\frac{1}{n} - \tan\frac{1}{n},

each as a power of nn times a constant.

Solution

Solution of Exercise 16.8.

un=n(1+1n1)=n(12n+o(1n))12nu_n = \sqrt n\bigl(\sqrt{1 + \tfrac1n} - 1\bigr) = \sqrt n\bigl(\frac{1}{2n} + o(\frac1n)\bigr) \sim \dfrac{1}{2\sqrt n}.

vn=ln(1+1n)1nv_n = \ln\bigl(1 + \frac1n\bigr) \sim \dfrac 1n.

wnw_n: with h=1n0h = \frac1n \to 0, sinhtanh=(hh36)(h+h33)+o(h3)=h32+o(h3)\sin h - \tan h = \bigl(h - \frac{h^3}{6}\bigr) - \bigl(h + \frac{h^3}{3}\bigr) + o(h^3) = -\frac{h^3}{2} + o(h^3), so wn12n3w_n \sim -\dfrac{1}{2n^3}.

Exercise 16.9 ★★★

Let ff be C2C^2 on R\R. Prove that for every xx and h>0h > 0:

f(x)f(x+h)f(xh)2h+h2sup[xh,x+h]f,\abs{f'(x)} \leq \frac{\abs{f(x+h) - f(x-h)}}{2h} + \frac{h}{2}\sup_{\intcc{x-h}{x+h}}\abs{f''} ,

and deduce the Landau–Kolmogorov-type inequality: if fM0\abs f \leq M_0 and fM2\abs{f''} \leq M_2 on R\R, then f2M0M2\abs{f'} \leq \sqrt{2 M_0 M_2} everywhere. (Optimize over hh.)

Solution

Solution of Exercise 16.9.

Taylor–Lagrange at order 11 around xx, on both sides:

f(x+h)=f(x)+hf(x)+R+,f(xh)=f(x)hf(x)+R,R±h22supf.f(x + h) = f(x) + h f'(x) + R_+,\quad f(x - h) = f(x) - h f'(x) + R_-, \qquad \abs{R_\pm} \leq \frac{h^2}{2} \sup \abs{f''} .

Subtracting: f(x+h)f(xh)=2hf(x)+(R+R)f(x+h) - f(x-h) = 2h f'(x) + (R_+ - R_-), so

f(x)f(x+h)f(xh)2h+h2sup[xh,x+h]f.\abs{f'(x)} \leq \frac{\abs{f(x+h) - f(x-h)}}{2h} + \frac{h}{2}\sup_{\intcc{x-h}{x+h}}\abs{f''} .

With global bounds: f(x)M0h+M2h2\abs{f'(x)} \leq \frac{M_0}{h} + \frac{M_2 h}{2} for every h>0h > 0. The right side is minimized at h=2M0/M2h = \sqrt{2M_0/M_2} (derivative zero), with value 2M0M2\sqrt{2M_0M_2} — hence f2M0M2\abs{f'} \leq \sqrt{2M_0M_2}. (If M2=0M_2 = 0, let hh \to \infty: f=0f' = 0, consistent.)

Exercise 16.10 ★★★

The sequence u0(0,π)u_0 \in \intoo{0}{\pi}, un+1=sinunu_{n+1} = \sin u_n decreases to 00 (justify briefly). To find its speed, consider vn=1un2v_n = \frac{1}{u_n^2}:

  1. using the expansion of sin\sin, prove vn+1vn13v_{n+1} - v_n \to \frac13;
  2. with Cesàro (Exercise 11.10), deduce vnn13\frac{v_n}{n} \to \frac13, then the equivalent un3nu_n \sim \sqrt{\dfrac{3}{n}}.
Solution

Solution of Exercise 16.10.

On (0,π)\intoo{0}{\pi}: 0<sinu<u0 < \sin u < u, so (un)(u_n) is strictly decreasing, positive, hence convergent; the limit is a fixed point of sin\sin in [0,π]\intcc{0}{\pi}, and sin=\sin \ell = \ell forces =0\ell = 0 (since sinx<x\sin x < x for x>0x > 0).

  1. Using sinu=uu36+o(u3)\sin u = u - \frac{u^3}{6} + o(u^3) as u0u \to 0:

    vn+1vn=1sin2un1un2=1un2((1un26+o(un2)) ⁣21)=1un2(un23+o(un2))13.v_{n+1} - v_n = \frac{1}{\sin^2 u_n} - \frac{1}{u_n^2} = \frac{1}{u_n^2}\Bigl(\Bigl(1 - \frac{u_n^2}{6} + o(u_n^2)\Bigr)^{\!-2} - 1\Bigr) = \frac{1}{u_n^2}\Bigl(\frac{u_n^2}{3} + o(u_n^2)\Bigr) \longrightarrow \frac13 .
  2. By Exercise 11.10 (3) (Cesàro for differences), vnn13\frac{v_n}{n} \to \frac13, i.e. vnn3v_n \sim \frac n3, i.e. un23nu_n^2 \sim \frac 3n: since un>0u_n > 0,

    un3n.u_n \sim \sqrt{\frac{3}{n}} .

Exercise 16.11 ★★

(Differences of infinities) Compute

limx0(1x21sin2x)andlimx0+(1x1ln(1+x))\lim_{x \to 0} \Bigl(\frac{1}{x^2} - \frac{1}{\sin^2 x}\Bigr) \qquad\text{and}\qquad \lim_{x \to 0^+} \Bigl(\frac 1x - \frac{1}{\ln(1 + x)}\Bigr)

by reducing to a common denominator and expanding numerator and denominator separately.

Solution

Solution of Exercise 16.11.

Common denominators. First limit:

1x21sin2x=sin2xx2x2sin2x,sin2x=(xx36+o(x4)) ⁣2=x2x43+o(x5),\frac{1}{x^2} - \frac{1}{\sin^2 x} = \frac{\sin^2 x - x^2}{x^2\sin^2 x}, \qquad \sin^2 x = \Bigl(x - \frac{x^3}{6} + o(x^4)\Bigr)^{\!2} = x^2 - \frac{x^4}{3} + o(x^5) ,

so the numerator is x43+o(x4)-\frac{x^4}{3} + o(x^4) while the denominator is x4\sim x^4: the limit is 13-\dfrac13.

Second: 1x1ln(1+x)=ln(1+x)xxln(1+x)\dfrac1x - \dfrac{1}{\ln(1+x)} = \dfrac{\ln(1+x) - x}{x\ln(1+x)}; the numerator is x22+o(x2)-\frac{x^2}{2} + o(x^2), the denominator x(x+o(x))x2x\bigl(x + o(x)\bigr) \sim x^2: the limit is 12-\dfrac12.

Exercise 16.12 ★★★

(Asymptotics of implicit roots) Show that for every kNk \in \N^* the equation tanx=x\tan x = x has exactly one solution xkx_k in (kππ2,kπ+π2)\intoo{k\pi - \frac\pi2}{k\pi + \frac\pi2}, that xk=kπ+π2εkx_k = k\pi + \frac\pi2 - \varepsilon_k with εk=arctan1xk\varepsilon_k = \arctan\frac{1}{x_k}, and deduce the expansion

xk=kπ+π21kπ+o(1k)(k).x_k = k\pi + \frac\pi2 - \frac{1}{k\pi} + o\Bigl(\frac 1k\Bigr) \qquad (k \to \infty).
Solution

Solution of Exercise 16.12.

On Ik=(kππ2,kπ+π2)I_k = \intoo{k\pi - \frac\pi2}{k\pi + \frac\pi2}, the function g(x)=tanxxg(x) = \tan x - x has derivative tan2x0\tan^2 x \geq 0, vanishing only at the single point kπk\pi: gg is strictly increasing on IkI_k (Corollary 14.12 (2)), with limits -\infty and ++\infty at the ends: exactly one zero xkx_k. For k1k \geq 1, g(kπ)=kπ<0g(k\pi) = -k\pi < 0, so xk(kπ,kπ+π2)x_k \in \intoo{k\pi}{k\pi + \frac\pi2}: write xk=kπ+π2εkx_k = k\pi + \frac\pi2 - \varepsilon_k with εk(0,π2)\varepsilon_k \in \intoo{0}{\frac\pi2}. Then

xk=tanxk=tan(π2εk)=1tanεkεk=arctan1xk,x_k = \tan x_k = \tan\Bigl(\frac\pi2 - \varepsilon_k\Bigr) = \frac{1}{\tan\varepsilon_k} \quad\Longrightarrow\quad \varepsilon_k = \arctan\frac{1}{x_k} ,

using tanεk=1xk\tan\varepsilon_k = \frac{1}{x_k} and εk(0,π2)\varepsilon_k \in \intoo{0}{\frac\pi2}. Since xkkπx_k \geq k\pi \to \infty: εk0\varepsilon_k \to 0, and

εk=arctan1xk=1xk+O(1xk3)=1kπ+O(1)+O(1k3)=1kπ+O(1k2),\varepsilon_k = \arctan\frac{1}{x_k} = \frac{1}{x_k} + O\Bigl(\frac{1}{x_k^3}\Bigr) = \frac{1}{k\pi + O(1)} + O\Bigl(\frac{1}{k^3}\Bigr) = \frac{1}{k\pi} + O\Bigl(\frac{1}{k^2}\Bigr) ,

whence xk=kπ+π21kπ+o(1k)x_k = k\pi + \frac\pi2 - \frac{1}{k\pi} + o\bigl(\frac1k\bigr).

16.5 Problem: Alternating sums, certified digits, and the irrationality of cos1\cos 1

Problem 16.1

Weekend problem — the alternating estimate SSnan+1\abs{S - S_n} \leq a_{n+1}: ln2\ln 2 and π\pi with proven decimals, Machin’s formula, and cos1Q\cos 1 \notin \Q

An alternating sum with decreasing terms is the friendliest object in numerical analysis: its error is bounded by the first omitted term, with known sign. This problem proves that principle with the adjacent-sequences theorem, then spends it three ways: certified decimals for ln2\ln 2 (three competing routes) and for π\pi (Leibniz, then Machin’s 1706 formula, still the idea behind record computations for centuries), the irrationality of cos1\cos 1, sin1\sin 1 and cosh1\cosh 1, and, as a counterweight, the Taylor–Lagrange equality and the flat function whose Taylor expansion lies. Throughout, “series” language is informal: every sum here is a sequence of partial sums, as in Example 11.12; the theory proper opens in Chapter 17.

Part I — The alternating estimate. Let (ak)k0(a_k)_{k \geq 0} decrease to 00 and Sn=k=0n(1)kakS_n = \sum_{k=0}^{n} (-1)^k a_k.

  1. Show that (S2n+1)(S_{2n+1}) is nondecreasing, (S2n)(S_{2n}) nonincreasing, and that they are adjacent (Theorem 11.11): both converge to a common SS with, for every nn,

    S2n+1SS2n,SSnan+1,S_{2n+1} \leq S \leq S_{2n}, \qquad \abs{S - S_n} \leq a_{n+1} ,

    the error having the sign of the first omitted term. Show moreover that if the decrease is strict, all these inequalities are strict.

  2. First dividend: for x=1x = 1 in the exponential series, compare with Theorem 16.7 at a=0a = 0: show that Tn=k=0n(1)kk!T_n = \sum_{k=0}^{n} \frac{(-1)^k}{k!} converges to e1\eu^{-1} with e1Tn<1(n+1)!\abs{\eu^{-1} - T_n} < \frac{1}{(n+1)!}.
  3. (Leibniz, 1674) From the exact finite identity

    11+t2=k=0n(1)kt2k+(1)n+1t2n+21+t2,\frac{1}{1 + t^2} = \sum_{k=0}^{n} (-1)^k t^{2k} + \frac{(-1)^{n+1} t^{2n+2}}{1 + t^2} ,

    integrated over [0,1]\intcc{0}{1}, prove

    π4=k=0n(1)k2k+1+ρn,ρn12n+3.\frac\pi4 = \sum_{k=0}^{n} \frac{(-1)^k}{2k+1} + \rho_n, \qquad \abs{\rho_n} \leq \frac{1}{2n+3} .
  4. Slowness: how many terms of Leibniz guarantee six exact decimals of π\pi? (About two million.) Evaluate 4S4=4(113+1517+19)4 S_4 = 4\bigl(1 - \frac13 + \frac15 - \frac17 + \frac19\bigr) and its distance to π\pi, to feel the pain.

Part II — ln2\ln 2 three ways.

  1. (Way 1: alternating harmonic) From 11+t=k=0n1(1)ktk+(1)ntn1+t\frac{1}{1+t} = \sum_{k=0}^{n-1}(-1)^k t^k + \frac{(-1)^n t^n}{1+t} integrated over [0,1]\intcc{0}{1}:

    ln2=k=1n(1)k1k+(1)nRn,12(n+1)Rn1n+1:\ln 2 = \sum_{k=1}^{n} \frac{(-1)^{k-1}}{k} + (-1)^n R_n, \qquad \frac{1}{2(n+1)} \leq R_n \leq \frac{1}{n+1} :

    the error is of exact order 1n\frac 1n — a million terms for six decimals.

  2. (Way 2: the fast series) Integrate 11t2=k=0nt2k+t2n+21t2\frac{1}{1 - t^2} = \sum_{k=0}^{n} t^{2k} + \frac{t^{2n+2}}{1-t^2} from 00 to x(0,1)x \in \intoo{0}{1} and evaluate at x=13x = \frac13 (note 1+1/311/3=2\frac{1 + 1/3}{1 - 1/3} = 2):

    ln2=2k=0n(1/3)2k+12k+1+ρ~n,0<ρ~n94(1/3)2n+32n+3:\ln 2 = 2\sum_{k=0}^{n} \frac{(1/3)^{2k+1}}{2k+1} + \tilde\rho_n, \qquad 0 < \tilde\rho_n \leq \frac{9}{4}\cdot \frac{(1/3)^{2n+3}}{2n+3} :

    geometric convergence, roughly one digit per term.

  3. (Way 3: Riemann sums and a hidden identity) Prove by induction the identity

    k=12n(1)k1k=H2nHn=k=1n1n+k,\sum_{k=1}^{2n} \frac{(-1)^{k-1}}{k} = H_{2n} - H_n = \sum_{k=1}^{n} \frac{1}{n + k} ,

    and recover ln2\ln 2 as the Riemann-sum limit of Example 15.21: Ways 1 and 3 are secretly the same number seen twice.

  4. Shootout at six terms: compare k=16(1)k1k=0.6167\sum_{k=1}^{6} \frac{(-1)^{k-1}}{k} = 0.6167 with Way 2 at n=5n = 5, which already gives ln2=0.693147\ln 2 = 0.693147 with error 1.1107\leq 1.1\cdot10^{-7}. Explain the structural reason (evaluation point deep inside the interval of convergence versus on its boundary).
  5. How many terms of Way 2 certify ten decimals of ln2\ln 2? Show n=10n = 10 suffices.

Part III — Machin’s formula.

  1. Compute (5+i)4(5 + \iu)^4 and verify the complex identity

    (5+i)4=2(1+i)(239+i).(5 + \iu)^4 = 2\,(1 + \iu)\,(239 + \iu) .

    Taking arguments (Chapter 3 conventions), deduce Machin’s formula

    π4=4arctan15arctan1239.\frac\pi4 = 4\arctan\frac15 - \arctan\frac{1}{239} .

    (Check that no argument leaves (π2,π2)\intoo{-\frac\pi2}{\frac\pi2}.)

  2. As in question 3, establish for 0<x<10 < x < 1:

    arctanx=k=0n(1)kx2k+12k+1+rn(x),rn(x)x2n+32n+3.\arctan x = \sum_{k=0}^{n} \frac{(-1)^k x^{2k+1}}{2k+1} + r_n(x), \qquad \abs{r_n(x)} \leq \frac{x^{2n+3}}{2n+3} .
  3. Certify π\pi to seven decimals with six terms: bound the total error of

    π16k=04(1)k(1/5)2k+12k+14(1239132393)\pi \approx 16\sum_{k=0}^{4} \frac{(-1)^k (1/5)^{2k+1}}{2k+1} - 4\Bigl(\frac{1}{239} - \frac{1}{3\cdot239^3}\Bigr)

    by 16(1/5)1111+4(1/239)55<510816\,\frac{(1/5)^{11}}{11} + 4\,\frac{(1/239)^5}{5} < 5\cdot10^{-8}, and give the resulting value 3.14159263.1415926\dots

  4. Compare the three routes to π\pi now available — Leibniz (question 4), the Dalzell integrals of Problem 15.1 (error 415m4^{1-5m}), Machin (error 165(2n+3)\approx 16\cdot 5^{-(2n+3)}) — in digits per term, and explain why shrinking the evaluation point beats everything.

Part IV — The integer trap, alternating edition.

  1. Suppose cos1=pq\cos 1 = \frac pq. Multiply the strict alternating bracketing of k(1)k(2k)!\sum_{k} \frac{(-1)^k}{(2k)!} (question 1) by (2n)!(2n)! with 2nq2n \geq q, and derive a contradiction: cos1\cos 1 is irrational.
  2. Adapt to sin1=k(1)k(2k+1)!\sin 1 = \sum_k \frac{(-1)^k}{(2k+1)!} (multiply by (2n+1)!(2n+1)!): sin1Q\sin 1 \notin \Q. Both irrational, yet cos21+sin21=1\cos^2 1 + \sin^2 1 = 1: irrationality is not stable under algebra.
  3. The non-alternating cousin: cosh1=k1(2k)!\cosh 1 = \sum_k \frac{1}{(2k)!} (in the partial-sum sense, with the two-sided tail bound 0<cosh1kn1(2k)!<2(2n+2)!0 < \cosh 1 - \sum_{k \leq n} \frac{1}{(2k)!} < \frac{2}{(2n+2)!}, to be proved). Conclude cosh1Q\cosh 1 \notin \Q by the same trap.
  4. Push to cos1m\cos\frac 1m for every integer m1m \geq 1: multiply by m2n(2n)!m^{2n}(2n)! and conclude cos1mQ\cos\frac1m \notin \Q. Where does the same attempt break for cosab\cos\frac ab with b>1b > 1 general? (Identify the denominator that no longer clears.)

Part V — Sharper and darker: the equality form, and a function that fools Taylor.

  1. (Taylor–Lagrange, equality form) Let ff be n+1n + 1 times differentiable between aa and xx. Define g(t)=f(x)k=0nf(k)(t)k!(xt)kA(xt)n+1(n+1)!g(t) = f(x) - \sum_{k=0}^{n} \frac{f^{(k)}(t)}{k!}(x - t)^k - A\,\frac{(x-t)^{n+1}}{(n+1)!} with the constant AA chosen so that g(a)=0g(a) = 0. Compute gg' (the sum telescopes), apply Rolle on [a,x]\intcc{a}{x}, and conclude that there exists cc strictly between aa and xx with

    f(x)=k=0nf(k)(a)k!(xa)k+f(n+1)(c)(n+1)!(xa)n+1.f(x) = \sum_{k=0}^{n} \frac{f^{(k)}(a)}{k!}(x-a)^k + \frac{f^{(n+1)}(c)}{(n+1)!}\,(x-a)^{n+1} .
  2. Dividend of the equality: for x>0x > 0 show

    ex>1+x+x22!++xnn!\eu^x > 1 + x + \frac{x^2}{2!} + \dots + \frac{x^n}{n!}

    (strictly, for every nn), and locate where the inequality reverses for x<0x < 0 according to the parity of nn.

  3. Benchmark the remainders on sin(0.5)\sin(0.5) at order 33: Young gives only o(x3)o(x^3) (no number); Lagrange gives sin0.5(0.50.536)0.55120=2.61104\abs{\sin 0.5 - (0.5 - \frac{0.5^3}{6})} \leq \frac{0.5^5}{120} = 2.61\cdot10^{-4}; the alternating estimate gives the same bound plus the sign information sin0.5>0.50.536\sin 0.5 > 0.5 - \frac{0.5^3}{6}. Compare with the true error 2.591042.59\cdot10^{-4}: the bound is nearly attained. Which tool would you reach for, and when?
  4. (The flat function) Let f(x)=e1/x2f(x) = \eu^{-1/x^2} for x0x \neq 0, f(0)=0f(0) = 0. Show ff is continuous at 00, that f(0)=0f'(0) = 0, and more generally — by proving that every derivative has the form f(k)(x)=Pk(1x)e1/x2f^{(k)}(x) = P_k\bigl(\frac1x\bigr)\eu^{-1/x^2} for a polynomial PkP_k (induction) — that f(k)(0)=0f^{(k)}(0) = 0 for all kk (growth comparison Proposition 4.6). Conclude: all Taylor polynomials of ff at 00 vanish, yet f(x)>0f(x) > 0 for x0x \neq 0: Taylor–Young holds at every order, and says nothing about ff away from 00. Expansions describe germs, not functions.

Part VI — Synthesis.

  1. Run the trap once more, on e1=k(1)kk!\eu^{-1} = \sum_k \frac{(-1)^k}{k!}: multiply the strict alternating bracketing by n!n! and conclude e1Q\eu^{-1} \notin \Q, hence eQ\eu \notin \Q — the third proof of this fact in the volume. List the three (adjacent sequences, Exercise 11.9; integrals, Problem 15.1; alternating sums, here) and what each needed.
  2. The fine print: monotonicity is not decorative. Let bk=1kb_k = \frac1k for odd kk and bk=1k2b_k = \frac{1}{k^2} for even kk: the bkb_k are positive and tend to 00, yet the partial sums of (1)kbk\sum (-1)^k b_k diverge to -\infty. Prove it (split the partial sum into the even part, bounded via Example 11.22, and the odd part, which dominates half the harmonic series, Exercise 11.5), and say exactly which step of question 1 used monotonicity.
  3. Verify Euler’s simpler identity arctan12+arctan13=π4\arctan\frac12 + \arctan\frac13 = \frac\pi4 via (2+i)(3+i)=5(1+i)(2 + \iu)(3 + \iu) = 5(1 + \iu), estimate the terms needed for six decimals of π\pi by this route (n=10n = 10 suffices), and place it between Leibniz and Machin in the ranking of question 13.
  4. Synthesis, one sentence each: (i) state the alternating estimate and its two outputs (bound and sign); (ii) why exact finite identities with explicit remainders beat limit statements for certified numerics; (iii) inventory of the problem (π\pi to 10710^{-7} by hand, ln2\ln 2 to ten decimals, four irrationality proofs, one equality theorem, one warning example); (iv) which of these threads Chapter 17 will pick up (the alternating series test, absolute versus conditional convergence, and the rearrangement drama of its weekend problem).
Solution

Solution of Problem 16.1.

1. S2n+1S2n1=a2na2n+10S_{2n+1} - S_{2n-1} = a_{2n} - a_{2n+1} \geq 0 and S2n+2S2n=a2n+2a2n+10S_{2n+2} - S_{2n} = a_{2n+2} - a_{2n+1} \leq 0, while S2nS2n+1=a2n+10S_{2n} - S_{2n+1} = a_{2n+1} \to 0: the sequences (S2n+1)(S_{2n+1}), (S2n)(S_{2n}) are adjacent, converging to a common SS (Theorem 11.11) with S2n+1SS2nS_{2n+1} \leq S \leq S_{2n}. For even nn: Sn+1SSnS_{n+1} \leq S \leq S_n gives an+1SSn0-a_{n+1} \leq S - S_n \leq 0; for odd nn: 0SSnan+10 \leq S - S_n \leq a_{n+1}. In both cases SSnan+1\abs{S - S_n} \leq a_{n+1} and SSnS - S_n has the sign of (1)n+1(-1)^{n+1}, the first omitted term. Strict decrease makes every displayed inequality strict, in particular 0<SSn<an+10 < \abs{S - S_n} < a_{n+1}.

2. ak=1k!a_k = \frac{1}{k!} decreases strictly to 00: question 1 applies. Taylor–Lagrange (Theorem 16.7) for exp\exp between 1-1 and 00: e1Tn1(n+1)!\abs{\eu^{-1} - T_n} \leq \frac{1}{(n+1)!} (the derivative et\eu^t is 1\leq 1 there), so Tne1T_n \to \eu^{-1}, and the limit SS of question 1 is e1\eu^{-1}, with the strict bounds 0<e1Tn<1(n+1)!0 < \abs{\eu^{-1} - T_n} < \frac{1}{(n+1)!}.

3. Integrating the identity over [0,1]\intcc{0}{1}: the left side is arctan1=π4\arctan 1 = \frac\pi4 (fundamental theorem), the kk-th term gives (1)k2k+1\frac{(-1)^k}{2k+1}, and

ρn=(1)n+101t2n+21+t2 ⁣dt,ρn01t2n+2 ⁣dt=12n+3.\rho_n = (-1)^{n+1}\int_0^1 \frac{t^{2n+2}}{1+t^2}\dd t, \qquad \abs{\rho_n} \leq \int_0^1 t^{2n+2}\dd t = \frac{1}{2n+3} .

4. The error on π\pi is 4ρn42n+34\abs{\rho_n} \leq \frac{4}{2n+3}: below 10610^{-6} requires 2n+3>41062n + 3 > 4\cdot10^6, about two million terms. Meanwhile 4S4=4(113+1517+19)=4×0.834921=3.3396834S_4 = 4\bigl(1 - \frac13 + \frac15 - \frac17 + \frac19\bigr) = 4 \times 0.834921 = 3.339683, almost 0.20.2 away from π\pi: five terms, not even one digit.

5. Integrating over [0,1]\intcc{0}{1}: ln2=k=1n(1)k1k+(1)nRn\ln 2 = \sum_{k=1}^{n} \frac{(-1)^{k-1}}{k} + (-1)^n R_n with Rn=01tn1+t ⁣dtR_n = \int_0^1 \frac{t^n}{1+t}\dd t; from 1211+t1\frac12 \leq \frac{1}{1+t} \leq 1: 12(n+1)Rn1n+1\frac{1}{2(n+1)} \leq R_n \leq \frac{1}{n+1}. The error is trapped between two multiples of 1n\frac1n: six decimals cost about a million terms.

6. Integrating from 00 to xx: 12ln1+x1x=k=0nx2k+12k+1+0xt2n+21t2 ⁣dt\frac12\ln\frac{1 + x}{1 - x} = \sum_{k=0}^{n} \frac{x^{2k+1}}{2k+1} + \int_0^x \frac{t^{2n+2}}{1-t^2}\dd t. At x=13x = \frac13: 1+1/311/3=2\frac{1 + 1/3}{1 - 1/3} = 2, and on [0,13]\intcc{0}{\frac13}, 11t298\frac{1}{1 - t^2} \leq \frac98:

ln2=2k=0n(1/3)2k+12k+1+ρ~n,0<ρ~n94(1/3)2n+32n+3:\ln 2 = 2\sum_{k=0}^{n} \frac{(1/3)^{2k+1}}{2k+1} + \tilde\rho_n, \qquad 0 < \tilde\rho_n \leq \frac{9}{4}\cdot \frac{(1/3)^{2n+3}}{2n+3} :

each extra term divides the error by about 99.

7. Induction: for n=1n = 1: 112=12=H2H11 - \frac12 = \frac12 = H_2 - H_1. Step:

H2n+2Hn+1=(H2nHn)+12n+1+12n+21n+1=(H2nHn)+12n+112n+2,H_{2n+2} - H_{n+1} = (H_{2n} - H_n) + \frac{1}{2n+1} + \frac{1}{2n+2} - \frac{1}{n+1} = (H_{2n} - H_n) + \frac{1}{2n+1} - \frac{1}{2n+2},

which is exactly the increment of the alternating sum. And H2nHn=k=1n1n+kH_{2n} - H_n = \sum_{k=1}^{n}\frac{1}{n+k} is the Riemann sum of Example 15.21, converging to ln2\ln 2: the even partial sums of Way 1 are the Riemann sums of Way 3.

8. k=16(1)k1k=0.61667\sum_{k=1}^{6}\frac{(-1)^{k-1}}{k} = 0.61667, error 0.07650.0765; Way 2 at n=5n = 5 gives 0.69314710.6931471 with error 94(1/3)1313=1.1107\leq \frac94\cdot\frac{(1/3)^{13}}{13} = 1.1\cdot10^{-7}. The reason: Way 1 evaluates the logarithm series at the boundary point x=1x = 1, where the terms decay like 1k\frac1k; Way 2 evaluates at x=13x = \frac13, deep inside, where each term carries a fresh factor 19\frac19.

9. Ten decimals: want ρ~n51011\tilde\rho_n \leq 5\cdot10^{-11}. At n=10n = 10: 94(1/3)2323=941.061011231.01012<51011\frac94 \cdot \frac{(1/3)^{23}}{23} = \frac94\cdot\frac{1.06\cdot10^{-11}}{23} \approx 1.0\cdot10^{-12} < 5\cdot10^{-11}: eleven terms suffice.

10. (5+i)2=24+10i(5+\iu)^2 = 24 + 10\iu, then (5+i)4=(24+10i)2=476+480i(5+\iu)^4 = (24 + 10\iu)^2 = 476 + 480\iu; and 2(1+i)(239+i)=2(238+240i)=476+480i2(1+\iu)(239+\iu) = 2(238 + 240\iu) = 476 + 480\iu: equal. Arguments: arg(5+i)=arctan15\arg(5 + \iu) = \arctan\frac15, so the left side has argument 4arctan150.79(0,π)4\arctan\frac15 \approx 0.79 \in \intoo{0}{\pi}; the right side has argument π4+arctan1239(0,π)\frac\pi4 + \arctan\frac{1}{239} \in \intoo{0}{\pi}. Two equal complex numbers with arguments in the same interval of length <2π< 2\pi:

4arctan15=π4+arctan1239,4\arctan\frac15 = \frac\pi4 + \arctan\frac{1}{239} ,

which is Machin’s formula.

11. Integrate 11+t2=k=0n(1)kt2k+(1)n+1t2n+21+t2\frac{1}{1+t^2} = \sum_{k=0}^n (-1)^k t^{2k} + \frac{(-1)^{n+1}t^{2n+2}}{1+t^2} from 00 to xx:

arctanx=k=0n(1)kx2k+12k+1+rn(x),rn(x)0xt2n+2 ⁣dt=x2n+32n+3.\arctan x = \sum_{k=0}^{n}\frac{(-1)^k x^{2k+1}}{2k+1} + r_n(x), \qquad \abs{r_n(x)} \leq \int_0^x t^{2n+2}\dd t = \frac{x^{2n+3}}{2n+3} .

12. Errors: 16(1/5)1111=3.010816\,\frac{(1/5)^{11}}{11} = 3.0\cdot 10^{-8} and 4(1/239)55110124\,\frac{(1/239)^5}{5} \approx 1\cdot10^{-12}: total <5108< 5\cdot10^{-8}. The displayed sum evaluates to 3.141592683.14159268\dots, hence π=3.1415926\pi = 3.1415926\dots certified to 51085\cdot10^{-8}: seven decimals from six terms (five at 15\frac15, two at 1239\frac1{239} counting generously).

13. Leibniz: error 1n\sim \frac1n, so each new digit multiplies the workload by ten. Dalzell (Problem 15.1, question 22): error 415m4^{1-5m}, about three digits per step, each step a heavier polynomial. Machin: error ratio 125\frac{1}{25} per term, about 1.41.4 digits per term, each term one division. The moral: the remainder of a geometric-type expansion scales like x2nx^{2n}, so making xx small buys digits at a fixed cost per term — Machin’s complex identity is precisely a machine for shrinking xx.

14. ak=1(2k)!a_k = \frac{1}{(2k)!} decreases strictly to 00; by question 1 and Proposition 16.11 (Lagrange bound as in question 2), kn(1)k(2k)!cos1\sum_{k \leq n}\frac{(-1)^k}{(2k)!} \to \cos 1 with the strict bracket 0<cos1Sn<1(2n+2)!0 < \bigl|\cos 1 - S'_n\bigr| < \frac{1}{(2n+2)!}. Suppose cos1=pq\cos 1 = \frac pq and take 2nq2n \geq q: then (2n)!Sn=kn(1)k(2n)!(2k)!Z(2n)!\,S'_n = \sum_{k\leq n} (-1)^k \frac{(2n)!}{(2k)!} \in \Z and (2n)!pqZ(2n)!\,\frac pq \in \Z, while

0<(2n)!cos1(2n)!Sn<(2n)!(2n+2)!=1(2n+1)(2n+2)<1:0 < \Bigl|(2n)!\cos 1 - (2n)!S'_n\Bigr| < \frac{(2n)!}{(2n+2)!} = \frac{1}{(2n+1)(2n+2)} < 1 :

a nonzero integer of absolute value <1< 1. Contradiction: cos1Q\cos 1 \notin \Q.

15. Identically with ak=1(2k+1)!a_k = \frac{1}{(2k+1)!}, multiplying by (2n+1)!(2n+1)! with 2n+1q2n + 1 \geq q: sin1Q\sin 1 \notin \Q. Yet cos21+sin21=1Q\cos^2 1 + \sin^2 1 = 1 \in \Q: products and sums of irrationals may be rational — irrationality passes through no algebraic operation for free.

16. Tail bound: for m>nm > n,

k=n+1m1(2k)!1(2n+2)!(1+12+14+)2(2n+2)!,\sum_{k=n+1}^{m} \frac{1}{(2k)!} \leq \frac{1}{(2n+2)!}\Bigl(1 + \frac12 + \frac14 + \dots\Bigr) \leq \frac{2}{(2n+2)!} ,

since each successive ratio is 1(2k+1)(2k+2)12\frac{1}{(2k+1)(2k+2)} \leq \frac12; the tail is positive (its first term is). So 0<cosh1kn1(2k)!<2(2n+2)!0 < \cosh 1 - \sum_{k\leq n}\frac{1}{(2k)!} < \frac{2}{(2n+2)!}, and multiplying by (2n)!(2n)! with 2nq2n \geq q traps a nonzero integer in (0,1)\intoo{0}{1} again: cosh1Q\cosh 1 \notin \Q.

17. cos1m=k(1)km2k(2k)!\cos\frac1m = \sum_k \frac{(-1)^k}{m^{2k}(2k)!}: the terms decrease strictly to zero, and m2n(2n)!1m2k(2k)!=m2(nk)(2n)!(2k)!Zm^{2n}(2n)!\cdot\frac{1}{m^{2k}(2k)!} = m^{2(n-k)}\frac{(2n)!}{(2k)!} \in \Z for knk \leq n. If cos1m=pq\cos\frac1m = \frac pq, multiply the strict bracket by qm2n(2n)!q\,m^{2n}(2n)!: the error is bounded by qm2(2n+1)(2n+2)<1\frac{q}{m^2(2n+1)(2n+2)} < 1 for large nn: contradiction. For ab\frac ab with a2a \geq 2: clearing denominators multiplies the tail by b2n(2n)!b^{2n}(2n)!, but the first omitted term is a2n+2b2n+2(2n+2)!\frac{a^{2n+2}}{b^{2n+2}(2n+2)!}, and the product a2n+2b2(2n+1)(2n+2)\frac{a^{2n+2}}{b^2(2n+1)(2n+2)} explodes: the numerator a2n+2a^{2n+2} no longer clears, and the trap jams. (The result is still true — via Niven-style machinery, not this one.)

18. At t=xt = x every term of gg vanishes except f(x)f(x)=0f(x) - f(x) = 0: g(x)=0g(x) = 0; AA is chosen so g(a)=0g(a) = 0. Differentiating, the sum telescopes:

g(t)=f(n+1)(t)n!(xt)n+A(xt)nn!=(xt)nn!(Af(n+1)(t)).g'(t) = -\frac{f^{(n+1)}(t)}{n!}(x - t)^n + A\,\frac{(x-t)^n}{n!} = \frac{(x-t)^n}{n!}\bigl(A - f^{(n+1)}(t)\bigr) .

Rolle on the segment from aa to xx gives cc strictly between with g(c)=0g'(c) = 0; since (xc)n0(x - c)^n \neq 0: A=f(n+1)(c)A = f^{(n+1)}(c). Unfolding g(a)=0g(a) = 0 yields the Taylor equality with remainder f(n+1)(c)(n+1)!(xa)n+1\frac{f^{(n+1)}(c)}{(n+1)!}(x-a)^{n+1}.

19. For x>0x > 0, the remainder is ec(n+1)!xn+1>0\frac{\eu^{c}} {(n+1)!}x^{n+1} > 0: the exponential exceeds each of its Taylor polynomials, strictly, at every order. For x<0x < 0 the sign of the remainder is that of xn+1x^{n+1}: ex\eu^x is above the polynomial for nn odd, below it for nn even — alternating sides, as the graphs of 1+x1 + x and 1+x+x221 + x + \frac{x^2}{2} against ex\eu^x already show.

20. True error: sin0.50.4791667=2.59104\sin 0.5 - 0.4791667 = 2.59\cdot10^{-4}, against the bound 0.55120=2.60104\frac{0.5^5}{120} = 2.60\cdot10^{-4}: nearly attained (the next term dominates the tail). Young: for limits and local analysis, where no constant is needed. Lagrange: for certified decimals. Alternating: when applicable, same bound plus the direction of the error — the best of the three, but the rarest.

21. Continuity at 00: with u=1x2+u = \frac{1}{x^2} \to +\infty, f(x)=eu0=f(0)f(x) = \eu^{-u} \to 0 = f(0). Derivative at 00: f(h)h=ueu0\bigl|\frac{f(h)}{h}\bigr| = \sqrt u\,\eu^{-u} \to 0 (Proposition 4.6): f(0)=0f'(0) = 0. For x0x \neq 0, f(x)=2x3e1/x2f'(x) = \frac{2}{x^3}\eu^{-1/x^2}: the form P1(1x)e1/x2P_1\bigl(\frac1x\bigr)\eu^{-1/x^2} with P1(X)=2X3P_1(X) = 2X^3; inductively, differentiating Pk(1x)e1/x2P_k(\frac1x)\eu^{-1/x^2} gives Pk+1(X)=2X3Pk(X)X2Pk(X)P_{k+1}(X) = 2X^3 P_k(X) - X^2 P_k'(X), a polynomial. Then

f(k)(h)0h=vPk(v)ev2v=1/h0\frac{f^{(k)}(h) - 0}{h} = v\,P_k(v)\,\eu^{-v^2} \Big|_{v = 1/h} \longrightarrow 0

(polynomial against ev2\eu^{-v^2}, growth comparison at ±\pm\infty): by induction f(k)(0)=0f^{(k)}(0) = 0 for all kk. All Taylor polynomials of ff at 00 vanish, yet f>0f > 0 off 00: Taylor–Young is exact at every order and blind beyond the germ. An expansion is local information only.

22. By question 2, 0<e1Tn<1(n+1)!0 < \abs{\eu^{-1} - T_n} < \frac{1}{(n+1)!}, strictly. If e1=pq\eu^{-1} = \frac pq, take nqn \geq q and multiply by n!n!: n!TnZn!\,T_n \in \Z and n!pqZn!\frac pq \in \Z, so a nonzero integer has absolute value <n!(n+1)!=1n+1<1< \frac{n!}{(n+1)!} = \frac{1}{n+1} < 1: contradiction. Hence e1Q\eu^{-1} \notin \Q, and e=1e1\eu = \frac{1}{\eu^{-1}} is irrational too. The three proofs: adjacent sequences squeezing q!eq!\,\eu (Exercise 11.9); the integral recurrence An=enAn1A_n = \eu - nA_{n-1} (Problem 15.1); the alternating bracket (here). One trap, three certificates of smallness.

23. Group the partial sums in pairs: k=12n(1)kbk=EnOn\sum_{k=1}^{2n} (-1)^k b_k = E_n - O_n with En=j=1n14j2E_n = \sum_{j=1}^{n} \frac{1}{4j^2}, bounded (by the telescoping bound of Example 11.22, En12E_n \leq \frac12), and On=j=1n12j112Hn+O_n = \sum_{j=1}^{n}\frac{1}{2j-1} \geq \frac12 H_n \to +\infty (Exercise 11.5): the partial sums tend to -\infty. Monotonicity was used in question 1 exactly where S2n+1S2n1=a2na2n+1S_{2n+1} - S_{2n-1} = a_{2n} - a_{2n+1} needed a sign: without decrease, the even and odd subsequences need not be monotone, and adjacency collapses.

24. (2+i)(3+i)=5+5i=5(1+i)(2+\iu)(3+\iu) = 5 + 5\iu = 5(1+\iu); taking arguments (all in (0,π2)\intoo{0}{\frac\pi2}): arctan12+arctan13=π4\arctan\frac12 + \arctan\frac13 = \frac\pi4. Series cost for six decimals: error 4((1/2)2n+32n+3+(1/3)2n+32n+3)\leq 4\bigl(\frac{(1/2)^{2n+3}}{2n+3} + \frac{(1/3)^{2n+3}}{2n+3}\bigr), which at n=10n = 10 is 2108<5107\approx 2\cdot10^{-8} < 5\cdot10^{-7}: eleven terms. Ranking: better than Leibniz by an exponential margin, behind Machin (whose dominant point 15\frac15 is smaller than 12\frac12): roughly 0.60.6 digits per term against Machin’s 1.41.4.

25. (i) For decreasing ak0a_k \to 0, the alternating partial sums converge with SSnan+1\abs{S - S_n} \leq a_{n+1} and the error carries the sign of the first omitted term. (ii) A finite identity with explicit remainder can be evaluated and bounded at a chosen point, while a limit statement only promises eventual closeness — certification needs the former. (iii) Extracted: π\pi to 51085\cdot10^{-8} by Machin, ln2\ln 2 to ten decimals by the 13\frac13-series, irrationality of cos1\cos 1, sin1\sin 1, cosh1\cosh 1, cos1m\cos\frac1m and e1\eu^{-1}, the Taylor–Lagrange equality, and the flat-function warning. (iv) Chapter 17 upgrades question 1 into the alternating series test, separates absolute from conditional convergence, and its weekend problem stages the rearrangement drama for which the alternating harmonic series of Way 1 is the star witness.