Physics 250 Green s functions for ordinary differential equations

Similar documents
Physics 116C Solution of inhomogeneous ordinary differential equations using Green s functions

Examples of the Fourier Theorem (Sect. 10.3). The Fourier Theorem: Continuous case.

Degree Master of Science in Mathematical Modelling and Scientific Computing Mathematical Methods I Thursday, 12th January 2012, 9:30 a.m.- 11:30 a.m.

Lecture Notes for Math 251: ODE and PDE. Lecture 30: 10.1 Two-Point Boundary Value Problems

Lecture IX. Definition 1 A non-singular Sturm 1 -Liouville 2 problem consists of a second order linear differential equation of the form.

Higher-order ordinary differential equations

22. Periodic Functions and Fourier Series

6 Non-homogeneous Heat Problems

Overview of Fourier Series (Sect. 6.2). Origins of the Fourier Series.

1. Solve the boundary-value problems or else show that no solutions exist. y (x) = c 1 e 2x + c 2 e 3x. (3)

Ma 221 Eigenvalues and Fourier Series

Ma 530 Power Series II

Section 12.6: Non-homogeneous Problems

Analysis III Solutions - Serie 12

MB4018 Differential equations

DIFFERENTIATION RULES

Math Numerical Analysis

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

Fourier series A periodic function f(x) with period T = 2π can be represented by a Fourier series: sinnx dx = sinnxsinmx dx =

2.2 The derivative as a Function

Graphs of Antiderivatives, Substitution Integrals

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

MA Chapter 10 practice

The Relation between the Integral and the Derivative Graphs. Unit #10 : Graphs of Antiderivatives, Substitution Integrals

Fourier and Partial Differential Equations

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

The derivative of a function f(x) is another function, defined in terms of a limiting expression: f(x + δx) f(x)

ACM 95b/100b Final Exam March 12, 2004 Due March 17, 2004 ACM 95b/100b 3pm in Firestone 307 E. Sterl Phinney (2 pts) Include grading section number

Math 201 Assignment #11

Two special equations: Bessel s and Legendre s equations. p Fourier-Bessel and Fourier-Legendre series. p

Math 489AB A Very Brief Intro to Fourier Series Fall 2008

Math Assignment 14

MATH3383. Quantum Mechanics. Appendix D: Hermite Equation; Orthogonal Polynomials

10.2-3: Fourier Series.

MATH 105: PRACTICE PROBLEMS FOR CHAPTER 3: SPRING 2010

Boundary Value Problems (Sect. 10.1). Two-point Boundary Value Problem.

Midterm Solution

Math 5440 Problem Set 7 Solutions

Physics 6303 Lecture 15 October 10, Reminder of general solution in 3-dimensional cylindrical coordinates. sinh. sin

Fourier Series and the Discrete Fourier Expansion

17 Source Problems for Heat and Wave IB- VPs

1 A complete Fourier series solution

a x a y = a x+y a x a = y ax y (a x ) r = a rx and log a (xy) = log a (x) + log a (y) log a ( x y ) = log a(x) log a (y) log a (x r ) = r log a (x).

Fall Math 3410 Name (Print): Solution KEY Practice Exam 2 - November 4 Time Limit: 50 Minutes

Differential Equations

Periodic functions: simple harmonic oscillator

Ordinary Differential Equations II

Find the Fourier series of the odd-periodic extension of the function f (x) = 1 for x ( 1, 0). Solution: The Fourier series is.

Additional Homework Problems

Problem Set 1 October 30, 2017

Waves on 2 and 3 dimensional domains

Time-Frequency Analysis

d 1 µ 2 Θ = 0. (4.1) consider first the case of m = 0 where there is no azimuthal dependence on the angle φ.

Unit #10 : Graphs of Antiderivatives, Substitution Integrals

Problem Set 8 Mar 5, 2004 Due Mar 10, 2004 ACM 95b/100b 3pm at Firestone 303 E. Sterl Phinney (2 pts) Include grading section number

Power series solutions for 2nd order linear ODE s (not necessarily with constant coefficients) a n z n. n=0

Partial Differential Equations for Engineering Math 312, Fall 2012

SESSION 6 Trig. Equations and Identities. Math 30-1 R 3. (Revisit, Review and Revive)

Convergence of Fourier Series

Differential equations, comprehensive exam topics and sample questions

Last Update: April 7, 201 0

This practice exam is intended to help you prepare for the final exam for MTH 142 Calculus II.

