Problem Set 1 October 30, 2017

Similar documents
Homework 1 Solutions Math 587

1 + lim. n n+1. f(x) = x + 1, x 1. and we check that f is increasing, instead. Using the quotient rule, we easily find that. 1 (x + 1) 1 x (x + 1) 2 =

Answers to Problem Set Number MIT (Fall 2005).

Problem 1 Kaplan, p. 436: 2c,i

Physics 250 Green s functions for ordinary differential equations

8.5 Taylor Polynomials and Taylor Series

Taylor Series. Math114. March 1, Department of Mathematics, University of Kentucky. Math114 Lecture 18 1/ 13

Section 5.8. Taylor Series

Math221: HW# 7 solutions

Infinite series, improper integrals, and Taylor series

SET 1. (1) Solve for x: (a) e 2x = 5 3x

MATH 1231 MATHEMATICS 1B CALCULUS. Section 5: - Power Series and Taylor Series.

Solution of Algebric & Transcendental Equations

JUST THE MATHS UNIT NUMBER DIFFERENTIATION APPLICATIONS 5 (Maclaurin s and Taylor s series) A.J.Hobson

Mathematics 104 Fall Term 2006 Solutions to Final Exam. sin(ln t) dt = e x sin(x) dx.

Tangent Lines Sec. 2.1, 2.7, & 2.8 (continued)

e x = 1 + x + x2 2! + x3 If the function f(x) can be written as a power series on an interval I, then the power series is of the form

Convergence of sequences and series

Sec 2.2: Infinite Limits / Vertical Asymptotes Sec 2.6: Limits At Infinity / Horizontal Asymptotes

Sec 2.2: Infinite Limits / Vertical Asymptotes Sec 2.6: Limits At Infinity / Horizontal Asymptotes

Asymptotic Expansions

Answers to Problem Set Number MIT (Fall 2005).

1 What is numerical analysis and scientific computing?

Ma 530 Power Series II

5.9 Representations of Functions as a Power Series

Differentiation ( , 9.5)

Chapter 11 - Sequences and Series

MATH 1910 Limits Numerically and Graphically Introduction to Limits does not exist DNE DOES does not Finding Limits Numerically

MATH141: Calculus II Exam #4 review solutions 7/20/2017 Page 1

Chapter 5: Integrals

MATH 31B: MIDTERM 2 REVIEW. sin 2 x = 1 cos(2x) dx = x 2 sin(2x) 4. + C = x 2. dx = x sin(2x) + C = x sin x cos x

Constructing Taylor Series

Lecture 10: Powers of Matrices, Difference Equations

1.4 Techniques of Integration

Mu Sequences and Series Topic Test Solutions FAMAT State Convention 2018

εx 2 + x 1 = 0. (2) Suppose we try a regular perturbation expansion on it. Setting ε = 0 gives x 1 = 0,

Partial Fractions. June 27, In this section, we will learn to integrate another class of functions: the rational functions.

Chapter 5: Integrals

(x 3)(x + 5) = (x 3)(x 1) = x + 5. sin 2 x e ax bx 1 = 1 2. lim

221A Lecture Notes Convergence of Perturbation Theory

Power Series. x n. Using the ratio test. n n + 1. x n+1 n 3. = lim x. lim n + 1. = 1 < x < 1. Then r = 1 and I = ( 1, 1) ( 1) n 1 x n.

and lim lim 6. The Squeeze Theorem

LIMITS AND DERIVATIVES

Math 112 Rahman. Week Taylor Series Suppose the function f has the following power series:

Lecture 9: Taylor Series

MATH 23 Exam 2 Review Solutions

