Docsity

green function for physics, Study notes of Physics

Toggle sidebar
bg1
MATH34032: Green’s Functions, Integral Equations and the Calculus of Variations 1
Section 2
Green’s Functions
In this section we show how the Green’s function may be used to derive a general solution
to an inhomogeneous Boundary Value Problem.
Boundary Value Problems and Linear Superposition
Definition 2.1:A linear boundary value problem (BVP) for an ordinary differential equa-
tion (ODE) of at least second order, consists of the following:
(a) an unknown function u(x)defined and continuous on an interval x∈[a, b]where a, b
are real constants and xis a real variable a≤x≤b;
(b) an ordinary differential equation (ODE) for u(x),
Lu(x) = f(x) (2.1)
on (a, b), where Lis a differential operator
L=
N
X
i=0
ai(x)di
dxi, N ≥2 (2.2)
=aN(x)u(N)(x) + aN−1(x)uN−1(x) + ...+a1(x)u′(x) + a0(x)u(x)
and f(x)(the forcing function, inhomogeneous term), ai(x)(coefficients), 0≤
i≤Nare known functions of x.
(c) Nboundary conditions/data (BCs) to be satisfied by u(x)and/or its derivatives
at x=a,x=b.
Typical BCs are u(a) = α1,du/dx (b) = α2etc. where αiare known numbers. For
given BCs written in some fixed order, form the vector {α1, ..., αN}=αand call the set
{f(x) ; α}the data.
Solve the BVP in a way that exhibits dependence on the data – it is then easy to change
the data. Linearity of (2.1) allows this.
Example 1: Let
xd2u
dx2+ 2x2du
dx + 4u= exp x
on the interval [0,1] subject to
u(0) = 1,du
dx(1) = 2,
then
a= 0, b = 1.
L=xd2
dx2+ 2x2d
dx + 4,
f(x) = exp x,
α1= 1, α2= 2
and the data is {exp x; 1,2}.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download green function for physics and more Study notes Physics in PDF only on Docsity!

Section 2

Green’s Functions

In this section we show how the Green’s function may be used to derive a general solution to an inhomogeneous Boundary Value Problem.

Boundary Value Problems and Linear Superposition

Definition 2.1: A linear boundary value problem (BVP) for an ordinary differential equa- tion (ODE) of at least second order, consists of the following: (a) an unknown function u (x) defined and continuous on an interval x ∈ [a, b] where a, b are real constants and x is a real variable a ≤ x ≤ b; (b) an ordinary differential equation (ODE) for u(x),

Lu (x) = f (x) (2.1)

on (a, b), where L is a differential operator

L =

∑^ N

i=

ai (x)

di dxi^

, N ≥ 2 (2.2)

= aN (x) u(N^ )^ (x) + aN − 1 (x) uN^ −^1 (x) +... + a 1 (x) u′^ (x) + a 0 (x) u (x)

and f (x) (the forcing function, inhomogeneous term), ai (x) (coefficients), 0 ≤ i ≤ N are known functions of x. (c) N boundary conditions/data (BCs) to be satisfied by u (x) and/or its derivatives at x = a, x = b.

Typical BCs are u (a) = α 1 , du/dx (b) = α 2 etc. where αi are known numbers. For given BCs written in some fixed order, form the vector {α 1 , ..., αN } = α and call the set {f (x) ; α} the data. Solve the BVP in a way that exhibits dependence on the data – it is then easy to change the data. Linearity of (2.1) allows this.

Example 1: Let

x

d^2 u dx^2

  • 2x^2

du dx

  • 4u = exp x

on the interval [0, 1] subject to

u (0) = 1,

du dx

then a = 0, b = 1.

L = x

d^2 dx^2

  • 2x^2

d dx

f (x) = exp x, α 1 = 1, α 2 = 2

and the data is {exp x; 1, 2 }.

Theorem 2.2: This concerns superposition of the data. Let u 1 (x) be a solution for data {f 1 (x) ; α 1 }

and u 2 (x) be a solution for data {f 2 (x) ; α 2 }.

Then Au 1 (x) + Bu 2 (x)

is a solution for the data

{Af 1 (x) + Bf 2 (x) ; Aα 1 + Bα 2 }

for real known constants A, B.

