Ordinary Differential Equations
From Wiki
Contents |
[edit] Introduction
An ordinary differential equations (ODE) is an equation that contains a function and its derivatives, but no partial derivatives. If an equation contains partial derivatives it is called a partial differential equation (PDE).
A simple example of an ODE with a function of time
is
or written without Leibniz notation and using Langrange notation instead for the derivative
The order of an ODE is given by the highest derivative that occurs in the equation. For the example given above the order is 1, since only the first derivative occurs.
[edit] Linear First Order ODEs
An important class of ODEs are linear ODEs. They are important because they are usually easy to solve, as we shall see in a bit. An ODE is called linear if
and its derivatives only occur as linear terms, i.e. either by themselves or at most multiplied with a function that doesn't depend on
but only on time. The example given above is a linear first order ODE, the ODE
is not because of the occurrence of
.
The general form of a linear first order ODE is given by
(or similarly
, which is sometimes used, but we'll stick to the former)
where
are continuous functions over their domain.
In this form, the ODE is often also called inhomogeneous because there's a function
on the right hand side of the equation.
In the example given in the introduction
.
[edit] Homogeneous Form
In order to solve this ODE, let us first solve the homogeneous form of this equation, which we get by setting
.
[edit] Inhomogeneous Form
Now that we have the homogeneous solution, let us return to the inhomogeneous, linear first order ODE and see if we can use the homogeneous solution to solve the inhomogeneous equation. The "trick" is to find a function
, the so-called integrating factor, which the equation is multiplied by on both sides.
This hasn't really simplified anything yet. However, if we choose
so that we can simplify the above equation to
we can solve this equation by integrating on both sides. An obvious choice for the integrating factor is a function that satisfies
because then with the product rule
Now all we need to do is determine
, which we can do by solving the homogeneous, linear first order ODE
for which we already have the solution
We can now use this to solve the inhomogeneous equation:
[edit] Vector ODEs
For a vector-valued function y the linear first order ODE looks like this:
or in vector notation
[edit] Separable First Order ODEs
A class of non-linear ODEs that can easily be solved are separable ODEs. A first order ODE is called separable if it can be brought into this form:
where f is a continuous function depending only on y and g is a continuous function depending only on t. In order to solve it, we first note that
where F is any anti-derivative of f, i.e.
We then integrate on both sides of the equation to get
where c is an arbitrary constant. This is an implicit solution of the differential equation. Sometimes it is possible to find an explicit solution by solving for y(t). If this is not the case, we can still use numeric methods to compute a solution to arbitrary precision.
To solve the initial value problem with
we can either solve for the constant in the above equation or we can simplify the equation using the initial values as integration bounds:
