2.1 Second order linear ODEs
Let us consider the general second order linear differential equation
We usually divide through by to get
where , , and . The word linear means that the equation contains no powers nor functions of , , and .
In the special case when we have a so-called homogeneous equation
We have already seen some second order linear homogeneous equations:
If we know two solutions of a linear homogeneous equation, we know a lot more of them.
That is, we can add solutions together and multiply them by constants to obtain new and different solutions. We call the expression a linear combination of and . Let us prove this theorem; the proof is very enlightening and illustrates how linear equations work.
Proof
Let . Then
The proof becomes even simpler to state if we use the operator notation. An operator is an object that eats functions and spits out functions (kind of like what a function, which eats numbers and spits out numbers). Define the operator by
The differential equation now becomes . The operator (and the equation) being linear means that . The proof above becomes
Two different solutions to the second equation are and . Let us remind ourselves of the definition, and . Therefore, these are solutions by superposition as they are linear combinations of the two exponential solutions.
The functions and are sometimes more convenient to use than the exponential. Let us review some of their properties.
For example, the equation with and has the solution
The equation with and has the solution
Using and in this solution allows us to solve for the initial conditions in a cleaner way than if we have used the exponentials.
The initial conditions for a second order ODE consist of two equations. Common sense tells us that if we have two arbitrary constants and two equations, then we should be able to solve for the constants and find a solution to the differential equation satisfying the initial conditions.
For example, we found the solutions and for the equation . It is not hard to see that sine and cosine are not constant multiples of each other. If for some constant , we let and this would imply . But then for all , which is preposterous. So and are linearly independent. Hence,
is the general solution to .For two functions, checking linear independence is rather simple. Let us see another example. Consider . Then and are solutions. To see that they are linearly independent, suppose one is a multiple of the other: , we just have to find out that cannot be a constant. In this case we have , this most decidedly not a constant. So is the general solution.
If you have one solution to a second order linear homogeneous equation, then you can find another one. This is the reduction of order method. The idea is that if we somehow found as a solution of we try a second solution of the form . We just need to find . We plug into the equation:
In other words, . Using we have the first order linear equation . After solving this equation for (integrating factor), we find by antidifferentiating . We then form by computing . For example, suppose we somehow know is a solution to . The equation for is then . We find a solution, , and we find an antiderivative . Hence . Any works and so makes . Thus, the general solution is .Since we have a formula for the solution to the first order linear equation, we can write a formula for :
However, it is much easier to remember that we just need to try and find as we did above. Also, the technique works for higher order equations too: you get to reduce the order for each solution you find. So it is better to remember how to do it rather than a specific formula.We will study the solution of nonhomogeneous equations in Section 2.5. We will first focus on finding general solutions to homogeneous equations.
Adapted from Differential Equations for Engineers by Jiří Lebl (Oklahoma State University), hosted on LibreTexts (math.libretexts.org) and licensed under CC BY-SA 4.0. Changes were made. License: CC-BY-SA-4.0.