Differential Equations - Boundary Value Problems
Differential Equations - Boundary Value Problems
Now, with that out of the way, the first thing that we need to do is to define just what we mean
by a boundary value problem (BVP for short). With initial value problems we had a differential
equation and we specified the value of the solution and an appropriate number of derivatives
at the same point (collectively called initial conditions). For instance, for a second order
differential equation the initial conditions are,
′ ′
y (t0 ) = y0 y (t0 ) = y
0
With boundary value problems we will have a differential equation and we will specify the
function and/or derivatives at different points, which we’ll call boundary values. For second
order differential equations, which will be looking at pretty much exclusively here, any of the
following can, and will, be used for boundary conditions.
y (x0 ) = y0 y (x1 ) = y1 (1)
′ ′ ′
y (x0 ) = y0 y (x1 ) = y (2)
1
′ ′
y (x0 ) = y y (x1 ) = y1 (3)
0
′
y (x0 ) = y0 y (x1 ) = y1 (4)
As mentioned above we’ll be looking pretty much exclusively at second order differential
equations. We will also be restricting ourselves down to linear differential equations. So, for
the purposes of our discussion here we’ll be looking almost exclusively at differential
equations in the form,
https://tutorial.math.lamar.edu/Classes/DE/BoundaryValueProblem.aspx 1/6
4/11/25, 3:33 PM Differential Equations - Boundary Value Problems
′′ ′
y + p (x) y + q (x) y = g (x) (5)
along with one of the sets of boundary conditions given in (1) – (4). We will, on occasion,
look at some different boundary conditions but the differential equation will always be on that
can be written in this form.
As we’ll soon see much of what we know about initial value problems will not hold here. We
can, of course, solve (5) provided the coefficients are constant and for a few cases in which
they aren’t. None of that will change. The changes (and perhaps the problems) arise when we
move from initial conditions to boundary conditions.
One of the first changes is a definition that we saw all the time in the earlier chapters. In the
earlier chapters we said that a differential equation was homogeneous if g (x) = 0 for all x.
Here we will say that a boundary value problem is homogeneous if in addition to g (x) = 0
The biggest change that we’re going to see here comes when we go to solve the boundary
value problem. When solving linear initial value problems a unique solution will be guaranteed
under very mild conditions. We only looked at this idea for first order IVP’s but the idea does
extend to higher order IVP’s. In that section we saw that all we needed to guarantee a unique
solution was some basic continuity conditions. With boundary value problems we will often
have no solution or infinitely many solutions even for very nice differential equations that
would yield a unique solution if we had initial conditions instead of boundary conditions.
Before we get into solving some of these let’s next address the question of why we’re even
talking about these in the first place. As we’ll see in the next chapter in the process of solving
some partial differential equations we will run into boundary value problems that will need to
be solved as well. In fact, a large part of the solution process there will be in dealing with the
solution to the BVP. In these cases, the boundary conditions will represent things like the
temperature at either end of a bar, or the heat flow into/out of either end of a bar. Or maybe
they will represent the location of ends of a vibrating string. So, the boundary conditions there
will really be conditions on the boundary of some process.
So, with some of basic stuff out of the way let’s find some solutions to a few boundary value
problems. Note as well that there really isn’t anything new here yet. We know how to solve
the differential equation and we know how to find the constants by applying the conditions.
https://tutorial.math.lamar.edu/Classes/DE/BoundaryValueProblem.aspx 2/6
4/11/25, 3:33 PM Differential Equations - Boundary Value Problems
The only difference is that here we’ll be applying boundary conditions instead of initial
conditions.
π
′′
y + 4y = 0 y (0) = −2 y( ) = 10
4
Show Solution
We mentioned above that some boundary value problems can have no solutions or infinite
solutions we had better do a couple of examples of those as well here. This next set of
examples will also show just how small of a change to the BVP it takes to move into these
other possibilities.
Show Solution
Show Solution
So, with Examples 2 and 3 we can see that only a small change to the boundary conditions, in
relation to each other and to Example 1, can completely change the nature of the solution. All
three of these examples used the same differential equation and yet a different set of initial
conditions yielded, no solutions, one solution, or infinitely many solutions.
Note that this kind of behavior is not always unpredictable however. If we use the conditions
y (0) and y (2π) the only way we’ll ever get a solution to the boundary value problem is if we
have,
y (0) = a y (2π) = a
for any value of a. Also, note that if we do have these boundary conditions we’ll in fact get
infinitely many solutions.
https://tutorial.math.lamar.edu/Classes/DE/BoundaryValueProblem.aspx 3/6
4/11/25, 3:33 PM Differential Equations - Boundary Value Problems
All the examples we’ve worked to this point involved the same differential equation and the
same type of boundary conditions so let’s work a couple more just to make sure that we’ve got
some more examples here. Also, note that with each of these we could tweak the boundary
conditions a little to get any of the possible solution behaviors to show up (i.e. zero, one or
infinitely many solutions).
Show Solution
′′ ′ ′
y + 25y = 0 y (0) = 6 y (π) = −9
Show Solution
All of the examples worked to this point have been nonhomogeneous because at least one of
the boundary conditions have been non-zero. Let’s work one nonhomogeneous example
where the differential equation is also nonhomogeneous before we work a couple of
homogeneous examples.
π 5
′′ ′
y + 9y = cos x y (0) = 5 y( ) = −
2 3
Show Solution
Let’s now work a couple of homogeneous examples that will also be helpful to have worked
once we get to the next section.
Show Solution
Show Solution
In the previous example the solution was y (x) = 0 . Notice however, that this will always be a
solution to any homogenous system given by (5) and any of the (homogeneous) boundary
conditions given by (1) – (4). Because of this we usually call this solution the trivial solution.
Sometimes, as in the case of the last example the trivial solution is the only solution however
we generally prefer solutions to be non-trivial. This will be a major idea in the next section.
Before we leave this section an important point needs to be made. In each of the examples,
with one exception, the differential equation that we solved was in the form,
′′
y + λy = 0
The one exception to this still solved this differential equation except it was not a
homogeneous differential equation and so we were still solving this basic differential equation
in some manner.
So, there are probably several natural questions that can arise at this point. Do all BVP’s
involve this differential equation and if not why did we spend so much time solving this one to
the exclusion of all the other possible differential equations?
The answers to these questions are fairly simple. First, this differential equation is most
definitely not the only one used in boundary value problems. It does however exhibit all of the
behavior that we wanted to talk about here and has the added bonus of being very easy to
solve. So, by using this differential equation almost exclusively we can see and discuss the
important behavior that we need to discuss and frees us up from lots of potentially messy
solution details and or messy solutions. We will, on occasion, look at other differential
equations in the rest of this chapter, but we will still be working almost exclusively with this
one.
There is another important reason for looking at this differential equation. When we get to the
next chapter and take a brief look at solving partial differential equations we will see that
almost every one of the examples that we’ll work there come down to exactly this differential
equation. Also, in those problems we will be working some “real” problems that are actually
solved in places and so are not just “made up” problems for the purposes of examples.
Admittedly they will have some simplifications in them, but they do come close to realistic
problem in some cases.
https://tutorial.math.lamar.edu/Classes/DE/BoundaryValueProblem.aspx 5/6
4/11/25, 3:33 PM Differential Equations - Boundary Value Problems
https://tutorial.math.lamar.edu/Classes/DE/BoundaryValueProblem.aspx 6/6