MATH 205 Calculus II • Concordia University, Montreal

Corrected exercises: Taylor and Maclaurin series (MATH 205)

Exercises: Taylor and Maclaurin series (MATH 205)

Name: Class: Date:

Solutions

Suggested time: 2 h 30 · Calculator allowed · 10 exercises
https://www.letuteurscientifique.ca/en/exercices/math205-taylor-maclaurin

This is the corrected exercise set for Taylor and Maclaurin series in MATH 205, Differential and Integral Calculus II, at Concordia University, section 10.8 of Thomas' Calculus.

What the set covers, the traps it targets

It covers the Taylor series generated by ff at x=ax = a and the Maclaurin series, the Taylor polynomial of order nn, the reference series of exe^x, sin⁡x\sin x, cos⁡x\cos x, 11−x\frac{1}{1-x}, ln⁡(1+x)\ln(1+x) and arctan⁡x\arctan x, the series obtained from them by substitution, multiplication by a power of xx, differentiation and integration, limits computed with series, and integrals with no elementary antiderivative approximated with an error bound from the Alternating Series Estimation Theorem.

At the end you can find a Taylor series by the definition or by the table, read a derivative from it, and answer the Maclaurin series question of the final.

One idea runs through the set: one formula, cn=f(n)(a)n!c_n = \frac{f^{(n)}(a)}{n!}, read in both directions, and a short table that is transformed rather than recomputed. The marks are lost in the algebra: the power of a product, (3x)2n=9nx2n(3x)^{2n} = 9^nx^{2n}, with the sign (−1)n(-1)^n kept apart; a quotient of factorials, (n+2)!n!=(n+1)(n+2)\frac{(n+2)!}{n!} = (n+1)(n+2); a constant factored out before the table applies; an index shifted to add two series; the interval of validity moved by the substitution; and the first unused term as the error.

The traps named in the solutions: the coefficient written without its n!n! (exercises 1 and 6), powers of xx instead of x−ax - a (1, 4 and 7), (2x)2n+1(2x)^{2n+1} written 2x2n+12x^{2n+1} (2, 5 and 8), z=4+x2z = 4 + x^2 put into ln⁡(1+z)\ln(1 + z) (2), two series subtracted without shifting the index (2), a coefficient read at the wrong nn (3 and 8), the chain rule forgotten on sec⁡2x\sec^2 x (4), order taken for degree (4 and 8), (−4x)2(-4x)^2 given a minus sign (5), the factorials of sin⁡x\sin x given to arctan⁡x\arctan x (8), the last term used taken as the error bound, and a count of terms that forgets the index n=0n = 0 (9), the constant F(0)F(0) dropped when a series is integrated (6), and (4x)2n(4x)^{2n} written 4x2n4x^{2n} after a product-to-sum identity (10).

  • 10 corrected exercises • 100 points • 150 minutes
  • Self-checking, 82 answers
  • Calculator
Start exercise 1 The chapter sheet
Print

Print the homework or the solutions

The homework without solutions, one exercise per page, and the solutions on their own: it comes with your free space. An email is enough, no password, and you come back here.

Create my free space

Already have one? Sign in

Course recap

  • • Taylor series generated by ff at x=ax = a: ∑n=0∞f(n)(a)n!(x−a)n\sum_{n=0}^{\infty}\frac{f^{(n)}(a)}{n!}(x - a)^n; Maclaurin series: a=0a = 0. Conversely f(n)(a)=n! cnf^{(n)}(a) = n!\,c_n.
  • • Taylor polynomial of order nn: Pn(x)=∑k=0nf(k)(a)k!(x−a)kP_n(x) = \sum_{k=0}^{n}\frac{f^{(k)}(a)}{k!}(x - a)^k; its degree can be lower than nn.
  • • ex=∑xnn!e^x = \sum\frac{x^n}{n!}, sin⁡x=∑(−1)nx2n+1(2n+1)!\sin x = \sum\frac{(-1)^nx^{2n+1}}{(2n+1)!}, cos⁡x=∑(−1)nx2n(2n)!\cos x = \sum\frac{(-1)^nx^{2n}}{(2n)!}, for every xx.
  • • 11−x=∑xn\frac{1}{1-x} = \sum x^n for ∣x∣<1|x| < 1; ln⁡(1+x)=∑n≥1(−1)n−1xnn\ln(1+x) = \sum_{n\ge1}\frac{(-1)^{n-1}x^n}{n} for −1<x≤1-1 < x \le 1; arctan⁡x=∑(−1)nx2n+12n+1\arctan x = \sum\frac{(-1)^nx^{2n+1}}{2n+1} for ∣x∣≤1|x| \le 1.
  • • Substitution: (cxm)n=cnxmn(cx^m)^n = c^nx^{mn}; the series holds for the xx that put cxmcx^m in the interval of the table.
  • • Alternating series ∑(−1)nun\sum(-1)^nu_n with unu_n decreasing to 00: the error after stopping at n=Nn = N is at most uN+1u_{N+1}, with the sign of the first unused term.

Part A: the basics (/50)

Exercise 1: Coefficients from the definition: the nth derivative at a, divided by n!

9 answers to check

Let ff have derivatives of all orders on an interval containing aa as an interior point. The Taylor series generated by ff at x=ax = a is ∑n=0∞f(n)(a)n!(x−a)n\sum_{n=0}^{\infty}\frac{f^{(n)}(a)}{n!}(x - a)^n; the Maclaurin series generated by ff is the case a=0a = 0 (Thomas 10.8). The method from the definition: differentiate until a pattern appears, check the pattern, evaluate at aa, divide by n!n!, and simplify the quotient of factorials. The powers are powers of (x−a)(x - a), never of xx.

The calculator is allowed: give the coefficients exactly, and the values asked to four decimals.

  • a) Find the Maclaurin series generated by f(x)=2xf(x) = 2^x, with its general term. Give c3c_3.
  • b) For g(x)=1x3g(x) = \frac{1}{x^3}, find g′g', g′′g'', g′′′g''', then a formula for g(n)(x)g^{(n)}(x). Deduce the Taylor series generated by gg at x=1x = 1, with its general term written without factorials. Give c3c_3 and c4c_4.
  • c) Find the radius and the interval of convergence of the series of b).
  • d) Find the Maclaurin series generated by h(x)=xexh(x) = xe^x from the definition: show that h(n)(x)=(x+n)exh^{(n)}(x) = (x + n)e^x, then write the general term. Give h(4)(0)h^{(4)}(0) and c4c_4.
  • e) Write the Taylor polynomial of order 22 of gg at x=1x = 1, and compare P2(1.1)P_2(1.1) with g(1.1)g(1.1) at the calculator.

Type your answers, the page tells you right or wrong 0/9

a)
b)
c)
Interval of convergence ,
d)
e)
Show the solution

Answers

  • a) 2x=∑n=0∞(ln⁡2)nn!xn2^x = \sum_{n=0}^{\infty}\frac{(\ln 2)^n}{n!}x^n; c3=(ln⁡2)36≈0.0555c_3 = \frac{(\ln 2)^3}{6} \approx 0.0555
  • b) g(n)(x)=(−1)n(n+2)!2x−(n+3)g^{(n)}(x) = (-1)^n\frac{(n+2)!}{2}x^{-(n+3)}; 1x3=∑n=0∞(−1)n(n+1)(n+2)2(x−1)n\frac{1}{x^3} = \sum_{n=0}^{\infty}(-1)^n\frac{(n+1)(n+2)}{2}(x - 1)^n; c3=−10c_3 = -10, c4=15c_4 = 15
  • c) R=1R = 1; interval (0,2)(0, 2), both endpoints excluded
  • d) h(n)(0)=nh^{(n)}(0) = n, xex=∑n=1∞xn(n−1)!xe^x = \sum_{n=1}^{\infty}\frac{x^n}{(n-1)!}; h(4)(0)=4h^{(4)}(0) = 4, c4=16c_4 = \frac{1}{6}
  • e) P2(x)=1−3(x−1)+6(x−1)2P_2(x) = 1 - 3(x - 1) + 6(x - 1)^2; P2(1.1)=0.76P_2(1.1) = 0.76 against g(1.1)≈0.7513g(1.1) \approx 0.7513
a)

f(x)=2x=exln⁡2f(x) = 2^x = e^{x\ln 2}, so f′(x)=(ln⁡2) 2xf'(x) = (\ln 2)\,2^x, f′′(x)=(ln⁡2)2 2xf''(x) = (\ln 2)^2\,2^x, and each derivative brings one more factor ln⁡2\ln 2: f(n)(x)=(ln⁡2)n 2xf^{(n)}(x) = (\ln 2)^n\,2^x.

At 00: f(n)(0)=(ln⁡2)nf^{(n)}(0) = (\ln 2)^n, since 20=12^0 = 1.

2x=∑n=0∞(ln⁡2)nn!xn2^x = \sum_{n=0}^{\infty}\frac{(\ln 2)^n}{n!}x^n, and c3=(ln⁡2)33!≈0.0555c_3 = \frac{(\ln 2)^3}{3!} \approx 0.0555.

Second route, a check: put z=xln⁡2z = x\ln 2 into ez=∑znn!e^z = \sum\frac{z^n}{n!}; (xln⁡2)n=(ln⁡2)nxn(x\ln 2)^n = (\ln 2)^n x^n gives the same coefficients.

b)

g(x)=x−3g(x) = x^{-3}: g′(x)=−3x−4g'(x) = -3x^{-4}, g′′(x)=12x−5g''(x) = 12x^{-5}, g′′′(x)=−60x−6g'''(x) = -60x^{-6}.

Pattern: the sign alternates, the exponent is −(n+3)-(n + 3), and the constants 33, 1212, 6060 are 33, 3⋅43 \cdot 4, 3⋅4⋅53 \cdot 4 \cdot 5, that is (n+2)!2\frac{(n+2)!}{2}. So g(n)(x)=(−1)n(n+2)!2x−(n+3)g^{(n)}(x) = (-1)^n\frac{(n+2)!}{2}x^{-(n+3)}; differentiating once more multiplies by −(n+3)-(n + 3), which gives the formula for n+1n + 1.

At 11: g(n)(1)=(−1)n(n+2)!2g^{(n)}(1) = (-1)^n\frac{(n+2)!}{2}.