THE LIMIT PROCESS (AN INTUITIVE INTRODUCTION)

Normalization integrals of orthogonal Heun functions

Chapter 7: Techniques of Integration

1 Question related to polynomials

On an Eigenvalue Problem Involving Legendre Functions by Nicholas J. Rose North Carolina State University

Math 3150 HW 3 Solutions

Chapter 4: Higher-Order Differential Equations Part 1

TAYLOR AND MACLAURIN SERIES

1 Solutions in cylindrical coordinates: Bessel functions

(L, t) = 0, t > 0. (iii)

Ma 221 Final Exam Solutions 5/14/13

Method of Separation of Variables

Separation of Variables in Linear PDE: One-Dimensional Problems

More on Fourier Series

A Note on the Differential Equations with Distributional Coefficients

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

The First Derivative and Second Derivative Test

Lecture Notes for MAE 3100: Introduction to Applied Mathematics

Sturm-Liouville Theory

1 Distributions (due January 22, 2009)

Sturm-Liouville operators have form (given p(x) > 0, q(x)) + q(x), (notation means Lf = (pf ) + qf ) dx

Vectors in Function Spaces

df(x) = h(x) dx Chemistry 4531 Mathematical Preliminaries Spring 2009 I. A Primer on Differential Equations Order of differential equation

TRIGONOMETRIC FUNCTIONS. Copyright Cengage Learning. All rights reserved.

Equations (3) and (6) form a complete solution as long as the set of functions fy n (x)g exist that satisfy the Properties One and Two given by equati

Section 5.8. Taylor Series

Computer Problems for Fourier Series and Transforms

Unit #10 : Graphs of Antiderivatives; Substitution Integrals

Chapter 10: Partial Differential Equations

Math 251 December 14, 2005 Final Exam. 1 18pt 2 16pt 3 12pt 4 14pt 5 12pt 6 14pt 7 14pt 8 16pt 9 20pt 10 14pt Total 150pt

3 Green s functions in 2 and 3D

MATH 412 Fourier Series and PDE- Spring 2010 SOLUTIONS to HOMEWORK 6

Infinite series, improper integrals, and Taylor series

14 Fourier analysis. Read: Boas Ch. 7.

Next, we ll use all of the tools we ve covered in our study of trigonometry to solve some equations.

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 =

PHYS 502 Lecture 3: Fourier Series

3 rd class Mech. Eng. Dept. hamdiahmed.weebly.com Fourier Series

Transcription:

Physics 25 Green s functions for ordinary differential equations Peter Young November 25, 27 Homogeneous Equations We have already discussed second order linear homogeneous differential equations, which can be written as an eigenvalue problem of the form Ly n (x) + λ n w(x)y n (x) ==, () where L is an operator involving derivatives of the Sturm-Liouvill type, λ n is an eigenvalue, y n (x) is an eigenfunction, and w(x) is a weight factor. The range of interest is a x b and appropriate boundary conditions are specified at a and b. In this handout, we consider a simple example, we shall study by Green function methods. y + λy =, (2) in the interval x π, with the boundary conditions y() = y(π) =. This corresponds to L = d2 dx 2, (3) and w(x) =. Equation (2) is just the simple harmonic oscillator equation, so the solutions are cos kx and sin kx. The boundary condition y() = eliminates cos kx and the condition y(π) = gives k = n a positive integer. (Note: For n = the solution vanishes and taking n < just gives the same solution as that for the corresponding positive value of n because sin( nx) = sin(nx). Hence we only need consider positive integer n.) The normalized eigenfunctions are therefore 2 y n (x) = sin nx, (n =, 2, 3, ), (4) π and the eigenvalues in Eq. (2) are λ n = n 2, (5) since the equation satisfied by y n (x) is y n + n 2 y n =. 2 Inhomogeneous Equations Green s functions, the topic of this handout, appear when we consider the inhomogeneous equation analogous to Eq. () (L + λw(x))y(x) = f(x), (6)

