Sunteți pe pagina 1din 7

ACM 30020 Advanced Mathematical Methods

Green’s function for the Boundary Value Problems (BVP)1

1. Dirac Delta Function and Heaviside Step Function

Definition:

(
A > 0, x = 0 ,
δ(x) =
0, otherwise

Two main properties of δ-function:


Z ∞
δ(x)dx = 1
−∞

and
Z ∞ Z ∞
f (x)δ(x − a)dx = f (a)δ(x − a)dx =
−∞ −∞
Z ∞
f (a) δ(x − a)dx = f (a)
−∞

for any analytic f (x).

From a purely mathematical viewpoint, the Dirac delta is not strictly a function, because any
extended-real function that is equal to zero everywhere but a single point must have total integral
zero. The δ-function only makes sense as a mathematical object when it appears inside an integral.
While from this perspective the Dirac delta can usually be manipulated as though it were a function,
formally it must be defined as a distribution.

There are the number of known analytic approximations of δ-function that satisfy the same prop-
erties:
1 Based on Section 1.5 of textbook “Advanced Mathematical Methods for Scientists and Engineers: Asymptotic Methods and Perturbation

Theory” by C. M. Bender and S. A. Orszag. Springer, 1999.

1
1. The sequence of functions
n 2 2
δn (x) = √ e−n x , n = 1, 2, · · · .
π
Example:
Z ∞ Z ∞
n 2 2
δn (x) dx = √ e−n x dx,
−∞ π −∞
n 1 ∞ −z2
Z
=√ e dz,
π n −∞
n 1√
=√ π = 1.
πn

2. The family of functions


Z L
dk
δL (x) = eikx , L>0,
−L 2π
which could be re-written by doing the integral:
1 1 ixL
e − e−ixL ,

δL (x) =
2π ix
e − e−ixL
 ixL 
1
= · 2L · ,
2π 2iLx
L sin(Lx)
= .
π Lx

More approximations exist and their use is usually motivated by the particular problem.

Alternatively δ(x) could be defined as a derivative of the Heaviside step function H(x):

 0, x < 0


H(x) = 1/2, x = 0


 1, x > 0.

Then δ(x) = dH(x)/dx.

Note that Heaviside step function is “smoother” than the Dirac delta function, as integration is a
smoothing operation. Furthermore, the integral of the Heaviside function is a ramp function:
Z ∞ (
0, x ≤ 0
r(x) = H(x)dx
−∞ x, x ≥ 0.

2
2. Application to differential equations

Consider the 2nd order linear differential equation:

L[y] = y 00 + p(x)y 0 + q(x)u = f (x)

where p(x) and q(x) are continuous functions.

The Green’s function approach could be applied to the solution of linear ODEs of any order,
however, we showcase it on the 2nd order equations, due to the vast areas of their applications in
physics and engineering.

The Green’s function G(x, ξ) associated with the inhomogeneous equation L[y] = f (x) satisfies
the differential equation:

L[G(x, ξ)] = δ(x − ξ)

Once G(x, ξ) is known then the solution of L[y] = f (x) is


Z ∞
y(x) = G(x, ξ)f (ξ)dξ (1)
−∞

because
Z ∞  Z ∞
L[y] = L G(x, ξ)f (ξ)dξ = L[G(x, ξ)]f (ξ)dξ =
−∞ −∞
Z ∞
δ(x − ξ)f (ξ)dξ = f (x)
−∞

Also note that this is true for


Z
y(x) = G(x, ξ)f (ξ)dξ
I

over any interval I that contains x on which f (x) is continuous.

The idea behind Green’s function approach is to replace the direct solution of the inhomogeneous
equation L[y(x)] = f (x), which could be cumbersome by computing Green’s function that satis-
fies equation L[G(x, ξ)] = δ(x − ξ) and eventually deriving y(x) from the integral (1).

First we consider the homogeneous equation L[y] = 0. That has a general solution y = C1 y1 +
C2 y2 . When x 6= ξ, L[G(x, ξ)] = 0. So we could write:
(
ay1 + by2 , x < ξ
G(x, ξ) =
cy1 + dy2 , x > ξ

To find four unknown parameters we need four equations. Two of them are based on the following
conditions:

3
1. Continuity at x = ξ:

ay1 (ξ) + by2 (ξ) = cy1 (ξ) + dy2 (ξ) (2)

2. ∂G(x, ξ)/∂x has a finite jump (of size 1) at x = ξ


To verify this property we integrate L[G(x, ξ)] in the close vicinity of ξ (on the interval
[ξ − ε, ξ + ε]) and look through the integral term by term:
Z ξ+ε Z ξ+ε Z ξ+ε Z ξ+ε
L[G(x, ξ)]dx = Gxx (x, ξ)dx + p(x)Gx (x, ξ)dx + q(x)G(x, ξ)dx =
ξ−ε ξ−ε ξ−ε ξ−ε
Z ξ+ε Z ∞
I1 + I2 + I3 = δ(x − ξ)dx = δ(x − ξ)dx = δ(x = ξ) = 1
ξ−ε −∞

We use the definition of δ(x − ξ), which is equal to 0 everywhere except x = ξ.


From the condition of continuity follows that when ε → 0
Z ξ+ε
I3 = q(x)G(x, ξ)dx = 0
ξ−ε
Z ξ+ε
I2 = p(x)Gx (x, ξ)dx = 0.
ξ−ε

Both I3 and I2 represent continuous functions at x = ξ. Thus the only candidate “to be
discontinuous” is
Z ξ+ε
ξ+0
I1 = Gx (x, ξ)|ξ−0 = Gxx (x, ξ)dx
ξ−ε

I1 corresponds to the Heaviside step function, which has a jump discontinuity of size 1 at x =
ξ. This yields one more equation to for computing the coefficients of the Green’s function:

cy10 (ξ) + dy20 (ξ) − ay10 (ξ) − by20 (ξ) = 1 (3)

The remaining two equations for unknown parameters of Greens function we formulate from the
initial or boundary conditions.

Combining Eqs. (2) and (3) we get:


y2 (ξ) y1 (ξ)
b−a=− d−c=
W (y1 , y2 )(ξ) W (y1 , y2 )(ξ)
where W (y1 , y2 ) is a Wronskian of the homogeneous problem.

The Green’s function for IVP was explained in the previous set of notes (and derived using the
method of variation of parameter). Here we consider the BVP. The Green’s function approach
is particularly better to solve boundary-value problems, especially when the operator L and the

4
boundary conditions are fixed but the RHS may vary. It is easy for solving boundary value prob-
lem with homogeneous boundary conditions. For inhomogeneous boundary conditions, for which
the BVP has solutions (an open question!!!), some transformations of the variable are needed to
homogenize the boundary conditions.

The algorithm of the BVP solution includes the following steps:

1. First we solve homogeneous problem L[y] = 0. The fundamental solutions y1 and y2 should
satisfy the following properties:

L[y1 ] = 0, B0 [y1 ] = 0
; L[y2 ] = 0, B1 [y2 ] = 0 .

One can also check, for instance, that B0 [y2 ] 6= 0 (equivalent to the condition of linear inde-
pendence). Based on y1 , y2 and their Wronskian we formulate first two equations to find the
Green’s function coefficients

2. Then we apply continuity and jump conditions: (2) and (3) to form two remaining equations.

3. By solving all four equations we find the coefficients and construct the Green’s function of
the BVP G(x, ξ).

4. The solution of BVP is computed using integral (1) and known f (x).

3. Examples

Question 1: Compute the Green’s function of the BVP: y 00 = f (x), with y(0) = y 0 (1) = 0.

The Green’s function for this problem is satisfying

Gxx (x, ξ) = δ(x − ξ)


G(0, ξ) = Gx (1, ξ) = 0

And the solution of BVP is


Z 1
y(x) = G(x, ξ)f (ξ)dξ
0

Since
Z 1
y(0) = G(0, ξ)f (ξ)dξ = 0
0
Z 1
0
y (1) = Gx (1, ξ)f (ξ)dξ = 0
0

5
If x 6= ξ Gxx (x, ξ) = 0. Therefore
(
ax + b, x < ξ
G(x, ξ) =
cx + d, x > ξ
where x ∈ (0, 1). We start with BC:
G(0, ξ) = 0 ⇒ b = 0 ⇒ G(x, ξ) = ax, x < ξ
G0 (1, ξ) = 0 ⇒ c = 0 ⇒ G(x, ξ) = d, x > ξ
From the continuity follows: aξ = d and from the jump condition: 0 − a = 1. Therefore a = −1
and d = −ξ. The result is

(
−x, x < ξ
G(x, ξ) =
−ξ, x > ξ

Question 1a: Suppose that f (x) = x2 . Solve the BVP from the previous question.

1 x 1
x 1
ξ 4 ξ 3 x4 x
Z Z Z
2 2 2
y(x) = G(x, ξ)ξ dξ = (−ξ)ξ + (−x)ξ dξ = − − x = −
0 0 x 4 0 3 x 12 3

Question 2: Compute the Green’s function of the BVP: y 00 − y = f (x), with y(±∞) = 0.

The Green’s function for this problem is satisfying


Gxx (x, ξ) − G(x, ξ) = δ(x − ξ)
G(−∞, ξ) = G(∞, ξ) = 0
And the solution of BVP is
Z ∞
y(x) = G(x, ξ)f (ξ)dξ

Since
Z ∞
y(−∞) = G(−∞, ξ)f (ξ)dξ = 0
Z∞∞
y(∞) = G(∞, ξ)f (ξ)dξ = 0

The homogeneous equation has a solution y = C1 ex + C2 e−x . Therefore


(
aex + be−x , x < ξ
G(x, ξ) =
cex + de−x , x > ξ

6
From BC follows that b = 0 and c = 0 (we substitute x = −∞ into the top equation and x = ∞
into the bottom).

The continuity and the jump in derivative conditions yield

aeξ = de−ξ
−de−ξ − aeξ = 1

Solving the linear system, we obtain


1 1
a = − e−ξ c = − eξ
2 2
and

(
− 21 ex−ξ , x < ξ 1
G(x, ξ) = = − e−|x−ξ|
− 21 eξ−x , x > ξ 2

S-ar putea să vă placă și