Exact differential equations

Consider the differential equation of the form

(Eq:exact)P(x,y)dx+Q(x,y)dy=0 

where P(x,y) and Q(x,y) are some bivariate functions. In this differential equation, the variables x and y have equal status (neither is an independent nor dependent variable). Thus, the solution should also be given as some equation of x and y. If necessary, y may be interpreted as an implicit function of x.



The above differential equation (Eq:exact) is said to be an exact or total differential equation if there exists a function F(x,y) of class C1 such that

Fx(x,y)=P(x,y),Fy(x,y)=Q(x,y).

This function F(x,y) is called a potential function.

Remark. Recall that

Fx(x,y)=Fx(x,y),Fy(x,y)=Fy(x,y).

As the following theorem shows, exact differential equations are solvable.

Theorem (Solution of an exact differential equation)

Given the exact differential equation

(Eq:exactt)P(x,y)dx+Q(x,y)dy=0,

if there exists a function F(x,y) such that Fx(x,y)=P(x,y) and Fy(x,y)=Q(x,y), then the solution is F(x,y)=C (constant).

Proof. Suppose Fx(x,y)=P(x,y) and Fy(x,y)=Q(x,y). If F(x,y)=C, then differentiating both sides with respect to x yields

Fx(x,y)+Fy(x,y)dydx=0.

Hence F(x,y)=C is indeed a solution of (Eq:exactt). Conversely, if the solution of (Eq:exactt) is given by y=y(x), for example, then

ddxF(x,y(x))=Fx(x,y)+Fy(x,y)dydx=P(x,y)+Q(x,y)dydx=0

so that F(x,y)=C (constant). ■

Hence, solving an exact differential equation boils down to finding the potential function. But how can we find it?

Theorem (Condition for exact differential equations)

The differential equation

P(x,y)dx+Q(x,y)dy=0

with P and Q of class C1 is exact if and only if

Py(x,y)=Qx(x,y).

In this case, the potential function F(x,y) is given by

(Eq:poten)F(x,y)=axP(u,b)du+byQ(x,v)dv

where (a,b) is an arbitrary point in the domain of P(x,y) and Q(x,y).

Proof. If P(x,y)dx+Q(x,y)dy=0 is an exact differential equation, then 

Py(x,y)=Fxy(x,y)=Fyx(x,y)=Qx(x,y)

as P and Q are of class C1, which implies that the potential F(x,y) is of class C2.


Conversely, suppose that Py(x,y)=Qx(x,y) holds. Let us define F(x,y) as in (Eq:poten). It suffices to show that Fx(x,y)=P(x,y) and Fy(x,y)=Q(x,y).

xF(x,y)=ddxaxP(u,b)du+xbyQ(x,v)dv=P(x,b)+byQx(x,v)dv=P(x,b)+byPy(x,v)dv=P(x,b)+P(x,y)P(x,b)=P(x,y).

Similarly,

yF(x,y)=yaxP(u,b)du+ybyQ(x,v)dv=Q(x,y).


Example.  Let's solve

{2xsin(xy)+(x2y+y4)cos(xy)}dx+{3y2sin(xy)+(x3+xy3)cos(xy)}dy=0.

Let

P(x,y)=2xsin(xy)+(x2y+y4)cos(xy),Q(x,y)=3y2sin(xy)+(x3+xy3)cos(xy),

and we have

P(x,y)dx+Q(x,y)dy=0.

Let us define

F(x,y)=(x2+y3)sin(xy).

Then, Fx(x,y)=P(x,y) and Fy(x,y)=Q(x,y). Thus, the solution is

(x2+y3)sin(xy)=C(constant).

Integrating factor

Consider the differential equation Pdx+Qdy=0 which may not be exact. In such a case, there may (or may not) exist a function μ(x,y) such that μPdx+μQdy=0 is an exact differential equation. Such a function μ(x,y) is called an integrating factor.


In general, finding an integrating factor is not easy. Let us find a condition an integrating factor should satisfy. By the above Theorem (Condition for exact differential equations), an integrating factor μ=μ(x,y) must satisfy (μP)y=(μQ)x, that is,

(Eq:mucond)PμyQμx+μ(PyQx)=0.

However, solving this equation for μ is difficult in general. Therefore, we consider a few special cases.

  1. If R(x)=1Q(PyQx) is a function of x alone, then μ(x)=exp[R(x)dx] is an integrating factor.
  2. If S(y)=1P(PyQx) is a function of y alone, then μ(y)=exp[S(y)dy] is an integrating factor.
Example. Let's solve
(x+2y)dx+dy=0.
Let P=x+2y and Q=1. Since Py=20=Qx, this is not an exact differential equation. Noting R=1Q(PyQx)=2, let μ(x)=eRdx=e2x. Then, with μP=e2x(x+2y) and μQ=e2x, we have (μP)y=2e2x=(μQ)x. Hence
(μP)dx+(μQ)dy=0
is exact. Define
F(x,y)=14e2x(2x+4y1),
and this satisfies Fx=μP and Fy=μQ. Thus, the solution is
e2x(2x+4y1)=C (constant).

Comments

Popular posts from this blog

Birth process

Branching processes: Mean and variance

Informal introduction to formal logic