ORDINARY DIFFERENTIAL EQUATIONS POWERTOOL
Lesson 8 -- Exact 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 of Lesson 8
8.A Basic Theory
8.A-1 Example 1
8.B Integrating Factors
8.B-1 Example 2
Initialization
Warning, the name changecoords has been redefined
The general form for a first-order exact differential equation is
where the functions and satisfy the conditions
for some function . At any point where , the equation , where is a constant, implicitly defines the function . Such curves are called level curves, and are the curves in the -plane above which the surface maintains the constant height .
If the function is so defined implicitly by the equation , then implicit differentiation gives
=
where subscripts denote partial derivatives. Now this equation is clearly equivalent to the differential equation, namely,
Thus, solving this exact differential equation amounts to finding the exact "antiderivative," the function whose exact (or total) derivative is just the ODE itself. The level curves defined implicitly by are the solutions of the exact differential equation.
To find a condition that guarantees the equation
is exact, consider an arbitrary function whose level curves are defined by the equation
for some constant . If the function satisfies the the ODE, then the difference of the total derivative of and the ODE itself should be zero. Thus, the condition for the equation to be exact is
Careful consideration of this equation shows that it is satisfied when
That is, when
and .
For arbitrary pairs of functions P and Q, this condition will not be satisfied. However, assuming the function F has continuous second derivatives and the functions P and Q have continuous first derivatives, the equivalence of the mixed second derivatives of F, namely,
combines with the previous argument
to provide necessary and sufficient conditions for an exact equation. This condition is
that is,
Consider the differential equation
To check if this ODE is exact, identify the coefficients for the general form
and check the necessary and sufficient condition for exactness:
Since this is an exact equation, we construct the solution in the form where
and
The first of these is satisfied when
To satisfy the second condition requires
Thus, integrating both sides and isolating gives
and so the function is
and the implicit solution of the differential equation is
A quick pause to check that this solution does satisfy the differential equation reveals
The function F is also called a first integral of the ODE. The Maple command firint , from the DEtools package, can be used to express the solution of an exact ODE in terms of its first integral. For example,
Note that essentially the same solution is returned with either of the following single commands
The even simpler command
`Methods for first order ODEs:` `--- Trying classification methods ---` `trying a quadrature` `trying 1st order linear` `trying Bernoulli` `trying separable` `trying inverse linear` `<- 1st order linear successful` `<- inverse linear successful`
returns an equivalent, but different, solution. This is because Maple is able to find several classifications for this example
and uses a different solution method.
Most first-order ODEs are not exact. Some of these ODEs can be made exact by multiplying the ODE by an appropriate function so that the new ODE is exact. The integrating factor, , must be chosen so that the necessary and sufficient condition is satisfied by the coefficients of the ODE after multiplication by :
Applying the necessary and sufficient condition for exactness to the ODE
leads to
This is a partial differential equation, but there are numerous cases where the determination of the integrating factor can be completed under the assumption that is a function of either or , but not both. If at least one of and is zero, an integrating factor for the original ODE can be found by a process illustrated in the following example.
As an example, consider the following ODE,
for which the coefficients and are
That this equation is not exact can be seen from
or from
An integrating factor, if one exists, must satisfy the partial differential equation
With a little inspection, it can be seen that this PDE simplifies to a linear ODE when the integrating factor is assumed to be independent of . The result of this assumption is
or better still,
The general solution to this separable (and linear) ODE is found to be
Since any (non-trivial) solution can be used as an integrating factor, choose _C1=1 and define
To confirm that this function is an integrating factor for the ODE, apply the necessary and sufficient condition for exactness, obtaining
or use
The Maple command mutest , in the DEtools package, provides an alternate method for checking the validity of an integrating factor for a differential equation:
The intfactor command, also from the DEtools package, can be used as a black box to find an integrating factor. An integrating factor for this ODE is
The solution to the exact form of the original ODE is
Note that without the optional argument implicit Maple returns the pair of solutions
The specific solution obtained depends upon the specific initial condition.
The same solutions are also obtained from either of
In terms of first integrals, the original ODE is not exact so does not have a first integral
Error, (in ODEtools/firint) the given ODE is not exact
But, when multiplied by the integrating factor, it has the first integral
which simplifies to the implicit solution found above.
[Back to ODE Powertool Table of Contents]