cn=g(n)(1)n!=(−1)n(n+2)!2 n!=(−1)n(n+1)(n+2)2c_n = \frac{g^{(n)}(1)}{n!} = (-1)^n\frac{(n+2)!}{2\,n!} = (-1)^n\frac{(n+1)(n+2)}{2}, since (n+2)!=(n+2)(n+1) n!(n+2)! = (n+2)(n+1)\,n!.

1x3=∑n=0∞(−1)n(n+1)(n+2)2(x−1)n=1−3(x−1)+6(x−1)2−10(x−1)3+15(x−1)4−⋯\displaystyle \frac{1}{x^3} = \sum_{n=0}^{\infty}(-1)^n\frac{(n+1)(n+2)}{2}(x - 1)^n = 1 - 3(x - 1) + 6(x - 1)^2 - 10(x - 1)^3 + 15(x - 1)^4 - \cdots

Pitfall: writing cn=g(n)(1)c_n = g^{(n)}(1), without the division by n!n!; the coefficient of (x−1)3(x - 1)^3 would be −60-60 instead of −10-10.

Pitfall: writing xnx^n instead of (x−1)n(x - 1)^n. The coefficients describe gg near 11; with powers of xx the series would describe nothing.

c)

Ratio of consecutive terms: ∣cn+1(x−1)n+1cn(x−1)n∣=(n+2)(n+3)(n+1)(n+2)∣x−1∣=n+3n+1∣x−1∣→∣x−1∣\left|\frac{c_{n+1}(x - 1)^{n+1}}{c_n(x - 1)^n}\right| = \frac{(n+2)(n+3)}{(n+1)(n+2)}|x - 1| = \frac{n+3}{n+1}|x - 1| \to |x - 1|.

By the Ratio Test the series converges absolutely for ∣x−1∣<1|x - 1| < 1 and diverges for ∣x−1∣>1|x - 1| > 1: R=1R = 1.

At x=0x = 0 and at x=2x = 2, ∣(x−1)n∣=1|(x - 1)^n| = 1 and the terms have size (n+1)(n+2)2→∞\frac{(n+1)(n+2)}{2} \to \infty: both series diverge by the nnth-Term Test.

Interval of convergence: (0,2)(0, 2). The function 1x3\frac{1}{x^3} exists far beyond it, but its series at 11 stops at the distance of the point x=0x = 0, where gg is not defined.

d)

Product rule: h′(x)=ex+xex=(x+1)exh'(x) = e^x + xe^x = (x + 1)e^x. If h(n)(x)=(x+n)exh^{(n)}(x) = (x + n)e^x, then h(n+1)(x)=ex+(x+n)ex=(x+n+1)exh^{(n+1)}(x) = e^x + (x + n)e^x = (x + n + 1)e^x: the pattern carries on.

At 00: h(n)(0)=nh^{(n)}(0) = n, so h(4)(0)=4h^{(4)}(0) = 4.

c0=0c_0 = 0 and, for n≥1n \ge 1, cn=nn!=1(n−1)!c_n = \frac{n}{n!} = \frac{1}{(n-1)!}, since n!=n (n−1)!n! = n\,(n-1)!.

xex=∑n=1∞xn(n−1)!=x+x2+x32+x46+⋯xe^x = \sum_{n=1}^{\infty}\frac{x^n}{(n-1)!} = x + x^2 + \frac{x^3}{2} + \frac{x^4}{6} + \cdots, and c4=13!=16c_4 = \frac{1}{3!} = \frac{1}{6}.

Exercise 3 finds the same series in one line, by multiplying the series of exe^x by xx.

e)

P2(x)=c0+c1(x−1)+c2(x−1)2=1−3(x−1)+6(x−1)2P_2(x) = c_0 + c_1(x - 1) + c_2(x - 1)^2 = 1 - 3(x - 1) + 6(x - 1)^2.

P2(1.1)=1−0.3+0.06=0.76P_2(1.1) = 1 - 0.3 + 0.06 = 0.76, and g(1.1)=11.331≈0.7513g(1.1) = \frac{1}{1.331} \approx 0.7513.

The gap, about 0.00870.0087, is close to the next term, ∣c3∣(0.1)3=0.01|c_3|(0.1)^3 = 0.01: near the centre each added term changes the value less.

Tick the exercises you have done or want to review: a free account, no password, keeps your ticks and your right answers from one visit to the next, tells you which chapter to tackle next and lets you ask for the exercise you are missing. Create your space, an email is enough.

Exercise 2: The table of reference series: substitute, keep the sign apart, move the interval

11 answers to check

Reference series, to know by heart: 11−x=∑n=0∞xn\frac{1}{1-x} = \sum_{n=0}^{\infty}x^n for ∣x∣<1|x| < 1; ex=∑n=0∞xnn!e^x = \sum_{n=0}^{\infty}\frac{x^n}{n!}, sin⁡x=∑n=0∞(−1)nx2n+1(2n+1)!\sin x = \sum_{n=0}^{\infty}\frac{(-1)^nx^{2n+1}}{(2n+1)!} and cos⁡x=∑n=0∞(−1)nx2n(2n)!\cos x = \sum_{n=0}^{\infty}\frac{(-1)^nx^{2n}}{(2n)!} for every xx; ln⁡(1+x)=∑n=1∞(−1)n−1xnn\ln(1+x) = \sum_{n=1}^{\infty}\frac{(-1)^{n-1}x^n}{n} for −1<x≤1-1 < x \le 1; arctan⁡x=∑n=0∞(−1)nx2n+12n+1\arctan x = \sum_{n=0}^{\infty}\frac{(-1)^nx^{2n+1}}{2n+1} for −1≤x≤1-1 \le x \le 1.

To get a new series, replace xx by an expression zz, never differentiate again. The algebra: (cxm)n=cnxmn(cx^m)^n = c^nx^{mn}, the sign (−1)n(-1)^n written apart; a factor xkx^k adds kk to every exponent; and the series holds for the xx that put zz in the interval of the table.

  • a) sin⁡xcos⁡x\sin x\cos x. Rewrite it with an identity first, then give the general term and the coefficients of x3x^3 and x5x^5.
  • b) ln⁡(4+x2)\ln(4 + x^2). Factor out 44 first. Give the general term, the constant term, the coefficient of x4x^4 and the interval where the series equals the function.
  • c) xarctan⁡(3x)x\arctan(3x). Give the general term, the coefficient of x4x^4 and the interval of validity.
  • d) (1−x)ex(1 - x)e^x. Write it as the sum of two series, shift the index of one of them, and give the general term; then c1c_1 and c3c_3.
  • e) sin⁡(x3)x\frac{\sin(x^3)}{x}, completed by its limit 00 at x=0x = 0. Give the general term, the coefficient of x8x^8, and say for which xx the series is valid.

Type your answers, the page tells you right or wrong 0/11

a)
b)
Interval of validity ,
c)
Interval of validity ,
d)
e)
Show the solution

Answers

  • a) sin⁡xcos⁡x=12sin⁡2x=∑n=0∞(−1)n22nx2n+1(2n+1)!\sin x\cos x = \frac{1}{2}\sin 2x = \sum_{n=0}^{\infty}\frac{(-1)^n2^{2n}x^{2n+1}}{(2n+1)!}; coefficients −23-\frac{2}{3} and 215\frac{2}{15}
  • b) ln⁡4+∑n=1∞(−1)n−1x2nn 4n\ln 4 + \sum_{n=1}^{\infty}\frac{(-1)^{n-1}x^{2n}}{n\,4^n}; constant ln⁡4≈1.3863\ln 4 \approx 1.3863; coefficient of x4x^4: −132-\frac{1}{32}; valid on [−2,2][-2, 2]
  • c) ∑n=0∞(−1)n32n+1x2n+22n+1\sum_{n=0}^{\infty}\frac{(-1)^n3^{2n+1}x^{2n+2}}{2n+1}; coefficient of x4x^4: −9-9; valid on [−13,13]\left[-\frac{1}{3}, \frac{1}{3}\right]
  • d) (1−x)ex=∑n=0∞1−nn!xn(1 - x)e^x = \sum_{n=0}^{\infty}\frac{1 - n}{n!}x^n; c1=0c_1 = 0, c3=−13c_3 = -\frac{1}{3}
  • e) ∑n=0∞(−1)nx6n+2(2n+1)!\sum_{n=0}^{\infty}\frac{(-1)^nx^{6n+2}}{(2n+1)!}; coefficient of x8x^8: −16-\frac{1}{6}; valid for every xx
a)

sin⁡2x=2sin⁡xcos⁡x\sin 2x = 2\sin x\cos x, so sin⁡xcos⁡x=12sin⁡2x\sin x\cos x = \frac{1}{2}\sin 2x.

With z=2xz = 2x: sin⁡2x=∑(−1)n(2x)2n+1(2n+1)!\sin 2x = \sum\frac{(-1)^n(2x)^{2n+1}}{(2n+1)!} and (2x)2n+1=22n+1x2n+1(2x)^{2n+1} = 2^{2n+1}x^{2n+1}.

12⋅22n+1=22n\frac{1}{2} \cdot 2^{2n+1} = 2^{2n}: sin⁡xcos⁡x=∑n=0∞(−1)n22nx2n+1(2n+1)!=x−23x3+215x5−⋯\sin x\cos x = \sum_{n=0}^{\infty}\frac{(-1)^n2^{2n}x^{2n+1}}{(2n+1)!} = x - \frac{2}{3}x^3 + \frac{2}{15}x^5 - \cdots, for every xx.

Pitfall: (2x)2n+1=2x2n+1(2x)^{2n+1} = 2x^{2n+1}. The power applies to the 22 as well; the coefficient of x3x^3 would become −16-\frac{1}{6}.

Multiplying the series of sin⁡x\sin x and cos⁡x\cos x term by term is not on the MATH 205 outline; the identity makes it unnecessary.

b)

ln⁡(4+x2)=ln⁡(4(1+x24))=ln⁡4+ln⁡(1+x24)\ln(4 + x^2) = \ln\left(4\left(1 + \frac{x^2}{4}\right)\right) = \ln 4 + \ln\left(1 + \frac{x^2}{4}\right), by the law ln⁡(ab)=ln⁡a+ln⁡b\ln(ab) = \ln a + \ln b.

With z=x24z = \frac{x^2}{4} in the series of ln⁡(1+z)\ln(1 + z): (x24)n=x2n4n\left(\frac{x^2}{4}\right)^n = \frac{x^{2n}}{4^n}, so ln⁡(4+x2)=ln⁡4+∑n=1∞(−1)n−1x2nn 4n\ln(4 + x^2) = \ln 4 + \sum_{n=1}^{\infty}\frac{(-1)^{n-1}x^{2n}}{n\,4^n}.

