A first-order ordinary differential equation relates an unknown function to its first derivative. For an equation of the form
|
(1)
|
if can be expressed using separation
of variables as
|
(2)
|
then the equation can be expressed as
|
(3)
|
where . Integrating both sides gives
|
(4)
|
Each zero of
also gives the constant
function solution
.
For a first-order linear ordinary differential equation
|
(5)
|
assume and
are continuous functions
on an interval containing
. Multiplication by an integrating
factor
satisfying
turns the left-hand side into
by the product rule.
The choice
|
(6)
|
is nonzero and satisfies .
Integrating
gives the solution with initial
conditions specified by
,
|
(7)
|
Varying gives the general solution.
Given an th-order linear ODE with constant coefficients
|
(8)
|
first solve the characteristic equation obtained by writing
|
(9)
|
and setting to obtain the
complex roots.
|
(10)
|
|
(11)
|
Factoring gives the roots ,
|
(12)
|
For a nonrepeated real root , the corresponding solution is
|
(13)
|
If a real root is repeated
times, the solutions are degenerate and the linearly independent
solutions are
|
(14)
|
Complex roots always come in complex conjugate pairs, .
For nonrepeated complex roots,
the solutions are
|
(15)
|
If the complex roots are repeated times, the linearly independent solutions are
|
(16)
|
Linearly combining solutions of the appropriate types with arbitrary multiplicative constants then gives the complete solution. If initial conditions are specified, the constants can be explicitly determined. For example, consider the sixth-order linear ODE
|
(17)
|
which has the characteristic equation
|
(18)
|
The roots are 1, 2 (three times), and ,
so the solution is
|
(19)
|
If the original equation is nonhomogeneous (),
now find the particular solution
by the method of variation
of parameters. The general solution is then
|
(20)
|
where the solutions to the linear equations are ,
,
...,
, and
is the particular solution.