Given a first-order ordinary differential equation
(1)
|
if can be expressed using separation of variables as
(2)
|
then the equation can be expressed as
(3)
|
and the equation can be solved by integrating both sides to obtain
(4)
|
Any first-order ODE of the form
(5)
|
can be solved by finding an integrating factor such that
(6)
| |||
(7)
|
Dividing through by yields
(8)
|
However, this condition enables us to explicitly determine the appropriate for arbitrary and . To accomplish this, take
(9)
|
in the above equation, from which we recover the original equation (◇), as required, in the form
(10)
|
But we can integrate both sides of (9) to obtain
(11)
|
(12)
|
Now integrating both sides of (◇) gives
(13)
|
(with now a known function), which can be solved for to obtain
(14)
|
where is an arbitrary constant of integration.
Given an th-order linear ODE with constant coefficients
(15)
|
first solve the characteristic equation obtained by writing
(16)
|
and setting to obtain the complex roots.
(17)
|
(18)
|
Factoring gives the roots ,
(19)
|
For a nonrepeated real root , the corresponding solution is
(20)
|
If a real root is repeated times, the solutions are degenerate and the linearly independent solutions are
(21)
|
Complex roots always come in complex conjugate pairs, . For nonrepeated complex roots, the solutions are
(22)
|
If the complex roots are repeated times, the linearly independent solutions are
(23)
|
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
(24)
|
which has the characteristic equation
(25)
|
The roots are 1, 2 (three times), and , so the solution is
(26)
|
If the original equation is nonhomogeneous (), now find the particular solution by the method of variation of parameters. The general solution is then
(27)
|
where the solutions to the linear equations are , , ..., , and is the particular solution.