<<

FUN POWER 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) ∞ X n 2n n=1 (b) ∞ X n2 2n n=1 (c) ∞ X n + 1 n! n=0 (d) ∞ 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 of f.

3. Evaluate the following 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) ∞ X  1  arctan . n2 n=1 (b) ∞ X  − 1  1 − 3 n . n=1 (c) ∞ X  1  sin3 √ . n n=1 (d) ∞ 1 ! X Z n sin(x2) dx . x n=1 0

1 (e) ∞ ! X 1 ln 2 1  . n=1 1 − sin n (f) ∞ 1  X arcsin n . (ln n)2 n=1 (g) ∞ X  − 1  −1 tan n 2 sin n . n=1 (h) ∞  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) ∞ X n!(x − 2)2n . nn n=1 (b) ∞ X x3n . (2n)! n=1 (c) ∞ 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:

∞ 4 4 4 X 4 π = 4 − + − + ··· = (−1)n 3 5 7 2n + 1 n=0

and ∞ 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

∞ 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

∞ 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 (on its interval of convergence): ∞ 1 X (2n)! √ = 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,

∞ X (2n)! x2n+1 arcsin(x) = . 4n(n!)2 2n + 1 n=0

(f) Show that ∞ 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 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) ∞ X n 2n n=1 (b) ∞ X n2 2n n=1 (c) ∞ X n + 1 n! n=0 (d) ∞ X 1 (2n)! n=0

Solution.

(a) Recall that ∞ 1 X = xn 1 − x n=0 for |x| < 1. Differentiating both sides gives

∞ 1 X = nxn−1 (1 − x)2 n=1

and then mutliplying through by x gives

∞ x X = nxn. (1 − x)2 n=1

1 Plugging in x = 2 yields ∞ X n 1/2 = = 2. 2n (1 − 1/2)2 n=1 (b) From the previous part, we have ∞ x X = nxn. (1 − x)2 n=1 Differentiating this equality gives

∞ (1 − x)2 + 2x(1 − x) X = n2xn−1 (1 − x)2 n=1

and multiplying through by x, we have

∞ (1 − x)2 + 2x(1 − x) X x = n2xn. (1 − x)2 n=1

5 1 Plugging in x = 2 gives ∞ X n2 1 1 + 1 3 = · 4 2 = . 2n 2 1/4 2 n=1 (c) Recall that ∞ X xn ex = . n! n=0 Multiplying through by x gives ∞ X xn+1 xex = . n! n=0 Differentiating both sides yields

∞ X (n + 1)xn ex + xex = . n! n=0

Plugging in x = 1 gives ∞ X n + 1 = e1 + 1 · e1 = 2e. n! n=0 (d) . This series reminds of the power series for cosine:

∞ X x2n cos x = (−1)n . (2n)! n=0

Evaluating at x = 1 gives ∞ 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

∞ X x2n cosh x = . (2n)! n=0

Evaluating this at 1 yields ∞ 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

∞ X x2n+1 sin x = (−1)n (2n + 1)! n=0

6 it follows that ∞ ∞ 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 P∞ xn Next, recall that e = n=0 n! . This implies that

∞ ∞ 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:

∞ 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 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 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 . .  n   n − 1  1  Z 1 = − − ··· − xn dx n + 1 n + 1 n + 1 0  1  n   n − 1  1  xn+1 = − − ··· − n + 1 n + 1 n + 1 n + 1  0 n! = (−1)n . (n + 1)n+1 Thus, ∞ ∞ ∞ Z 1 1 X (−1)n Z 1 X (−1)n n! X 1 dx = xn(ln x)n dx = · (−1)n = . xx n! n! (n + 1)n+1 (n + 1)n+1 0 n=0 0 n=0 n=0 Reindexing a gives a lovely final answer:

∞ Z 1 1 X 1 dx = . xx nn 0 n=1

4. Determine whether the following series converge or diverge. (The point of these exercises is that thinking about Maclaurin series can help you!)

(a) ∞ X  1  arctan . n2 n=1 (b) ∞ X  − 1  1 − 3 n . n=1 (c) ∞ X  1  sin3 √ . n n=1 (d) ∞ 1 ! X Z n sin(x2) dx . x n=1 0 (e) ∞ ! X 1 ln 2 1  . n=1 1 − sin n

8 (f) ∞ 1  X arcsin n . (ln n)2 n=1 (g) ∞ X  − 1  −1 tan n 2 sin n . n=1 (h) ∞  1  1 1 1  X ln 1 + 1 + + + ··· + n 2 3 n . n n=1

Solution.

(a) Recall that the MacLaurin series for arctan x is

x3 x5 arctan x = x − + + ··· . 3 5

2 2 1 Thus, for large values of n, arctan(1/n ) ≈ 1/n . Thus, we run limit comparison with n2 . Note that arctan(1/n2) arctan(1/x2) lim = lim n→∞ 1/n2 n→∞ 1/x2 1 2 1+ 1 · − x3 (L0H) = lim x4 x→∞ 2 − x3 1 = lim = 1. x→∞ 1 1 + x4

Since 0 < 1 < ∞, by limit comparison, P arctan(1/n2) behaves the same as P 1/n2. Since the latter is a convergent p-series, the former converges as well. (b) Recall that ((ln 3)x)2 3x = e(ln 3)·x = 1 + ((ln 3)x) + + ··· . 2! So for large values of n, − 1 ln 3 1 − 3 n ≈ . n 1 Thus, we run limit comparison with n . Note that

− 1 − 1 1 − 3 n 1 − 3 x lim = lim n→∞ 1 x→∞ 1 n x − 1 1 −3 x · ln 3 · (L0H) = lim x2 x→∞ −1 x2 = ln 3.

P  − 1  P Since 0 < ln 3 < ∞, by limit comparison, 1 − 3 n behaves the same as 1/n. Since the latter is a divergent p-series, the former diverges as well. (c) Because the MacLaurin series for sin x is 1 sin x = x − x3 + ··· 3!

9 3 3 3 −1/2 1 we expect sin (x) ≈ x for small x. Thus, sin (n ) ≈ n3/2 . Thus, we run limit comparison 1 with n3/2 . Note that

sin3(n−1/2) sin3(x−1/2) lim = lim n→∞ n−3/2 x→∞ x−3/2 − 3 sin2(x−1/2) cos(x−1/2)x−3/2 (L0H) = lim 2 x→∞ 3 −5/2 − 2 x sin2(x−1/2) (cos 0 = 1) = lim x→∞ 1 x − sin(x−1/2) cos(x−1/2)x−3/2 (L0H) = lim x→∞ −x−2 sin(x−1/2) (cos 0 = 1) = lim x→∞ x−1/2 = 1 as the the final limit is well known. (One could also use L’Hopital one more time). P 3 −1/2 P 1 Since 0 < 1 < ∞, by limit comparison, sin (n ) behaves the same as n3/2 . Since the latter is a convergent p-series, the former converges as well.

10