Professional Documents
Culture Documents
TT - Green's Functions For Odes
TT - Green's Functions For Odes
Introduction
More than 50 years ago in a graduate course in differential equations, my colleagues and I struggled
to understand what a Green's function for an ordinary differential equation really was. One wag even
pointed to a green chalk mark on a blackboard and declared it to be the long-sought essence of the
Green's function.
It was a considerable time later that I articulated a terse description of the Green's function, namely,
that it is the kernel of the integral operator that inverts a differential operator. In fact, I felt free to
share this insight with students learning the Laplace transform in my undergraduate differential
equations courses at Rose-Hulman Institute of Technology. The syllabi for these courses included a
discussion of the Dirac delta function, from which the notions of transfer function, fundamental
solution, and Green's function for the initial value problem easily follow. Of course, I was fortunate
that the students in these courses had Maple at hand, either on desk-top computers or laptops. The
ability to obtain solutions of test problems directly, using Maple's dsolve command, and then by a
Green's function technique meant that the learning process was self-correcting. It was always
possible to obtain instant feedback to determine whether or not a given approach to a computation
was viable.
Explaining "the kernel of the integral operator that inverts the differential operator" really isn't that
hard. Use a simple example such as the initial value problem
It's not hard to convince an undergraduate that the more complex initial value problem
In this month's article, we will detail how Maple might be used to obtain Green's functions for
second-order initial value problems (IVPs) and boundary value problems (BVPs). For each, we
examine the cases of homogeneous and nonhomogeneous conditions; for the BVP, we examine both
the unmixed and mixed cases. In particular, the differential equation , where
, is used in each example listed in Table 1. The initial and boundary conditions that
distinguish the six examples considered, are listed in the table.
BVP
3
Separated, homogeneous
BVP
4
Separated, nonhomogeneous
BVP
5
Mixed, homogeneous
BVP
6
Mixed, nonhomogeneous
Table 1 Initial or boundary conditions delineating the six examples of this discussion
For the IVP, the independent variable is taken as , whereas for the BVPs, it is taken as .
Initializations
The following installations, definitions, and notational devices are used to make Maple's calculations
more like what one might read in a textbook.
Example 1
Mathematical Solution
Method 1
the IVP
Because is a weak solution of the ODE , it does not have a continuous first
derivative. Indeed, it will later be shown that has a jump of across the line .
Method 2
Let be a fundamental set for the homogeneous ODE , and let
be the Wronskian for this fundamental set. Then the Green's function
The astute reader will see this form of the Green's function arising from the particular solution
generated by the Variation of Parameters technique. Indeed, let the general solution of the
ODE be
The inert initial conditions require , and the particular solution can be compressed
into the single integral
(1)
(2)
(3)
(4)
(5)
Using , the nonzero rule in the Green's function, the solution of the IVP in Example 1 is
obtained in terms of hyperbolic functions, which can be changed to exponential functions via the
convert command.
Figure 2 is a graph of the Green's function , while Figure 3 is a graph of the derivative
. Note the continuity of but the jump of in the derivative.
Obtain a fundamental set for the homogeneous ODE with the dsolve command.
Use the unapply command to define the members of the fundamental set as the functions
and , making each name an atomic variable.
Obtain the Wronskian of and , then use the unapply command to define it as the function
W.
Use to obtain .
Mathematical Solution
As in Method 2 for Example 1, the general solution of this IVP is of the form , where
is the homogeneous solution and is the particular solution obtained by Variation
of Parameters.
It is not hard to show that . Hence, A and B are determined by the two equations
and
where Y is used in place of , is a fundamental set, and is the nonzero rule in the
Green's function obtained in Example 1.
(6)
whose solution is
Hence, the general solution becomes
(7)
Example 3
For the given BVP with separated homogeneous boundary conditions, obtain an appropriate
Green's function, and use it to solve the BVP.
Mathematical Solution
On the interval the boundary value problem
The solution of the BVP, computed via this Green's function, is then
That this solution is equivalent to YM, Maple's dsolve solution, is verified by showing the
difference between it and the Green's function solution to be zero.
=0
Example 4
For the given BVP with separated nonhomogeneous boundary conditions, obtain an appropriate
Green's function, and use it to solve the BVP.
Mathematical Solution
If the boundary conditions in Example 3 were the nonhomogeneous
the solution of the associated BVP is obtained by adding to the Green's function solution of
Example 3, the perturbation
or
That this solution is equivalent to Maple's dsolve solution is verified by following calculation
showing the difference between these two solutions is zero.
=0
Example 5
For the given BVP with mixed homogeneous boundary conditions, obtain an appropriate Green's
function, and use it to solve the BVP.
Mathematical Solution
For the second-order ODE, the general mixed boundary conditions
Method 1
Take the Laplace transform of the equation and, since the initial consitions are
not known, set . Solve the resulting equation for , the Laplace
transform of , and impose the boundary conditions , giving two
equations in the two unknowns a and b. This determines the weak solution .
Method 2
Let be a fundamental set for the homogeneous ODE . Form a new fundamental
set , where and are two distinct linear combinations of and , and L and R
respectively represent "left" and "right". In particular, take
and
(9)
Apply the boundary conditions and solve the resulting equations for a and b. These are large
expressions in which hyperbolic and exponential functions appear. Considerable simplification is
obtained by converting all expressions to exponential form.
(10)
Form the Green's function and use it to calculate , the solution of the BVP. The proof that all
results are valid is obtained by showing the solution found with the Green's function is the same
as that found by Maple's dsolve command.
1
(11)
Show that the solution via the Green's function matches Maple's dsolve solution
=0
Recalling that = was a fundamental set for the IVP in Example 1, write
assign as function
Context Menu: Assign Function VL
assign as function
Context Menu: Assign Function VR
Write and solve the four equations detailed in Method 2.
The function
The function
Verify that the Green's function via Method 2 is the same as the one via Method 1
Example 6
For the given BVP with mixed nonhomogeneous boundary conditions, obtain an appropriate
Green's function, and use it to solve the BVP.
Mathematical Solution
Let be a fundamental set satisfying . Then, to the solution in Example
5 add the perturbation
not only because the 's are functions of just whereas and are functions of both and , but
also because
In the solution of Example 5 by Method 2, the boundary conditions were applied to , not
separately to and .
Figure 8 compares the graphs of the solutions from Examples 5 and 6, verifying that these two
solutions are different.
To obtain the functions and , recall that = was a fundamental set for the IVP
in Example 1, and write
assign as function
Context Menu: Assign Function z1
assign as function
Context Menu: Assign Function z2
With judicious choices for and , obtain the fundamental set whose members are
That this solution agrees with Maple's dsolve solution is established by the following comparison.
=0
Legal Notice: © Maplesoft, a division of Waterloo Maple Inc. 2017. Maplesoft and Maple are trademarks of Waterloo Maple
Inc. This application may contain errors and Maplesoft is not liable for any damages resulting from the use of this material.
This application is intended for non-commercial, non-profit use only. Contact Maplesoft for permission if you wish to use this
application in for-profit activities.