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 be defined near ( or ). One writes, as :
- (“little-o”) when with ;
- (“big-O”) when with bounded near ;
- (“equivalent”) when with — equivalently .
The same notation applies to sequences ().
Proposition 16.2 (Rules)
As :
- is an equivalence relation; implies that and share limits, signs (near ), and zeros’ absence;
- equivalents multiply and divide: , imply and ;
- equivalents do not add: and at , yet the sums and are not equivalent. To add, return to expansions with explicit terms;
- , , , and .
Proof. Each is a short manipulation of the definitions; for instance and . Two items of (4) deserve their line. : if with , then with the same . : if and with both , then and the product of the two infinitesimals is one. The equivalence is the definition read twice: . The counterexample in (3) is the proof of (3). ∎
Example 16.3 (The comparison scale)
As , the standard scale reads, in increasing order of strength:
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 landing in a smaller class upgrades silently ( is also ); second, at the whole ladder reverses through the substitution — there, so “” holds for every . 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 to the same order,
then for every : subtracting and setting , evaluate the identity at to get ; divide by and repeat — each division is legitimate because the remaining expression is again . 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 by and invoke uniqueness; likewise odd functions have odd powers. This is why carries rather than 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 be of class on an interval containing and . Then
Proof. Induction on . For : is the fundamental theorem (Theorem 15.9). Step: integrate the remainder by parts,
the bracket contributing the term . ∎
Example 16.6 (An exact expansion with its remainder)
For the integral remainder can be made completely explicit without differentiating anything times: integrate the finite geometric identity from to :
and for the remainder is bounded by . This is stronger than Taylor–Young in two ways: it is an identity valid for a fixed (not only ), 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 be with between and . Then
Proof. Bound the integral remainder: . ∎
Example 16.8 (Certified numerics)
What is ? Apply Taylor–Lagrange to at , order , :
so the error is at most : with six certified decimals (true value — 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 be times differentiable at . Then, as :
Proof. Induction on . For this is the definition of the derivative (Definition 14.1). Assume the statement at order , and let be times differentiable at . Apply the induction hypothesis to (which is times differentiable at ):
Let ; then and . Given , choose with for ; the mean value inequality (Theorem 14.9) applied on the segment from to (where ) yields : exactly . ∎
Remark 16.10 (Three formulas, three prices, three products)
The hypotheses grade exactly with the conclusions. Taylor–Young asks the least ( derivatives at the point only) and yields the least: a qualitative , perfect for limits, useless for certified digits. The Lagrange inequality asks for on the interval and a bound 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 .
Proposition 16.11 (Standard expansions at )
As , for every fixed order :
where for real . ( and : same as , without the alternating signs.)
Proof. Each function is smooth near with derivatives easy to evaluate: ; the derivatives of and cycle with period ; ; . Apply Taylor–Young at . (The geometric one is exact: .) ∎
Method 16.12 (Computing with expansions)
- Fix the target order first, and truncate every intermediate result there — carrying higher terms is wasted work, dropping lower ones is an error.
- Sums, products: expand each factor to order and multiply, discarding beyond .
- Composition with : substitute the expansion of into that of , order by order.
- Quotients: write with and use the geometric expansion.
- Integrate an expansion term by term (differentiating requires more care — justification: integral of from to is , by direct bounding).
Example 16.13 (Composition, with the bookkeeping shown)
Expand to order . Inner expansion: , which indeed tends to . Outer: , and since . Powers of , truncated at :
(the cross term is already ). Assemble:
the two contributions cancel exactly. The closing insight: and agree to order — not because crudely, but because the first disagreement of the exponents () enters multiplied by 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 : the truce ends at order .)
Example 16.14
Expansion of at order . Write :
then
16.3 Applications
Example 16.15 (Limits)
— settling the question raised in Exercise 4.9. Likewise : the logarithm is
Remark 16.16 (Common pitfalls with expansions)
(i) Never add or subtract equivalents: from and one may not conclude (meaningless) — the honest route is expansions:
(ii) Expand past the massacre: in the same computation, order sees only ; 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: , yet is not equivalent to — exponentiate only expansions of the exponent whose error tends to , never equivalents of the exponent. (Logarithms are safer: if , , then .) (iv) The calculus is one-directional: , , — but an is not a specific function, so never cancel two of them against each other: is , not .
Proposition 16.17 (Local behavior)
Suppose with (first nonzero term after the constant; at a critical point).
- If is even: has a local minimum at if , a local maximum if .
- If is odd: no extremum ( changes sign); if moreover the expansion starts after a linear term , the graph crosses its tangent: an inflection.
Proof. Near , has the sign of : constant sign for even, changing for odd. ∎
Example 16.18 (Exponents must be expanded to )
Find an equivalent of . Expand the exponent until its error tends to :
so with :
Note what would have gone wrong with less care: stopping the exponent at leaves an factor — bounded but not tending to — and no equivalent can be asserted. The rule of the pitfalls above, in positive form: an equivalent of requires the expansion of up to a term tending to zero, every coefficient before that being kept exactly.
Example 16.19 (Classifying a flat critical point)
Study near . Both and : the second-derivative test is mute. Expand instead:
first nonzero term with even and : a local minimum, of unusual flatness (the graph leaves its minimum value like , not ). 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 and the substitution imports the whole toolbox. First,
Second, the arctangent at infinity: from for (Proposition 4.12) and the expansion of at (Exercise 16.3),
the graph approaches its asymptote from below at speed . The closing insight: there is no separate theory of expansions at infinity — one reciprocal substitution reduces them to expansions at , provided every intermediate and is carried along honestly.
Example 16.21 (Asymptote by expansion)
As ,
the line is an asymptote, approached from below (the next term 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 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 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 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 survive in and — 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 : to order ; to order ; to order ; to order .
Solution
Solution of Exercise 16.1.
the last by substituting into the geometric expansion.
Exercise 16.2 ★
Compute the limits:
Solution
Solution of Exercise 16.2.
: limit .
and : difference : limit .
: limit .
Exercise 16.3 ★
Expand at to order by integrating the expansion of , and to order by integrating that of .
Solution
Solution of Exercise 16.3.
; integrating from to (Method 16.12 (5)):
(binomial expansion with , : ); integrating:
Exercise 16.4 ★
Using Taylor–Lagrange for on , prove that
and determine an guaranteeing exact decimals of .
Solution
Solution of Exercise 16.4.
Taylor–Lagrange (Theorem 16.7) for at , : the -st derivative is on , so
For exact decimals, want , i.e. : since and , , i.e. suffices.
Exercise 16.5 ★★
Expand to order in and deduce the limit and the speed of convergence:
Solution
Solution of Exercise 16.5.
. Exponentiating, with and :
Limit ; the error is : slow (one digit per tenfold increase of ).
Exercise 16.6 ★★
Study the local behavior at of and of ; and find the position of the graph of relative to its tangent at , locally then globally.
Solution
Solution of Exercise 16.6.
: first term , even, coefficient : local minimum at (not global: ).
: first term , odd : no extremum; crosses its (horizontal) tangent: inflection at .
at : ; the difference with the tangent is locally. Globally: for all 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 of and the position of the curve relative to them.
Solution
Solution of Exercise 16.7.
For :
asymptote , curve below it near . As , the same computation is valid (the cube root is defined for all reals, and ): same asymptote , but now : curve above the line.
Exercise 16.8 ★★
Find the equivalent, as , of
each as a power of times a constant.
Solution
Solution of Exercise 16.8.
.
.
: with , , so .
Exercise 16.9 ★★★
Let be on . Prove that for every and :
and deduce the Landau–Kolmogorov-type inequality: if and on , then everywhere. (Optimize over .)
Solution
Solution of Exercise 16.9.
Taylor–Lagrange at order around , on both sides:
Subtracting: , so
With global bounds: for every . The right side is minimized at (derivative zero), with value — hence . (If , let : , consistent.)
Exercise 16.10 ★★★
The sequence , decreases to (justify briefly). To find its speed, consider :
- using the expansion of , prove ;
- with Cesàro (Exercise 11.10), deduce , then the equivalent .
Solution
Solution of Exercise 16.10.
On : , so is strictly decreasing, positive, hence convergent; the limit is a fixed point of in , and forces (since for ).
Using as :
By Exercise 11.10 (3) (Cesàro for differences), , i.e. , i.e. : since ,
Exercise 16.11 ★★
(Differences of infinities) Compute
by reducing to a common denominator and expanding numerator and denominator separately.
Solution
Solution of Exercise 16.11.
Common denominators. First limit:
so the numerator is while the denominator is : the limit is .
Second: ; the numerator is , the denominator : the limit is .
Exercise 16.12 ★★★
(Asymptotics of implicit roots) Show that for every the equation has exactly one solution in , that with , and deduce the expansion
Solution
Solution of Exercise 16.12.
On , the function has derivative , vanishing only at the single point : is strictly increasing on (Corollary 14.12 (2)), with limits and at the ends: exactly one zero . For , , so : write with . Then
using and . Since : , and
whence .
16.5 Problem: Alternating sums, certified digits, and the irrationality of
Problem 16.1
Weekend problem — the alternating estimate : and with proven decimals, Machin’s formula, and
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 (three competing routes) and for (Leibniz, then Machin’s 1706 formula, still the idea behind record computations for centuries), the irrationality of , and , 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 decrease to and .
Show that is nondecreasing, nonincreasing, and that they are adjacent (Theorem 11.11): both converge to a common with, for every ,
the error having the sign of the first omitted term. Show moreover that if the decrease is strict, all these inequalities are strict.
- First dividend: for in the exponential series, compare with Theorem 16.7 at : show that converges to with .
(Leibniz, 1674) From the exact finite identity
integrated over , prove
- Slowness: how many terms of Leibniz guarantee six exact decimals of ? (About two million.) Evaluate and its distance to , to feel the pain.
Part II — three ways.
(Way 1: alternating harmonic) From integrated over :
the error is of exact order — a million terms for six decimals.
(Way 2: the fast series) Integrate from to and evaluate at (note ):
geometric convergence, roughly one digit per term.
(Way 3: Riemann sums and a hidden identity) Prove by induction the identity
and recover as the Riemann-sum limit of Example 15.21: Ways 1 and 3 are secretly the same number seen twice.
- Shootout at six terms: compare with Way 2 at , which already gives with error . Explain the structural reason (evaluation point deep inside the interval of convergence versus on its boundary).
- How many terms of Way 2 certify ten decimals of ? Show suffices.
Part III — Machin’s formula.
Compute and verify the complex identity
Taking arguments (Chapter 3 conventions), deduce Machin’s formula
(Check that no argument leaves .)
As in question 3, establish for :
Certify to seven decimals with six terms: bound the total error of
by , and give the resulting value
- Compare the three routes to now available — Leibniz (question 4), the Dalzell integrals of Problem 15.1 (error ), Machin (error ) — in digits per term, and explain why shrinking the evaluation point beats everything.
Part IV — The integer trap, alternating edition.
- Suppose . Multiply the strict alternating bracketing of (question 1) by with , and derive a contradiction: is irrational.
- Adapt to (multiply by ): . Both irrational, yet : irrationality is not stable under algebra.
- The non-alternating cousin: (in the partial-sum sense, with the two-sided tail bound , to be proved). Conclude by the same trap.
- Push to for every integer : multiply by and conclude . Where does the same attempt break for with general? (Identify the denominator that no longer clears.)
Part V — Sharper and darker: the equality form, and a function that fools Taylor.
(Taylor–Lagrange, equality form) Let be times differentiable between and . Define with the constant chosen so that . Compute (the sum telescopes), apply Rolle on , and conclude that there exists strictly between and with
Dividend of the equality: for show
(strictly, for every ), and locate where the inequality reverses for according to the parity of .
- Benchmark the remainders on at order : Young gives only (no number); Lagrange gives ; the alternating estimate gives the same bound plus the sign information . Compare with the true error : the bound is nearly attained. Which tool would you reach for, and when?
- (The flat function) Let for , . Show is continuous at , that , and more generally — by proving that every derivative has the form for a polynomial (induction) — that for all (growth comparison Proposition 4.6). Conclude: all Taylor polynomials of at vanish, yet for : Taylor–Young holds at every order, and says nothing about away from . Expansions describe germs, not functions.
Part VI — Synthesis.
- Run the trap once more, on : multiply the strict alternating bracketing by and conclude , hence — 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.
- The fine print: monotonicity is not decorative. Let for odd and for even : the are positive and tend to , yet the partial sums of diverge to . 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.
- Verify Euler’s simpler identity via , estimate the terms needed for six decimals of by this route ( suffices), and place it between Leibniz and Machin in the ranking of question 13.
- 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 ( to by hand, 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. and , while : the sequences , are adjacent, converging to a common (Theorem 11.11) with . For even : gives ; for odd : . In both cases and has the sign of , the first omitted term. Strict decrease makes every displayed inequality strict, in particular .
2. decreases strictly to : question 1 applies. Taylor–Lagrange (Theorem 16.7) for between and : (the derivative is there), so , and the limit of question 1 is , with the strict bounds .
3. Integrating the identity over : the left side is (fundamental theorem), the -th term gives , and
4. The error on is : below requires , about two million terms. Meanwhile , almost away from : five terms, not even one digit.
5. Integrating over : with ; from : . The error is trapped between two multiples of : six decimals cost about a million terms.
6. Integrating from to : . At : , and on , :
each extra term divides the error by about .
7. Induction: for : . Step:
which is exactly the increment of the alternating sum. And is the Riemann sum of Example 15.21, converging to : the even partial sums of Way 1 are the Riemann sums of Way 3.
8. , error ; Way 2 at gives with error . The reason: Way 1 evaluates the logarithm series at the boundary point , where the terms decay like ; Way 2 evaluates at , deep inside, where each term carries a fresh factor .
9. Ten decimals: want . At : : eleven terms suffice.
10. , then ; and : equal. Arguments: , so the left side has argument ; the right side has argument . Two equal complex numbers with arguments in the same interval of length :
which is Machin’s formula.
11. Integrate from to :
12. Errors: and : total . The displayed sum evaluates to , hence certified to : seven decimals from six terms (five at , two at counting generously).
13. Leibniz: error , so each new digit multiplies the workload by ten. Dalzell (Problem 15.1, question 22): error , about three digits per step, each step a heavier polynomial. Machin: error ratio per term, about digits per term, each term one division. The moral: the remainder of a geometric-type expansion scales like , so making small buys digits at a fixed cost per term — Machin’s complex identity is precisely a machine for shrinking .
14. decreases strictly to ; by question 1 and Proposition 16.11 (Lagrange bound as in question 2), with the strict bracket . Suppose and take : then and , while
a nonzero integer of absolute value . Contradiction: .
15. Identically with , multiplying by with : . Yet : products and sums of irrationals may be rational — irrationality passes through no algebraic operation for free.
16. Tail bound: for ,
since each successive ratio is ; the tail is positive (its first term is). So , and multiplying by with traps a nonzero integer in again: .
17. : the terms decrease strictly to zero, and for . If , multiply the strict bracket by : the error is bounded by for large : contradiction. For with : clearing denominators multiplies the tail by , but the first omitted term is , and the product explodes: the numerator no longer clears, and the trap jams. (The result is still true — via Niven-style machinery, not this one.)
18. At every term of vanishes except : ; is chosen so . Differentiating, the sum telescopes:
Rolle on the segment from to gives strictly between with ; since : . Unfolding yields the Taylor equality with remainder .
19. For , the remainder is : the exponential exceeds each of its Taylor polynomials, strictly, at every order. For the sign of the remainder is that of : is above the polynomial for odd, below it for even — alternating sides, as the graphs of and against already show.
20. True error: , against the bound : 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 : with , . Derivative at : (Proposition 4.6): . For , : the form with ; inductively, differentiating gives , a polynomial. Then
(polynomial against , growth comparison at ): by induction for all . All Taylor polynomials of at vanish, yet off : Taylor–Young is exact at every order and blind beyond the germ. An expansion is local information only.
22. By question 2, , strictly. If , take and multiply by : and , so a nonzero integer has absolute value : contradiction. Hence , and is irrational too. The three proofs: adjacent sequences squeezing (Exercise 11.9); the integral recurrence (Problem 15.1); the alternating bracket (here). One trap, three certificates of smallness.
23. Group the partial sums in pairs: with , bounded (by the telescoping bound of Example 11.22, ), and (Exercise 11.5): the partial sums tend to . Monotonicity was used in question 1 exactly where needed a sign: without decrease, the even and odd subsequences need not be monotone, and adjacency collapses.
24. ; taking arguments (all in ): . Series cost for six decimals: error , which at is : eleven terms. Ranking: better than Leibniz by an exponential margin, behind Machin (whose dominant point is smaller than ): roughly digits per term against Machin’s .
25. (i) For decreasing , the alternating partial sums converge with 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: to by Machin, to ten decimals by the -series, irrationality of , , , and , 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.