Constant term ln⁡4≈1.3863\ln 4 \approx 1.3863; coefficient of x4x^4 (n=2n = 2): −12⋅16=−132\frac{-1}{2 \cdot 16} = -\frac{1}{32}.

Validity: −1<x24≤1-1 < \frac{x^2}{4} \le 1, that is x2≤4x^2 \le 4, so −2≤x≤2-2 \le x \le 2, endpoints included since z=1z = 1 is included in the table.

Pitfall: putting z=4+x2z = 4 + x^2 or z=3+x2z = 3 + x^2 into ln⁡(1+z)\ln(1 + z). That zz is never in (−1,1](-1, 1], and the series is false everywhere; the constant must be factored out first.

c)

With z=3xz = 3x: arctan⁡3x=∑(−1)n(3x)2n+12n+1=∑(−1)n32n+1x2n+12n+1\arctan 3x = \sum\frac{(-1)^n(3x)^{2n+1}}{2n+1} = \sum\frac{(-1)^n3^{2n+1}x^{2n+1}}{2n+1}.

Times xx: xarctan⁡3x=∑n=0∞(−1)n32n+1x2n+22n+1=3x2−9x4+2435x6−⋯x\arctan 3x = \sum_{n=0}^{\infty}\frac{(-1)^n3^{2n+1}x^{2n+2}}{2n+1} = 3x^2 - 9x^4 + \frac{243}{5}x^6 - \cdots

Coefficient of x4x^4 (n=1n = 1): −273=−9-\frac{27}{3} = -9.

Validity: −1≤3x≤1-1 \le 3x \le 1, so −13≤x≤13-\frac{1}{3} \le x \le \frac{1}{3}. Multiplying by xx does not change the interval.

d)

(1−x)ex=∑n=0∞xnn!−∑n=0∞xn+1n!(1 - x)e^x = \sum_{n=0}^{\infty}\frac{x^n}{n!} - \sum_{n=0}^{\infty}\frac{x^{n+1}}{n!}.

Shift the index of the second sum, m=n+1m = n + 1: ∑n=0∞xn+1n!=∑m=1∞xm(m−1)!\sum_{n=0}^{\infty}\frac{x^{n+1}}{n!} = \sum_{m=1}^{\infty}\frac{x^m}{(m-1)!}.

For n≥1n \ge 1, the coefficient of xnx^n is 1n!−1(n−1)!=1−nn!\frac{1}{n!} - \frac{1}{(n-1)!} = \frac{1 - n}{n!}, since 1(n−1)!=nn!\frac{1}{(n-1)!} = \frac{n}{n!}; for n=0n = 0 it is 1=1−00!1 = \frac{1 - 0}{0!}.

(1−x)ex=∑n=0∞1−nn!xn=1−x22−x33−⋯(1 - x)e^x = \sum_{n=0}^{\infty}\frac{1 - n}{n!}x^n = 1 - \frac{x^2}{2} - \frac{x^3}{3} - \cdots, for every xx. c1=0c_1 = 0 and c3=−26=−13c_3 = -\frac{2}{6} = -\frac{1}{3}.

Pitfall: subtracting the two sums with the same index nn; the terms xnn!\frac{x^n}{n!} and xn+1n!\frac{x^{n+1}}{n!} are not of the same degree.

e)

With z=x3z = x^3: sin⁡(x3)=∑n=0∞(−1)n(x3)2n+1(2n+1)!=∑n=0∞(−1)nx6n+3(2n+1)!\sin(x^3) = \sum_{n=0}^{\infty}\frac{(-1)^n(x^3)^{2n+1}}{(2n+1)!} = \sum_{n=0}^{\infty}\frac{(-1)^nx^{6n+3}}{(2n+1)!}, since 3(2n+1)=6n+33(2n + 1) = 6n + 3.

Divide by xx, which lowers every exponent by 11: sin⁡(x3)x=∑n=0∞(−1)nx6n+2(2n+1)!=x2−x86+x14120−⋯\frac{\sin(x^3)}{x} = \sum_{n=0}^{\infty}\frac{(-1)^nx^{6n+2}}{(2n+1)!} = x^2 - \frac{x^8}{6} + \frac{x^{14}}{120} - \cdots

Coefficient of x8x^8: 6n+2=86n + 2 = 8 gives n=1n = 1, so −13!=−16-\frac{1}{3!} = -\frac{1}{6}.

The series of sin⁡z\sin z holds for every zz, so this one holds for every x≠0x \ne 0, and at x=0x = 0 it gives 00, the value chosen: valid for every xx.

Pitfall: writing (x3)2n+1=x2n+4(x^3)^{2n+1} = x^{2n+4}; a power of a power multiplies the exponents.

Exercise 3: Multiply by x, differentiate, integrate: one series gives three others

6 answers to check

Inside its interval of convergence, a power series can be multiplied by a power of xx, differentiated term by term and integrated term by term (Thomas 10.7), and the new series converges to the product, the derivative or the integral. A Taylor series is unique: whatever the route, a power series equal to ff near aa has the coefficients f(n)(a)n!\frac{f^{(n)}(a)}{n!}.

The work of this exercise is in the exponents and the factorials: x⋅xn=xn+1x \cdot x^n = x^{n+1}, ddxxn+1=(n+1)xn\frac{d}{dx}x^{n+1} = (n+1)x^n, ∫01xn+1 dx=1n+2\int_0^1 x^{n+1}\,dx = \frac{1}{n+2}. Every series here comes from ex=∑n=0∞xnn!e^x = \sum_{n=0}^{\infty}\frac{x^n}{n!}, valid for every xx.

  • a) Write the Maclaurin series of xexxe^x by multiplying the series of exe^x by xx. Compare with Exercise 1 d), and give the coefficient of x5x^5.
  • b) Differentiate the series of a) term by term. Which function does the new series represent? Give its general term and the coefficient of x3x^3.
  • c) Deduce the exact sum of ∑n=0∞n+1n!\sum_{n=0}^{\infty}\frac{n+1}{n!}, then a decimal.
  • d) Integrate the series of a) from −1-1 to 00, evaluate ∫−10xex dx\int_{-1}^{0} xe^x\,dx by parts, and deduce the sum of ∑n=0∞(−1)nn! (n+2)\sum_{n=0}^{\infty}\frac{(-1)^n}{n!\,(n+2)}. Give also the sum of its first four terms.
  • e) What is the sum of ∑n=0∞(−1)n(n+1)n!\sum_{n=0}^{\infty}\frac{(-1)^n(n+1)}{n!}? Justify that the value of xx you use is allowed.

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) xex=∑n=0∞xn+1n!xe^x = \sum_{n=0}^{\infty}\frac{x^{n+1}}{n!}, the series of Exercise 1 d) after the shift m=n+1m = n + 1; coefficient of x5x^5: 124\frac{1}{24}
  • b) (1+x)ex=∑n=0∞(n+1)xnn!(1 + x)e^x = \sum_{n=0}^{\infty}\frac{(n+1)x^n}{n!}; coefficient of x3x^3: 23\frac{2}{3}
  • c) 2e≈5.43662e \approx 5.4366
  • d) ∫−10xex dx=2e−1\int_{-1}^{0} xe^x\,dx = \frac{2}{e} - 1, so ∑n=0∞(−1)nn! (n+2)=1−2e≈0.2642\sum_{n=0}^{\infty}\frac{(-1)^n}{n!\,(n+2)} = 1 - \frac{2}{e} \approx 0.2642; first four terms: 31120≈0.2583\frac{31}{120} \approx 0.2583
  • e) 00, the value of (1+x)ex(1 + x)e^x at x=−1x = -1, allowed since the series converges for every xx
a)
xex=x∑n=0∞xnn!=∑n=0∞xn+1n!=x+x2+x32!+x43!+⋯\displaystyle xe^x = x\sum_{n=0}^{\infty}\frac{x^n}{n!} = \sum_{n=0}^{\infty}\frac{x^{n+1}}{n!} = x + x^2 + \frac{x^3}{2!} + \frac{x^4}{3!} + \cdots

With m=n+1m = n + 1: ∑m=1∞xm(m−1)!\sum_{m=1}^{\infty}\frac{x^m}{(m-1)!}, the series of Exercise 1 d), found there with four derivatives and a pattern.

Coefficient of x5x^5: n+1=5n + 1 = 5, so n=4n = 4 and 14!=124\frac{1}{4!} = \frac{1}{24}.

Pitfall: reading the coefficient of x5x^5 at n=5n = 5, which gives 1120\frac{1}{120}. The exponent is n+1n + 1, not nn.

b)

ddxxn+1n!=(n+1)xnn!\frac{d}{dx}\frac{x^{n+1}}{n!} = \frac{(n+1)x^n}{n!}, so ∑n=0∞(n+1)xnn!\sum_{n=0}^{\infty}\frac{(n+1)x^n}{n!} represents ddx(xex)=ex+xex=(1+x)ex\frac{d}{dx}(xe^x) = e^x + xe^x = (1 + x)e^x.

Coefficient of x3x^3: 43!=46=23\frac{4}{3!} = \frac{4}{6} = \frac{2}{3}.

Check with Exercise 2 d) style: (1+x)ex=∑xnn!+∑xn+1n!(1 + x)e^x = \sum\frac{x^n}{n!} + \sum\frac{x^{n+1}}{n!}, and for n≥1n \ge 1 the coefficient is 1n!+nn!=n+1n!\frac{1}{n!} + \frac{n}{n!} = \frac{n+1}{n!}.

c)

At x=1x = 1: ∑n=0∞n+1n!=(1+1)e1=2e≈5.4366\sum_{n=0}^{\infty}\frac{n+1}{n!} = (1 + 1)e^1 = 2e \approx 5.4366.

The series of exe^x converges for every xx, so the differentiated series does too, and x=1x = 1 is allowed.

d)

Term by term on [−1,0][-1, 0]: ∫−10xn+1n! dx=1n![xn+2n+2]−10=−(−1)n+2n! (n+2)=−(−1)nn! (n+2)\int_{-1}^0 \frac{x^{n+1}}{n!}\,dx = \frac{1}{n!}\left[\frac{x^{n+2}}{n+2}\right]_{-1}^0 = -\frac{(-1)^{n+2}}{n!\,(n+2)} = -\frac{(-1)^n}{n!\,(n+2)}, since (−1)n+2=(−1)n(-1)^{n+2} = (-1)^n.

