Fun Power Series Problems
Total Page:16
File Type:pdf, Size:1020Kb
FUN POWER SERIES PROBLEMS Joseph Breen Solutions will be periodically added at the bottom. Problems 1. Evaluate each of the following infinite series. Don’t just show they converge, actually evaluate them! (a) 1 X n 2n n=1 (b) 1 X n2 2n n=1 (c) 1 X n + 1 n! n=0 (d) 1 X 1 (2n)! n=0 2. Let f(x) = x sin(x2). What is f (147)(0)? What about f (148)(0)? Hint: you probably don’t want to take 147 derivatives of f. 3. Evaluate the following integral as an infinite series: Z 1 1 x dx: 0 x 4. Determine whether the following series converge or diverge. (The point of these exercises is that thinking about Maclaurin series can help you!) (a) 1 X 1 arctan : n2 n=1 (b) 1 X − 1 1 − 3 n : n=1 (c) 1 X 1 sin3 p : n n=1 (d) 1 1 ! X Z n sin(x2) dx : x n=1 0 1 (e) 1 ! X 1 ln 2 1 : n=1 1 − sin n (f) 1 1 X arcsin n : (ln n)2 n=1 (g) 1 X − 1 −1 tan n 2 sin n : n=1 (h) 1 1 1 1 1 X ln 1 + 1 + + + ··· + n 2 3 n : n n=1 5. Determine the interval of convergence for each of the following power series. (a) 1 X n!(x − 2)2n : nn n=1 (b) 1 X x3n : (2n)! n=1 (c) 1 X 3n n!(x − 1)n : nn n=1 6. In this long, multi-part exercise, I’m going to walk us through the derivations of some really cool formulas that compute π. In particular, we will show: 1 4 4 4 X 4 π = 4 − + − + ··· = (−1)n 3 5 7 2n + 1 n=0 and 1 X 3(2n)! π = : 16n(n!)2(2n + 1) n=0 Wow! Before we prove those formulas, some comments. The first formula is beautiful in its simplicity, but it’s actually a pretty bad way to estimate the value of π. For example, I had WolframAlpha evaluate the 10th partial sum of the first series: 10 X 4 (−1)n = 3:232::: 2n + 1 n=0 Not bad; could be much better. Let’s try the 20th partial sum: 20 X 4 (−1)n = 3:189::: 2n + 1 n=0 2 A little better, but still not great. Let’s try the 100th partial sum: 100 X 4 (−1)n = 3:151::: 2n + 1 n=0 Getting closer, but we added 101 terms of that series together and we only have one correct digit of of π past the decimal! On the other hand, the second formula is much better at computing π. For example, I had WolframAlpha compute the 5th partial sum: 5 X 3(2n)! = 3:141576::: 16n(n!)2(2n + 1) n=0 It only takes 6 terms of that series to compute 4 correct digits of π past the decimal! Let’s do the 15th partial sum: 5 X 3(2n)! = 3:1415926535859::: 16n(n!)2(2n + 1) n=0 The true decimal expansion of π is π = 3:1415926535897::: Only 16 terms of that series gives us a very accurate estimate to π. Sweet! Okay, now the exercises: (a) The first formula is not too hard to prove. Show that 1 4 4 4 X 4 π = 4 − + − + ··· = (−1)n : 3 5 7 2n + 1 n=0 R 1 1 Hint: what is 0 1+x2 dx? Expand the integrand into a power series. (b) The second formula is a bit harder. I’ll break it down into multiple steps. First, let f(x) = − 1 (1 − x) 2 . Show that (n) (2n − 1)(2n − 3) ··· 3 · 1 − 2n+1 f (x) = (1 − x) 2 : 2n Hint: start taking derivatives and try to write down the pattern carefully. (c) Show that (2n − 1)(2n − 3) ··· 3 · 1 (2n)! = 2n 4n n! and use this to show that the MacLaurin series of f(x) is 1 X (2n)! xn: 4n(n!)2 n=0 6·5·4·3·2·1 6·5·4·3·2·1 Hint: 5 · 3 · 1 = 6·4·2 = 23·3·2·1 . (d) Using the previous part, show that we have the following power series expansion (on its interval of convergence): 1 1 X (2n)! p = x2n: 2 4n(n!)2 1 − x n=0 3 (e) Integrate the above power series term by term to show that, on the interval of convergence, 1 X (2n)! x2n+1 arcsin(x) = : 4n(n!)2 2n + 1 n=0 (f) Show that 1 X 3(2n)! π = : 16n(n!)2(2n + 1) n=0 Hint: what is arcsin(1=2)? One last comment. Here is another crazy formula involving π and an infinite series: 1 1 X 12 (−1)n (6n)! (545140134n + 13591409) = 3 : π 3 3n+ 2 n=0 (3n)! (n!) 640320 I don’t know how to prove this, so don’t ask me. You can read about it here: https://en.wikipedia.org/wiki/Chudnovsky_algorithm. 4 Solutions 1. Evaluate each of the following infinite series. Don’t just show they converge, actually evaluate them! (a) 1 X n 2n n=1 (b) 1 X n2 2n n=1 (c) 1 X n + 1 n! n=0 (d) 1 X 1 (2n)! n=0 Solution. (a) Recall that 1 1 X = xn 1 − x n=0 for jxj < 1. Differentiating both sides gives 1 1 X = nxn−1 (1 − x)2 n=1 and then mutliplying through by x gives 1 x X = nxn: (1 − x)2 n=1 1 Plugging in x = 2 yields 1 X n 1=2 = = 2: 2n (1 − 1=2)2 n=1 (b) From the previous part, we have 1 x X = nxn: (1 − x)2 n=1 Differentiating this equality gives 1 (1 − x)2 + 2x(1 − x) X = n2xn−1 (1 − x)2 n=1 and multiplying through by x, we have 1 (1 − x)2 + 2x(1 − x) X x = n2xn: (1 − x)2 n=1 5 1 Plugging in x = 2 gives 1 X n2 1 1 + 1 3 = · 4 2 = : 2n 2 1=4 2 n=1 (c) Recall that 1 X xn ex = : n! n=0 Multiplying through by x gives 1 X xn+1 xex = : n! n=0 Differentiating both sides yields 1 X (n + 1)xn ex + xex = : n! n=0 Plugging in x = 1 gives 1 X n + 1 = e1 + 1 · e1 = 2e: n! n=0 (d) . This series reminds of the power series for cosine: 1 X x2n cos x = (−1)n : (2n)! n=0 Evaluating at x = 1 gives 1 X 1 (−1)n = cos 1 (2n)! n=0 but this is not exactly the series we want to evaluate. It’s close though! 1 (−1)n I would like to find a MacLaurin series where the coefficients are just (2n)! instead of (2n)! . It turns out that f(x) = cosh x does the trick. Note that f (2n)(0) = cosh(0) = 1 and f (2n+1)(0) = sinh(0) = 0: This implies that the Maclaurin series for cosh x is 1 X x2n cosh x = : (2n)! n=0 Evaluating this at 1 yields 1 X 1 e + e−1 = cosh(1) = : (2n)! 2 n=0 2. Let f(x) = x sin(x2). What is f (147)(0)? What about f (148)(0)? Solution. We begin by finding the MacLaurin series for f. Since 1 X x2n+1 sin x = (−1)n (2n + 1)! n=0 6 it follows that 1 1 X (x2)2n+1 X x4n+3 x sin(x2) = x (−1)n = (−1)n : (2n + 1)! (2n + 1)! n=0 n=0 (147) 147 f (0) We know that the coefficient of the x term in the above series is 147! . Because 4n + 3 = 147 if n = 36, it follows that f (147)(0) (−1)36 1 = = : 147! (2(36) + 1)! 73! Therefore, 147! f (147)(0) = : 73! Finally, the above power series also implies that the coefficient in front of x148 is 0, since 4n + 3 never equals 148. Therefore, f (148)(0) = 0. 3. Evaluate the following integral as an infinite series: Z 1 1 x dx: 0 x 1 Solution. We begin by expanding the integrand xx as an infinite series in the following way: write 1 1 = = e−x ln x: xx ex ln x x P1 xn Next, recall that e = n=0 n! . This implies that 1 1 1 X (−x ln x)n X (−1)n = = xn(ln x)n: xx n! n! n=0 n=0 Now we integrate term by term: 1 Z 1 1 X (−1)n Z 1 dx = xn(ln x)n dx: xx n! 0 n=0 0 Note that the above integral is improper at 0. To evaluate the antiderivative R xn(ln x)n dx, we inte- n n n−1 1 xn+1 grate by parts. Let u = (ln x) and dv = x dx. Then du = n(ln x) x dx and v = n+1 , and the integration by parts formula gives Z xn+1 n Z xn(ln x)n dx = (ln x)n − xn(ln x)n−1 dx: n + 1 n + 1 Thus, 1 Z 1 xn+1 n Z 1 xn(ln x)n dx = lim (ln x)n − xn(ln x)n−1 dx + 0 R!0 n + 1 n + 1 0 R (ln R) n Z 1 = lim − − xn(ln x)n−1 dx −(n+1) R!0+ (n + 1)R n + 1 0 1 n Z 1 (L0H) = lim − R − xn(ln x)n−1 dx 2 −(n+2) R!0+ −(n + 1) R n + 1 0 n Z 1 = − xn(ln x)n−1 dx: n + 1 0 7 To summarize the above computation, Z 1 n Z 1 xn(ln x)n dx = − xn(ln x)n−1 dx: 0 n + 1 0 Repeating the same procedure and integrating by parts n times gives Z 1 n Z 1 xn(ln x)n dx = − xn(ln x)n−1 dx 0 n + 1 0 n n − 1 Z 1 = − − xn(ln x)n−2 dx n + 1 n + 1 0 .