Math 181, Exam 2, Study Guide 2 Problem 1 Solution. 1 + dx. 1 + (cos x)2 dx. 1 + cos2 xdx. = π ( 1 + cos π 2

Geometric Series and the Ratio and Root Test

Infinite series, improper integrals, and Taylor series

f (r) (a) r! (x a) r, r=0

Learn how to use Desmos

Math Assignment 5

Lecture 32: Taylor Series and McLaurin series We saw last day that some functions are equal to a power series on part of their domain.

CHAPTER 1. INTRODUCTION. ERRORS.

The Derivative of a Function Measuring Rates of Change of a function. Secant line. f(x) f(x 0 ) Average rate of change of with respect to over,

PHYSICS 210 SOLUTION OF THE NONLINEAR PENDULUM EQUATION USING FDAS

Replacing the a in the definition of the derivative of the function f at a with a variable x, gives the derivative function f (x).

Math 222, Exam I, September 17, 2002 Answers

MATH 118, LECTURES 27 & 28: TAYLOR SERIES

MATH 20B MIDTERM #2 REVIEW

Week 2 Techniques of Integration

Math 20B Supplement. Bill Helton. September 23, 2004

Math 111, Introduction to the Calculus, Fall 2011 Midterm I Practice Exam 1 Solutions

Taylor series. Chapter Introduction From geometric series to Taylor polynomials

TOPIC 3. Taylor polynomials. Mathematica code. Here is some basic mathematica code for plotting functions.

This Week. Professor Christopher Hoffman Math 124

Final Exam Review Exercise Set A, Math 1551, Fall 2017

Math 2233 Homework Set 7

Math Review for Exam Answer each of the following questions as either True or False. Circle the correct answer.

Assignment 16 Assigned Weds Oct 11

Math 1B Final Exam, Solution. Prof. Mina Aganagic Lecture 2, Spring (6 points) Use substitution and integration by parts to find:

Honors Calculus II [ ] Midterm II

3. On the grid below, sketch and label graphs of the following functions: y = sin x, y = cos x, and y = sin(x π/2). π/2 π 3π/2 2π 5π/2

Solutions 2: Simple Harmonic Oscillator and General Oscillations

PLC Papers. Created For:

Math 113 (Calculus 2) Exam 4

Let s Get Series(ous)

Further Mathematical Methods (Linear Algebra) 2002

z = x + iy ; x, y R rectangular or Cartesian form z = re iθ ; r, θ R polar form. (1)

Chapter 11. Taylor Series. Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 1 / 27

The above statement is the false product rule! The correct product rule gives g (x) = 3x 4 cos x+ 12x 3 sin x. for all angles θ.

Math Practice Exam 3 - solutions

LECTURE 11 - PARTIAL DIFFERENTIATION

Assignment 13 Assigned Mon Oct 4

MIT Weakly Nonlinear Things: Oscillators.

2t t dt.. So the distance is (t2 +6) 3/2

C. Finding roots of trinomials: 1st Example: x 2 5x = 14 x 2 5x 14 = 0 (x 7)(x + 2) = 0 Answer: x = 7 or x = -2

Physics 200 Lecture 4. Integration. Lecture 4. Physics 200 Laboratory

CHALLENGE! (0) = 5. Construct a polynomial with the following behavior at x = 0:

Notes on the Periodically Forced Harmonic Oscillator

1.2 Finite Precision Arithmetic

f (x) = k=0 f (0) = k=0 k=0 a k k(0) k 1 = a 1 a 1 = f (0). a k k(k 1)x k 2, k=2 a k k(k 1)(0) k 2 = 2a 2 a 2 = f (0) 2 a k k(k 1)(k 2)x k 3, k=3

Introduction Derivation General formula List of series Convergence Applications Test SERIES 4 INU0114/514 (MATHS 1)

c n (x a) n c 0 c 1 (x a) c 2 (x a) 2...

Math 20B Supplement. Bill Helton. August 3, 2003

Math 106: Review for Exam II - SOLUTIONS

Practice Questions for Final Exam - Math 1060Q - Fall 2014

YOU CAN BACK SUBSTITUTE TO ANY OF THE PREVIOUS EQUATIONS

Infinite Series. 1 Introduction. 2 General discussion on convergence

Linear and Nonlinear Oscillators (Lecture 2)

Transcription:

1. e π can be calculated from e x = x n. But that s not a good approximation method. The n! reason is that π is not small compared to 1. If you want O(0.1) accuracy, then the last term you need to include must satisfy xn < 0.1 (why?). What is the minimum n required to achieve this n! accuracy? A better approach is to expand e 3+x near x = 0. However, you will need to know e 3 0.1. How many terms do you need to get O(0.1) accuracy now? Solution. The Taylor expansion of e x can be truncated at order N with an error of order N + 1 e x = N x n n! + O(xN+1 ) (1) where the leading term in O(x N+1 x ) is N+1. if we want the accuracy of the truncated (N+1)! Taylor expansion to be of the order 0.1 (i.e. error be of order less than O(0.1)), we should have x N (N)! < 0.1. In our case, this translates into finding N s.t. π N N! < 0.1. () Since π 3, we can see that the first term satisfying eq. is corresponding to N = 9 ( π 0.3! but π9 0.0). 9! However, if we expand e π as e x+3, we ll get [ N ] [ e π = e 3 x n N ] n! + x n O(xN+1 ) 0.1 n! + O(xN+1 ). (3) So, we need (0.1 xn ) < 0.1 where x 0.14. You will see that in this case only 4 terms N! (N = 0,, 3) is sufficient to reach the desired accuracy since (0.1 0.143 ) 0.009.. The first few terms of e x = 1 x + x + usually provide pretty good approximations. So what s wrong with ] e x = [x x + x3 + = (4) Solution. 0 This should be clear even with your high school knowledge! The first thing to notice is that this expansion is designed to work for x 1 and it is definitely not a good idea to use it in order to calculate the value of the function as x (especially when we are truncating the expansion after the third term). Another way of looking at it is that in eq. 4 we are adding and subtracting infinities which is vague and cannot be manipulated in the form written here. 1 0

3. For each of the following functions find the maximum n Z such that f(x) = O(x n ) as x 0. (In some cases no such n exists, and when it does f(x) = Θ(x n ) may be false.) (i) f(x) = e x Solution. Whenever a function has a Taylor expansion, f(x) is of the same order as the first term appearing in the expansion. In the case of e x we have e x = O(1) and n = 0. (ii) f(x) = sin(x) x e x = Solution. The Taylor expansion of sin(x) can be written as sin(x) = x n n! = 1 + x + x +. (5) ( 1) n x n+1 (n + 1)! = x x3 + x5 5! +. (6) Using eq. 6, the first term appearing in the Taylor expansion of f(x) = sin(x) x will be x 3. Therefore, sin(x) x = O(x3 ) and n = 3. (iii) f(x) = log(x) Solution. As x 0, log(x) slower than any negative power of x, i.e. log(x) = o(x 1 ) = O(x 1 ) and n = 1. (iv) f(x) = x p log(x) lim x 0 log(x) x 1 = lim x 0 xlog(x) = 0. (7) Solution. As is stated in eq. 7, lim x 0 xlog(x) = 0. Therefore, lim x 0 x p log(x)/x (p 1) = 0, and n = p 1. (v) f(x) = (1 cos(x))/tan 1 (x) Solution. (1 cos(x))/tan 1 (x) has a Taylor expansion of the form Then, it is obvious from eq. that n = 1. (vi) f(x) = e 1/x 1 cos(x) tan 1 (x) = x + x3 41x5 70 + O(x7 ). ()

Solution. lim x 0 e 1 x 1 = 0 for all n Z n Z ; e x xn = o(x n ). (9) n Z s.t. e 1 x = Θ(x n ). (vii) f(x) = x Solution. the maximum n is 0. x lim = 0 for n 0. (10) x 0 xn (viii) f(x) = x x = e x log x Solution. As we have already seen in eq. 7 lim x log x = 0. x 0 So, we have Using eq. 11, we see that Therefore, maximum n = 0. lim x 0 lim x 0 xx = 1. (11) x x = 0 for all n 0. (1) xn (ix) f(x) = 1 x ( 1 x 1)( 1 x ) ( 1 x 1 x + 1) Solution. For simplicity let us only work with values of x = 1/N for N N; then, f(x) = N! and the limit x 0 is equivalent to the limit N. Using Stirling s formula for N!, we have lim ln N! = N ln N N. N But, as N gets bigger and bigger we can even ignore the second term. So Using eq. 13, we can see that no such n Z exists s.t. lim ln N! N ln N N! N N. (13) N N N lim N N <. n 4. Find the first four coefficients a 0,1,,3 of the Taylor expansion sin 1 (x) = a nx n by plugging it in sin(sin 1 x) = x and using the Taylor series of sin x. Repeat the calculation starting from sin 1 (sin x) = x. 3

Solution. sin x has a Taylor expansion of the form sin x = ( 1) n x(n+1) (n + 1)! = x x3 + O(x5 ). (14) Therefore, assuming that sin 1 x has a Taylor expansion of the form a nx n and only keeping terms up to order 3, we get x = (a 0 + a 1 x + a x + a 3 x 3 ) 1 (a 0 + a 1 x + a x + a 3 x 3 ) 3 = (a 0 a3 0 ) + (a 1 3a 0a 1 )x So, we have +(a 3a 0a 1 a 0 a3 0 = a 0 (1 a 0 ) = 0, a 1 1 a 0a 1 = 1, a 1a 0a 1 1 a 0a = 0, a 3 1 a3 1 1 a 0a 3 = 0. 3a 0a )x + (a 3 a3 1 3a 0a 3 a 0 = 0, ±() 1, a 1 = (1 a 0 ) 1, a = 1 a 0a 3 1, a 3 = 1 a4 1. ) + O(x 4 ). It seems that we are in trouble! depending on the a 0 that we choose from the three possible options, we will get different Taylor expansions for sin 1 x. What comes to our rescue, as always, is the initial value; we want sin 1 (0) = 0, so we should choose a 0 = 0. Therefore (15) (16) sin 1 x = x + x3 + O(x4 ). (17) 5. Find the first three coefficients a 0,1, of the Taylor expansion log(1+x) = a nx n by plugging it in exp(log(1 + x)) = 1 + x and using the Taylor series of e x. Repeat the calculation starting from log(e x ) = x. Solution. We will proceed in the same manner as we did in the problem 4. 1 + (a 0 + a 1 x + a x ) + (a 0 + a 1 x + a x ) + = 1 + x (a 0 + 1 a 0) + (a 1 + a 0 a 1 )x a 0 = 0,, a 1 = (1 + a 0 ) 1, a = 1 a3 1. +(a + 1 a 1 + a 0 a )x = x. Using the same reasoning as in problem 4, we demand a 0 to be equal to 0. Therefore (1) (19) log(1 + x) = x 1 x + O(x 3 ). (0) 6. Find the first three non-zero terms in the power series of the following expressions. Don t use Taylor s formula for the expansion coefficients; rather manipulate series you already know. 4

(i) sin x/(1 x) as x 0. Solution. Let us assume that sin x/(1 x) has a power series expansion of the form We also know that Using eq. 1 and eq., we get x x3 + x5 5! + O(x 7 ) (1 x) = sin x = sin x (1 x) = a n x n. (1) ( 1) m x(m+1) (m + 1)!. () m=0 a n x n x x3 + x5 5! + O(x7 ) = a n x n a n x n+1. (3) eq. 3 can be solved for a n s by comparing the coefficients of x n s order by order x x3 + O(x5 ) = a 0 + (a 1 a 0 )x + (a a 1 )x + (a 3 a )x 3 + O(x 4 ) a 0 = 0, a 1 = 1, a = 1, a 3 = 5 6,. (4) Therefore sin x (1 x) = x + x + 5 6 x3 + O(x 4 ). (5) (ii) sin x/(1 x) as x π/. Solution. Let us introduce y x π/. sin x/(1 x) can be written is terms of y as sin( π + y) [1 ( π + y)] = cos y (1 π) y = a n y n. (6) Then, substituting the power series expansion of cos x in eq. 6, we get 1 + y! + y4 4! + O(y6 ) = (1 π )a 0 + (a n+1 (1 π )a n)y n+1. (7) a 0 = (1 π ) 1, a 1 = 1, a = (1 π ),. sin x (1 x) = (1 π ) 1 + (x π ) + (1 π )(x π ) + O(x 3 ). () 5

(iii) (x + 1)/(x 1) as x 1. Solution. We will proceed as we did in the previous part: we introduce y x + 1 and write (x + 1)/(x 1) in terms of y y y = a n y n y = a 0 + (a n a n+1 )y n+1. (9) a 0 = 0, a 1 = 1, a = 1, 4 a 3 = 1,. a n = n,. (x + 1) (x 1) = (x + 1) (x + 1) 4 (x + 1)3 (x + 1)n n. (30) (iv) e x log( + x/) as x 0. Solution. we start with rewriting e x log( + x/) as e x log( + x ) = ex log[(1 + x 4 )] = ex [log + log(1 + x )]. (31) 4 Plugging the standard Taylor expansions of exponential and logarithm functions into eq. 31, we get the final answer e x log( + x x ) = log (1 + x + + O(x3 )) + (1 + x + x + O(x3 ))( x 4 + x 16 + O(x3 )) = log + (log + 1 )x + (log + 1 4 4 + 1 16 )x + O(x 3 ). (3) 7. Visualize the solution to the equation x = ɛe x by plotting the intersection between the line y = x/ɛ and the curve y = e x. Now solve it perturbatively by writing x = a nɛ n and equating powers of ɛ on both sides. Find a 0,1,. Show that dx/dɛ > 0, so that as you increase ɛ the location of x moves to the right. Does this agree with what you have on your plot? Solution. Figure 1 Shows the intersection of the line y = x/ɛ and the curve y = e x for three different values of ɛ. In order to solve x = ɛe x perturbatively, we write x = a nɛ n and equating powers of ɛ on both sides a 0 + a 1 ɛ + a ɛ + O(ɛ 3 ) = ɛ[1 (a 0 + a 1 ɛ + a ɛ + O(ɛ 3 )) + (a 0 + a 1 ɛ + a ɛ + O(ɛ 3 )) + ]. (33) 6

Figure 1: We can visualize the solution to the equation x = ɛe x by plotting the intersection between the line y = x/ɛ and the curve y = e x. The red curve represents y = e x and the green, orange, and blue lines represent y = x/ɛ for ɛ = 0.01, 0.1, 1 respectively. As it is clear in this figure, as ɛ gets bigger the location of intersection (i.e. the solution to the equation) moves further to the right (x gets bigger). keeping only terms up to order of ɛ, we get a 0 + a 1 ɛ + a ɛ + O(ɛ 3 ) = (1 a 0 + 1 a 0)ɛ + (a 1 a 0 a 1 )ɛ + O(ɛ 3 ). (34) a 0 = 0, a 1 = 1, a = 1. Also, note that taking derivative of equation 35 w.r.t. ɛ we get x = ɛ ɛ + O(ɛ 3 ). (35) d dɛ x = 1 ɛ + O(ɛ ), (36) for ɛ small enough so that keeping only two terms makes sense, we can see that this derivative is positive which is exactly the behaviour we saw in Fig. 1.. The equation of motion of a pendulum of length l is θ(t) + ω sin θ(t) = θ, where ω = g/l. For small oscillations, and with initial conditions θ(0) = θ 0, θ(0) = 0, this has solution θ(t) = θ 0 cos ωt, because sin θ θ. (i) Now we want to solve the original equation perturbatively. parameter of the problem? Plug What is the small expansion θ(t) = θ 0 cos ωt + T (t)θ 0 + T 3 (t)θ 3 0 + O(θ 4 0). (37) into the equation and obtain T,3 (t). Be careful about the initial conditions; we want θ(0) = θ 0 and θ(0) = 0 to still hold. 7

Solution. By now you should know the procedure! We start with Taylor expanding sin θ and then plug in eq. 37 d dt (θ 0 cos ωt + T (t)θ 0 + T 3 (t)θ 3 0 + O(θ 4 0)) + ω [(θ 0 cos ωt + T (t)θ 0 + T 3 (t)θ 3 0 + O(θ 4 0)) 1 (θ 0 cos ωt + T (t)θ 0 + T 3 (t)θ 3 0 + O(θ 4 0)) 3 ] = 0. (3) We need only to keep terms up to order θ 3 0 and also we know that the differential equation for the first order in θ 0 is already solved by design. So { [ T (t) + ω T (t)]θ0 = 0, [ T 3 (t) + ω T 3 (t) ω cos 3 ωt]θ 3 0 = 0. { T (t) + ω T (t) = 0, T 3 (t) + ω T 3 (t) ω cos 3 ωt = 0. (39) Solving the differential equation for T (t) is easy; we already know that T will be of the form T (t) = c 1 cos ωt + c sin ωt. (40) In order to solve the differential equation for T 3 (t) we note that the final solution will be the sum of complementary solution (the solution of the homogeneous part i.e. T3 (t)+ω T 3 (t) = 0) and the particular solution. The complementary solution is just the same as the solution of T (t) i.e. T 3 (t) = c 31 cos ωt + c 3 sin ωt + particular solution. (41) In order to solve for the particular solution, we first simplify the equation using trigonometric identities and then solve the differential equation with the method of undetermined coefficients T 3 (t) + ω T 3 (t) = ω ω cos ωt + cos 3ωt. (4) 4 Then, the particular solution will be the sum of two particular solutions of { T3 (t) + ω T 3 (t) = ω cos ωt, T 3 (t) + ω T 3 (t) = ω cos 3ωt. (43) 4 The particular solution of T 3 (t) + ω T 3 (t) = ω cos ωt is of the form (T 3 ) p1 = t(b 1 cos ωt + b sin ωt), (44) where (b 1 cos ωt + b sin ωt) was multiplied by t to account for cos ωt in the complementary solution. The particular solution to T 3 (t) + ω T 3 (t) = ω cos 3ωt is of the form 4 Adding eq. 44 and eq. 45, we get (T 3 ) p = b 3 cos 3ωt + b 4 sin 3ωt. (45) (T 3 ) p = b 1 t cos ωt + b t sin ωt + b 3 cos 3ωt + b 4 sin 3ωt. (46)

Taking the second derivative and plugging it in the original equation we can calculate the coefficients b 1,,3,4. T 3 (t) = c 31 cos ωt + c 3 sin ωt + ωt 1 sin ωt cos 3ωt. (47) 16 19 Combining eq. 37, eq. 40, and eq. 47, we get θ(t) = θ 0 cos ωt + [c 1 cos ωt + c sin ωt] θ0 [ + c 31 cos ωt + c 3 sin ωt + ωt ] 1 sin ωt cos 3ωt θ0 3 + O(θ 4 16 19 0). (4) Imposing the initial conditions θ(0) = θ 0 and θ(0) = 0, we get the final answer θ(t) = θ 0 cos ωt + [ ] 1 ωt 1 cos ωt + sin ωt cos 3ωt θ0 3 + O(θ 4 19 16 19 0). (49) (ii) As time t increases, the correction you found grows, until it becomes greater than the leading term θ 0 cos ωt. This is where our approximation breaks down and we have to include higher order terms. At what time does this happen? Solution. In order to find the time that this approximation breaks down we have to find the time that correction term gets bigger than the leading term. Therefore, we should find the time t c for which the amplitude of the term θ3 0 ωt 16 sin ωt gets big enough to be equal to θ 0 (we don t care about the two other terms because they are just oscillating and their amplitude does not change with time) θ 3 0ωt c 16 = θ 0 t c = 16 θ 0ω. (50) 10. Solve θ(t) + ω sin θ(t) = 0 iteratively. To do so, write the equation as θ(t) + ω θ(t) = ω [θ(t) sin θ(t)]. This way, all linear terms are on the left and all non-linear terms are on the right (similar to x = f(x) that we solved in the class). Then plug θ 1 (t) = θ 0 cos ωt as your first guess in the right hand side and compute θ (t) from θ (t) + ω θ (t) = ω [θ 1 (t) sin θ 1 (t)].keep only terms that are at most O(θ 3 0) and compare with the result of problem. Solution. We will Taylor expand sin θ and will only keep terms up to order θ 3 0 θ (t) + ω θ (t) = ω [θ 1 (t) θ 1 (t) + 1 θ3 1 + O(θ0)] 5 θ (t) + ω θ (t) = θ3 0ω cos 3 ωt. (51) Which is exactly the differential equation we solved for T 3 (t) in problem (remember that T (t) vanished when we imposed the initial conditions). these two methods lead to the same answer. 9