So ∫−10xex dx=−∑n=0∞(−1)nn! (n+2)\int_{-1}^0 xe^x\,dx = -\sum_{n=0}^{\infty}\frac{(-1)^n}{n!\,(n+2)}.

By parts, u=xu = x, dv=ex dxdv = e^x\,dx, du=dxdu = dx, v=exv = e^x: ∫−10xex dx=[xex]−10−∫−10ex dx=1e−(1−1e)=2e−1\int_{-1}^0 xe^x\,dx = \left[xe^x\right]_{-1}^0 - \int_{-1}^0 e^x\,dx = \frac{1}{e} - \left(1 - \frac{1}{e}\right) = \frac{2}{e} - 1.

Hence ∑n=0∞(−1)nn! (n+2)=1−2e≈0.2642\sum_{n=0}^{\infty}\frac{(-1)^n}{n!\,(n+2)} = 1 - \frac{2}{e} \approx 0.2642.

First four terms: 12−13+18−130=60−40+15−4120=31120≈0.2583\frac{1}{2} - \frac{1}{3} + \frac{1}{8} - \frac{1}{30} = \frac{60 - 40 + 15 - 4}{120} = \frac{31}{120} \approx 0.2583; the series alternates with decreasing sizes, and the gap is below the next term, 14!⋅6=1144≈0.0069\frac{1}{4! \cdot 6} = \frac{1}{144} \approx 0.0069.

Pitfall: (−1)n+2(-1)^{n+2} written −(−1)n-(-1)^n; the sign of every term would flip.

e)

The series is the one of b) at x=−1x = -1: (−1)n=xn(-1)^n = x^n for x=−1x = -1.

∑n=0∞(n+1)(−1)nn!=(1+(−1))e−1=0\sum_{n=0}^{\infty}\frac{(n+1)(-1)^n}{n!} = (1 + (-1))e^{-1} = 0.

The value x=−1x = -1 is allowed because the series of b) converges to (1+x)ex(1 + x)e^x for every real xx.

Exercise 4: Taylor polynomials of tan x: order against degree, and how far to trust them

10 answers to check

The Taylor polynomial of order nn generated by ff at x=ax = a is Pn(x)=∑k=0nf(k)(a)k!(x−a)kP_n(x) = \sum_{k=0}^{n}\frac{f^{(k)}(a)}{k!}(x - a)^k (Thomas 10.8). Thomas says order rather than degree because f(n)(a)f^{(n)}(a) can be 00: the polynomial of order nn may have a lower degree. PnP_n agrees with ff and its first nn derivatives at aa, so it is built for values of xx near aa.

Here f(x)=tan⁡xf(x) = \tan x. The figure shows y=tan⁡xy = \tan x with its Taylor polynomials P1P_1 (dashed) and P3P_3 at x=0x = 0. Use the calculator in radian mode.

−1.5−1−0.50.511.5−3−2−1123y = tan xP₁P₃x
  • a) Compute f′f', f′′f'' and f′′′f''' in terms of sec⁡x\sec x and tan⁡x\tan x, then f(k)(0)f^{(k)}(0) for k=0k = 0 to 33. Write P1P_1 and P3P_3 at 00.
  • b) Show that f(4)(0)=0f^{(4)}(0) = 0 without computing f(4)f^{(4)}, using the parity of tan⁡x\tan x. What are the order and the degree of P4P_4?
  • c) Compute P3(0.2)P_3(0.2) and compare with tan⁡0.2\tan 0.2, then compute tan⁡1−P3(1)\tan 1 - P_3(1). Using the figure, is P3(x)P_3(x) above or below tan⁡x\tan x on the interval (0,π2)\left(0, \frac{\pi}{2}\right)?
  • d) Compute the Taylor polynomial of order 22 generated by tan⁡x\tan x at the centre a=π4a = \frac{\pi}{4}, and use it to approximate tan⁡0.8\tan 0.8.
  • e) Why can no Taylor polynomial at 00 stay close to tan⁡x\tan x on the whole interval (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right)?

Type your answers, the page tells you right or wrong 0/10

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) f′=sec⁡2xf' = \sec^2 x, f′′=2sec⁡2xtan⁡xf'' = 2\sec^2 x\tan x, f′′′=2sec⁡4x+4sec⁡2xtan⁡2xf''' = 2\sec^4 x + 4\sec^2 x\tan^2 x; values 0,1,0,20, 1, 0, 2; P1=xP_1 = x, P3=x+x33P_3 = x + \frac{x^3}{3}
  • b) tan⁡\tan is odd, so its even-order derivatives are odd and vanish at 00; P4=P3P_4 = P_3: order 44, degree 33
  • c) P3(0.2)≈0.2027P_3(0.2) \approx 0.2027, tan⁡0.2≈0.2027\tan 0.2 \approx 0.2027 (gap 4.3×10−54.3 \times 10^{-5}); tan⁡1−P3(1)≈0.2241\tan 1 - P_3(1) \approx 0.2241; P3P_3 lies below tan⁡x\tan x
  • d) P2(x)=1+2(x−π4)+2(x−π4)2P_2(x) = 1 + 2\left(x - \frac{\pi}{4}\right) + 2\left(x - \frac{\pi}{4}\right)^2; P2(0.8)≈1.0296P_2(0.8) \approx 1.0296
  • e) tan⁡x→∞\tan x \to \infty as x→π2−x \to \frac{\pi}{2}^-, while a polynomial stays bounded on that interval
a)

f′(x)=sec⁡2xf'(x) = \sec^2 x.

f′′(x)=2sec⁡x⋅sec⁡xtan⁡x=2sec⁡2xtan⁡xf''(x) = 2\sec x \cdot \sec x\tan x = 2\sec^2 x\tan x (chain rule on (sec⁡x)2(\sec x)^2).

f′′′(x)=2(2sec⁡2xtan⁡x)tan⁡x+2sec⁡2x⋅sec⁡2x=4sec⁡2xtan⁡2x+2sec⁡4xf'''(x) = 2\left(2\sec^2 x\tan x\right)\tan x + 2\sec^2 x \cdot \sec^2 x = 4\sec^2 x\tan^2 x + 2\sec^4 x (product rule).

At 00, sec⁡0=1\sec 0 = 1 and tan⁡0=0\tan 0 = 0: f(0)=0f(0) = 0, f′(0)=1f'(0) = 1, f′′(0)=0f''(0) = 0, f′′′(0)=2f'''(0) = 2.

P1(x)=xP_1(x) = x and P3(x)=x+23!x3=x+x33P_3(x) = x + \frac{2}{3!}x^3 = x + \frac{x^3}{3}.

Pitfall: ddxsec⁡2x=2sec⁡x\frac{d}{dx}\sec^2 x = 2\sec x. The chain rule brings the derivative of sec⁡x\sec x, which is sec⁡xtan⁡x\sec x\tan x.

b)

tan⁡(−x)=−tan⁡x\tan(-x) = -\tan x: tan⁡\tan is odd. The derivative of an odd function is even, and the derivative of an even function is odd, so f′′f'' and f(4)f^{(4)} are odd.

An odd function gg defined at 00 has g(0)=−g(0)g(0) = -g(0), so g(0)=0g(0) = 0: f(4)(0)=0f^{(4)}(0) = 0.

P4(x)=P3(x)+04!x4=x+x33P_4(x) = P_3(x) + \frac{0}{4!}x^4 = x + \frac{x^3}{3}: order 44, degree 33. Likewise P2=P1P_2 = P_1.

c)

P3(0.2)=0.2+0.0083≈0.202667P_3(0.2) = 0.2 + \frac{0.008}{3} \approx 0.202667, and tan⁡0.2≈0.202710\tan 0.2 \approx 0.202710: they agree to four decimals, 0.20270.2027, with a gap of about 4.3×10−54.3 \times 10^{-5}.

P3(1)=43≈1.3333P_3(1) = \frac{4}{3} \approx 1.3333 and tan⁡1≈1.5574\tan 1 \approx 1.5574: tan⁡1−P3(1)≈0.2241\tan 1 - P_3(1) \approx 0.2241, a gap more than five thousand times larger.

On the figure, for 0<x<π20 < x < \frac{\pi}{2} the orange curve stays under the curve of tan⁡x\tan x, and the gap grows with xx; the two values of c) are positive gaps.

Near the centre the polynomial is accurate; farther away the gap grows quickly.

d)

At a=π4a = \frac{\pi}{4}: tan⁡π4=1\tan\frac{\pi}{4} = 1 and sec⁡2π4=(2)2=2\sec^2\frac{\pi}{4} = \left(\sqrt 2\right)^2 = 2.

f(π4)=1f\left(\frac{\pi}{4}\right) = 1, f′(π4)=2f'\left(\frac{\pi}{4}\right) = 2, f′′(π4)=2⋅2⋅1=4f''\left(\frac{\pi}{4}\right) = 2 \cdot 2 \cdot 1 = 4.

P2(x)=1+2(x−π4)+42!(x−π4)2=1+2(x−π4)+2(x−π4)2P_2(x) = 1 + 2\left(x - \frac{\pi}{4}\right) + \frac{4}{2!}\left(x - \frac{\pi}{4}\right)^2 = 1 + 2\left(x - \frac{\pi}{4}\right) + 2\left(x - \frac{\pi}{4}\right)^2.

x−π4=0.8−0.785398≈0.014602x - \frac{\pi}{4} = 0.8 - 0.785398 \approx 0.014602, so P2(0.8)≈1+0.029204+0.000426≈1.0296P_2(0.8) \approx 1 + 0.029204 + 0.000426 \approx 1.0296; the calculator gives tan⁡0.8≈1.029639\tan 0.8 \approx 1.029639.

Pitfall: using (0.8)2(0.8)^2 and 0.80.8 in place of the powers of x−π4x - \frac{\pi}{4}. The polynomial is centred at π4\frac{\pi}{4}, and that is why it is accurate at 0.80.8.

e)

As x→π2−x \to \frac{\pi}{2}^-, tan⁡x→+∞\tan x \to +\infty (vertical asymptote).

A polynomial is continuous on [−π2,π2]\left[-\frac{\pi}{2}, \frac{\pi}{2}\right], so it is bounded there: its gap with tan⁡x\tan x grows without bound near the asymptotes, whatever its order.

Raising the order improves the approximation near 00; it cannot remove the asymptotes.