Note 1: Theorem 2.2 extends to N solutions and N sets of data and to data {f (x, θ) ; α (θ)} depending on a continuous parameter θ. This is superposition corresponding to an integral with respect to θ. Note 2: Theorem 2.2 allows decomposition of data into simple sets; the corresponding simple BVPs solved and reassembled into the solution for the original data – only linearity allows this! One way to do this is to decompose the data {f (x) ; α} into {f (x) ; 0 } and {0; α} : {f (x) ; 0 } - inhomogeneous equation (particular solution), homogeneous bound- ary data; {0; α} - homogeneous equation (complementary function solution), inhomoge- neous boundary data. Another way is to split the data {0; α 1 ,... , αn} into N simpler problems {0; α 1 , 0 } ,... , {0; 0, αN }

  • each with one inhomogeneous BC, all remaining BCs homogeneous.

Example 2: Take d^2 u dx^2

du dx

− 2 u = x

on the interval [0, 1] subject to

u (0) = 1, u(1) = 2.

Split the solution into a sum of three parts, say, with respective data

{x, (0, 0)}, { 0 , (1, 0)}, { 0 , (0, 2)}.

A Green’s function is a solution to an associated BVP in which f (x) takes a special form (it is the Dirac delta ‘function’) and u (x) is subject to homogeneous boundary data, i.e. the prescribed values α of the BCs at x = a, x = b are zero. As we shall see, the Green’s function may be used to solve the general BVP stated above.

Dirac Delta Function

Definition 2.3: The Dirac Delta Function, δ (x − y), is defined such that

  1. δ (x − y) = 0 if x 6 = y,

and so ∫ (^) x+d

x−c

f (y) δ (x − y) dy = [−H (x − y) f (y)]yy==xx+−dc −

∫ (^) x+d

x−c

−H (x − y) f ′^ (y) dy

= {−H (−d) f (x + d)} − {−H (c) f (x − c)} +

∫ (^) x+d

x−c

H (x − y) f ′^ (y) dy.

Now H (−d) = 0, H (c) = 1,

and

H (x − y) =

1 if x − c ≤ y < x, 0 if x < y ≤ x + d.

Hence (^) ∫ (^) x+d

x−c

f (y) δ (x − y) dy = f (x − c) +

∫ (^) x

x−c

f ′^ (y) dy

= f (x − c) + [f (y)]xx−c = f (x).  Note: Employing the usual inner product for two real functions, f and g say:

〈g, f 〉 =

∫ (^) b

a

f (x) g (x) dx

for a < x < b, we may write

〈δ (x − y) , f (y)〉 = 〈f (y) , δ (x − y)〉 = f (x). (2.3)

We can now prove Proposition 2.5(a) more formally. Indeed for a function φ(x) with sufficient decay at infinity, we have, initially using integration by parts

〈H′(x), φ(x)〉 = −〈H(x), φ′(x)〉,

= −

0

φ′(x)dx,

= φ(0)

where we used the fundamental theorem of calculus. Finally we know that

φ(0) = 〈δ(x), φ(x)〉

and therefore we must have H′(x) = δ(x).

Green’s function

Example 3: Take the BVP

x

d^2 u dx^2

  • 2x^2

du dx

  • 4u = f (x),

u (a) = 2,

du dx

(b) = 1.

Let G (x, y) be a function of two variables x, y and apply the differential operator L to G (x, y). Write

LxG (x, y) =

x

d^2 dx^2

  • 2x^2

d dx

G(x, y)

to emphasise that L acts on G as a function of x (i.e. differentiate with respect to (w.r.t.) x) and that y is a parameter. Then G(x, y) satisfies the BVP with homogeneous BCs:

LxG (x, y) = δ(x − y), y ∈ [a, b],

G (a, y) = 0,

dG dx

(b, y) = 0.

Definition 2.7: A Green’s function G (x, y) for any BVP satisfies the equation

LxG (x, y) = δ (x − y) , (2.4)

for some operator Lx with homogeneous BCs, i.e. it is the solution corresponding to the data {δ (x − y) ; 0 }.

Thus, G (x, y) is the response, under homogeneous BCs, to a forcing function consisting of a concentrated unit impulse (or inhomogeneity) at x = y.

Theorem 2.8: Let G (x, y) be known for a homogeneous BVP (2.4), then the solution to the inhomogeneous equation Lu (x) = f (x) ,

where f (x) is a given function, subject to homogeneous boundary conditions, may be writ- ten

u (x) =

∫ (^) b

a

G (x, y) f (y) dy.

Proof: Differentiating under the integral sign

Lu (x) =

∫ (^) b

a

LxG (x, y) f (y) dy

or by (2.4)

=

∫ (^) b

a

δ (x − y) f (y) dy

and hence using (2.3) = f (x). 