where f(x) is some specified function of x. The idea of the method is to determine the Green s function, G λ (x, x ), which is given by the solution of the equation (L + λw(x)) G λ (x, x ) = δ(x x ), (7) for the specified boundary conditions. In Eq. (7), the differential operators in L act on x, and x is a constant. As discussed in class, once G has been determined, the solution of Eq. (6) can be obtained for any function f(x) from y(x) = b a G λ (x, x )f(x ) dx. (8) We emphasize that the same Green s function applies for any f(x), and so it only has to be calculated once for a given differential operator L and boundary conditions. 3 Expression for the Green s functions in terms of eigenfunctions In this section we recall expressions obtained in class for Green s function in terms of the eigenfunctions y n (x) of the homogeneous equation, Eq. (). We showed that G λ (x, x ) = n y n (x)y n(x ) λ λ n. (9) 4 A simple example As an example, let us determine the solution of the inhomogeneous equation corresponding to the homogeneous equation in Eq. (2) with λ = /4, i.e. y + 4y = f(x), with y() = y(π) =. () First we will evaluate the solution by elementary means for two choices of f(x) (i) f(x) = sin 2x, (ii) f(x) = x/2. () We will then obtain the solutions for these cases from the Green s function determined according to Eq. (9). In the elementary approach, one writes the solution of Eq. () as a combination of a complementary function y c (x) (the solution with f(x) = ) and the particular integral y p (x) (a particular solution with f(x) included). Since, for f(x) =, the equation is the simple harmonic oscillator equation, y c (x) is given by y c (x) = A cos(x/2) + B sin(x/2). (2) For the particular integral, we assume that y p (x) is of a similar form to f(x). We now determine the solution for the two choices of f(x) in Eq. (). (i) For f(x) = sin 2x we try y p (x) = C cos 2x + D sin 2x and substituting gives ( 4 + /4)D =, and C =. This gives y(x) = y c (x) + y p (x) = 4 sin 2x + A cos(x/2) + B sin(x/2). (3) 5 The boundary conditions are y() = y(π) =, which gives A = B =. Hence y(x) = 4 sin 2x, for f(x) = sin 2x. (4) 5 2

(ii) Similarly for f(x) = x we try y p (x) = C + Dx and substituting into Eq. () gives C =, D = 2, and so y(x) = y c (x) + y p (x) = 2x + A cos(x/2) + B sin(x/2). (5) The boundary conditions, y() = y(π) =, give A =, B = 2π. Hence This is plotted in the figure below y(x) = 2x 2π sin(x/2), for f(x) = x/2. (6) Now lets work out the Green s function, which is given by Eq. (9). The eigenfunction are given by Eq. (4) and the eigenvalues by Eq. (5), so we have G /4 (x, x ) = 2 π sin nx sin nx n=. (7) 4 n2 We can now substitute this into Eq. (8) to solve Eq. () for the two choices of f(x) in Eq. (). (i) First of all for f(x) = sin 2x Eq. (8) becomes y(x) = 2 ( π ) sin nx sin nx sin 2x dx = 2 π π n= 4 n2 n= sin nx 4 n2 sin nx sin 2x dx. (8) Because of the orthogonality of the sin nx in the interval from to π only the n = 2 term contributes, and the integral for this case is π/2. Hence the solution is in agreement with Eq. (4). y(x) = sin 2x 4 22 = 4 5 sin 2x. (9) 3