Exercise 5: Limits by series: expand until a term survives

5 answers to check

At a 00\frac{0}{0} form, replace each function by its Maclaurin series, simplify, and read the limit on the lowest power that does not cancel. The only decision is how far to expand: until the numerator and the denominator each keep a nonzero term. L'Hôpital's Rule reaches the same limits, often after three rounds of derivatives.

The figure shows y=x−arctan⁡xx3y = \frac{x - \arctan x}{x^3} on [−4,4][-4, 4]: the formula has no value at 00, and the curve approaches a height marked by the open circle. Find each limit.

−4−3−2−112340.10.20.30.40.5y = (x − arctan x)/x³x
  • a) lim⁡x→0x−arctan⁡xx3\lim_{x\to 0}\frac{x - \arctan x}{x^3}, and check it on the figure.
  • b) lim⁡x→0cos⁡2x−1+2x2x4\lim_{x\to 0}\frac{\cos 2x - 1 + 2x^2}{x^4}
  • c) lim⁡x→0ln⁡(1−4x)+4xx2\lim_{x\to 0}\frac{\ln(1 - 4x) + 4x}{x^2}
  • d) lim⁡x→0e−x−1+xxsin⁡x\lim_{x\to 0}\frac{e^{-x} - 1 + x}{x\sin x}
  • e) lim⁡x→0sin⁡3x−3xx3\lim_{x\to 0}\frac{\sin 3x - 3x}{x^3}. A student writes sin⁡3x=3x−3x36+⋯\sin 3x = 3x - \frac{3x^3}{6} + \cdots and finds −12-\frac{1}{2}. Correct the expansion and the limit.

Type your answers, the page tells you right or wrong 0/5

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) 13\frac{1}{3}, the height of the open circle
  • b) 23\frac{2}{3}
  • c) −8-8
  • d) 12\frac{1}{2}
  • e) sin⁡3x=3x−27x36+⋯\sin 3x = 3x - \frac{27x^3}{6} + \cdots, limit −92-\frac{9}{2}
a)

arctan⁡x=x−x33+x55−⋯\arctan x = x - \frac{x^3}{3} + \frac{x^5}{5} - \cdots, so x−arctan⁡x=x33−x55+⋯x - \arctan x = \frac{x^3}{3} - \frac{x^5}{5} + \cdots

x−arctan⁡xx3=13−x25+⋯→13\frac{x - \arctan x}{x^3} = \frac{1}{3} - \frac{x^2}{5} + \cdots \to \frac{1}{3}.

On the figure the open circle sits at y=13≈0.33y = \frac{1}{3} \approx 0.33, and the curve is symmetric: the function is even, as the series in powers of x2x^2 shows.

b)

cos⁡z=1−z22+z424−⋯\cos z = 1 - \frac{z^2}{2} + \frac{z^4}{24} - \cdots with z=2xz = 2x: cos⁡2x=1−2x2+16x424−⋯=1−2x2+23x4−⋯\cos 2x = 1 - 2x^2 + \frac{16x^4}{24} - \cdots = 1 - 2x^2 + \frac{2}{3}x^4 - \cdots

cos⁡2x−1+2x2=23x4−445x6+⋯\cos 2x - 1 + 2x^2 = \frac{2}{3}x^4 - \frac{4}{45}x^6 + \cdots, so the limit is 23\frac{2}{3}.

Expanding only to x2x^2 leaves 00 on top: the x4x^4 term is the one that survives.

c)

ln⁡(1+z)=z−z22+⋯\ln(1 + z) = z - \frac{z^2}{2} + \cdots with z=−4xz = -4x: ln⁡(1−4x)=−4x−16x22−⋯=−4x−8x2−⋯\ln(1 - 4x) = -4x - \frac{16x^2}{2} - \cdots = -4x - 8x^2 - \cdots

ln⁡(1−4x)+4x=−8x2−643x3−⋯\ln(1 - 4x) + 4x = -8x^2 - \frac{64}{3}x^3 - \cdots, so the limit is −8-8.

Pitfall: (−4x)2=−16x2(-4x)^2 = -16x^2. An even power of a negative number is positive, and the minus sign comes from the series: −z22-\frac{z^2}{2}.

d)

e−x=1−x+x22−x36+⋯e^{-x} = 1 - x + \frac{x^2}{2} - \frac{x^3}{6} + \cdots, so e−x−1+x=x22−x36+⋯e^{-x} - 1 + x = \frac{x^2}{2} - \frac{x^3}{6} + \cdots

xsin⁡x=x(x−x36+⋯ )=x2−x46+⋯\displaystyle x\sin x = x\left(x - \frac{x^3}{6} + \cdots\right) = x^2 - \frac{x^4}{6} + \cdots

Divide numerator and denominator by x2x^2: 12−x6+⋯1−x26+⋯→12\frac{\frac{1}{2} - \frac{x}{6} + \cdots}{1 - \frac{x^2}{6} + \cdots} \to \frac{1}{2}.

e)

With z=3xz = 3x: sin⁡3x=3x−(3x)36+⋯=3x−27x36+⋯=3x−92x3+⋯\sin 3x = 3x - \frac{(3x)^3}{6} + \cdots = 3x - \frac{27x^3}{6} + \cdots = 3x - \frac{9}{2}x^3 + \cdots

sin⁡3x−3xx3=−92+8140x2−⋯→−92\frac{\sin 3x - 3x}{x^3} = -\frac{9}{2} + \frac{81}{40}x^2 - \cdots \to -\frac{9}{2}.

Pitfall: the student cubed the xx and not the 33. The substitution replaces the whole variable: z3=(3x)3=27x3z^3 = (3x)^3 = 27x^3.

Part B: problems and reasoning (/50)

Exercise 6: Reading the series backwards: the nth derivative is n! times the coefficient

8 answers to check

The coefficient formula works in both directions. Once a power series equal to ff near aa is known, by the table, a substitution or a term-by-term integration, every derivative at the centre is read from it: f(n)(a)=n! cnf^{(n)}(a) = n!\,c_n. A missing power means a zero derivative. This replaces a dozen differentiations by one line.

Here the function is defined by an integral: F(x)=2+∫0xcos⁡(t3) dtF(x) = 2 + \int_0^x \cos(t^3)\,dt. Its integrand has no elementary antiderivative, so FF has no formula, and its series is the way to know it near 00.

  • a) Use the Fundamental Theorem of Calculus to write F′(x)F'(x). Find the Maclaurin series of F′F', then of FF, with their general terms. Give F(0)F(0) and the coefficient of x7x^7 in the series of FF.
  • b) Give F(7)(0)F^{(7)}(0) and F(8)(0)F^{(8)}(0). Check F(7)(0)F^{(7)}(0) a second way, as the sixth derivative of F′F' at 00, read on the series of F′F'.
  • c) For h(x)=(1−x)exh(x) = (1 - x)e^x, use the series of Exercise 2 d) to give h(n)(0)h^{(n)}(0) for every nn, then h(10)(0)h^{(10)}(0).
  • d) Give F(13)(0)F^{(13)}(0) as an integer.
  • e) Using the series of F′′F'', find the sign of F′′(x)F''(x) for xx close to 00, on each side. What does the graph of FF have at the point (0,2)(0, 2)?

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) F′(x)=cos⁡(x3)=∑n=0∞(−1)nx6n(2n)!F'(x) = \cos(x^3) = \sum_{n=0}^{\infty}\frac{(-1)^nx^{6n}}{(2n)!}; F(x)=2+∑n=0∞(−1)nx6n+1(6n+1) (2n)!=2+x−x714+⋯F(x) = 2 + \sum_{n=0}^{\infty}\frac{(-1)^nx^{6n+1}}{(6n+1)\,(2n)!} = 2 + x - \frac{x^7}{14} + \cdots; F(0)=2F(0) = 2, coefficient of x7x^7: −114-\frac{1}{14}
  • b) F(7)(0)=7!⋅(−114)=−360=6!⋅(−12)F^{(7)}(0) = 7! \cdot \left(-\frac{1}{14}\right) = -360 = 6! \cdot \left(-\frac{1}{2}\right); F(8)(0)=0F^{(8)}(0) = 0
  • c) h(n)(0)=1−nh^{(n)}(0) = 1 - n; h(10)(0)=−9h^{(10)}(0) = -9
  • d) F(13)(0)=13!312=19958400F^{(13)}(0) = \frac{13!}{312} = 19958400
  • e) F′′(x)=−3x5+x112−⋯F''(x) = -3x^5 + \frac{x^{11}}{2} - \cdots: positive for x<0x < 0, negative for x>0x > 0 near 00; a point of inflection at (0,2)(0, 2)
a)

The integrand cos⁡(t3)\cos(t^3) is continuous, so by the Fundamental Theorem, Part 1: F′(x)=cos⁡(x3)F'(x) = \cos(x^3).

With z=x3z = x^3 in cos⁡z\cos z: (x3)2n=x6n(x^3)^{2n} = x^{6n}, so F′(x)=∑n=0∞(−1)nx6n(2n)!=1−x62+x1224−⋯F'(x) = \sum_{n=0}^{\infty}\frac{(-1)^nx^{6n}}{(2n)!} = 1 - \frac{x^6}{2} + \frac{x^{12}}{24} - \cdots, for every xx.

Term by term from 00: ∫0xt6n dt=x6n+16n+1\int_0^x t^{6n}\,dt = \frac{x^{6n+1}}{6n+1}, so F(x)=2+∑n=0∞(−1)nx6n+1(6n+1) (2n)!=2+x−x714+x13312−⋯F(x) = 2 + \sum_{n=0}^{\infty}\frac{(-1)^nx^{6n+1}}{(6n+1)\,(2n)!} = 2 + x - \frac{x^7}{14} + \frac{x^{13}}{312} - \cdots

F(0)=2F(0) = 2, and the coefficient of x7x^7 (n=1n = 1) is −17⋅2!=−114-\frac{1}{7 \cdot 2!} = -\frac{1}{14}.

Pitfall: dropping the 22. The integral from 00 to xx is 00 at x=0x = 0; the constant term of FF is F(0)=2F(0) = 2.

b)

F(7)(0)=7! c7=5040⋅(−114)=−360F^{(7)}(0) = 7!\,c_7 = 5040 \cdot \left(-\frac{1}{14}\right) = -360.

No power x8x^8 appears: F(8)(0)=0F^{(8)}(0) = 0.