Let us now show how construction of a Green’s function is achieved for a specific example.

Example 4: Find the general solution (i.e. the solution for arbitrary f (x)) of

Lu (x) = f (x) (2.5)

and hence, from (2.9), 0 − A 1 (y) = 1.

Substituting this into (2.8) reveals

A 1 (y) = − 1 , B 2 (y) = −y

or

G (x, y) =

−x for 0 ≤ x ≤ y, −y for y ≤ x ≤ 1.

Now, recall the Heaviside step function

H (t) =

1 if t > 0 , 0 if t < 0 ,

and so the Green’s function may be expressed as

G (x, y) = −xH (y − x) − yH (x − y).

The general solution of the ODE (2.5) is, from Theorem 2.8,

u (x) =

0

G (x, y) f (y) dy

0

[−xH (y − x) − yH (x − y)] f (y) dy

= −x

x

f (y) dy −

∫ (^) x

0

yf (y) dy.

This completes the solution for this example; however, later we will revisit it and apply a couple of checks to ensure that it is correct.

Analogous problem

In section 0, we stated the Green’s function for the steady state heat equation,

d^2 u dx^2

= f (x)

subject to u(0) = 0 = u(L). Derive this using the approach given above.

Construction of Green’s Functions for Sturm-Liouville Operators

Let us now consider the construction of G(x, y) for the general Sturm-Liouville operator:

L =

r (x)

d dx

p (x)

d dx

  • q (x)

This operator, and special cases of it, occur when solving PDEs by separation of variables. We will see that the general construction of G(x, y) follows the same route as for the above specific example.

From (2.4), G (x, y) satisfies the homogeneous equation

LxG (x, y) = 0

except at x = y. Consider the two sub-intervals (a, y) and (y, b) of (a, b) separately. The operator L is second order and so the general solution of Lu (x) = 0 contains two arbitrary constants A, B say. Write

u (x) = Av (x) + Bw (x).

The BVP has two homogeneous boundary conditions, one at x = a and the other at x = b. For the Green’s function then since LxG = 0, we can once again split the problem up into two domains:

(i) In [a, y), use the BC at x = a to obtain a solution containing one arbitrary “constant” and which satisfies the BC at x = a. Write the solution as G 1 (x, y) = c 1 (y)u 1 (x).

(ii) In (y, b] use the BC at x = b to obtain a solution containing one arbitrary constant and which satisfies the BC at x = b. Write the solution as G 2 (x, y) = c 2 (y)u 2 (x).

The constants c 1 , c 2 depend (continuously) upon the parameter y, i.e. c 1 = c 1 (y) and c 2 = c 2 (y). We have

G (x, y) =

c 1 (y) u 1 (x) for a ≤ x < y, c 2 (y) u 2 (x) for y < x ≤ b.

To find c 1 (y) , c 2 (y) we need to find two conditions on G (x, y) at x = y. From (2.4) and (2.10) the function G (x, y) satisfies

∂ ∂x

p (x)

∂G (x, y) ∂x

  • q (x) G (x, y) = δ (x − y) r (x). (2.12)

Theorem 2.9: The Green’s function G (x, y) is continuous (w.r.t. x) at x = y:

c 1 (y) u 1 (y) = c 2 (y) u 2 (y). (2.13)

Proof: Suppose it is not continuous, then, at best G (x, y) has a step discontinuity (like H (x − y)) at x = y. The LHS of (2.12) therefore contains the second derivative of a step function, i.e. the first derivative of a δ-function. The RHS does not have such, and so the equation cannot balance. There is a contradiction, so G must be continuous. Now, let y− = lim ε→ 0 (y − ε) , y+ = lim ε→ 0 (y + ε)

then G (x, y) is continuous ⇒

G (y−, y) = G (y+, y) = G (y, y).

From (2.11) at x = y, c 1 (y−) u 1 (y) = c 2 (y+) u 2 (y).

The c 1 (y) , c 2 (y) are continuous in y, and so

c 1 (y) u 1 (y) = c 2 (y) u 2 (y).



Therefore for equations of Sturm-Liouville type, the Green’s functions can be found in a rather straightforward manner by using the explicit formulae above.

Let us return to the BVP in Example 4. In that example we determined the Green’s function directly, and showed that it had the form

G(x, y) =

−x, 0 ≤ x ≤ y, −y, y ≤ x ≤ 1

