Professional Documents
Culture Documents
21.6 Green Functions For First Order Equations
21.6 Green Functions For First Order Equations
We can represent the solution to the inhomogeneous problem in Equation 21.2 as an integral involving
the Green function. To show that
� ∞
y(x) = G(x|ξ)f (ξ) dξ
a
is the solution, we apply the linear operator L to the integral. (Assume that the integral is uniformly
convergent.)
�� ∞ � � ∞
L G(x|ξ)f (ξ) dξ = L[G(x|ξ)]f (ξ) dξ
a
�a ∞
= δ(x − ξ)f (ξ) dξ
a
= f (x)
Now we consider the qualitiative behavior of the Green function. For x �= ξ, the Green function
is simply a homogeneous solution of the differential equation, however at x = ξ we expect some
singular behavior. G� (x|ξ) will have a Dirac delta function type singularity. This means that G(x|ξ)
will have a jump discontinuity at x = ξ. We integrate the differential equation on the vanishing
interval (ξ − . . . ξ + ) to determine this jump.
G� + p(x)G = δ(x − ξ)
� ξ+
G(ξ + |ξ) − G(ξ − |ξ) + p(x)G(x|ξ) dx = 1
ξ�
G(ξ |ξ) − G(ξ − |ξ) = 1
+
(21.3)
Since the Green function satisfies the homogeneous equation for x �= ξ, it will be a constant times
this homogeneous solution for x < ξ and x > ξ.
� �
c1 e− p(x) dx a<x<ξ
G(x|ξ) = −
�
p(x) dx
c2 e ξ<x
661
In order to satisfy the homogeneous initial condition G(a|ξ) = 0, the Green function must vanish on
the interval (a . . . ξ). �
0 a<x<ξ
G(x|ξ) = �
c e− p(x) dx ξ<x
The jump condition, (Equation 21.3), gives us the constraint G(ξ + |ξ) = 1. This determines the
constant in the homogeneous solution for x > ξ.
�
0 � a<x<ξ
G(x|ξ) = x
e− ξ p(t) dt ξ<x
We can use the Heaviside function to write the Green function without using a case statement.
�x
G(x|ξ) = e− ξ
p(t) dt
H(x − ξ)
Clearly the Green function is of little value in solving the inhomogeneous differential equation in
Equation 21.2, as we can solve that problem directly. However, we will encounter first order Green
function problems in solving some partial differential equations.
Result 21.6.1 The first order inhomogeneous differential equation with ho-
mogeneous initial condition
L[y] ≡ y � + p(x)y = f (x)� for a < x� y(a) = 0�
B1 [y] = B2 [y] = 0.
The Green function is useful because you can represent the solution to the inhomogeneous problem
in Equation 21.4 as an integral involving the Green function. To show that
� b
y(x) = G(x|ξ)f (ξ) dξ
a
662
is the solution, we apply the linear operator L to the integral. (Assume that the integral is uniformly
convergent.)
�� � �
b b
L G(x|ξ)f (ξ) dξ = L[G(x|ξ)]f (ξ) dξ
a a
� b
= δ(x − ξ)f (ξ) dξ
a
= f (x)
One of the advantages of using Green functions is that once you find the Green function for a
linear operator and certain homogeneous boundary conditions,
You do not need to do any extra work to obtain the solution for a different inhomogeneous term.
Qualitatively, what kind of behavior will the Green function for a second order differential equa-
tion have? Will it have a delta function singularity; will it be continuous? To answer these questions
we will first look at the behavior of integrals and derivatives of δ(x).
The integral of δ(x) is the Heaviside function, H(x).
� x �
0 for x < 0
H(x) = δ(t) dt =
−∞ 1 for x > 0
The derivative of the delta function is zero for x �= 0. At x = 0 it goes from 0 up to +∞, down to
−∞ and then back up to 0.
In Figure 21.2 we see conceptually the behavior of the ramp function, the Heaviside function,
the delta function, and the derivative of the delta function.
We write the differential equation for the Green function.
we see that only the G�� (x|ξ) term can have a delta function type singularity. If one of the other terms
had a delta function type singularity then G�� (x|ξ) would be more singular than a delta function
and there would be nothing in the right hand side of the equation to match this kind of singularity.
Analogous to the progression from a delta function to a Heaviside function to a ramp function, we
see that G� (x|ξ) will have a jump discontinuity and G(x|ξ) will be continuous.
663
d
Figure 21.2: r(x), H(x), δ(x) and dx δ(x)
Let y1 and y2 be two linearly independent solutions to the homogeneous equation, L[y] = 0. Since
the Green function satisfies the homogeneous equation for x �= ξ, it will be a linear combination of
the homogeneous solutions.
�
c 1 y1 + c 2 y2 for x < ξ
G(x|ξ) =
d 1 y1 + d 2 y2 for x > ξ
� ξ+ � ξ+
[G�� (x|ξ) + p(x)G� (x|ξ) + q(x)G(x|ξ)] dx = δ(x − ξ) dx.
ξ� ξ�
Since G(x|ξ) is continuous and G� (x|ξ) has only a jump discontinuity two of the terms vanish.
� ξ+ � ξ+
�
p(x)G (x|ξ) dx = 0 and q(x)G(x|ξ) dx = 0
ξ� ξ�
� ξ+ � ξ+
��
G (x|ξ) dx = δ(x − ξ) dx
ξ� ξ�
�ξ + �ξ +
G� (x|ξ)
� �
ξ�
= H(x − ξ) ξ�
G� (ξ + |ξ) − G� (ξ − |ξ) = 1
Combined with the two boundary conditions, this gives us a total of four equations to determine
our four constants, c1 , c2 , d1 , and d2 .
664
Result 21.7.1 The second order inhomogeneous differential equation with
homogeneous boundary conditions
L[y] = y �� + p(x)y � + q(x)y = f (x)� for a < x < b� B1 [y] = B2 [y] = 0�
Applying the two boundary conditions, we see that c1 = 0 and d1 = −d2 . The Green function now
has the form �
cx for x < ξ
G(x|ξ) =
d(x − 1) for x > ξ.
Since the Green function must be continuous,
ξ
cξ = d(ξ − 1) → d=c .
ξ−1
From the jump condition,
d ξ � d ��
c (x − 1)� − cx� =1
�
dx ξ − 1 x=ξ dx x=ξ
ξ
c −c=1
ξ−1
c = ξ − 1.
The Green function is plotted in Figure 21.3 for various values of ξ. The solution to y �� = f (x) is
665
0.1 0.1 0.1 0.1
0.5 1 0.5 1 0.5 1 0.5 1
-0.1 -0.1 -0.1 -0.1
-0.2 -0.2 -0.2 -0.2
-0.3 -0.3 -0.3 -0.3
� 1
y(x) = G(x|ξ)f (ξ) dξ
0
� x � 1
y(x) = (x − 1) ξf (ξ) dξ + x (ξ − 1)f (ξ) dξ.
0 x
is � x � 1
u(x) = (x − 1) ξf (ξ) dξ + x (ξ − 1)f (ξ) dξ.
0 x
Now we have to find the solution to
v �� = 0� v(0) = 1� u(1) = 2.
v = 1 + x.
1 3
y= (x − x).
6
666
Method 2. Using the Green function to find the solution,
� x � 1
y = (x − 1) ξ 2 dξ + x (ξ − 1)ξ dξ
0 x
� �
1 1 1 1 3 1 2
= (x − 1) x3 + x − − x + x
3 3 2 3 2
1 3
y= (x − x).
6
−c e2ξ e−ξ −c eξ = 1
1
c = − e−ξ
2
The Green function is then �
− 12 ex−ξ for x < ξ
G(x|ξ) =
− 12 e−x+ξ for x > ξ
1
G(x|ξ) = − e−�x−ξ� .
2
A plot of G(x|0) is given in Figure 21.4. The solution to y �� − y = sin x is
� ∞
1
y(x) = − e−�x−ξ� sin ξ dξ
−∞ 2
�� x � ∞ �
1 x−ξ −x+ξ
=− sin ξ e dξ + sin ξ e dξ
2 −∞ x
1 sin x + cos x − sin x + cos x
= − (− + )
2 2 2
1
y= sin x.
2
667
0.6
0.4
0.2
-4 -2 2 4
-0.2
-0.4
-0.6
668
Now we have a system of equations to determine c1 and c2 .
1 (x)y2 (ξ)
�y
p(ξ)W (ξ) for a ≤ x ≤ ξ�
G(x|ξ) = y2 (x)y1 (ξ)
p(ξ)W (ξ) for ξ ≤ x ≤ b.
A set of solutions to the homogeneous equation is {ex � e−x }. Equivalently, one could use the set
{cosh x� sinh x}. Note that sinh x satisfies the left boundary condition and sinh(x − 1) satisfies the
right boundary condition. The Wronskian of these two homogeneous solutions is
� �
� sinh x sinh(x − 1) �
W (x) = �� �
cosh x cosh(x − 1)�
= sinh x cosh(x − 1) − cosh x sinh(x − 1)
1 1
= [sinh(2x − 1) + sinh(1)] − [sinh(2x − 1) − sinh(1)]
2 2
= sinh(1).
669
The solution to the problem is
x 1
sinh(x − 1) sinh(x)
� �
y= sinh(ξ)f (ξ) dξ + sinh(ξ − 1)f (ξ) dξ.
sinh(1) 0 sinh(1) x
y(a) = γ1 � y � (a) = γ2 .
and
v �� + p(x)v � + q(x)v = 0� v(a) = γ1 � v � (a) = γ2 .
Since the Wronskian � � �
W (x) = c exp − p(x) dx
is non-vanishing, the solutions of the differential equation for v are linearly independent. Thus there
is a unique solution for v that satisfies the initial conditions.
Let u1 and u2 be two linearly independent solutions of the differential equation. For x < ξ, G(x|ξ)
is a linear combination of these solutions. Since the Wronskian is non-vanishing, only the trivial
solution satisfies the homogeneous initial conditions. The Green function must be
�
0 for x < ξ
G(x|ξ) =
uξ (x) for x > ξ�
Note that the non-vanishing Wronskian ensures a unique solution for uξ . We can write the Green
function in the form
G(x|ξ) = H(x − ξ)uξ (x).
This is known as the causal solution. The solution for u is
� b
u= G(x|ξ)f (ξ) dξ
a
� b
= H(x − ξ)uξ (x)f (ξ) dξ
�a x
= uξ (x)f (ξ) dξ
a
670
Now we have the solution for y,
� x
y=v+ uξ (x)f (ξ) dξ.
a
is � x
y = yh + yξ (x)f (ξ) dξ
a
where yh is the combination of the homogeneous solutions of the equation that
satisfy the initial conditions and yξ (x) is the linear combination of homoge-
neous solutions that satisfy yξ (ξ) = 0, yξ� (ξ) = 1.
and
v �� + p(x)v � + q(x)v = 0� α1 v(a) + α2 v � (a) = γ1 � β1 v(b) + β2 v � (b) = γ2 .
The problem for v may have no solution, a unique solution or an infinite number of solutions. We
consider only the case that there is a unique solution for v. In this case the homogeneous equation
subject to homogeneous boundary conditions has only the trivial solution.
Let u1 and u2 be two solutions of the homogeneous equation that satisfy the left and right boundary
conditions, respectively. The non-vanishing of the Wronskian ensures that these solutions exist.
Let W (x) denote the Wronskian of u1 and u2 . Since the homogeneous equation with homogeneous
boundary conditions has only the trivial solution, W (x) is nonzero on [a� b]. The Green function has
the form �
c 1 u1 for x < ξ�
G(x|ξ) =
c 2 u2 for x > ξ.
671
The continuity and jump conditions for Green function gives us the equations
c1 u1 (ξ) − c2 u2 (ξ) = 0
c1 u�1 (ξ) − c2 u�2 (ξ) = −1.
Using Kramer’s rule, the solution is
u2 (ξ) u1 (ξ)
c1 = � c2 = .
W (ξ) W (ξ)
Thus the Green function is
1 (x)u2 (ξ)
�u
W (ξ) for x < ξ�
G(x|ξ) = u1 (ξ)u2 (x)
W (ξ) for x > ξ.
The solution for u is � b
u= G(x|ξ)f (ξ) dξ.
a
Thus if there is a unique solution for v, the solution for y is
� b
y=v+ G(x|ξ)f (ξ) dξ.
a
672
The problem for v may have no solution, a unique solution or an infinite number of solutions.
Again we consider only the case that there is a unique solution for v. In this case the homogeneous
equation subject to homogeneous boundary conditions has only the trivial solution.
Let y1 and y2 be two solutions of the homogeneous equation that satisfy the boundary conditions
B1 [y1 ] = 0 and B2 [y2 ] = 0. Since the completely homogeneous problem has no solutions, we know
that B1 [y2 ] and B2 [y1 ] are nonzero. The solution for v has the form
v = c 1 y1 + c 2 y2 .
γ2 γ1
v= y1 + y2 .
B2 [y1 ] B1 [y2 ]
We write the Green function as the sum of the causal solution and the two homogeneous solutions
With this form, the continuity and jump conditions are automatically satisfied. Applying the bound-
ary conditions yields
β21 yξ (b) + β22 yξ� (b) β11 yξ (b) + β12 yξ� (b)
G(x|ξ) = H(x − ξ)yξ (x) − y1 (x) − y2 (x).
B2 [y1 ] B1 [y2 ]
Note that the Green function is well defined since B2 [y1 ] and B1 [y2 ] are nonzero. The solution for
u is
� b
u= G(x|ξ)f (ξ) dξ.
a
� b
γ2 γ1
y= G(x|ξ)f (ξ) dξ + y1 + y2 .
a B2 [y1 ] B1 [y2 ]
673
Result 21.7.5 Consider the problem
Bj [y] = γj
We assume that the coefficient functions in the differential equation are continuous on [a� b]. The
solution is y = u + v where u and v satisfy
and
L[v] = 0� with Bj [v] = γj
has only the trivial solution, then the solution for y exists and is unique. We will construct this
solution using Green functions.
674
First we consider the problem for v. Let {y1 � . . . � yn } be a set of linearly independent solutions.
The solution for v has the form
v = c 1 y1 + · · · + c n yn
� � �
B1 [y1 ] B1 [y2 ] ··· B1 [yn ] c1 γ1
B2 [y1 ] B2 [y2 ] ··· B2 [yn ] c2 γ2
.. .. .. .. = .. .
..
. . . . . .
Bn [y1 ] Bn [y2 ] ··· Bn [yn ] cn γn
Let yξ (x) be the linear combination of the homogeneous solutions that satisfy the conditions
yξ (ξ) = 0
yξ� (ξ) = 0
.. .
. = ..
(n−2)
yξ (ξ) = 0
(n−1)
yξ (ξ) = 1.
� � �
B1 [y1 ] B1 [y2 ] ··· B1 [yn ] d1 −B1 [H(x − ξ)yξ (x)]
B2 [y1 ] B2 [y2 ] ··· B2 [yn ] d2 −B2 [H(x − ξ)yξ (x)]
.. .. .. .. = .. .
..
. . . . . .
Bn [y1 ] Bn [y2 ] ··· Bn [yn ] dn −Bn [H(x − ξ)yξ (x)]
675