(ii) Now we consider the case of f(x) = x/2. Substituting Eq, (7) into Eq. (8) gives y(x) = π n= sin nx 4 n2 x sin nx dx. (2) There is no longer any orthogonality to simplify things and we just have to do the integral: x sin nx dx = [ x cos nx ] π cos nx + dx (2) n n [ ] π cos nπ sin nx π = + n n 2 (22) = ( ) n π n. (23) For the particular case of n = the integral is zero. Hence the solution is y(x) = ( ) n+ sin nx n( 4 n2 ). (24) n= This may not look the same as Eq. (6), but it is in fact, as one can check by expanding 2x 2π sin x/2 as a Fourier sine series in the interval to π, i.e. one writes 2x 2π sin x/2 = c n sin nx, (25) n= and determines the c n from the usual Fourier integral. Using the Green s function may seem to be a complicated way to proceed especially for our second choice of f(x). However, you should realize that the elementary derivation of the solution may not be so simple in other cases, and you should note that the Green s function applies to all possible choices of the function on the RHS, f(x). Furthermore, we will see in the next section that one can often get a closed form expression for G, rather than an infinite series. It is then much easier to find a closed form expression for the solution. 5 Closed form expression for the Green s function In many useful cases, one can obtain a closed form expression for the Green s function by starting with the defining equation, Eq. (7). We will illustrate this for the example in the previous section for which Eq. (7) is d 2 G /4 dx 2 + 4 G /4(x, x ) = δ(x x ). (26) Remember that x has a fixed value between and π while x is a variable. We solve this equation separately in the two regions (i) x < x, and (ii) x < x π. In each region separately the equation is G /4 + (/4)G /4 =, for which the solutions are G /4 (x, x ) = A cos(x/2) + B sin(x/2), (27) where A and B will depend on x. Since y() =, we require G(, x ) = (recall Eq. (8)) and so, for the solution in the region x < x, the cosine is eliminated. Similarly G /4 (π, x ) = and so, for the region x < x π, the sine is eliminated. Hence the solution is { G /4 (x, x B sin(x/2) ( x < x ) = ), A cos(x/2) (x (28) < x π). 4

How do we determine the two coefficients A and B? We get one relation between them by requiring that the solution is continuous at x = x, i.e. the limit as x x from below is equal to the limit as x x from above. This gives B sin(x /2) = A cos(x /2). (29) The second relation between A and B is obtained by integrating Eq. (26) from x ɛ to x + ɛ, and taking the limit ɛ, which gives so [ ] x +ɛ dg/4 lim ɛ dx + 4 lim ɛ ( dg/4 lim ɛ dx x +ɛ x +ɛ G /4 (x, x ) dx = lim dg /4 dx Hence dg /4 /dx has a discontinuity of at x = x, i.e. Solving Eqs. (29) and (32) gives Substituting into Eq. (28) gives ɛ x +ɛ δ(x x ) dx (3) ) + =. (3) A 2 sin(x /2) B 2 cos(x /2) =. (32) B = 2 cos(x /2), (33) A = 2 sin(x /2). (34) { G /4 (x, x 2 cos(x ) = /2) sin(x/2) ( x < x ), 2 sin(x /2) cos(x/2) (x < x π). (35) It is instructive to rewrite Eq. (35) in terms of x <, the smaller of x and x, and x >, the larger of x and x. This gives G /4 (x, x ) = 2 sin(x < /2) cos(x > /2), (36) irrespective of which is larger, which shows that G /4 is symmetric under interchange of x and x. A sketch of the solution for x = 3π/4 is shown in the figure below. The discontinuity in slope at x = x is clearly seen. 5

It is not obvious that this curve (Eq. (36)), is equal to the eigenfunction expansion in Eq. (7). It actually is, as can be checked by determining the Fourier series of Eq. (36). We now apply the closed form expression for G /4 in Eq. (35) to solve our simple example, Eq. (), with the two choices for f(x) shown in Eq. (). (i) For f(x) = sin 2x, Eqs. (8) and (35) give y(x) = 2 cos(x/2) x sin 2x sin(x /2) dx 2 sin(x/2) Using formulae for sines and cosines of sums of angles and integrating gives ( sin(3x/2) y(x) = 2 cos(x/2) sin(5x/2) ) ( cos(3x/2) 2 sin(x/2) 3 5 3 ( ) ( ) = 2 sin 2x + 2 sin 2x 3 5 x sin 2x cos(x /2) dx. (37) + cos(5x/2) ) (38) 5 (39) = 4 sin 2x, 5 (4) where we again used formulae for sums and differences of angles. This result is in agreement with Eq. (4). (ii) For f(x) = x/2, Eqs. (8) and (35) give y(x) = cos(x/2) Integrating by parts gives x x sin(x /2) dx sin(x/2) x x cos(x /2) dx (4) y(x) = cos(x/2) ( 2x cos(x/2) + 4 sin(x/2)) sin(x/2) (2π 4 cos(x/2) 2x sin(x/2)) (42), = 2x 2π sin(x/2), (43) which agrees with Eq. (6). Note that we obtained the closed form result explicitly, as opposed to the method in Sec. 3 where the solution was obtained as an infinite series, Eq. (24). It is often possible to find a closed form expression for G(x, x ) for other problem, along the lines presented here. 6 Summary We have shown how to solve linear, inhomogeneous, ordinary differential equations by using Green s functions. These can be represented in terms of eigenfunctions, see Sec. 3, and in many cases can alternatively be evaluated in closed form, see Secs. 4 and 5. The advantage of the Green s function approach is that the Green s function only needs to be computed once for a given differential operator L and boundary conditions, and this result can then be used to solve for any function f(x) on the RHS of Eq. (6) by using Eq. (8). In this handout we have used Green s function techniques for ordinary differential equations. They can also be used, in a very simple manner, for partial differential equations, but time prevents us from going into details. The advantages of Green s functions may not be readily apparent from the simple examples presented here. However, they are used in many advanced applications in physics. 6