. Alternatively, we could have derived this solution using the explicit formulae above because the operator is clearly of Sturm-Liouville form, with r(x) = 1, p(x) = 1, q(x) = 0. Let’s do this, using u 1 (x) = x and u 2 (x) = 1 which as always have to be determined from solutions to the homogeneous ODE with the necessary boundary conditions at the left and right ends. We use (2.16), finding that the Wronskian is W = −1 and therefore

c 1 (y) = − 1 , c 2 (y) = −y

which therefore gives the same result as the direct method in (2.17) above.

We can write this (as above) as

G (x, y) = −xH (y − x) − yH (x − y)

and so the solution to the BVP can be written in the general form

u(x) = −x

x

f (y) dy −

∫ (^) x

0

yf (y) dy.

CHECKS!

We can impose two checks on the calculation. The first on the Green’s function and the second on the solution u(x). Check 1: We have G (x, y) = −xH (y − x) − yH (x − y) ,

so ∂G (x, y) ∂x

= −H (y − x) − x (−1) δ (y − x) − yδ (x − y) = −H (y − x) ,

and ∂^2 G (x, y) ∂x^2

= δ (y − x).

Check 2: Recall the ‘fundamental theorem of integral calculus’. If

F (x) =

∫ (^) x

a

f (y) dy then F ′^ (x) = f (x).

We have

u (x) = −x

x

f (y) dy −

∫ (^) x

0

yf (y) dy,

and so

u′^ (x) = −

x

f (y) dy − x [−f (x)] − xf (x) = −

x

f (y) dy

together with u′′^ (x) = − [−f (x)] = f (x).

Thus, u (x) satisfies the requisite ODE. Checking the boundary values

u (0) = − 0 ×

0

f (y) dy −

0

yf (y) dy = 0,

and

u′^ (1) = −

1

f (y) dy = 0,

so these are satisfied too.

We can now make a number of remarks about what we have achieved. First, in the above example, G (x, y) is symmetric in x, y: G (y, x) = −yH (x − y) − xH (y − x) = G (x, y). This is true for any Sturm-Liouville problem for which r(x) is constant. See a later section for further discussion of this issue. Second, the Green’s function G (x, y) may be regarded as the response at the point x to a unit impulse at the point y. The general inhomogeneous term f on 0 < y < 1 can be regarded as a set of impulses, with f (y) giving the magnitude of the impulse at point y. Third, note that given that the Green’s function permits the solution to a problem involv- ing homogeneous boundary conditions with inhomogeneous forcing (RHS in the ODE), we can also consider now how to solve the inhomogeneous boundary condition problem. Well, this is relatively simple. We use linear superposition, determining a solution of

Lu = 0

subject to the inhomogeneous BCs (e.g. u(a) = α, u(b) = β). Let us call this the comple- mentary function uCF (x) and therefore the solution to the full BVP

Lu = f (x)

subject to inhomogeneous BCs (e.g. u(a) = α, u(b) = β) is

u(x) = uCF (x) +

∫ (^) b

a

G(x, y)f (y)dy

In Example 4 we worked out the Green’s function directly using boundary conditions, continuity of G(x, y) at x = y and a condition on the discontinuity of the derivative of G(x, y) at x = y. We noted later that since the operator was of Sturm-Liouville form, we could have also used the explicit formulae (2.16) in order to determine the Green’s function. When the problem is not of Sturm-Liouville form, then we have no option but to determine the Green’s function directly. We now consider an example of this type.

Example 5: Determine the Green’s function associated with part of Q1 from Sheet 2, i.e. that associated with x^2 u′′(x) − xu′(x) − 3 u(x) = x − 3

with u(1) = 0, u(2) = 0, confirming that the solution you obtain is equivalent to that which you obtained in that question using standard direct ODE methods.

and using integration by parts in the second term we find that ∫ (^) y+

y−

x

∂G

∂x

dx = [xG]

∫ (^) y+

y−

∫ (^) y+

y−

Gdx = 0

by continuity. Therefore the jump condition for this problem is [ ∂G ∂x

]y+

y−

y^2

Applying this, using

∂G 1 ∂x

= A 1 (y)

3 x^2 +

x^2

, 1 ≤ x ≤ y,

∂G 2 ∂x

= A 2 (y)

3 x^2 +

x^2

, y ≤ x ≤ 2.

we find that, upon using (2.19)

A 1 (y) =

y^4 − 16 60 y^4

and therefore

A 2 (y) =

y^4 − 1 60 y^4

The Greens function is therefore

G(x, y) =

G 1 (x, y) =

y^4 − 16 60 y^4

x^3 − (^1) x

