The approach to solving linear constant coefficient ordinary differential equations is to find the general form of all possible solutions to the equation and then apply a number of conditions to find the appropriate solution. The two main types of problems are initial value problems, which involve constraints on the solution and its derivatives at a single point, and boundary value problems, which involve constraints on the solution or its derivatives at several points.
The number of initial conditions needed for an th order differential equation, which is the order of the highest order derivative, is , and a unique solution is always guaranteed if these are supplied. Boundary value problems can be slightly more complicated and will not necessarily have a unique solution or even a solution at all for a given set of conditions. Thus, this module will focus exclusively on initial value problems.
Consider some linear constant coefficient ordinary differential equation given by , where is a differential operator of the form
Let and be two functions such that and . By the linearity of , note that . Thus, the form of the general solution to any linear constant coefficient ordinary differential equation is the sum of a homogeneous solution to the equation and a particular solution that is specific to the forcing function .
We wish to determine the forms of the homogeneous and nonhomogeneous solutions in full generality in order to avoid incorrectly restricting the form of the solution before applying any conditions. Otherwise, a valid set of initial or boundary conditions might appear to have no corresponding solution trajectory. The following discussion shows how to accomplish this for linear constant coefficient ordinary differential equations.
In order to find the homogeneous solution to , consider the differential equation . We know that the solutions have the form for some complex constants . Since for a solution, it follows that
so it also follows that
Therefore, the parameters of the solution exponents are the roots of the above polynomial, called the characteristic polynomial.
For equations of order two or more, there will be several roots. If all of the roots are distinct, then the the general form of the homogeneous solution is simply
If a root has multiplicity that is greater than one, the repeated solutions must be multiplied by each powers of from 0 to one less than the root multiplicity (in order to ensure linearly independent solutions). For instance, if had multiplicity 2 and had multiplicity 3, the homogeneous solution would be
Consider the decay model in which a quantity of an unstable isotope decreases at a rate proportional to the quanity of unstable isotope remaining. Thus, the decay of the isotope is modeled by the first order linear constant coefficient differential equation
where is some real rate. This differential equation could easily be solved through straightforward integration. However, the methods described above will be used instead. Note that the forcing function is zero, so only a homogenous solution is needed. It is easy to see that the characteristic polynomial is , so there is one root . Thus the solution is of the form
Given a rate and an initial condition, this can be applied to a specific situation. For instance, we know that carbon-14 decays at a rate of approximately , and if we normalize the natural concentration of carbon-14 to the solution becomes . Knowledge of this curve would be useful for radioisotope based dating.
Finding the particular solution is slightly more complicated task than finding the homogeneous solution. A formal method, called variation of parameters accomplishes this, and there are also several heuristics that can be used. It can also be found through convolution of the input with the unit impulse response, once the unit impulse response is known. Finding the particular solution to a differential equation is discussed further in the chapter concerning the Laplace transform, which greatly simplifies the procedure for solving linear constant coefficient ordinary differential equations using frequency domain tools.
Consider the series RLC circuit shown in Figure 1. This system can be modeled using differential equations. We can use the voltage equations for each circuit element and Kirchoff's voltage law to write a second order linear constant coefficient differential equation describing the charge on the capacitor.
The voltage across the battery is simply . The voltage across the capacitor is . The voltage across the resistor is . Finally, the voltage across the inductor is . Therefore, by Kirchoff's voltage law, it follows that
First, the homogeneous solution is found. It is easy to see that the characteristic polynomial is . Therefore, the two roots are and . Often, these are stated in terms of the attenuation factor and the resonant frequency . Thus, and .
Thus, the homogeneous equation is of the form
It turns out that the response to the constant voltage source forcing function is a constant, so
Hence, the general solution is
where and depend on the initial conditions. The system demonstrates a rich array of behaviors based on the relative values of and , which the reader is encouraged to explore.
Linear constant coefficient ordinary differential equations are useful for modeling a wide variety of continuous time systems. The approach to solving them is to find the general form of all possible solutions to the equation and then apply a number of conditions to find the appropriate solution. This is done by finding the homogeneous solution to the differential equation that does not depend on the forcing function input and a particular solution to the differential equation that does depend on the forcing function input.