Section 2.2 Constant coefficient second order linear ODEs
Subsection 2.2.1 Solving constant coefficient equations
Consider 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, they do not depend on
To guess a solution, think of a function that 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. Yes, we are talking about the exponential.
Let us try a solution of the form Then and Plug in to get
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.
The functions and are linearly independent. If they were not linearly independent, we could write for some constant implying that for all which is clearly not possible. Hence, we can write the general solution as
We need to solve for and To apply the initial conditions, we first find We plug into and and solve.
Either apply some matrix algebra, or just solve these by high school math. For example, divide the second equation by 2 to obtain and subtract the two equations to get Then as Hence, the solution we are looking for is
We generalize this example into a method. Suppose that we have an equation
Divide by to obtain the so-called characteristic equation of the ODE:
Solve for the by using the quadratic formula:
Suppose that for now so that and are real. So and are solutions. There is still a difficulty if but it is not hard to overcome.
Theorem 2.2.1.
Example 2.2.1.
Example 2.2.2.
In some sense, a doubled root rarely happens. If coefficients are picked randomly, a doubled root is unlikely. There are, however, some real-world problems where a doubled root does happen naturally (e.g., critically damped mass-spring system as we will see).
Let us give a short argument for why the solution works for a doubled root. This case is a limiting case of two distinct but very close roots. 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. We remark that in some numerical computations, two very close roots may lead to numerical instability while a doubled root will not.
Subsection 2.2.2 Complex numbers and Euler’s formula
A polynomial may have complex roots. 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, 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 write as and we treat as if it were an unknown. When is zero, then is just the number 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 For example,
The numbers and are the two roots of Some engineers use the letter instead of for the square root of We use the mathematicians’ convention and use
Exercise 2.2.3.
Make sure you understand (that you can justify) the following identities:
We 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.
Theorem 2.2.2. Euler’s formula.
In other words,
Exercise 2.2.4.
Exercise 2.2.5.
Subsection 2.2.3 Complex roots
Suppose the differential equation has the characteristic equation that has complex roots. By the quadratic formula, the roots are These roots are complex if In this case, we write the roots as
As you can see, we get a pair of roots of the form We could still write the solution as
However, the exponential is now complex-valued. We 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.
Euler’s formula comes to the rescue. Let
Then
Linear combinations of solutions are also solutions. Hence,
are also solutions. It is not hard to see that and are linearly independent (not multiples of each other). So the general solution can be written in terms of and And as they are real-valued, no complex numbers need to be used for the arbitrary constants in the general solution. We summarize what we found as a theorem.
Theorem 2.2.3.
Example 2.2.3.
Example 2.2.4.
The characteristic equation is Completing the square, we get and hence the roots are Per the theorem, the general solution is
To find the solution satisfying the initial conditions, we first plug in zero to get
Exercises 2.2.4 Exercises
2.2.6.
Find the general solution of
2.2.7.
Find the general solution of
2.2.8.
2.2.9.
2.2.10.
Find the general solution of
2.2.11.
Find the general solution of
2.2.12.
Find the general solution of using the methods of this section.
2.2.13.
The method of this section applies to equations of other orders than two. We will see higher orders later. Solve the first order equation using the methods of this section.
2.2.14.
Let us revisit the Cauchy–Euler equations of Exercise 2.1.6. Suppose now that Find a formula for the general solution of Hint: Note that
2.2.15.
2.2.16.
Construct an equation such that is the general solution.
2.2.101.
Find the general solution to
Answer.
2.2.102.
Find the general solution to
Answer.
2.2.103.
Answer.
2.2.104.
Answer.
2.2.105.
Answer.
2.2.106.
Answer.
2.2.107.
Construct an equation such that is the general solution.