Second way: F(7)=(F′)(6)F^{(7)} = (F')^{(6)}, and the coefficient of x6x^6 in the series of F′F' is −12-\frac{1}{2}, so (F′)(6)(0)=6!⋅(−12)=−360(F')^{(6)}(0) = 6! \cdot \left(-\frac{1}{2}\right) = -360. The two routes agree.

Pitfall: answering F(7)(0)=−114F^{(7)}(0) = -\frac{1}{14}. The coefficient is F(7)(0)7!\frac{F^{(7)}(0)}{7!}, not the derivative itself.

c)

Exercise 2 d): (1−x)ex=∑n=0∞1−nn!xn(1 - x)e^x = \sum_{n=0}^{\infty}\frac{1 - n}{n!}x^n, so cn=1−nn!c_n = \frac{1 - n}{n!}.

h(n)(0)=n! cn=1−nh^{(n)}(0) = n!\,c_n = 1 - n. In particular h(10)(0)=−9h^{(10)}(0) = -9.

Check: h′(x)=−ex+(1−x)ex=−xexh'(x) = -e^x + (1 - x)e^x = -xe^x, so h′(0)=0=1−1h'(0) = 0 = 1 - 1.

d)

The coefficient of x13x^{13} (n=2n = 2) is 113⋅4!=1312\frac{1}{13 \cdot 4!} = \frac{1}{312}.

F(13)(0)=13!312=13⋅12!13⋅24=12!24=47900160024=19958400F^{(13)}(0) = \frac{13!}{312} = \frac{13 \cdot 12!}{13 \cdot 24} = \frac{12!}{24} = \frac{479001600}{24} = 19958400.

Simplifying the 1313 before multiplying keeps the numbers within the calculator's display.

e)

Differentiate the series of F′F' term by term: F′′(x)=−6x52+12x1124−⋯=−3x5(1−x66+⋯ )F''(x) = -\frac{6x^5}{2} + \frac{12x^{11}}{24} - \cdots = -3x^5\left(1 - \frac{x^6}{6} + \cdots\right).

For xx close to 00 the bracket is close to 11, so F′′(x)F''(x) has the sign of −3x5-3x^5: positive for x<0x < 0, negative for x>0x > 0.

Check by the rules: F′′(x)=−3x2sin⁡(x3)F''(x) = -3x^2\sin(x^3), and sin⁡(x3)\sin(x^3) has the sign of xx for ∣x∣<π1/3|x| < \pi^{1/3}.

The concavity changes at x=0x = 0: the graph of FF has a point of inflection at (0,2)(0, 2). The first nonzero term after xx, of odd degree 77, is what decides it.

Exercise 7: A Taylor series away from 0: x e^x at x = -1, by two routes

10 answers to check

At a centre a≠0a \ne 0, two routes lead to the same series: the definition, with the derivatives evaluated at aa; or rewriting the function in powers of (x−a)(x - a), then a reference series. The uniqueness of the Taylor series says they must agree, which makes each route a check of the other.

Here f(x)=xexf(x) = xe^x and a=−1a = -1. The figure shows y=xexy = xe^x on [−3.5,0.35][-3.5, 0.35] and, dashed, its Taylor polynomial P2P_2 at x=−1x = -1. Exact values are asked with ee, decimals to four places.

−3.5−3−2.5−2−1.5−1−0.50.51−0.5−0.250.250.50.751y = x eˣP₂x
  • a) Using f(n)(x)=(x+n)exf^{(n)}(x) = (x + n)e^x (Exercise 1 d)), give f(n)(−1)f^{(n)}(-1), then f′′(−1)f''(-1) and f(5)(−1)f^{(5)}(-1).
  • b) Write the Taylor series generated by ff at x=−1x = -1, with its general term. Give c0c_0, c1c_1 and c2c_2.
  • c) Second route: write x=(x+1)−1x = (x + 1) - 1 and ex=e−1ex+1e^x = e^{-1}e^{x+1}, expand with the series of eze^z for z=x+1z = x + 1, and collect the coefficient of (x+1)n(x + 1)^n. Give c3c_3.
  • d) What do c1c_1 and c2c_2 say about ff at x=−1x = -1? Compute P2(−0.5)P_2(-0.5) and f(−0.5)f(-0.5), and compare on the figure.
  • e) For which xx does the series of b) converge?

Type your answers, the page tells you right or wrong 0/10

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) f(n)(−1)=n−1ef^{(n)}(-1) = \frac{n-1}{e}; f′′(−1)=1e≈0.3679f''(-1) = \frac{1}{e} \approx 0.3679, f(5)(−1)=4e≈1.4715f^{(5)}(-1) = \frac{4}{e} \approx 1.4715
  • b) xex=∑n=0∞n−1e n!(x+1)nxe^x = \sum_{n=0}^{\infty}\frac{n-1}{e\,n!}(x + 1)^n; c0=−1e≈−0.3679c_0 = -\frac{1}{e} \approx -0.3679, c1=0c_1 = 0, c2=12e≈0.1839c_2 = \frac{1}{2e} \approx 0.1839
  • c) e−1(1(n−1)!−1n!)=n−1e n!e^{-1}\left(\frac{1}{(n-1)!} - \frac{1}{n!}\right) = \frac{n-1}{e\,n!}, the same coefficients; c3=13e≈0.1226c_3 = \frac{1}{3e} \approx 0.1226
  • d) f′(−1)=0f'(-1) = 0 and f′′(−1)>0f''(-1) > 0: local minimum −1e-\frac{1}{e} at x=−1x = -1; P2(−0.5)≈−0.3219P_2(-0.5) \approx -0.3219, f(−0.5)≈−0.3033f(-0.5) \approx -0.3033
  • e) For every real xx
a)

f(n)(−1)=(−1+n)e−1=n−1ef^{(n)}(-1) = (-1 + n)e^{-1} = \frac{n-1}{e}.

f′′(−1)=1e≈0.3679f''(-1) = \frac{1}{e} \approx 0.3679 and f(5)(−1)=4e≈1.4715f^{(5)}(-1) = \frac{4}{e} \approx 1.4715.

n=0n = 0 gives f(−1)=−1ef(-1) = -\frac{1}{e}, and n=1n = 1 gives f′(−1)=0f'(-1) = 0.

b)

cn=f(n)(−1)n!=n−1e n!c_n = \frac{f^{(n)}(-1)}{n!} = \frac{n-1}{e\,n!}, and the powers are powers of x−(−1)=x+1x - (-1) = x + 1.

xex=∑n=0∞n−1e n!(x+1)n=−1e+0⋅(x+1)+12e(x+1)2+13e(x+1)3+⋯\displaystyle xe^x = \sum_{n=0}^{\infty}\frac{n-1}{e\,n!}(x + 1)^n = -\frac{1}{e} + 0 \cdot (x + 1) + \frac{1}{2e}(x + 1)^2 + \frac{1}{3e}(x + 1)^3 + \cdots

c0=−1e≈−0.3679c_0 = -\frac{1}{e} \approx -0.3679, c1=0c_1 = 0, c2=12e≈0.1839c_2 = \frac{1}{2e} \approx 0.1839.

Pitfall: x−ax - a with a=−1a = -1 is x+1x + 1; writing (x−1)n(x - 1)^n centres the series at the wrong point.

c)

xex=((x+1)−1)e−1ex+1=e−1[(x+1)−1]∑n=0∞(x+1)nn!xe^x = \left((x + 1) - 1\right)e^{-1}e^{x+1} = e^{-1}\left[(x + 1) - 1\right]\sum_{n=0}^{\infty}\frac{(x + 1)^n}{n!}.

=e−1[∑n=0∞(x+1)n+1n!−∑n=0∞(x+1)nn!]= e^{-1}\left[\sum_{n=0}^{\infty}\frac{(x + 1)^{n+1}}{n!} - \sum_{n=0}^{\infty}\frac{(x + 1)^n}{n!}\right].

Shift the first sum, m=n+1m = n + 1: it becomes ∑m=1∞(x+1)m(m−1)!\sum_{m=1}^{\infty}\frac{(x + 1)^m}{(m-1)!}.

For n≥1n \ge 1, the coefficient of (x+1)n(x + 1)^n is e−1(1(n−1)!−1n!)=e−1 n−1n!e^{-1}\left(\frac{1}{(n-1)!} - \frac{1}{n!}\right) = e^{-1}\,\frac{n - 1}{n!}, since 1(n−1)!=nn!\frac{1}{(n-1)!} = \frac{n}{n!}; for n=0n = 0 it is −e−1-e^{-1}.

The two routes agree. c3=26e=13e≈0.1226c_3 = \frac{2}{6e} = \frac{1}{3e} \approx 0.1226.

The rewriting ex=e−1ex+1e^x = e^{-1}e^{x+1} uses the law eu+v=eueve^{u+v} = e^ue^v; it is the algebra that makes the reference series usable at a=−1a = -1.

d)

c1=f′(−1)=0c_1 = f'(-1) = 0: x=−1x = -1 is a critical point. f′′(−1)=2c2=1e>0f''(-1) = 2c_2 = \frac{1}{e} > 0: by the Second Derivative Test it is a local minimum, of value f(−1)=−1e≈−0.3679f(-1) = -\frac{1}{e} \approx -0.3679.

P2(x)=−1e+12e(x+1)2P_2(x) = -\frac{1}{e} + \frac{1}{2e}(x + 1)^2, a parabola with the same lowest point, the dashed curve of the figure.

P2(−0.5)=−1e+0.252e≈−0.3219P_2(-0.5) = -\frac{1}{e} + \frac{0.25}{2e} \approx -0.3219, and f(−0.5)=−0.5e−0.5≈−0.3033f(-0.5) = -0.5e^{-0.5} \approx -0.3033.

On the figure the parabola stays close to the curve near x=−1x = -1 and separates from it farther away, as the gap of about 0.0190.019 at x=−0.5x = -0.5 shows.

e)

∣cn+1cn∣=n(n+1)!⋅n!n−1=n(n+1)(n−1)→0\left|\frac{c_{n+1}}{c_n}\right| = \frac{n}{(n+1)!}\cdot\frac{n!}{n - 1} = \frac{n}{(n+1)(n-1)} \to 0 for n≥2n \ge 2.

By the Ratio Test, ∣cn+1cn∣∣x+1∣→0<1\left|\frac{c_{n+1}}{c_n}\right||x + 1| \to 0 < 1 for every xx: the series converges for every real xx, as the series of eze^z does.

Exercise 8: Five statements to correct

10 answers to check

