7 Linear Ordinary Differential Equations
Introduction
- Q1: Consider the cooling model. Assume there is a cup of boiled water (100°C), environment temperature is 20°C. How does water cool down over time?
- A: According to the Newton's Law of Cooling
- Q2: Assume a ball goes from static to free fall. How to calculate the fall distance over time?
- A:
Applications about Differential Equations include:
- neutron diffusion equation:
- decay chain model:
- Tsiolkovsky rocket equation:
- Navier-Stokes equations:
A differential equation relates two or more variables via derivatives or differentials.
The simplest form:
where
The solution is obtained immediately by integration, in the form
Whether or not it happens that the integral can be expressed in terms of simple functions is incidental, in the sense that we define a solution of a differential equation to be any functional relation, not involving derivatives or integrals of unknown functions, which implies the differential equation.
Similarly, in an equation of the form
We may separate the variables and obtain a solution by integration in the form
Linear Ordinary Differential Equations (ODEs)
Definition: Linear ODEs
Linear differential equation of order
The coefficients
Examples:
- First order:
- Second order:
- Higher orders include:
The most general linear differential equation of the nth order can be written in the form (by dividing
This equation is frequently written in the abbreviated form
where
General solutions to linear differential equations
- If
linearly independent solutions of the associated homogeneous equation are known, the general solution is of the form:
where
- Suppose that one particular solution of
can be obtained by inspection or otherwise, such that , then the complete solution is of the form:
The mission is:
- Find
; - Find
need only one solution
Then
The question is : how do we know
Linear Dependence/Independence of functions
The functions
We assume that each of a set of
for all values of
these same constants also satisfy the identities
Then:
if the functions
Lemma: Wronskian determinant
The vanishing of the Wronskian determinant is necessary but not sufficient for linear dependence. The functions are linearly independent if this determinant does not vanish, i.e.:
First order linear solution
The linear equation of first order is readily solved in general terms, without determining separately homogeneous and particular solutions
we attempt to determine an integrating factor
is equivalent to the equation
Here is the procession:
- The above equation can be written as
. - Therefore, we have
, which leads to - As a result, we obtain the general solution
, is an arbitrary constant, or
Example1: Integrating factor
To solve the differential equation
we first rewrite the equation in the standard form,
An integrating factor is then
no constant being added in the integration, since only a factor is needed. The solution is then given by
Linear ODEs with Constant Coefficients
The simplest and perhaps the most important differential equation of higher order is the linear equation (in which the coefficients
Note that
Then
For a homogeneous equation (
), we just need (The characteristic equation of ): - If there are
distinct roots to the characteristic equation:
- if one or more of the roots is repeated, less than
independent solutions are obtained. Suppose that is a double root of the characteristic equation:
To solve it, note that:
(Not so accuracy):
The part of the homogeneous solution corresponding to the double root
can be written in the form By a simple extension of this argument, it can be shown the part of the homogeneous solution corresponding to an
-fold root is of the form - If there are
If the characteristic equation has imaginary roots and if the coefficients of that equation are real, the roots must occur in conjugate pairs. Thus, if
In order that this expression be real, the constants
we find that the solution becomes
and hence can be written in the more convenient form,
where
Similarly, if
Example2: Linear ODE with constant coefficients [core]
- For the equation
the characteristic equation is
- For the differential equation
the characteristic equation is
- The equation
has the characteristic equation
Nonhomogeneous Linear ODEs
A shorter method which can be applied in many practical cases is that of undetermined coefficients. This method may be used when the right-hand side of
or more such functions. The reason for the success of the method is the fact that each of these functions, or any product of a finite number of these functions, has only a finite number of linearly independent derivatives.
If we define the family of a function
| Term | Family |
|---|---|
Example3 [core]
Consider the differential equation
The general homogeneous solution is
The families of the terms
- The second family is contained in the first, and is discarded.
- Since the first family has the representative
in the homogeneous solution( ), it is replaced by the family . Similarly, the last family is replaced by ( ). (?)
A particular solution is then assumed in the form
When
By equating the coefficients of
A particular solution thus is
and the general solution is
Equidimensional linear differential equation
An equation of the form
where the
Introducing a new independent variable
There then follows
In particular, we obtain
In general, it is found that
The transformed equation thus becomes linear with constant coefficients, and
Example4: Equidimensional linear differential equation
To solve the differential equation
Making use of the variable transformation, we obtain the transformed equation
The solution is found to be
or, returning to the variable
Particular Solutions by Variation of Parameters
Suppose
has the homogeneous solution
where the
We assume that the particular solution of the above ODE is of the following form
Given
In order to simplify this expression, we require
There then follows
As the second condition, we require
Proceeding in this way through the
And the
The expression for the
Introducing the expressions for
Combining the first summations, we obtain
Therefore
In summary, the
If this set of equations is solved for
Example6: the general solution to the second order linear differential equation
there follows
where
and, similarly,
Thus we can write
Example7: 2nd order linear differential equation
two linearly independent homogeneous solutions are
Therefore
or
or
Example8: 3rd order linear differential equation
we may take
Solving the three simultaneous equations, we obtain
The solution of the differential equation is then
or, equivalently,
Reduction of order
One of the important properties of linear differential equations is the fact that:
if one homogeneous solution of an equation of order
This procedure is in a sense analogous to the reduction of the degree of an algebraic equation when one solution is known.
Suppose that one homogeneous solution
- We next write
and attempt to determine the function . - Substituting
for in the left-hand side of the differential equation, we obtain a new linear differential equation of order to determine . But since is a homogeneous solution of the original equation, must be a homogeneous solution of the new equation. - Hence the new equation must lack the term of zero order in
; that is, the coefficient of must be zero in equations. Thus the new equation is of order in the variable
Example9: general 2nd-order linear equation
Assuming
since
or
This equation is of first order in
Hence
With
Determination of Constants
The
Frequently these conditions consist of the requirement that the function and its first
When such conditions are prescribed, the problem is known as an initial-value problem. In this case it can be shown that if the point
determinant of the coefficients of the constants
Special solvable types of nonlinear equations
1. Separable equations
Q:
A:
Q:
A: yields two separable equations when solved algebraically for
provided that the division by
2. Exact first-order equations
A first-order equation, written in the form
where
In this case, and in this case only, there exists a function
since
the necessity follows from the fact that
In order to obtain a function u satisfying the two relations, for example, we start with the first relation
hence
the right-hand member is indeed only a function of
Example 10
can be written in the form
and the condition of exactness is satisfied. From the relation
there follows
then gives
3. Homogeneous first-order equations
A function
The first-order differential equation,
Example 11
is homogeneous (with
from which there follows
and hence
or
or
4. Second-order equations lacking one variable
The general equation of second order is of the form
Assume
- Lacking
or else: - Lacking
or else:
Example 12
lacks the variable
which separates to give
Hence
from which there follows
where