Second Order differential equations
We are only going to look at a particular subset of all possible second order differential equations (that is, equations which contain at most second derivatives) but these particular equations are absolutely ubiquitous across every field of science. The particular subset we are going to look at are linear, homogenous second order differential equations with constant coefficients. These can be written in general as:
It is linear because it contains at most (and in this case at least) a single power of in each term. It is homogenous because there is no term which has no powers of (ie. the right hand side is not a constant), and the coefficients and are any real numbers (though you can extend this to having complex numbers very easily). We will see that depending on the relationship between these numbers ( and ) we can have very different behaviour of the equation. Let’s first of all rearrange this equation and see what it says:
This says that we are looking for a function whose second derivative at any point is linked only to its first derivative and value. In fact we can guess a solution to this equation because we already know a function whose derivatives look very much like the function without any derivatives. These are exponential functions. Let’s take the original equation and plug in a trial solution. Let’s guess that the solution might look something like for some value of . First we plug this into the original equation and see if this is a solution:
This can be rewritten as:
is known as the characteristic equation for the differential equation.
Check that you understand where this comes from. We hoped to find a solution to the equation, but clearly this will only be a solution if either or . The former can’t be true for all except if and that’s not a very interesting solution. The latter however is a good constraint and says that:
This means that the solution is:
Check that this is indeed a solution. In fact we can see that in general there will be two solutions (except when ). Let’s take an example equation. Let’s look at:
Check that the solutions to this equation are and .
Now the linearity of the equation comes into effect. If is a solution then so is for any . This wouldn’t be true if the equation wasn’t linear or homogeneous.
Theorem: If and are two solutions to a differential equation , then so is the combination for any constants and .
This means that if we find two solutions to such a differential equation we can combine them in a linear fashion with whatever coefficients we want. In fact the two coefficients will turn out to be the free constants which we can fix with two initial conditions. For all of the differential equations that we are dealing with, the number of boundary conditions are equal to the order of the differential equation. A second order differential equation is fixed with two initial conditions.
A good example of a second order differential equation is the equation which governs projectile motion, like throwing a ball. A second order linear differential equation will tell you the trajectory of the ball after you let go. However, in order to predict the trajectory, you need to know two things. The initial position, and the initial velocity of the projectile.
In general you will fix the two constants for a second order differential equation by being given an initial value for and also an initial gradient of . Or you can fix the two constants by being given the value of at two different values of . Having the two constants and will be enough to fix everything. However, before we understand about completely general solutions and what we need for that, we have to understand about independent solutions.
Two solutions to a differential equation are said to be independent if one of them is not a constant multiple of the other. ie. and are not independent but and are independent.
It is a general theorem of these differential equations that ALL solutions to the equation can be written in the form where and are two independent solutions. It doesn’t matter which two independent solutions, you can always add together two independent solutions in two different ways to get two more independent solutions. For instance, let’s say we have found two independent solutions and . Then and are also independent solutions. Then any solution can be written as or for particular choices of and or and .
Now, this means that as long as we can find two independent solutions, then we have found all of the solutions. This is the same statement that for a first order linear equation, as soon as we’ve found the general solution which includes a single integration constant, then we’ve found all of the solutions. It turns out that there are three different possible scenarios, depending on the particular constant coefficients in the original differential equation. We will deal with them all separately.
We are interested in finding the general solutions to the differential equation:
The three scenarios are:
1)
Then there are two solutions to the characteristic equation, call them and , and the general solution to this equation is:
where and are fixed by initial conditions.
2)
Then there is a single solution to the characteristic equation, call it . It turns out however, that in this case, and this case only, there is another type of solution to this differential equation, which is of the form . Thus, the general solution to this class of equations is:
3)
This is perhaps the most interesting class of solutions. Again, there are two solutions, but now they will be complex. In fact they will be complex conjugates of one another. Let’s call them and . So, we can write the two general solution as:
Where we chose to write the complex exponential in and form. If we choose and each to be then we can see that there is a solution which is . If we let and then there is also a solution which is . These are two good, independent solutions to the original equation (you can check this) and thus we can write down the general solution with two new integration constants:
Thus the solution to this particular form is an exponential growth or decay (depending on multiplied by periodic functions, the frequency of which is determined by ).
Let’s look at an example of each of these three classes of solution:
1)
Thus and so we are in the first class. The solutions to the characteristic equation are and so the general solution to this equation is:
If we are given the initial condition and then we can simply write:
and, after taking the derivative of the solution:
These two equations can be solved simultaneously and give the coefficients:
So that the particular solution with these boundary conditions is:
2)
With the same boundary conditions as in the previous example. Show that the following is the solution:
with and
3)
Thus the solutions to the characteristic equation are . This means that in our previous formulation, and . So the general solution is:
If we set the boundary conditions as and then the particular solution is:
In the following figure we plot a few different particular solutions to this equation with different boundary conditions.
Finally we will consider an equation which only has imaginary solutions to the characteristic equation. For instance:
4)
The characteristic equation has and therefore the solution has and giving:
Check that indeed this is the solution to this equation. This is a very important equation because it produces purely periodic behaviour.
[…] MAM1000 lecture notes part 37 – Differential equations – second order linear homogeneous… […]
Dr. Shock, for your first example i) y” – 2y’ – y = 0. I got k1 to be ((2sqrt(2) + 5)(e^(sqrt(2)-1))) / (2sqrt(2)). I’m not sure if mine is correct though.
RHMMUH005.
Hi there, it looks right to me. Did you set the boundary conditions at 1, or at 0?