Introduction
The simplest second-order equations can be solved by directed integration performed twice, as we saw in the section on direct integration. To solve the IVP:
we can integrate twice:
where and . At each stage in the integration, a new constant is produced, and the new constant covers all possibilities. (All possibilities because: any two antiderivatives differ by a constant. This fact comes from the Mean Value Theorem.)
From this we learn to expect that any second-order differential equation will determine a family of solution curves involving two parameters. Later we will consider a good argument for this expectation in the case of linear equations. For right now, an intuitive argument in the general case is that a second-order equation involves 3 functions: , and the ODE determines any one of them in terms of the other two. Initial conditions are therefore fully specified by giving starting values of two of the functions, e.g. and , since the equation can be used to solve for the third. These two components of the initial condition correspond to the two free parameters in the complete family of solutions.
Second order equations are called linear when the items appear only in first-degree powers. A more precise and complete definition would require the definition of a second-order linear differential operator , and we avoid the details for that right now. The ODE is determined from such an operator by setting (homogeneous case) or (inhomogeneous case) for some forcing function .
Second-order, constant coefficients
Second-order linear equation with constant coefficients:
- Homogeneous:
- Inhomogeneous:
In this usage, the word ‘homogeneous’ means “no constant term”. This is a different meaning from ‘homogeneous’ as we have seen previously, although the two meanings are connected.
Homogeneous case
It is easy to guess a system of solutions for the homogeneous case, inspired by the use of for first-order linear equations. Suppose is a solution. Then:
-
We conclude: any solution of the form must have a solution to .
-
In reverse: if satisfies , then is a solution to the differential equation.
-
The polynomial equation is sometimes called the characteristic equation of the linear ODE.
-
Notice also: if and are solutions, then are also solutions, for any constants . This is the practical meaning of linearity. It is sometimes also called the superposition principle.
-
More abstractly: the homogeneous linear ODE has a vector space of solutions. Concretely: solutions can be added and scaled to form new solutions.
Normally, the quadratic equation has two distinct solutions, namely and . These two numbers provide a D vector space of solutions spanned by and . Namely:
is a solution for any choice of combo. This gives a two-parameter family of solutions.
There are two potential complications for this method:
- What happens if ?
- What happens if and are complex numbers?
Repeated roots
What happens if ?
This means and . Now watch this: plug in to the equation:
When , certainly we have . But moreover, we also have .
The extra terms coming out of the product rule applied to exactly cancel from the condition of repeated roots. So is a new solution if-and-only-if is a repeated root.
Second-order, constant coefficients (part 2)
(It is a fact, a magical fact from this point of view, that in higher order, for an ODE like , the same phenomenon generalizes: we will have spanning the solutions precisely when is a -times repeated root of .)
Imaginary roots
What happens if and have imaginary components?
In this case, we are naturally led to consider complex-valued solutions. It turns out, however, that by doing so, we will discover a family of pure real solutions. The pure real family is produced by applying a complex change of basis to the complex solution space.
Let us write and . (Since solve a quadratic, we know they must come in a conjugate pair like this with .) We can write two complex solutions:
In light of the Euler formula , we make a judicious choice of linear combination of these solutions. It is designed to cancel away the imaginary parts:
(These solution are given by applying the matrix to the original set. Notice that the columns are perpendicular, so the matrix is a ‘complex rotation’ plus overall scaling.)
Second-order, constant coefficients (part 3)
Summary: because the repeated roots solutions have the form , we can always use the above method, namely judicious linear combinations, to reveal a pair of solutions and that do not involve imaginary numbers.
Real vs. complex solutions
Even first-order linear ODEs have complex solutions. For example, has real solution but it also has the imaginary solution , and every combination of them. In the second-order case, we could have simply guessed the real solutions and . But the natural procedure using leads us first to the complex solutions, and from these we can extract purely real solutions using a complex combination.