Homogeneous LODEs with constant coefficients
In this section, we are interested in finding solutions to the homogeneous version of Eq. (13.1) i.e. when . We start with the simplest case, where the coefficients are constants (i.e. when and are constants). The differential equation we want to solve is,
By Definition 13.1, the general solution is given by
Our objective here is to find the pair of fundamental solutions and and use them in Eq. (13.5) to construct the general solution to Eq. (13.18).
Auxiliary equation
For LODEs with constant coefficients like Eq. (13.18), it is, it is easy to see that the equation's solution is a function which, when differentiated, gives us constant multiples of the original function. The statement above motivates us to 'guess' a solution to the ODE that takes the form where is unknown. Our objective is to find .
Differentiating wrt to obtain and , we get and . Substituting the expressions for and in Eq. (13.18) and simplifying, we obtain:
Equation (13.19) is satisfied if or if . Since , we use the following equation to determine ,
Equation (13.20) is known as the characteristic or auxiliary equation of the ODE (13.18) which needs to be satisfied if is to be a solution to ODE (13.18). The solution to the quadratic equation gives us the roots, as follows,
Assuming that and are real numbers, we consider three cases:
- Case 1: The characteristic equation has two real and distinct roots.
- Case 2: The characteristic equation has two complex roots.
- Case 3: The characteristic equation has one repeated root.
In what follows, we look at each case separately. Before proceeding we note the following:
- When looking for the solution to a LODE with constant coefficients, the problem is reduced from solving an to solving an algebraic equation [this is the characteristic equation given by (13.20)].
- For second order ODEs we are looking for two fundamental solutions, and .
- The solutions take the form and where and denote the roots to the characteristic equation.
- If there exist two roots to the characteristic equation, the general solution is,
Case 1: Roots are real and distinct
If , then from Eq. (13.21), we obtain two real roots, and .
Fundamental solutions
The next step is to form the fundamental solutions. Recall that the characteristic equation is a result of using the ansatz, where is unknown, in the differential equation. The two roots are then used to form the fundamental solutions. The first solution is and the second is ; of course any constant multiple of (say, ) and any constant multiple of (say, ) are also solutions to the ODE.
General solution
With knowledge of the pair of fundamental solutions, we can construct the general solution by forming a linear combination.
If the roots of the characteristic equation (13.20), and are real and distinct, then the general solution to (13.18), is given by
Example 13.2 Find the general solution to the following ODE:
Solution First we notice that the ODE is homogeneous with constant coefficients implying that the solutions to the ODE are exponential and the exponents are the roots to the corresponding characteristic equation. The characteristic equation is,
which gives and . The roots are real and distinct so from Eq. (13.22), the general solution is,
Case 2: Roots are complex conjugates
If , then from Eq. (13.21), we obtain two complex roots, and . These two roots are conjugates,
where and are real numbers. Note that may be zero. As in Case , this gives two linearly independent solutions: and . Consequently, the linear combination of and make up the general solution
Of course a natural question that arises is what becomes of the exponential function if the exponents are complex numbers? The answer to that question is given by Euler's formula, defined below (see also Section 7.2 in Chapter 7).
Definition 13.2 Euler's formula states that for any real number is given by,
Equation (13.26) gives the form of the complex roots, and . So, for , the exponential function becomes,
Similarly, for , we have,
From Eqs. (13.28) and (13.29), we can construct the general solution,
However, the general solution given by (13.30) is a complex-valued function; this means that, given a real number , the value of the function could be complex. Equation (13.30) represents the most general form: it represents all solutions.
The coefficients in ODE (13.18) are assumed to be real and therefore, we are looking for solutions described by real-valued functions. This means that we want to 'filter out' all functions containing coefficients with an imaginary part, keeping only those whose coefficients are real numbers.
We choose to write down the general solution in the following form*
The two real-valued solutions that we seek therefore are given by
Their Wronskian determinant is which is never zero; therefore, the two functions are linearly independent and they constitute a fundamental set of solutions which leads to the general solution given by Eq. (13.31).
If the roots of the characteristic equation (13.20), are complex and distinct i.e. and , then the general solution to (13.18), is given by
- Here we give reasoning behind the choice of Eq. (13.31) [equivalently, Eq. (13.32)], as the general solution for Case 2. Once we write out the general solution using Euler's formula, we have the following form of the general solution to the ODE [this is (13.30) rearranged]
the coefficients and are arbitrarily chosen and are also complex. For a second order ODE, we have to satisfy 2 (independent) initial conditions which ultimately dictate what the values of and are. However, in its most general form, Eq. (13.33) has 4 unknown constants. This can be seen by expanding Eq. (13.33), using and (where and are real and unknown). Doing so gives some terms that are real and some terms that are imaginary. In order for Eq. (13.33) to represent a real-valued function, the constants and can no longer be arbitrarily chosen; instead, they must be conjugate numbers such that and are real constants. This leaves us with and as two real, linearly independent solutions. Their sum using real arbitrary coefficients and is the real solution we seek [this is given by Eq. (13.31)]. Finally note that the constant is and is where and are conjugate numbers.
Example 13.3 Find the general solution to the following ODE:
Solution Again, the ODE is homogeneous with constant coefficients so we proceed to solving the corresponding characteristic equation,
which gives the complex conjugate roots and . Comparing to the general solution (13.32), (real part) and (imaginary part) leading to the following solution
where are arbitrary constants which can be solved for using initial conditions.
Case 3: Repeated root
If , then from Eq. (13.21), we obtain one (real) root, which is equal to . Again, using the ansatz, and , we now have one solution given as,
We now have a problem because unlike Case and Case 2, where the solution to the characteristic equation gave us two distinct solutions, here, the characteristic equation only gives one. We therefore do not have enough information to construct the general solution to ODE (13.18) for Case 3. In order to be able to write down the general solution for this case, we need to come up with a second solution (which is, of course, linearly independent to the first one).
Using a known solution to find another
We use the known solution, given by Eq. (13.37) to find the second solution. We are looking for , a linearly independent function to which satisfies the ODE (13.18). We assume that the second solution takes the following form
where is an unknown nonconstant function of , and is the solution we already have (from the characteristic equation). The motivation behind this is that if two functions are linearly independent, then, as previously stated in Subsec. 13.1.2, they should not be constant multiples of each other:
The fact that and are not constant multiples of each other is an encouraging first step in determining the second fundamental solution. The objective here is to determine . If we have then, by using Eq. (13.38), we have .
Determine the unknown function,
- If is a solution to the ODE (13.18) then it must satisfy Eq. (13.18). Our next step therefore is to take Eq. (13.38) and differentiate wrt (to obtain and ) and substitute back in the original ODE,
- Take Eqs. (13.38), (13.40), (13.41) and substitute in (13.18),
- Factorise and in Eq. (13.42),
Now, Eq. (13.43) is made up of three terms which (from left to right) are: the coefficients of (blue terms), of (green terms) and of (red term).
- Let us start with the coefficients of ,
If satisfies the ODE (13.18), then,
which means that the coefficient of is 0 and hence the first term on the LHS of (13.43) disappear,
- Moving on to the coefficient of . This is given by
so, the coefficient of also disappears,
- We are left with and, since then, what we are really left with is . This is a second order ODE for which can be easily solved by integrating twice wrt ,
for any nonzero and any . Note that the constants and can be arbitrarily chosen to construct the general solution since we ultimately solve for the constants appearing in the solution through application of initial conditions. As long as we have then, will be a nonconstant function of which, in turn, guarantees that and are linearly independent.
- The simplest form can take therefore is where we chose and This implies that the second solution is given by,
Note that for constant coefficient, homogeneous ODEs whose characteristic equation gives a single, repeated root the pair of fundamental solutions is always given by
where is the coefficient of when the ODE is written in standard form.
If the characteristic equation (13.20) gives a repeated, real root i.e. , then the general solution to (13.18), is given by
Example 13.4 Find the particular solution to the following ODE:
Solution In this case, initial conditions are provided at , which allow us to solve for a particular solution to the IVP. We start off with the characteristic equation
which gives the a repeated root as yielding the first solution as . A linearly independent solution is where . Using Eq. (13.49), the general solution is
Applying the initial condition, yields and yields . Thus, the particular solution is:
Note that while the general solution is made up of all linearly independent derivatives, the particular solution satisfying the aforementioned initial conditions is only described by .
Summary
Given a second order linear, homogeneous equation with constant coefficients,
solve its characteristic equation,
The general solution to (13.54), depends on the type of roots obtained in (13.55).
- When , the roots and are real + distinct and the general solution is,
- When , the roots are complex + distinct and they take the form . The general solution is,
- When , there is only one real root given by . The general solution is,
Note the subscript in the general solutions in Eqs. (13.56)-(13.58). This denotes that the functions, are solutions to the homogeneous ODE (i.e. when ). The homogeneous solution is also known as the complementary function.
Notes
- You do not need to set the ODE in standard form when solving it using the characteristic equation method. If we start off using the following ODE (not in standard form):
then the characteristic equation becomes,
- In Eq. (13.58), the root given as is a result of having the ODE in standard form. For the more general form given by Eq. (13.59) and the associated characteristic equation (13.60), the characteristic equation solution is given by,
If then the only root is .