Before we move on to the next section, make sure you can solve the following problems analytically using pen and paper. Hints and solutions are available.
Solve
subject to
.
Try just integrating the right-hand side.
Integrating both sides yields
This is the general solution to the differential equation, to which we now need to apply the initial condition
.
, so we take
. The solution is therefore
Solve
, suvject to
.
Try separation of variables.
Separation of variables yields
Therefore
On rearranging we get
This is the general solution to the differential equation, to which we now need to apply the initial condition
.
, so we take the positive root and
. The solution is therefore
Solve
subject to
.
Try using an integrating factor.
The integrating factor is
The general solution to the equation is therefore
Applying the initial condition gives
so
. The solution is therefore
Solve
and
, subject to
and
.
Combining these two equations, by differentiating the first and substituting it in the second, yields a second-order ODE with linear coefficients. Look at the characteristic equation.
Combining these two equations (differentiating the first and substituting it into the second) gives
The general solution to this is
From the first equation we can calculate
as
Applying the initial conditions gives
and
.
The solution is therefore
Solve
, subject to
and
.
This is a second-order ODE with linear coefficients. Look at the characteristic equation.
The general solution to this is
Applying the initial conditions gives
and
.
The solution is therefore
There are many methods for solving ODEs analytically, but we may not be able to calculate explicit forms for the integrals, even if we can formulate a given ODE into one of the known forms. Furthermore, if we wish to solve an equation that does match one of the standard forms, then we must recourse to numerical methods. This is the case for most systems of ODEs that represent real-world situations, since most of these are highly non-linear.