Each statement below is false. Say what is wrong, give the correct statement, and settle it with a short computation: a coefficient compared, a value of xx put in, or a counterexample.

  • a) The Maclaurin series of e−2xe^{-2x} is ∑n=0∞−2xnn!\sum_{n=0}^{\infty}\frac{-2x^n}{n!}.
  • b) The Taylor polynomial of order 44 generated by sin⁡x\sin x at x=0x = 0 has degree 44.
  • c) arctan⁡x=∑n=0∞(−1)nx2n+1(2n+1)!\arctan x = \sum_{n=0}^{\infty}\frac{(-1)^nx^{2n+1}}{(2n+1)!} for every xx.
  • d) In the Maclaurin series of x3exx^3e^x, the coefficient of x5x^5 is 15!\frac{1}{5!}.
  • e) If f(x)=∑n=0∞cn(x−3)nf(x) = \sum_{n=0}^{\infty}c_n(x - 3)^n near x=3x = 3, then f′′(3)=c2f''(3) = c_2.

Type your answers, the page tells you right or wrong 0/10

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) False: e−2x=∑n=0∞(−2)nxnn!e^{-2x} = \sum_{n=0}^{\infty}\frac{(-2)^nx^n}{n!}; the coefficient of x2x^2 is 22, and the claim gives −2-2 for the value at 00 instead of 11
  • b) False: P4(x)=x−x36P_4(x) = x - \frac{x^3}{6}, of degree 33, since sin⁡(4)(0)=0\sin^{(4)}(0) = 0
  • c) False: that is the series of sin⁡x\sin x; arctan⁡x=∑n=0∞(−1)nx2n+12n+1\arctan x = \sum_{n=0}^{\infty}\frac{(-1)^nx^{2n+1}}{2n+1} for ∣x∣≤1|x| \le 1, coefficient of x5x^5: 15\frac{1}{5}
  • d) False: x3ex=∑n=0∞xn+3n!x^3e^x = \sum_{n=0}^{\infty}\frac{x^{n+3}}{n!}, and x5x^5 comes from n=2n = 2: coefficient 12\frac{1}{2}
  • e) False: f′′(3)=2! c2=2c2f''(3) = 2!\,c_2 = 2c_2; for f(x)=(x−3)2f(x) = (x - 3)^2, c2=1c_2 = 1 and f′′(3)=2f''(3) = 2; with c2=5c_2 = 5, f′′(3)=10f''(3) = 10
a)

False. With z=−2xz = -2x, zn=(−2x)n=(−2)nxnz^n = (-2x)^n = (-2)^nx^n: the power applies to −2-2 as well.

e−2x=∑n=0∞(−2)nxnn!=1−2x+2x2−43x3+⋯\displaystyle e^{-2x} = \sum_{n=0}^{\infty}\frac{(-2)^nx^n}{n!} = 1 - 2x + 2x^2 - \frac{4}{3}x^3 + \cdots

Test at x=0x = 0: e0=1e^0 = 1, while the claim gives −2⋅10!=−2\frac{-2 \cdot 1}{0!} = -2. Coefficient of x2x^2: 42=2\frac{4}{2} = 2, the claim gives −1-1.

b)

False. The derivatives of sin⁡x\sin x at 00 are 0,1,0,−1,00, 1, 0, -1, 0: sin⁡(4)(0)=sin⁡0=0\sin^{(4)}(0) = \sin 0 = 0.

P4(x)=x−x33!+04!x4=x−x36P_4(x) = x - \frac{x^3}{3!} + \frac{0}{4!}x^4 = x - \frac{x^3}{6}: order 44, degree 33, and P4=P3P_4 = P_3.

This is why Thomas says order: the order counts the derivatives used, the degree the highest power that survives.

c)

False. The factorials belong to sin⁡x\sin x; the series of arctan⁡x\arctan x has the plain odd numbers 2n+12n + 1 in the denominators, and it holds only for −1≤x≤1-1 \le x \le 1.

Coefficient of x3x^3: −13-\frac{1}{3} for arctan⁡\arctan, −16-\frac{1}{6} in the claim. Coefficient of x5x^5: 15\frac{1}{5}, against 1120\frac{1}{120}.

Test at x=1x = 1: the claim sums to sin⁡1≈0.8415\sin 1 \approx 0.8415, while arctan⁡1=π4≈0.7854\arctan 1 = \frac{\pi}{4} \approx 0.7854.

d)

False. x3ex=∑n=0∞xn+3n!x^3e^x = \sum_{n=0}^{\infty}\frac{x^{n+3}}{n!}, and n+3=5n + 3 = 5 gives n=2n = 2.

The coefficient of x5x^5 is 12!=12\frac{1}{2!} = \frac{1}{2}.

Consequence for Exercise 6: the fifth derivative of x3exx^3e^x at 00 is 5!⋅12=605! \cdot \frac{1}{2} = 60, not 11.

e)

False. The coefficient is c2=f′′(3)2!c_2 = \frac{f''(3)}{2!}, so f′′(3)=2c2f''(3) = 2c_2.

Counterexample: f(x)=(x−3)2f(x) = (x - 3)^2 is its own Taylor series at 33, with c2=1c_2 = 1; and f′′(x)=2f''(x) = 2, so f′′(3)=2≠1f''(3) = 2 \ne 1.

In general f′′(3)=2c2f''(3) = 2c_2: with c2=5c_2 = 5, f′′(3)=10f''(3) = 10.

Exercise 9: The 68 and 95 percent rule: a normal probability computed by series

9 answers to check

In statistics, a standard normal variable ZZ has the density 12πe−z2/2\frac{1}{\sqrt{2\pi}}e^{-z^2/2}, and P(a≤Z≤b)=12π∫abe−z2/2 dzP(a \le Z \le b) = \frac{1}{\sqrt{2\pi}}\int_a^b e^{-z^2/2}\,dz. The function e−z2/2e^{-z^2/2} has no elementary antiderivative: the tables of the normal distribution, and the familiar rule “about 68%68\% of the values within one standard deviation, about 95%95\% within two”, come from computations like the one below.

The figure shows the density, with the area P(−1≤Z≤1)P(-1 \le Z \le 1) shaded. The department's calculator does not integrate: it adds terms. Work with the exact terms, then decimals.

−3.5−3−2.5−2−1.5−1−0.50.511.522.533.50.10.20.30.40.5y = e^(−z²/2)/√(2π)z
  • a) Find the Maclaurin series of e−z2/2e^{-z^2/2}, with its general term, and the coefficient of z4z^4.
  • b) Integrate term by term to write I1=∫01e−z2/2 dzI_1 = \int_0^1 e^{-z^2/2}\,dz as an alternating numerical series ∑(−1)nun\sum(-1)^nu_n. Give u2u_2 and u3u_3 as fractions.
  • c) Check the conditions of the Alternating Series Test. How many terms guarantee an error on I1I_1 below 5×10−55 \times 10^{-5}? Give the sum of these terms to four decimals.
  • d) Deduce P(−1≤Z≤1)P(-1 \le Z \le 1) to four decimals. Is your value an overestimate or an underestimate?
  • e) Same work for P(−2≤Z≤2)P(-2 \le Z \le 2): write ∫02e−z2/2 dz\int_0^2 e^{-z^2/2}\,dz as an alternating series, find how many terms guarantee an error on the probability below 5×10−55 \times 10^{-5}, and give the probability to four decimals. Why are more terms needed?

Type your answers, the page tells you right or wrong 0/9

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) e−z2/2=∑n=0∞(−1)nz2n2n n!e^{-z^2/2} = \sum_{n=0}^{\infty}\frac{(-1)^nz^{2n}}{2^n\,n!} for every zz; coefficient of z4z^4: 18\frac{1}{8}
  • b) I1=∑n=0∞(−1)n2n n! (2n+1)I_1 = \sum_{n=0}^{\infty}\frac{(-1)^n}{2^n\,n!\,(2n+1)}; u2=140u_2 = \frac{1}{40}, u3=1336u_3 = \frac{1}{336}
  • c) Five terms (n=0n = 0 to 44), since u5=142240<5×10−5<u4u_5 = \frac{1}{42240} < 5 \times 10^{-5} < u_4; I1≈0.8556I_1 \approx 0.8556
  • d) P(−1≤Z≤1)≈0.6827P(-1 \le Z \le 1) \approx 0.6827, an overestimate (by less than 2×10−52 \times 10^{-5})
  • e) ∑n=0∞(−1)n2n+1n! (2n+1)\sum_{n=0}^{\infty}\frac{(-1)^n2^{n+1}}{n!\,(2n+1)}; ten terms (n=0n = 0 to 99); P(−2≤Z≤2)≈0.9545P(-2 \le Z \le 2) \approx 0.9545; the terms carry 22n+12^{2n+1} and shrink more slowly
a)

With x=−z22x = -\frac{z^2}{2} in ex=∑xnn!e^x = \sum\frac{x^n}{n!}: (−z22)n=(−1)nz2n2n\left(-\frac{z^2}{2}\right)^n = \frac{(-1)^nz^{2n}}{2^n}.

e−z2/2=∑n=0∞(−1)nz2n2n n!=1−z22+z48−z648+⋯e^{-z^2/2} = \sum_{n=0}^{\infty}\frac{(-1)^nz^{2n}}{2^n\,n!} = 1 - \frac{z^2}{2} + \frac{z^4}{8} - \frac{z^6}{48} + \cdots, for every zz.

Coefficient of z4z^4 (n=2n = 2): 14⋅2=18\frac{1}{4 \cdot 2} = \frac{1}{8}.

b)

∫01z2n dz=12n+1\int_0^1 z^{2n}\,dz = \frac{1}{2n+1}, so I1=∑n=0∞(−1)n2n n! (2n+1)=1−16+140−1336+13456−⋯I_1 = \sum_{n=0}^{\infty}\frac{(-1)^n}{2^n\,n!\,(2n+1)} = 1 - \frac{1}{6} + \frac{1}{40} - \frac{1}{336} + \frac{1}{3456} - \cdots

u2=14⋅2⋅5=140u_2 = \frac{1}{4 \cdot 2 \cdot 5} = \frac{1}{40} and u3=18⋅6⋅7=1336u_3 = \frac{1}{8 \cdot 6 \cdot 7} = \frac{1}{336}.

Term-by-term integration is allowed on [0,1][0, 1] because the series of a) converges for every zz.

c)

un=12n n! (2n+1)u_n = \frac{1}{2^n\,n!\,(2n+1)} is positive; it decreases since each factor of the denominator increases with nn; and un→0u_n \to 0. The Alternating Series Test applies.

By the Alternating Series Estimation Theorem, stopping at n=Nn = N leaves an error at most uN+1u_{N+1}.

u4=13456≈2.9×10−4u_4 = \frac{1}{3456} \approx 2.9 \times 10^{-4} is too large; u5=132⋅120⋅11=142240≈2.4×10−5<5×10−5u_5 = \frac{1}{32 \cdot 120 \cdot 11} = \frac{1}{42240} \approx 2.4 \times 10^{-5} < 5 \times 10^{-5}.

So stop at N=4N = 4: five terms, n=0n = 0 to 44, since the index starts at 00.

1−16+140−1336+13456≈0.8556461 - \frac{1}{6} + \frac{1}{40} - \frac{1}{336} + \frac{1}{3456} \approx 0.855646, so I1≈0.8556I_1 \approx 0.8556.

Pitfall: taking the last term used, u4u_4, as the bound; the bound is the first unused term.

d)

The integrand is even, so ∫−11=2∫01\int_{-1}^{1} = 2\int_0^1, and P(−1≤Z≤1)=22πI1≈0.797885×0.855646≈0.682707P(-1 \le Z \le 1) = \frac{2}{\sqrt{2\pi}}I_1 \approx 0.797885 \times 0.855646 \approx 0.682707.

The first unused term is −u5-u_5, negative: the five-term sum is an overestimate of I1I_1, by at most u5u_5.

The error on the probability is at most 0.797885×u5≈1.9×10−50.797885 \times u_5 \approx 1.9 \times 10^{-5}, so 0.682688<P<0.6827070.682688 < P < 0.682707, and P(−1≤Z≤1)≈0.6827P(-1 \le Z \le 1) \approx 0.6827: the 68%68\% of the rule.

e)

∫02z2n dz=22n+12n+1\int_0^2 z^{2n}\,dz = \frac{2^{2n+1}}{2n+1}, and 22n+12n=2n+1\frac{2^{2n+1}}{2^n} = 2^{n+1}: ∫02e−z2/2 dz=∑n=0∞(−1)n2n+1n! (2n+1)=2−43+45−821+⋯\int_0^2 e^{-z^2/2}\,dz = \sum_{n=0}^{\infty}\frac{(-1)^n2^{n+1}}{n!\,(2n+1)} = 2 - \frac{4}{3} + \frac{4}{5} - \frac{8}{21} + \cdots

The sizes vn=2n+1n! (2n+1)v_n = \frac{2^{n+1}}{n!\,(2n+1)} decrease from n=0n = 0 (ratio vn+1vn=2(2n+1)(n+1)(2n+3)<1\frac{v_{n+1}}{v_n} = \frac{2(2n+1)}{(n+1)(2n+3)} < 1) and tend to 00.

Error on the probability: 22πvN+1<5×10−5\frac{2}{\sqrt{2\pi}}v_{N+1} < 5 \times 10^{-5} requires vN+1<6.27×10−5v_{N+1} < 6.27 \times 10^{-5}. At the calculator v9≈1.5×10−4v_9 \approx 1.5 \times 10^{-4} and v10≈2.7×10−5v_{10} \approx 2.7 \times 10^{-5}: N+1=10N + 1 = 10, so ten terms, n=0n = 0 to 99.

Their sum is ≈1.196265\approx 1.196265, and P(−2≤Z≤2)≈0.797885×1.196265≈0.954481P(-2 \le Z \le 2) \approx 0.797885 \times 1.196265 \approx 0.954481, an underestimate by at most 2.2×10−52.2 \times 10^{-5} (the first unused term is positive): P≈0.9545P \approx 0.9545, the 95%95\% of the rule.

Each term now carries 22n+12^{2n+1} from the upper bound: the farther the bound from the centre 00 of the series, the more terms a given accuracy costs.

Exercise 10: A final exam question: a product turned into a sum, then a limit and an exact sum

4 answers to check

(8 marks) Let f(x)=cos⁡xcos⁡3xf(x) = \cos x\cos 3x. The figure shows its graph on [−32,32]\left[-\frac{3}{2}, \frac{3}{2}\right] and, dashed, the parabola y=1−5x2y = 1 - 5x^2 near 00.

This is the format of the last question of the common final, in three hours: a Maclaurin series built from a known one, then uses of it. The marks are given per part; give exact values.

−1.5−1−0.50.511.5−1−0.50.511.5y = cos x cos 3xy = 1 − 5x²x
  • a) (4 marks) Use the identity cos⁡Acos⁡B=12[cos⁡(A−B)+cos⁡(A+B)]\cos A\cos B = \frac{1}{2}\left[\cos(A - B) + \cos(A + B)\right] and the series of cos⁡z\cos z to find the Maclaurin series of ff, with its general term. Give its first three nonzero terms.
  • b) (2 marks) Use the series to evaluate lim⁡x→0cos⁡xcos⁡3x−1+5x2x4\lim_{x\to 0}\frac{\cos x\cos 3x - 1 + 5x^2}{x^4}.
  • c) (2 marks) Find the exact sum of the series ∑n=0∞(−1)n[(π2)2n+π2n]2 (2n)!\sum_{n=0}^{\infty}\frac{(-1)^n\left[\left(\frac{\pi}{2}\right)^{2n} + \pi^{2n}\right]}{2\,(2n)!}.

Type your answers, the page tells you right or wrong 0/4

a)
b)
c)
Show the solution

Answers

  • a) f(x)=12(cos⁡2x+cos⁡4x)=∑n=0∞(−1)n(4n+16n)x2n2 (2n)!=1−5x2+173x4−⋯f(x) = \frac{1}{2}(\cos 2x + \cos 4x) = \sum_{n=0}^{\infty}\frac{(-1)^n(4^n + 16^n)x^{2n}}{2\,(2n)!} = 1 - 5x^2 + \frac{17}{3}x^4 - \cdots, for every xx
  • b) 173\frac{17}{3}
  • c) f(π4)=cos⁡π4cos⁡3π4=−12f\left(\frac{\pi}{4}\right) = \cos\frac{\pi}{4}\cos\frac{3\pi}{4} = -\frac{1}{2}
a)

With A=xA = x, B=3xB = 3x: cos⁡xcos⁡3x=12[cos⁡(−2x)+cos⁡4x]=12(cos⁡2x+cos⁡4x)\cos x\cos 3x = \frac{1}{2}\left[\cos(-2x) + \cos 4x\right] = \frac{1}{2}(\cos 2x + \cos 4x), since cos⁡\cos is even (1 mark).

cos⁡2x=∑(−1)n(2x)2n(2n)!=∑(−1)n4nx2n(2n)!\cos 2x = \sum\frac{(-1)^n(2x)^{2n}}{(2n)!} = \sum\frac{(-1)^n4^nx^{2n}}{(2n)!} and cos⁡4x=∑(−1)n16nx2n(2n)!\cos 4x = \sum\frac{(-1)^n16^nx^{2n}}{(2n)!}, since (4x)2n=16nx2n(4x)^{2n} = 16^nx^{2n} (1 mark).

Add and halve: f(x)=∑n=0∞(−1)n(4n+16n)x2n2 (2n)!f(x) = \sum_{n=0}^{\infty}\frac{(-1)^n(4^n + 16^n)x^{2n}}{2\,(2n)!}, for every xx (1 mark).

n=0n = 0: 22=1\frac{2}{2} = 1; n=1n = 1: −202⋅2=−5-\frac{20}{2 \cdot 2} = -5; n=2n = 2: 2722⋅24=173\frac{272}{2 \cdot 24} = \frac{17}{3}. So f(x)=1−5x2+173x4−⋯f(x) = 1 - 5x^2 + \frac{17}{3}x^4 - \cdots (1 mark).

Pitfall: (4x)2n=4x2n(4x)^{2n} = 4x^{2n}; the coefficient of x2x^2 would come out as −4+44=−2-\frac{4 + 4}{4} = -2 instead of −5-5, and the dashed parabola of the figure shows the curvature −5-5.

Multiplying the series of cos⁡x\cos x and cos⁡3x\cos 3x term by term is omitted by the MATH 205 outline; the identity turns the product into a sum.

b)

cos⁡xcos⁡3x−1+5x2=173x4−⋯\cos x\cos 3x - 1 + 5x^2 = \frac{17}{3}x^4 - \cdots, the next term being of degree 66 (1 mark).

Divide by x4x^4: the quotient tends to 173\frac{17}{3} (1 mark).

c)

Compare with the general term of a): (4n+16n)x2n=(2x)2n+(4x)2n(4^n + 16^n)x^{2n} = (2x)^{2n} + (4x)^{2n}. With x=π4x = \frac{\pi}{4}, 2x=π22x = \frac{\pi}{2} and 4x=π4x = \pi: the series is f(π4)f\left(\frac{\pi}{4}\right) (1 mark).

f(π4)=cos⁡π4cos⁡3π4=22⋅(−22)=−12f\left(\frac{\pi}{4}\right) = \cos\frac{\pi}{4}\cos\frac{3\pi}{4} = \frac{\sqrt 2}{2} \cdot \left(-\frac{\sqrt 2}{2}\right) = -\frac{1}{2}, and x=π4x = \frac{\pi}{4} is allowed since the series of a) converges for every xx (1 mark).

Pitfall: taking x=π2x = \frac{\pi}{2} because of the first power; then 4x=2π4x = 2\pi, and the terms do not match.

Something missing from this set? A type of exercise your teacher gives, a problem you are stuck on, a mistake you spotted: tell me, I read every request.

Sending goes through your free space: that is how I can answer you and tell you when the exercise is added. An email is enough, no password. Create your space. Rather not create an account? Write to me directly.

What is it about?
I read every request myself, nobody else sees it. No need to write your name or your school.
When your request is dealt with, you hear about it by email and in your space.

By sending, you agree that I read your request to answer it. It is kept with your account, erased with it, and never published: privacy policy.

© Ahmed Squalli Houssaini. Exercise set published at www.letuteurscientifique.ca/en/exercices/math205-taylor-maclaurin. Free for personal and classroom use; republishing it elsewhere requires written permission (legal notice).

Looking for a MATH 205 tutor in Montreal?

I tutor first-year calculus at Concordia and McGill, in English or in French, in Montreal or online, with the algebra behind every rule. Get in touch for a first session.

Site by Studio Squalli