ORDINARY DIFFERENTIAL EQUATIONS POWERTOOL
Lesson 2 -- Separable Equations
Prof. Douglas B. Meade
Industrial Mathematics Institute
Department of Mathematics
University of South Carolina
Columbia, SC 29208
URL: http://www.math.sc.edu/~meade/
E-mail: meade@math.sc.edu
Copyright 2001 by Douglas B. Meade
All rights reserved
-------------------------------------------------------------------
Outline for Lesson 2
2.A General Solution Method for Separable ODEs
2.B Cross-Check of Solutions
2.C Closing Comment (separablesol and dsolve)
Initialization
Warning, the name changecoords has been redefined
A separable differential equation is a differential equation that can be written in the form
.
or equivalently, in one of the forms
or
For example, consider the equation
As discussed in Lesson 1 (Section E) , the odeadvisor command can be used to check the classification of an ODE. It yields
In this case, it is easily seen that the variables are separated in this ODE when it is multiplied by , resulting in
Once in separated form, the solution is obtained by integration of the separated equation with respect to the independent variable. The usual notation for this calculation involves the differential, the product of a derivative such as and an increment such as . By definition, the differential is , so multiplication of the form
by the increment yields the form
which yields to antidifferentiation of both sides via the notation
Since Maple does not have a true implementation of differentials, the differentials and are supplied my Maple's Int command, the inert form of the int command. Integration is mapped, or placed, on each side of the equation by the map command, yielding
Evaluating these indefinite integrals, and adding a constant of integration to one side of the equation, leads to an implicit form of the general solution:
(Maple will add equations, so the constant of integration can be "added" to the right side of the implicit solution by the dodge of adding the "equation" .)
Of the three explicit expressions for that are obtained from this implicit solution via
only one is real-valued, namely,
Of course, the constant could be replaced by a new constant, but this is not an essential step.
If an initial condition
is provided, it can be used to determine a specific value for the constant in the general solution. First, substitute into the general solution to get
then solve for to obtain
The resulting (explicit) particular solution to the IVP is
A plot of this solution could be obtained with
The initial condition can be applied earlier in the problem, at the time of the integration. This would require the following modification of the integration process, using definite instead of indefinite integrals.
In Maple, integrating both sides of the equation
with respect to the independent variable is simplest. The requisite calculation is
where is the variable of integration.
The evaluated form of this equation is obtained in Maple via
Substitution of the initial condition
leads to
Solving explicitly for the real branch of is implemented with
Alternatively, the dependent variable can be used as the integration variable on the left, and the independent variable, on the right. Using as the variable of integration on both sides, the equation
becomes
The simplest way to obtain this version of the integration is to rebuild the integrals via the tedious
Evaluation leads to
and isolating the dependent variable leads to the same real-valued solution as found earlier.
Observe that all solutions, implicit or explicit, satisfy the original ODE:
2.C Closing Remarks
The DEtools package contains separablesol , a procedure designed specifically for the solution of separable ODEs. Applying it to the differential equation
The dsolve command returns the same result, but might not have used the same method, as we can see from
`Methods for first order ODEs:` `--- Trying classification methods ---` `trying a quadrature` `trying 1st order linear` `trying Bernoulli` `<- Bernoulli successful`
To force dsolve to use a specific method, an optional argument can be specified, as in
`Classification methods on request` `Methods to be used are: [separable]` `----------------------------` `* Tackling ODE using method: separable` `--- Trying classification methods ---` `trying separable` `<- separable successful`
For additional information about this syntax, please consult the help topic dsolve,education .
[Back to ODE Powertool Table of Contents]