2.2 Constant coefficient second order linear ODEs
Solving Constant Coefficient Equations
Suppose we have the problem
This is a second order linear homogeneous equation with constant coefficients. Constant coefficients means that the functions in front of , , and are constants and do not depend on .
To guess a solution, think of a function that you know stays essentially the same when we differentiate it, so that we can take the function and its derivatives, add some multiples of these together, and end up with zero.
Let us tryto the power 1 a solution of the form . Then and . Plug in to get
Hence, if or , then is a solution. So let and .
For another example of the first case, take the equation . Here the characteristic equation is or . Consequently, and are the two linearly independent solutions.
Let us give a short proof for why the solution works when the root is doubled. This case is really a limiting case of when the two roots are distinct and very close. Note that is a solution when the roots are distinct. When we take the limit as goes to , we are really taking the derivative of using as the variable. Therefore, the limit is , and hence this is a solution in the doubled root case.
2.2.2 Complex numbers and Euler’s formula
It may happen that a polynomial has some complex roots. For example, the equation has no real roots, but it does have two complex roots. Here we review some properties of complex numbers.
Complex numbers may seem a strange concept, especially because of the terminology. There is nothing imaginary or really complicated about complex numbers. A complex number is simply a pair of real numbers, . We can think of a complex number as a point in the plane. We add complex numbers in the straightforward way, . We define multiplication by
It turns out that with this multiplication rule, all the standard properties of arithmetic hold. Further, and most importantly .
Generally we just write as , and we treat as if it were an unknown. We do arithmetic with complex numbers just as we would with polynomials. The property we just mentioned becomes . So whenever we see , we replace it by . The numbers and are the two roots of .
Note that engineers often use the letter instead of for the square root of . We will use the mathematicians’ convention and use .
We can also define the exponential of a complex number. We do this by writing down the Taylor series and plugging in the complex number. Because most properties of the exponential can be proved by looking at the Taylor series, these properties still hold for the complex exponential. For example the very important property: . This means that . Hence if we can compute , we can compute . For we use the so-called Euler’s formula.
2.2.3 Complex roots
Suppose that the equation has the characteristic equation that has complex roots. By the quadratic formula, the roots are . These roots are complex if . In this case the roots are
As you can see, we always get a pair of roots of the form . In this case we can still write the solution as
However, the exponential is now complex valued. We would need to allow and to be complex numbers to obtain a real-valued solution (which is what we are after). While there is nothing particularly wrong with this approach, it can make calculations harder and it is generally preferred to find two real-valued solutions.
Here we can use Euler’s formula. Let
Then note that
Linear combinations of solutions are also solutions. Hence,
are also solutions. Furthermore, they are real-valued. It is not hard to see that they are linearly independent (not multiples of each other). Therefore, we have the following theorem.
Footnotes
[1] Making an educated guess with some parameters to solve for is such a central technique in differential equations, that people sometimes use a fancy name for such a guess: ansatz, German for “initial placement of a tool at a work piece.” Yes, the Germans have a word for that.
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.