2.6: Exact Equations
- Page ID
- 30699
( \newcommand{\kernel}{\mathrm{null}\,}\)
In this section it is convenient to write first order differential equations in the form
M(x,y)dx+N(x,y)dy=0.
This equation can be interpreted as
M(x,y)+N(x,y)dydx=0,
where x is the independent variable and y is the dependent variable, or as
M(x,y)dxdy+N(x,y)=0,
where y is the independent variable and x is the dependent variable. Since the solutions of Equation ??? and Equation ??? will often have to be left in implicit form we will say that F(x,y)=c is an implicit solution of Equation ??? if every differentiable function y=y(x) that satisfies F(x,y)=c is a solution of Equation ??? and every differentiable function x=x(y) that satisfies F(x,y)=c is a solution of Equation ???
Here are some examples:
Equation ??? | Equation ??? | Equation ??? |
---|---|---|
3x2y2dx+2x3ydy=0 | 3x2y2+2x3ydydx=0 | 3x2y2dxdy+2x3y=0 |
(x2+y2)dx+2xydy=0 | (x2+y2)+2xydydx=0 | (x2+y2)dxdy+2xy=0 |
3ysinxdx−2xycosxdy=0 | 3ysinx−2xycosxdydx=0 | 3ysinxdxdy−2xycosx=0 |
Note that a separable equation can be written as Equation ??? as
M(x)dx+N(y)dy=0.
we will develop a method for solving Equation ??? under appropriate assumptions on M and N. This method is an extension of the method of separation of variables. Before stating it we consider an example.
Example 2.6.1
Show that
x4y3+x2y5+2xy=c
is an implicit solution of
(4x3y3+2xy5+2y)dx+(3x4y2+5x2y4+2x)dy=0.
Solution
Regarding y as a function of x and differentiating Equation ??? implicitly with respect to x yields
(4x3y3+2xy5+2y)+(3x4y2+5x2y4+2x)dydx=0.
Similarly, regarding x as a function of y and differentiating Equation ??? implicitly with respect to y yields
(4x3y3+2xy5+2y)dxdy+(3x4y2+5x2y4+2x)=0.
Therefore Equation ??? is an implicit solution of Equation ??? in either of its two possible interpretations.
You may think Example 2.6.1 is pointless, since concocting a differential equation that has a given implicit solution is not particularly interesting. However, it illustrates the next important theorem, which we will prove by using implicit differentiation, as in Example 2.6.1.
Theorem 2.6.1
If F=F(x,y) has continuous partial derivatives Fx and Fy, then
F(x,y)=c
(with c as a constant) is an implicit solution of the differential equation
Fx(x,y)dx+Fy(x,y)dy=0.
- Proof
-
Regarding y as a function of x and differentiating Equation ??? implicitly with respect to x yields
Fx(x,y)+Fy(x,y)dydx=0.
On the other hand, regarding x as a function of y and differentiating Equation ??? implicitly with respect to y yields
Fx(x,y)dxdy+Fy(x,y)=0.
Thus, Equation ??? is an implicit solution of Equation ??? in either of its two possible interpretations.
We will say that the equation
M(x,y)dx+N(x,y)dy=0
is exact on an an open rectangle R if there’s a function F=F(x,y) such Fx and Fy are continuous, and
Fx(x,y)=M(x,y)andFy(x,y)=N(x,y)
for all (x,y) in R. This usage of “exact” is related to its usage in calculus, where the expression
Fx(x,y)dx+Fy(x,y)dy
(obtained by substituting Equation ??? into the left side of Equation ???) is the exact differential of F.
Example 2.6.1 shows that it is easy to solve Equation ??? if it is exact and we know a function F that satisfies Equation ???. The important questions are:
- Question 1. Given an equation Equation ???, how can we determine whether it is exact?
- Question 2. If Equation ??? is exact, how do we find a function F satisfying Equation ????
To discover the answer to Question 1, assume that there’s a function F that satisfies Equation ??? on some open rectangle R, and in addition that F has continuous mixed partial derivatives Fxy and Fyx. Then a theorem from calculus implies that Fxy=Fyx. If Fx=M and Fy=N, differentiating the first of these equations with respect to y and the second with respect to x yields
Fxy=MyandFyx=Nx.
From Equation ??? and Equation ???, we conclude that a necessary condition for exactness is that My=Nx. This motivates the next theorem, which we state without proof.
Theorem 2.6.2: The Exactness Condition
Suppose M and N are continuous and have continuous partial derivatives My and Nx on an open rectangle R. Then
M(x,y)dx+N(x,y)dy=0
is exact on R if and only if
My(x,y)=Nx(x,y)
for all (x,y) in R..
To help you remember the exactness condition, observe that the coefficients of dx and dy are differentiated in Equation ??? with respect to the “opposite” variables; that is, the coefficient of dx is differentiated with respect to y, while the coefficient of dy is differentiated with respect to x.
Example 2.6.2
Show that the equation
3x2ydx+4x3dy=0
is not exact on any open rectangle.
Solution
Here
M(x,y)=3x2yandN(x,y)=4x3
so
My(x,y)=3x2andNx(x,y)=12x2.
Therefore My=Nx on the line x=0, but not on any open rectangle, so there’s no function F such that Fx(x,y)=M(x,y) and Fy(x,y)=N(x,y) for all (x,y) on any open rectangle.
The next example illustrates two possible methods for finding a function F that satisfies the condition Fx=M and Fy=N if Mdx+Ndy=0 is exact.
Example 2.6.3
Solve
(4x3y3+3x2)dx+(3x4y2+6y2)dy=0.
Solution (Method 1)
Here M(x,y)=4x3y3+3x2,N(x,y)=3x4y2+6y2, and My(x,y)=Nx(x,y)=12x3y2 for all (x,y). Therefore Theorem 2.6.2 implies that there’s a function F such that
Fx(x,y)=M(x,y)=4x3y3+3x2
and
Fy(x,y)=N(x,y)=3x4y2+6y2
for all (x,y). To find F, we integrate Equation ??? with respect to x to obtain
F(x,y)=x4y3+x3+ϕ(y),
where ϕ(y) is the “constant” of integration. (Here ϕ is “constant” in that it is independent of x, the variable of integration.) If ϕ is any differentiable function of y then F satisfies Equation ???. To determine ϕ so that F also satisfies Equation ???, assume that ϕ is differentiable and differentiate F with respect to y. This yields
Fy(x,y)=3x4y2+ϕ′(y).
Comparing this with Equation ??? shows that
ϕ′(y)=6y2.
We integrate this with respect to y and take the constant of integration to be zero because we are interested only in finding some F that satisfies Equation ??? and Equation ???. This yields
ϕ(y)=2y3.
Substituting this into Equation ??? yields
F(x,y)=x4y3+x3+2y3.
Now Theorem 2.6.1 implies that x4y3+x3+2y3=c is an implicit solution of Equation ???. Solving this for y yields the explicit solution
y=(c−x32+x4)1/3.
Solution (Method 2)
Instead of first integrating Equation ??? with respect to x, we could begin by integrating Equation ??? with respect to y to obtain
F(x,y)=x4y3+2y3+ψ(x),
where ψ is an arbitrary function of x. To determine ψ, we assume that ψ is differentiable and differentiate F with respect to x, which yields
Fx(x,y)=4x3y3+ψ′(x).
Comparing this with Equation ??? shows that
ψ′(x)=3x2.
Integrating this and again taking the constant of integration to be zero yields
ψ(x)=x3.
Substituting this into Equation ??? yields Equation ???.
Figure 2.6.1 shows a direction field and some integral curves of Equation ???.
Here’s a summary of the procedure used in Method 1 of this example. You should summarize procedure used in Method 2.
HOWTO: Procedure For Solving An Exact Equation (Method 1)
- Step 1. Check that the equation M(x,y)dx+N(x,y)dy=0 satisfies the exactness condition My=Nx. If not, don’t go further with this procedure.
- Step 2. Integrate ∂F(x,y)∂x=M(x,y) with respect to x to obtain F(x,y)=G(x,y)+ϕ(y), where G is an antiderivative of M with respect to x, and ϕ is an unknown function of y.
- Step 3. Differentiate Equation ??? with respect to y to obtain ∂F(x,y)∂y=∂G(x,y)∂y+ϕ′(y).
- Step 4. Equate the right side of this equation to N and solve for ϕ′; thus, ∂G(x,y)∂y+ϕ′(y)=N(x,y),soϕ′(y)=N(x,y)−∂G(x,y)∂y.
- Step 5. Integrate ϕ′ with respect to y, taking the constant of integration to be zero, and substitute the result in Equation ??? to obtain F(x,y).
- Step 6. Set F(x,y)=c to obtain an implicit solution of Equation ???. If possible, solve for y explicitly as a function of x.
It’s a common mistake to omit Step 6 in the procedure above. However, it is important to include this step, since F isn’t itself a solution of Equation ???. Many equations can be conveniently solved by either of the two methods used in Example 2.6.3. However, sometimes the integration required in one approach is more difficult than in the other. In such cases we choose the approach that requires the easier integration.
Example 2.6.4
Solve the equation
(yexytanx+exysec2x)dx+xexytanxdy=0
Solution
We leave it to you to check that My=Nx on any open rectangle where tanx and secx are defined. Here we must find a function F such that
Fx(x,y)=yexytanx+exysec2x
and
Fy(x,y)=xexytanx.
It’s difficult to integrate Equation ??? with respect to x, but easy to integrate Equation ??? with respect to y. This yields
F(x,y)=exytanx+ψ(x).
Differentiating this with respect to x yields
Fx(x,y)=yexytanx+exysec2x+ψ′(x).
Comparing this with Equation ??? shows that ψ′(x)=0. Hence, ψ is a constant, which we can take to be zero in Equation ???, and
exytanx=c,
is an implicit solution of Equation ???.
Attempting to apply our procedure to an differential equation that is not exact will lead to failure in Step 4, since the function
N−∂G∂y
will not be independent of x if My≠Nx, and therefore cannot be the derivative of a function of y alone. Example 2.6.5 illustrates this.
Example 2.6.5
Verify that the equation
3x2y2dx+6x3ydy=0
is not exact, and show that the procedure for solving exact equations fails when applied to Equation ???.
Solution
Here My(x,y)=6x2yandNx(x,y)=18x2y,
so Equation ??? is not exact. Nevertheless, let us try to find a function F such that
Fx(x,y)=3x2y2
and
Fy(x,y)=6x3y.
Integrating Equation ??? with respect to x yields
F(x,y)=x3y2+ϕ(y),
and differentiating this with respect to y yields
Fy(x,y)=2x3y+ϕ′(y).
For this equation to be consistent with Equation ???,
6x3y=2x3y+ϕ′(y),
or
ϕ′(y)=4x3y.
This is a contradiction, since ϕ′ must be independent of x. Therefore the procedure fails.