, 1 ≤ x ≤ y, G 2 (x, y) =

y^4 − 1 60 y^4

x^3 − (^16) x

, y ≤ x ≤ 2 ,

which can therefore be written as

G(x, y) = H(y − x)

y^4 − 16 60 y^4

x^3 −

x

  • H(x − y)

y^4 − 1 60 y^4

x^3 −

x

and the solution of the BVP can therefore be written

u(x) =

1

G(x, y)f (y)dy =

1

G(x, y)(y − 3)dy.

We’ll return to this shortly.

Let’s first perform some checks on the Green’s function derived in (2.20). Boundary conditions? G(1, y) = 0, yes. G(2, y) = 0, yes. Check continuity at x = y, yes. We note that the Green’s function is NOT symmetric - the equation is not self-adjoint. Check for yourself that the Green’s function satisfies the equation with delta function forcing. Remember to use the form in (2.21) and the fact that H′(x − y) = δ(x − y), etc.).

Finally, let’s check that the solution in integral form is the same as that which we evaluated directly in Q1, sheet 2. We have

u(x) =

1

G(x, y)(y − 3)dy,

∫ (^) x

1

y^4 − 1 60 y^4

x^3 −

x

(y − 3)dy +

x

y^4 − 16 60 y^4

x^3 −

x

(y − 3)dy

Bringing out the terms depending on x, performing the integration in y and simplifying, we obtain (after a lot of algebra)

u(x) = 1 −

x 4

x^3 −

15 x

which we note is the correct solution as found in Q1, Sheet 2 with homogeneous boundary conditions.

Further worked examples for you to put in your notes: construct the Green’s function associated with, and hence solve the following BVPs:

x^2

d^2 u dx^2

− 4 x

du dx

  • 6u = f (x), u(1) = 1, u′(2) = 2.

d^2 u dx^2

du dx

  • u = f (x), u(0) = 1, u(1) = 0.

Symmetry and the Adjoint Green’s Function

We have said that

u(x) =

∫ (^) b

a

G(x, y)f (y)dy, (2.22)

indeed we have shown this in Theorem 2.8, because we can operate on this equation with L to give

Lu =

∫ (^) b

a

LG(x, y)f (y)dy,

∫ (^) b

a

δ(x − y)f (y),

= f (x)

as we require. However in Section 0, we showed from first principles, by integrating combinations of the ODEs that u and G satisfy, that, in fact (note the position of the x and y in the argument of the Green’s function)

u(x) =

∫ (^) b

a

G(y, x)f (y)dy

for the operator L = d^2 /dx^2. Since for this operator, L∗^ = L (self-adjoint), we argued that the Green’s function is symmetric G(x, y) = G(y, x) and thus

u(x) =

∫ (^) b

a

G(x, y)f (y)dy.

But what if the operator is not self-adjoint? We have already seen lots of such examples and in this case the Green’s function is not symmetric. So we cannot use this argument.

We can avoid this difficulty using the definition of the Adjoint operator and Adjoint Greens function. In particular, from the definition of the Adjoint operator, i.e. 〈L∗v, u〉 = 〈v, Lu〉 for the usual inner product and arbitrary functions u and v taken from the appropriate space, it is evident that ∫ (^) b

a

[

(L∗v(x))u(x) − v(x)Lu(x)

]

dx = 0. (2.23)

Summary

The general solution to the BVP Lu = f (x)

subject to homogeneous boundary conditions, say here u(a) = 0, u(b) = 0 is

u(x) =

∫ (^) b

a

G(x, y)f (y)dy

where G(x, y) is the Green’s function, i.e. the solution to the BVP

LxG(x, y) = δ(x − y)

subject to the corresponding boundary conditions, here G(a, y) = G(b, y) = 0.

The Green’s function can be determined directly (apply boundary conditions, continuity at x = y and determine the appropriate jump condition on the derivative of G(x, y) to apply at x = y) or if the operator is of Sturm-Liouville form, then the solution can be obtained by first applying boundary conditions (to find u 1 (x) and u 2 (x)) and the use the explicit forms for c 1 (y) and c 2 (y) as given in (2.16).

Finally to solve a problem with inhomogeneous boundary conditions we can determine the complementary function for the homogeneous ode (with f(x)=0), say this is uCF (x) and then we solution to the full BVP Lu = f (x)

subject to homogeneous boundary conditions, say here u(a) = α, u(b) = β is

u(x) = uCF (x) +

∫ (^) b

a

G(x, y)f (y)dy.