-
-
home
-
-
PDF (letter size)
Comparing solving ODE problems using Variation of
parameters and Green’s function methods
December 15, 2018 Compiled on January 29, 2024 at 3:14am
Contents
1 Problem 1 (boundary value)
Solve with
1.1 Variation of parameters solution
Solutions to are and . Hence Wronskian is , therefore . Hence the particular solution is
Which is equivalent (using trig relations) to . Hence the complete solution is Boundary
condition gives Hence solution becomes Boundary condition gives
Hence solution is
1.2 Green function solution
The solution satisfies the left side boundary condition and the solution satisfies the right
side boundary condition . Therefore the Green function is Where depend on and not on .
By continuity of over the above gives
Taking derivative of at gives The jump discontinuity condition gives Where comes from
writing the original ODE in Sturm Liouville form, which is . Therefore and the above
becomes Substituting (1) into (2) gives
Hence
Therefore Green function becomes Here comes an important step, we now flip the above to
be We need to do this, since integration below over and we would like the answer to be as
function of and not . Hence the solution is
Which is the same as Variation of parameters solution.
2 Problem 2 (boundary value)
This is the same as the above problem, but with different forcing function. Solve with
2.1 Variation of parameters solution
Solutions to are and . Hence Wronskian is , therefore . Hence the particular solution is
Hence the complete solution is Boundary condition gives Hence solution becomes Boundary
condition gives
Hence solution is
2.2 Green function solution
We already found the Green function for the operator with same boundary conditions. So
we only need to do the convolution integral now. This is the advantage of using Green
function. Once we find it for same operator with same BC, we can use it to find solution
when the forcing function changes, by just doing the final convolution integration. The hard
work of finding Green function only needs to be done once.
Using Hence the solution is
Which is the same as Variation of parameters solution.
3 Problem 3 (Initial value problem)
Green’s function can also be used to solve initial value problem. Solve with
3.1 Variation of parameters solution
Solutions to are and . Hence Wronskian is , therefore . Hence the particular solution is
Hence the complete solution is Boundary condition gives Hence solution becomes
Boundary condition gives
Hence solution is
3.2 Green function solution
The main difference between initial value and boundary value for using Green function, is
that in boundary value, we set it up as
Where are the corresponding basis for the solutions of homogeneous ODE . Since this
ODE will have 2 solution basis, we select the one which satisfies the left boundary and call it
and select the one which satisfies the right boundary and call it and now we only have to
find which depends on by using continuity and jump discontinuity condition on
.
In initial value problem, we can’t do this, since all conditions are on one end. Instead We
write the Green function as And then find both from the initial conditions. If initial
conditions are homogeneous, like this in problem, then we will find that and also as
expected. And we end up with Green function that looks like Where we now solve for which
depends on by using continuity and jump discontinuity condition on as before. The above
will result if the the initial conditions are zero as in this case. So we start from the above
form and now find .
Since , then becomes continuity conditions on gives Taking derivative at gives Jump
discontinuity gives Since by looking at the ODE. Solving (1,2) for . From (1) From
(2)
Hence becomes
Therefore (1A) becomes
Using the above becomes, using , where So, we finally found the Green function. The
solution is now found using convolution
Which is the same answer using variation of parameters.
To add more problems...