Corrected exercises: Taylor and Maclaurin series (MATH 141)
This is the corrected exercise set for the Taylor and Maclaurin series chapter of MATH 141, Calculus 2, the second calculus course at McGill University, section 11.10 of Stewart. Everything is done by hand and every answer is exact: 6π3, −420, 4e2+1, never a decimal from a machine. How many terms a numerical approximation needs, with a guaranteed error, belongs to the next chapter and is deliberately left out.
The thread running through the whole set: the coefficient of (x−a)n is n!f(n)(a), and the formula is read in BOTH directions. Forwards, it builds a series, but differentiating is the last resort: a new series is built from the table, by substitution, product, quotient and composition, and its interval moves with the substitution. Backwards, any series of f gives every derivative at the centre, f(n)(a)=n!cn. And a series is used only where it EQUALS its function.
The traps named explicitly in the solutions: the lost centre, xn written for (x−a)n; the n! forgotten when a derivative is read from a coefficient; the interval of the table copied after a substitution; a series evaluated outside its interval; the binomial series applied before the constant is factored out; series multiplied coefficient by coefficient; a composition expanded around a quantity that does not tend to 0; an expansion stopped before anything survives the cancellation; and the belief that a convergent Taylor series always converges to its function.
•Taylor series of f at a: ∑n=0∞n!f(n)(a)(x−a)n; Maclaurin series: a=0. If f(x)=∑cn(x−a)n near a, then cn=n!f(n)(a) (uniqueness).
•For every x: ex=∑n≥0n!xn, sinx=∑n≥0(2n+1)!(−1)nx2n+1, cosx=∑n≥0(2n)!(−1)nx2n.
•1−x1=∑n≥0xn on (−1,1); ln(1+x)=∑n≥1n(−1)n−1xn on (−1,1]; arctanx=∑n≥02n+1(−1)nx2n+1 on [−1,1] (the last two obtained in the power series chapter by integrating the geometric series).
•Binomial series: (1+x)k=∑n≥0(nk)xn for ∣x∣<1, with (nk)=n!k(k−1)⋯(k−n+1).
•Substitution u=cxm: the interval ∣u∣<R becomes ∣x∣<(∣c∣R)1/m, endpoints rechecked. Product: the coefficient of xn is ∑i=0naibn−i.
•Backwards: f(n)(a)=n!cn. Limits: expand every piece until a nonzero term survives, to the same degree everywhere.
Part A: the basics (/50)
Exercise 1: Coefficients from the definition: the n-th derivative at a, over n factorial
If f has derivatives of every order at a, its Taylor series centred at a is ∑n=0∞n!f(n)(a)(x−a)n, and its Maclaurin series is the case a=0. The method from the definition: differentiate until a pattern appears, prove the pattern, evaluate AT a, divide by n!, and keep the powers of (x−a), never of x.
This is the route of last resort, used when no series of the table can be adapted. It is still the one an exam asks for when it says from the definition.
a) Find the Taylor series of ex centred at a=3 from the definition, then check it with ex=e3ex−3.
b) Find the Taylor series of lnx centred at a=2: find f(n)(x) for n≥1, prove the pattern, and write the general term.
c) Find the radius and the interval of convergence of the series of b), and check the series against the table entry for ln(1+u).
d) Find the first four nonzero terms of the Taylor series of cosx centred at a=3π.
e) Find the Taylor series of p(x)=x3−2x centred at a=1. Why is it finite, and why does it equal p(x) for every x?
Show the solution
Answers
a)ex=∑n=0∞n!e3(x−3)n, for every x
b)lnx=ln2+∑n=1∞n2n(−1)n−1(x−2)n
c)R=2, interval (0,4]
d)21−23(x−3π)−41(x−3π)2+123(x−3π)3
e)−1+(x−1)+3(x−1)2+(x−1)3, which expands back to x3−2x
a) Every derivative of ex is ex, so f(n)(3)=e3 for every n and cn=n!e3. The series is ∑n=0∞n!e3(x−3)n=e3(1+(x−3)+2(x−3)2+…). Ratio test: cn(x−3)ncn+1(x−3)n+1=n+1∣x−3∣→0<1 for every x, so R=∞. Check: ex=e3⋅ex−3, and putting u=x−3 in the table series eu=∑n!un gives exactly the same coefficients. Two routes, one series: this is the uniqueness theorem at work, since a function that equals a power series in (x−a) near a can only have n!f(n)(a) as coefficients. The trap is to write ∑n!e3xn: the centre is lost, and at x=3 that series would give e3⋅e3 instead of e3.
b) f(x)=lnx, f′(x)=x−1, f′′(x)=−x−2, f′′′(x)=2x−3, f(4)(x)=−6x−4. Pattern: f(n)(x)=(−1)n−1(n−1)!x−n for n≥1. Proof by induction: true for n=1; if true for n, then f(n+1)(x)=(−1)n−1(n−1)!⋅(−n)x−n−1=(−1)nn!x−(n+1), which is the formula for n+1. At a=2: f(n)(2)=2n(−1)n−1(n−1)!, so cn=2nn!(−1)n−1(n−1)!=n2n(−1)n−1, since n!=n⋅(n−1)!. The term n=0 is f(2)=ln2 and is written apart, because the pattern only holds from n=1 (at n=0 it would contain (−1)!). So lnx=ln2+2x−2−8(x−2)2+24(x−2)3−… Check of c2: f′′(2)=−41, divided by 2!=2, gives −81.
c) Ratio test on an=n2n(−1)n−1(x−2)n: anan+1=2∣x−2∣⋅n+1n→2∣x−2∣. Convergence for ∣x−2∣<2, divergence for ∣x−2∣>2: R=2. Each endpoint gets its own test. At x=4: 2n(x−2)n=1 and the series is ∑n(−1)n−1, which converges by the alternating series test. At x=0: 2n(−2)n=(−1)n, the terms are n(−1)n−1(−1)n=−n1, minus the harmonic series, which diverges. Interval (0,4]. Table check: lnx=ln(2(1+2x−2))=ln2+ln(1+u) with u=2x−2, and ln(1+u)=∑n≥1n(−1)n−1un for −1<u≤1, that is 0<x≤4: same coefficients, same interval, and the table GUARANTEES that the series equals lnx there. The radius is the distance from the centre 2 to 0, where ln stops existing; the series cannot pass x=4 either, although ln is smooth at 5, because a power series converges on an interval symmetric about its centre.
d) The derivatives of cos cycle: cosx, −sinx, −cosx, sinx, then cosx again. At 3π: 21, −23, −21, 23. Dividing by 0!,1!,2!,3!: c0=21, c1=−23, c2=−41, c3=123. None is zero, so the first four nonzero terms are the terms of degree 0 to 3: 21−23(x−3π)−41(x−3π)2+123(x−3π)3. The trap is to copy the Maclaurin pattern of cos, which has only even powers because sin0=0: around 3π the odd derivatives do not vanish, and the copy that writes 21−41(x−3π)2+… loses half the terms. Check with the addition formula, u=x−3π: cosx=21cosu−23sinu=21(1−2u2)−23(u−6u3)+…, the same four terms.
e) p(1)=−1; p′(x)=3x2−2, p′(1)=1; p′′(x)=6x, p′′(1)=6, so c2=2!6=3; p′′′(x)=6, c3=3!6=1; and p(n)=0 for n≥4. The series is −1+(x−1)+3(x−1)2+(x−1)3: every coefficient from n=4 on is 0, so the sum is finite and there is nothing to converge. Expanding: (x−1)3+3(x−1)2+(x−1)−1=x3−3x2+3x−1+3x2−6x+3+x−1−1=x3−2x. The Taylor series of a polynomial is the same polynomial, rewritten in powers of (x−a), and it is valid for every x. The coefficient formula does not know the difference between a finite and an infinite series.
Exercise 2: The table, and substitution into it: the interval moves with the variable
No derivative is computed in this exercise. Every series comes from the table of the reminder, by substituting an expression for the variable and then multiplying by a power of x. What the substitution changes is the INTERVAL: a table series valid for u in some interval becomes valid for the x that put u in that interval, endpoints included or excluded exactly as in the table.
Recall eu=∑n≥0n!un and cosu=∑n≥0(2n)!(−1)nu2n for every u, ln(1+u)=∑n≥1n(−1)n−1un for −1<u≤1, arctanu=∑n≥02n+1(−1)nu2n+1 for −1≤u≤1.
a) Find the Maclaurin series of xe−x2, its general term and its radius of convergence.
b) Find the Maclaurin series of ln(1+2x) and its interval of convergence, endpoints included.
c) Find the Maclaurin series of x2arctan(x3) and its interval of convergence.
d) Find a power series equal to cosx for x≥0. Why is it a series in whole powers of x, although x is not?
e) Find the exact sums of ∑n=0∞9n(2n)!(−1)nπ2n and of ∑n=0∞(2n+1)3n(−1)n.
Show the solution
Answers
a)∑n=0∞n!(−1)nx2n+1, R=∞
b)∑n=1∞n(−1)n−12nxn on (−21,21]
c)∑n=0∞2n+1(−1)nx6n+5 on [−1,1]
d)∑n=0∞(2n)!(−1)nxn: cos has only even powers, and (x)2n=xn
e)cos3π=21 and 3arctan31=6π3
a) eu=∑n!un with u=−x2: un=(−x2)n=(−1)nx2n, so e−x2=∑n≥0n!(−1)nx2n. Multiplying by x: xe−x2=∑n≥0n!(−1)nx2n+1=x−x3+2x5−6x7+… The table series holds for every u, and u=−x2 is defined for every x, so R=∞. The traps: writing −x2n, which loses the alternation, or (2n)! in the denominator, which confuses the result with a cosine. The substitution replaces u by the WHOLE expression −x2, in parentheses, and leaves the n! alone.
b) With u=2x: ln(1+2x)=∑n≥1n(−1)n−1(2x)n=∑n≥1n(−1)n−12nxn=2x−2x2+38x3−4x4+… The table requires −1<u≤1, that is −1<2x≤1, so −21<x≤21. The endpoints are inherited: at x=21, u=1, the series is the alternating harmonic series, which converges by the alternating series test; at x=−21, u=−1, it is −∑n1 and diverges. Interval (−21,21]. The trap is to copy the interval (−1,1] of the table: at x=1 the terms n2n do not even tend to 0. The factor 2n in the coefficients is what shrinks the radius, as the ratio test confirms: 2n∣x∣n/n2n+1∣x∣n+1/(n+1)→2∣x∣.
c) With u=x3: u2n+1=(x3)2n+1=x6n+3, so arctan(x3)=∑n≥02n+1(−1)nx6n+3 and x2arctan(x3)=∑n≥02n+1(−1)nx6n+5=x5−3x11+5x17−… Exponents MULTIPLY under a power: (x3)2n+1 is x6n+3, not x2n+4. Quick check on the first term: arctan(x3) starts like x3, and x2⋅x3=x5. Interval: ∣x3∣≤1 exactly when ∣x∣≤1, so [−1,1], both endpoints included because the arctangent series converges at u=±1 (alternating series with 2n+11 decreasing to 0).
d) With u=x, x≥0: u2n=(x)2n=xn, so cosx=∑n≥0(2n)!(−1)nxn=1−2x+24x2−720x3+…, with R=∞. The square root disappears because the cosine series contains only EVEN powers of u, and an even power of x is a whole power of x. With sinx=x−6xx+… it would not happen: the odd powers keep a x. One more caution: the series converges for x<0 too, but cosx has no meaning there. The equality is claimed only where the substitution was made, here x≥0.
e) First sum: 9nπ2n=32nπ2n=(3π)2n, so the sum is ∑(2n)!(−1)n(3π)2n=cos3π=21. The gesture: identify the table series by the DENOMINATOR, here (2n)! with alternating signs and even powers, which is the cosine; then gather everything else into one power of one number. Second sum: the denominator 2n+1 with alternating signs points to the arctangent, which needs u2n+1. With u=31, u2n+1=3n31, so ∑(2n+1)3n(−1)n=3∑2n+1(−1)nu2n+1=3arctan31=3⋅6π=6π3, legitimate because u=31 lies in [−1,1]. Plausibility: 63.14×1.73≈0.91, and the first terms give 1−91+451≈0.91.
Exercise 3: The binomial series: 1 + x to a power that is not a whole number
For every real k and ∣x∣<1: (1+x)k=∑n=0∞(nk)xn, where (0k)=1 and (nk)=n!k(k−1)(k−2)⋯(k−n+1), a product of exactly n factors on top. When k is a positive integer this is the binomial theorem; otherwise the series never stops.
The series is for (1+x)k: the constant inside the parentheses must be 1 before anything is expanded.
a) Compute (31/2). Then show that (n−2)=(−1)n(n+1) and deduce the Maclaurin series of (1+x)21.
b) Write the Maclaurin series of 1+x up to the term in x3, and check it by squaring.
c) Find the first three terms of the Maclaurin series of 38+x and its radius of convergence.
d) Find the Maclaurin series of 1−x21, general term included, and deduce the Maclaurin series of arcsinx up to x7.
e) Show that the binomial series stops for k=4 and is then valid for every x, while for k=21 its radius is exactly 1.
Show the solution
Answers
a)(31/2)=161; (1+x)21=∑n=0∞(−1)n(n+1)xn for ∣x∣<1
e)(n4)=0 for n≥5; for k=21 the ratio n+1∣k−n∣∣x∣→∣x∣, so R=1.
a) (31/2)=3!21(21−1)(21−2)=621⋅(−21)⋅(−23)=63/8=161. Three factors on top, k, k−1, k−2, as many as n=3; the usual slip is a fourth factor k−3. Next, (n−2)=n!(−2)(−3)⋯(−2−n+1)=n!(−1)n⋅2⋅3⋯(n+1)=(−1)nn!(n+1)!=(−1)n(n+1). So (1+x)21=(1+x)−2=∑n≥0(−1)n(n+1)xn=1−2x+3x2−4x3+… for ∣x∣<1. It is the series obtained by differentiating 1+x1=∑(−x)n and changing the sign: two routes, one series.
b) (01/2)=1, (11/2)=21, (21/2)=221⋅(−21)=−81, (31/2)=161. So 1+x=1+2x−8x2+16x3−… for ∣x∣<1. Check by squaring, collecting the coefficients of each degree: x0: 1; x1: 2⋅21=1; x2: 2(−81)+(21)2=0; x3: 2⋅161+2⋅21⋅(−81)=81−81=0. The square is 1+x up to degree 3, as it must be. The alternating signs from x2 on come from the factors k−1,k−2,…, all negative when k=21.
c) Factor first: (8+x)1/3=81/3(1+8x)1/3=2(1+u)1/3 with u=8x. With (11/3)=31 and (21/3)=231⋅(−32)=−91: 2(1+31⋅8x−91⋅64x2+…)=2+12x−288x2+… Valid for ∣u∣<1, that is ∣x∣<8: R=8. The trap is to apply the binomial coefficients to (8+x)1/3 directly and write 2+3x+… The first-derivative test catches it at once: f′(x)=31(8+x)−2/3, so f′(0)=31⋅41=121, which must be c1.
d) 1−x21=(1+u)−1/2 with u=−x2. Then (n−1/2)(−1)n=n!21⋅23⋯22n−1=2nn!1⋅3⋯(2n−1), and multiplying top and bottom by 2⋅4⋯(2n)=2nn! gives 4n(n!)2(2n)!. So 1−x21=∑n≥04n(n!)2(2n)!x2n=1+2x2+83x4+165x6+… for ∣x∣<1. Every coefficient is positive: the sign (−1)n of the binomial coefficient and the sign (−1)n of un cancel. Since arcsinx=∫0x1−t2dt (with arcsin0=0), integrating term by term inside the radius: arcsinx=x+6x3+403x5+1125x7+…, general term 4n(n!)2(2n+1)(2n)!x2n+1. Check: arcsin(sinx)=x, and (x−6x3)+6x3+⋯=x up to degree 3.
e) For k=4, (n4) contains the factor 4−4=0 as soon as n≥5, so every coefficient from n=5 on vanishes and (1+x)4=1+4x+6x2+4x3+x4: a finite sum, valid for every x. For k=21 no factor k−j is ever 0, and (nk)(n+1k)=n+1k−n, so the ratio test gives n+1k−n∣x∣→∣x∣: convergence for ∣x∣<1, divergence for ∣x∣>1, R=1 exactly. The same computation gives R=1 for every k that is not a nonnegative integer. The radius is the distance from 0 to −1, where (1+x)k stops being differentiable (or defined), even though nothing happens to 1+x at x=1.
Exercise 4: Products, quotients and compositions: build the series, never differentiate five times
Series multiply, divide and compose like polynomials, with two rules. In a PRODUCT, the coefficient of xn collects every pair of degrees that add up to n: (∑aixi)(∑bjxj)=∑n(∑i=0naibn−i)xn. In a COMPOSITION f(g(x)), the inner series must tend to 0, so that its powers start at higher and higher degrees and only finitely many of them reach the degree asked for.
Asked up to x4, expand every factor up to x4, no further, and drop every product of degree above 4.
a) Find the Maclaurin series of exsinx up to x5.
b) Find the Maclaurin series of tanx up to x5 by dividing the series of sinx by that of cosx.
c) Find the Maclaurin series of esinx up to x4.
d) Find the Maclaurin series of ln(cosx) up to x4.
e) Check d) by integrating the series of −tanx found in b), then give the fourth derivative of ln(cosx) at 0.
Show the solution
Answers
a)x+x2+3x3−30x5 (the x4 coefficient is 0)
b)x+3x3+152x5
c)1+x+2x2−8x4 (the x3 coefficient is 0)
d)−2x2−12x4
e)−∫0x(t+3t3)dt=−2x2−12x4; the fourth derivative is −2
a) ex=1+x+2x2+6x3+24x4+… and sinx=x−6x3+120x5−… Collecting: x1: 1⋅1=1. x2: x⋅x, coefficient 1. x3: 1⋅(−61)+21⋅1=31. x4: x⋅(−6x3)+6x3⋅x, coefficient −61+61=0. x5: 1201+21(−61)+241=1201−10+5=−301. So exsinx=x+x2+3x3−30x5+… The zero coefficient of x4 is not an accident to be doubted: it says that the fourth derivative of exsinx at 0 is 0, which differentiating four times by the product rule confirms, after a page.
b) tanx is odd, so write tanx=a1x+a3x3+a5x5+… and require (a1x+a3x3+a5x5)(1−2x2+24x4)=x−6x3+120x5. Degree 1: a1=1. Degree 3: a3−2a1=−61, so a3=31. Degree 5: a5−2a3+24a1=1201, so a5=1201+61−241=1201+20−5=152. So tanx=x+3x3+152x5+… Writing the unknown series and matching coefficients IS the long division, and it is less error-prone. The trap is to divide coefficient by coefficient, −1/2−1/6=31 for x3 by luck, then 1/241/120=51 for x5, which is false: a quotient of series is not the quotient of the coefficients.
c) The inner function u=sinx=x−6x3+… tends to 0, so eu=1+u+2u2+6u3+24u4+… may be used, with u2=x2−3x4+…, u3=x3+… (next term of degree 5), u4=x4+…, and u5 of degree 5, dropped. Sum: 1+(x−6x3)+21(x2−3x4)+6x3+24x4=1+x+2x2+0⋅x3−8x4. The trap is to replace sinx by x too early: that gives ex, with a wrong 6x3 and a wrong 24x4. Each power of u must be expanded to degree 4 before the terms are added. Direct check of the 0: f′=cosxesinx, f′′=(cos2x−sinx)esinx, f′′′=(−2sinxcosx−cosx+cos3x−sinxcosx)esinx, and at 0 this is (−1+1)e0=0.
d) ln(1+u) needs u→0, and cosx→1: so write cosx=1+u with u=−2x2+24x4−…, which does tend to 0. Then ln(cosx)=u−2u2+3u3−…, with u2=4x4+… and u3 of degree 6, dropped. So ln(cosx)=−2x2+24x4−8x4+⋯=−2x2−12x4+… The trap is to put u=cosx itself into ln(1+u): ln(1+cosx) is a different function, and even ln(cosx) read as ln(1+(cosx−1)) only works because cosx−1 is small. No constant term: ln(cos0)=ln1=0, a first check. The function is even, and so is the series.
e) dxdln(cosx)=cosx−sinx=−tanx, so ln(cosx)=ln(cos0)−∫0xtantdt=−∫0x(t+3t3+…)dt=−2x2−12x4−…, term-by-term integration being valid inside the radius. Same result as d) by an independent route. The coefficient of x4 is −121, so the fourth derivative at 0 is 4!⋅(−121)=−2. By hand: f′=−tanx, f′′=−sec2x, f′′′=−2sec2xtanx, f(4)=−4sec2xtan2x−2sec4x, which is −2 at 0. Four differentiations against one line of series.
Exercise 5: Reading the series backwards: the n-th derivative is n factorial times the coefficient
The coefficient formula works in both directions. As soon as a series of f centred at a is known, by the table or by the constructions of Exercise 4, every derivative at the centre is read from it: f(n)(a)=n!cn. This is how an exam asks for f(9)(0) without anyone differentiating nine times.
The uniqueness theorem is what makes it legitimate: whatever route produced the series, if it equals f near a, its coefficients ARE n!f(n)(a).
a) For f(x)=ex3, find f(9)(0) and f(10)(0).
b) For f(x)=x2e−x, find f(21)(0).
c) Let g(x)=xsinx for x=0 and g(0)=1. Find g′(0), g′′(0) and g(4)(0).
d) A function h has the Taylor series ∑n=0∞3nn+1(x−2)n at a=2. Find h(2), h′(2) and h′′′(2).
e) A function k has the Taylor series 4−3(x−1)2+5(x−1)3+… at a=1. What does it say about k at x=1?
Show the solution
Answers
a)f(9)(0)=3!9!=60480; f(10)(0)=0
b)f(21)(0)=−19!21!=−420
c)g′(0)=0, g′′(0)=−31, g(4)(0)=51
d)h(2)=1, h′(2)=32, h′′′(2)=98
e)k(1)=4, k′(1)=0, k′′(1)=−6<0: a local maximum of value 4
a) eu=∑n!un with u=x3: ex3=∑n≥0n!x3n. The power x9 comes from 3n=9, n=3: c9=3!1=61. So f(9)(0)=9!⋅61=6362880=60480. The power x10 would need 3n=10, which has no whole solution: c10=0 and f(10)(0)=0. Two traps, side by side: answering 61, the coefficient, instead of the derivative, and dividing by 9! because the power is 9, when the factorial of the table belongs to n=3. Differentiating instead: f′=3x2ex3, and the ninth derivative has dozens of terms.
b) e−x=∑m≥0m!(−1)mxm, so x2e−x=∑m≥0m!(−1)mxm+2. The power x21 comes from m=19: c21=19!(−1)19=−19!1. So f(21)(0)=21!⋅(−19!1)=−21⋅20=−420. The sign comes from (−1)19, odd. The factorials cancel down to a small integer, which is why exams choose such pairs: an answer still containing 21! signals a slip.
c) For x=0: xsinx=x1(x−6x3+120x5−…)=1−6x2+120x4−…, and at x=0 the series gives 1=g(0). So the series equals g everywhere and, by uniqueness, it is the Maclaurin series of g. Then g′(0)=1!⋅0=0 (no term in x; g is even), g′′(0)=2!⋅(−61)=−31 and g(4)(0)=4!⋅1201=51. By the quotient rule this would be hopeless: the formula xsinx is not defined at 0, so every derivative at 0 would need a limit of a difference quotient. The series settles in one line what the quotient rule cannot even start.
d) Here cn=3nn+1. At x=2 only the term n=0 survives: h(2)=c0=1. Then h′(2)=1!c1=32 and h′′′(2)=3!c3=6⋅274=98. The traps: forgetting the 3! and answering 274, or substituting x=2 into the coefficients, which are numbers: the variable lives only in (x−2)n. Independent check: with u=3x−2 the series is ∑(n+1)un=(1−u)21 (part a) of Exercise 3 with −u), so h(x)=(5−x)29. Then h(2)=1, h′(x)=(5−x)318 gives 32, and h′′′(x)=(5−x)5216 gives 243216=98.
e) c0=4, c1=0, c2=−3, c3=5. So k(1)=4, k′(1)=1!c1=0: x=1 is a critical point. k′′(1)=2!c2=−6<0: by the second derivative test, k has a local MAXIMUM at 1, of value 4. The cubic term does not change this: near x=1, −3(x−1)2 dominates 5(x−1)3. The usual slip is to read k′′(1)=−3 off the coefficient; the sign, and so the conclusion, survive the slip here, but a question asking for k′′(1) does not. For the record, k′′′(1)=3!⋅5=30.
Part B: problems and reasoning (/50)
Exercise 6: Limits by series: expand until something survives
At a 00 form, series do in one line what L'Hôpital's rule does in three rounds: replace each function by its series, simplify, and read the limit on the lowest power that SURVIVES. The only decision is how far to expand: far enough for the numerator and the denominator to each have a nonzero term, and every piece to the same degree.
The figure shows y=x3sinx−x on [−8,8]. The formula is undefined at 0, yet the curve plainly heads for a value somewhere near −0.17.
a) limx→0x3sinx−x
b) limx→0x3tanx−sinx
c) limx→0x−sinxln(1+x)−x+2x2
d) Find the constants a and b for which limx→0x5sin2x+ax+bx3 is finite, and give the limit.
e) limx→0(sin2x1−x21)
Show the solution
Answers
a)−61
b)21
c)2
d)a=−2, b=34, limit 154
e)31
a) sinx−x=(x−6x3+120x5−…)−x=−6x3+120x5−…, so x3sinx−x=−61+120x2−⋯→−61, the value the figure suggests. The trap is to stop too early: with sinx≈x the numerator becomes 0 and the copy concludes that the limit is 0. The approximation killed exactly the term that decides. Rule: keep expanding until something survives the cancellation. By L'Hôpital's rule the same limit takes three rounds, each one a new 00.
b) From Exercise 4, tanx=x+3x3+…, and sinx=x−6x3+… The difference is (31+61)x3+⋯=2x3+… (the next term is of degree 5), so the limit is 21. Both functions start with x, and a one-term expansion of each gives x30 again: here too the x3 terms are the ones that decide, and each must be exact.
c) Numerator: ln(1+x)=x−2x2+3x3−4x4+…, so ln(1+x)−x+2x2=3x3−4x4+… Denominator: x−sinx=6x3−120x5+… Both start at x3: 6x3+…3x3+…=61+…31−4x+…→1/61/3=2. When the lowest surviving powers on top and bottom are the same, the limit is the ratio of their coefficients; when the top starts higher, the limit is 0; when the bottom starts higher, the quotient is unbounded.
d) sin2x=2x−6(2x)3+120(2x)5−⋯=2x−34x3+154x5−… So the numerator is (2+a)x+(b−34)x3+154x5+… and the quotient is x42+a+x2b−4/3+154+… It has a finite limit only if the first two coefficients vanish: a=−2 and b=34, and then the limit is 154. The traps are in the powers of 2: (2x)3=8x3, not 2x3, and 12032=154. By L'Hôpital's rule this question would take five rounds, with a and b still unknown.
e) This is ∞−∞, and series cannot be used on it as it stands: first make ONE fraction. sin2x1−x21=x2sin2xx2−sin2x. Then sin2x=(x−6x3+…)2=x2−2⋅x⋅6x3+⋯=x2−3x4+…, so the numerator is 3x4+… and the denominator x2(x2−…)=x4+… The limit is 31. The trap is the cross term: squaring x−6x3 gives −3x4, twice the product, and the copy that writes x2−6x4 finds 61.
Exercise 7: Integrals with no elementary antiderivative: the series is the answer
Neither e−x2 nor xsinx has an antiderivative that can be written with the usual functions. Their integrals exist all the same, and a power series gives them EXACTLY: expand the integrand, integrate term by term on an interval inside the interval of convergence, and the result is a series valid on the same interval.
The figure shows y=e−x2, with the area from 0 to 1 shaded. Nothing in this exercise asks for a decimal: how many terms give a required accuracy is the question of the next chapter.
a) Find the Maclaurin series of F(x)=∫0xe−t2dt, with its general term and radius of convergence.
b) Deduce ∫01e−x2dx as the sum of a numerical series and write its first four terms as fractions. Show by an elementary inequality that the value lies between 32 and 1.
c) Let Si(x)=∫0xtsintdt. Explain why the integrand causes no trouble at t=0, then give the Maclaurin series of Si.
d) Find the series of ∫0xtarctantdt with its interval of validity, then express ∫01/2tarctantdt as a numerical series.
e) A student writes ∫0∞e−t2dt=∑n=0∞n!(−1)n∫0∞t2ndt. Explain why this is meaningless, although the series of e−t2 converges for every t.
Show the solution
Answers
a)F(x)=∑n=0∞n!(2n+1)(−1)nx2n+1, R=∞
b)∑n=0∞n!(2n+1)(−1)n=1−31+101−421+…, between 32 and 1
c)tsint→1, a removable point; Si(x)=∑n=0∞(2n+1)(2n+1)!(−1)nx2n+1
d)∑n=0∞(2n+1)2(−1)nx2n+1 for ∣x∣≤1; ∑n=0∞(2n+1)222n+1(−1)n
e)Each ∫0∞t2ndt diverges: term by term integration holds on bounded intervals only.
a) e−t2=∑n≥0n!(−1)nt2n for every t. Integrating term by term on [0,x], legitimate on any bounded interval since the radius is infinite: F(x)=∑n≥0n!(−1)n∫0xt2ndt=∑n≥0n!(2n+1)(−1)nx2n+1=x−3x3+10x5−42x7+… Integration does not change the radius: R=∞. No constant appears because F(0)=0. Each denominator has TWO factors, n! from the exponential and 2n+1 from integrating t2n; dropping either one is the usual slip. This series is the function: up to the factor π2 it is the error function of statistics and heat diffusion, and there is no other formula to find.
b) ∫01e−x2dx=F(1)=∑n≥0n!(2n+1)(−1)n=1−31+2⋅51−6⋅71+⋯=1−31+101−421+… This IS the exact value, and an exam that asks for the integral as a series expects exactly this answer. Plausibility, without any error bound: e−u≥1−u for every u (the tangent line at 0 lies under the convex exponential) and e−x2≤1, so 1−x2≤e−x2≤1 on [0,1] and 32≤∫01e−x2dx≤1. The first two terms of the series are exactly the lower bound, and the shaded region of the figure indeed fills most of the unit square.
c) As t→0, tsint→1: the integrand has a removable point at 0, it extends continuously by the value 1, and Si(x) is an ordinary integral, not an improper one. From Exercise 5 c), tsint=∑n≥0(2n+1)!(−1)nt2n for every t. Integrating: Si(x)=∑n≥0(2n+1)(2n+1)!(−1)nx2n+1=x−18x3+600x5−…, since 3⋅3!=18 and 5⋅5!=600, with R=∞. Si is odd, as the integral of an even function from 0. The solution figure shows Si(π) as the area of the first arch of tsint.
d) arctant=∑n≥02n+1(−1)nt2n+1 for ∣t∣≤1, so tarctant=∑n≥02n+1(−1)nt2n for 0<∣t∣≤1, with value 1 at t=0 as before. Integrating: ∫0xtarctantdt=∑n≥0(2n+1)2(−1)nx2n+1, radius 1 inherited from the arctangent, and the series also converges at x=±1, absolutely, by comparison with ∑n21: interval [−1,1]. At x=21, inside the radius: ∫01/2tarctantdt=∑n≥0(2n+1)222n+1(−1)n=21−721+8001−… The square in (2n+1)2 collects one 2n+1 from the arctangent and one from the integration.
e) Term-by-term integration is justified on a BOUNDED interval inside the interval of convergence. On [0,∞) every term is an improper integral that diverges, ∫0∞t2ndt=∞, so the right-hand side is a sum of infinities with alternating signs, not a number. The integral itself converges (by comparison with e−t for t≥1) and equals 2π, a value that comes from another method and is usually admitted in MATH 141. The underlying reason: every partial sum of the series is a polynomial, and a nonzero polynomial never has a finite integral on [0,∞). The series describes e−t2 perfectly on each bounded interval and says nothing about the area of an infinite tail.
Exercise 8: Five statements to correct
Each statement below was written on a MATH 141 practice paper, and each one is false. Say what is wrong, give the correct statement, and settle it with a short computation or a counterexample.
For a), the figure shows the function f(x)=e−1/x2 for x=0, f(0)=0.
a) Every derivative of f at 0 is 0 (admitted). So the Maclaurin series of f is 0, it converges for every x, and therefore f(x)=0 for every x.
b) Since sin(x2)=x2−6x6+…, the sixth derivative of sin(x2) at 0 is −61.
c) Putting x=2 in 1+x=∑n=0∞(n1/2)xn gives 3=∑n=0∞(n1/2)2n=1+1−21+21−…
d) The Taylor series of x1 centred at a=1 is ∑n=0∞(−1)nxn.
e) Two series are multiplied by multiplying the coefficients of equal powers, so excosx=1+0⋅x−41x2+…
Show the solution
Answers
a)False: f(1)=e1=0. The series converges everywhere but equals f only at 0.
b)False: f(6)(0)=6!⋅(−61)=−120.
c)False: x=2 is outside ∣x∣<1 and the series diverges; 3=2∑n=0∞(n1/2)(−41)n.
d)False: powers of x−1, x1=∑n=0∞(−1)n(x−1)n on (0,2).
e)False: collect every pair of degrees; excosx=1+x−3x3−6x4+…
a) FALSE. The Maclaurin series is indeed ∑0⋅xn=0, and it does converge for every x, but to 0, which is not f(x): f(1)=e−1=e1=0, and f(x)→1 as ∣x∣→∞. The figure shows how this is possible: f is so flat at 0 that f(0.3)=e−1/0.09=e−11.1 is below 0.00002, and every derivative vanishes there, yet the function is not zero. Correct statement: a Taylor series can converge everywhere and still not converge to its function. The equalities of the table are THEOREMS, proved by showing that the remainder tends to 0, which is the subject of the next chapter; for a new function, either prove it the same way or build the series from the table.
b) FALSE: the coefficient is not the derivative. The coefficient of x6 is c6=−61, so f(6)(0)=6!c6=720⋅(−61)=−120. Correct statement: the sixth derivative of sin(x2) at 0 is −120. By the same reading, every odd derivative at 0 is 0, since sin(x2) has only even powers.
c) FALSE: the binomial series equals (1+x)k only for ∣x∣<1. At x=2 the ratio of consecutive terms is n+11/2−n⋅2→2>1, so the terms grow (1,1,−21,21,−85,… already refuse to shrink) and the series diverges: it equals nothing. Correct route: rewrite the number so that the variable falls inside the interval. 3=4−1=21−41, and x=−41 is inside: 3=2∑n≥0(n1/2)(−41)n=2(1−81−1281−…), whose first three terms already give 64111≈1.73. The same gesture, factoring out the nearest perfect square, is what Exercise 3 c) did with 38+x.
d) FALSE: a series centred at 1 is written in powers of (x−1). From the definition, f(n)(x)=(−1)nn!x−n−1, so f(n)(1)=(−1)nn! and cn=(−1)n. From the table, x1=1+(x−1)1=∑n≥0(−1)n(x−1)n for ∣x−1∣<1, that is 0<x<2. The series of the statement is that of 1+x1 centred at 0, a different function; x1 itself has no Maclaurin series at all, being undefined at 0.
e) FALSE: the coefficient of xn in a product collects EVERY pair of degrees adding to n. With ex: 1,1,21,61,241 and cosx: 1,0,−21,0,241: x1: 1⋅0+1⋅1=1; x2: 1⋅(−21)+1⋅0+21⋅1=0; x3: 0−21+0+61=−31; x4: 241+0−41+0+241=−61. So excosx=1+x−3x3−6x4+… The claimed 0⋅x fails the simplest test: the derivative of excosx at 0 is e0(cos0−sin0)=1, so c1=1.
Exercise 9: Goals in a hockey game: sums and products of exponential series
A model used for rare, independent events (goals in a game, typos on a page, decays in a radioactive sample) gives the probability that exactly k events occur as k!e−λλk, for k=0,1,2,…, where λ>0 is a fixed number. A hockey analyst uses it for the number K of goals the home team scores in one game, with λ=3, so pk=k!e−33k; the figure shows p0 to p8 in percent. The visiting team scores L goals with λ=2, so qj=j!e−22j, and the two are independent: the probability that K=i and L=j is piqj (admitted).
Every question below is a series to recognize or to multiply, the gestures of this chapter. No calculator: exact answers, then an order of magnitude from e≈2.72.
a) Show that ∑k=0∞pk=1.
b) Find the exact probability that the home team scores an even number of goals (0 counts as even). Is it more or less than 21?
c) The probability that the game has n goals in total is ∑i=0npiqn−i. Recognize it as the coefficient of xn in the product of two exponential series, and show that it equals n!e−55n.
d) Write the probability of a tie, K=L, as a numerical series, give its first four terms, and estimate it from e5≈148.
e) Compute ∑k=0∞k+1pk exactly.
Show the solution
Answers
a)e−3∑k≥0k!3k=e−3e3=1
b)21+e−6, slightly more than 21 (about 0.501)
c)coefficient of xn in e3xe2x=e5x: n!e−55n
d)e−5∑k≥0(k!)26k=e−5(1+6+9+6+…), about 61
e)31−e−3, about 0.32
a) e−3 does not depend on k and comes out of the sum: ∑k≥0pk=e−3∑k≥0k!3k. The remaining series is the table series of eu at u=3, valid for every real u: it equals e3. So ∑pk=e−3e3=1: the probabilities of the model add up to 1, whatever λ. The chapter in one line: a series with k! in the denominator and no alternating sign is an exponential.
b) The probability is e−3∑k evenk!3k. The even terms are isolated by adding the series of e3 and e−3: e3+e−3=∑k≥0k!(1+(−1)k)3k, where odd terms cancel and even terms double. So ∑k evenk!3k=2e3+e−3, and the probability is e−3⋅2e3+e−3=21+e−6. It is slightly MORE than 21: e2≈7.4, so e6≈7.43≈400 and the probability is about 21+8001≈0.501. The trap: even powers over even factorials look like a cosine, but cos3 has ALTERNATING signs; here every term is positive.
c) ∑i=0npiqn−i=e−5∑i=0ni!3i⋅(n−i)!2n−i. Now e3x=∑ii!3ixi and e2x=∑jj!2jxj, and the coefficient of xn in their product collects every pair i+j=n: it is exactly ∑i=0ni!3i⋅(n−i)!2n−i. But e3xe2x=e5x=∑nn!5nxn, and by uniqueness of the coefficients the sum equals n!5n. So the total number of goals follows the same model with λ=5: n!e−55n. Check at n=1: p0q1+p1q0=e−5(2+3)=5e−5. The product rule of this chapter did the combinatorics: expanding (3+2)n by the binomial theorem gives the same identity.
d) A tie means K=L=k for some k, so the probability is ∑k≥0pkqk=e−5∑k≥0(k!)26k=e−5(1+6+436+36216+…)=e−5(1+6+9+6+…). The series converges (ratio (k+1)26→0), but it is NOT a table series: the square of the factorial has no counterpart in the table, and no elementary closed form exists. The series is the exact answer, the same situation as the integrals of Exercise 7. Order of magnitude: the next terms are 49 and about 0.5, so the sum is roughly 25, and 14825≈61: about one game in six is tied at the end of regulation time in this model.
e) k+1pk=(k+1)k!e−33k=(k+1)!e−33k. Multiply and divide by 3 to complete the power: ∑k≥0(k+1)!3k=31∑k≥0(k+1)!3k+1=31∑j≥1j!3j=3e3−1, the term j=0, equal to 1, being MISSING from the exponential series. So ∑k+1pk=e−33e3−1=31−e−3. With e3≈20, it is about 31−0.05≈0.32. Forgetting the missing term gives exactly 31: close, and wrong. The shift of index is only legitimate once the new starting value, here j=1, is written.
Exercise 10: A final exam problem: one function, every use of its series
Let f(x)=xex−1 for x=0 and f(0)=1. The figure shows its graph: the formula has no value at 0, and the definition fills the hole. This problem chains the gestures of the chapter on a single function, as MATH 141 finals often do.
a) Find the Maclaurin series of f and its radius of convergence. Why does it equal f at x=0 as well?
b) Find f(n)(0) for every n. In particular, what is f(10)(0)?
c) Differentiate the series term by term and evaluate at x=2 to find the exact sum of ∑n=1∞(n+1)!n2n−1.
d) Express ∫01f(x)dx as a numerical series.
e) Compute limx→0xf(x)−1 and limx→0x2f(x)−1−2x. What does the first limit say about f′(0)?
Show the solution
Answers
a)f(x)=∑n=0∞(n+1)!xn, R=∞; at 0 the series gives 1=f(0)
b)f(n)(0)=n+11; f(10)(0)=111
c)f′(2)=4e2+1
d)∑n=1∞n⋅n!1
e)21, which is f′(0); then 61
a) ex−1=∑n≥1n!xn: the term n=0, equal to 1, cancels. For x=0, dividing by x: f(x)=∑n≥1n!xn−1=∑m≥0(m+1)!xm=1+2x+6x2+24x3+… At x=0 the series gives 1, which is f(0) by definition. So the series equals f at EVERY x, and by uniqueness it is the Maclaurin series of f. Ratio test: ∣x∣m/(m+1)!∣x∣m+1/(m+2)!=m+2∣x∣→0, so R=∞. The value f(0)=1 was not chosen at random: any other value would make f discontinuous at 0, and no power series could equal it.
b) cn=(n+1)!1, so f(n)(0)=n!cn=(n+1)!n!=n+11. In particular f(10)(0)=111. By the quotient rule this would mean ten differentiations of xex−1, and then a limit at 0 where the formula is undefined. Small cases as a check: f(0)=1=11, and f′(0)=21, which part e) finds again by a limit.
c) Term-by-term differentiation, valid inside the radius, here everywhere: f′(x)=∑n≥1(n+1)!nxn−1. Directly, for x=0: f′(x)=x2xex−(ex−1)=x2xex−ex+1. At x=2 the two expressions agree: ∑n≥1(n+1)!n2n−1=f′(2)=42e2−e2+1=4e2+1, about 47.4+1≈2.1. Plausibility: the first four terms, 21+64+2412+12032, already add up to about 1.93, and all terms are positive. The gesture: a series whose general term has an extra factor n in front of a known coefficient is the DERIVATIVE of a known series, evaluated at a point.
d) f is continuous on [0,1] thanks to f(0)=1, so the integral is an ordinary one; but xex−1 has no elementary antiderivative. Integrating the series term by term on [0,1]: ∫01f(x)dx=∑m≥0(m+1)!1∫01xmdx=∑m≥0(m+1)!(m+1)1=∑n≥1n⋅n!1=1+41+181+961+… That series is the exact answer. Plausibility: f increases from f(0)=1 to f(1)=e−1≈1.72, so the integral lies between 1 and 1.72, and the first terms, about 1.32, sit in that range.
e) xf(x)−1=x2x+6x2+…=21+6x+⋯→21. Since f(0)=1, this quotient is the difference quotient x−0f(x)−f(0): its limit IS f′(0), so f′(0)=21, as b) said with n=1. Next, x2f(x)−1−2x=61+24x+⋯→61, which is c2=2f′′(0) with f′′(0)=31 from b). By L'Hôpital's rule the second limit would require the second derivative of a quotient, twice, before the 00 goes away.