Exact differential equation

From HandWiki
Short description: Type of differential equation subject to a particular solution methodology

In mathematics, an exact differential equation or total differential equation is a certain kind of ordinary differential equation which is widely used in physics and engineering.

Definition

Given a simply connected and open subset D of 2 and two functions I and J which are continuous on D, an implicit first-order ordinary differential equation of the form

I(x,y)dx+J(x,y)dy=0,

is called an exact differential equation if there exists a continuously differentiable function F, called the potential function,[1][2] so that

Fx=I

and

Fy=J.

An exact equation may also be presented in the following form:

I(x,y)+J(x,y)y(x)=0

where the same constraints on I and J apply for the differential equation to be exact.

The nomenclature of "exact differential equation" refers to the exact differential of a function. For a function F(x0,x1,...,xn1,xn), the exact or total derivative with respect to x0 is given by

dFdx0=Fx0+i=1nFxidxidx0.

Example

The function F:2 given by

F(x,y)=12(x2+y2)+c

is a potential function for the differential equation

xdx+ydy=0.

First order exact differential equations

Identifying first order exact differential equations

Let the functions M, N, My, and Nx, where the subscripts denote the partial derivative with respect to the relative variable, be continuous in the region R:α<x<β,γ<y<δ. Then the differential equation

M(x,y)+N(x,y)dydx=0

is exact if and only if

My(x,y)=Nx(x,y)

That is, there exists a function ψ(x,y), called a potential function, such that

ψx(x,y)=M(x,y) and ψy(x,y)=N(x,y)

So, in general:

My(x,y)=Nx(x,y){ψ(x,y)ψx(x,y)=M(x,y)ψy(x,y)=N(x,y)

Proof

The proof has two parts.

First, suppose there is a function ψ(x,y) such that ψx(x,y)=M(x,y) and ψy(x,y)=N(x,y)

It then follows that My(x,y)=ψxy(x,y) and Nx(x,y)=ψyx(x,y)

Since My and Nx are continuous, then ψxy and ψyx are also continuous which guarantees their equality.

The second part of the proof involves the construction of ψ(x,y) and can also be used as a procedure for solving first-order exact differential equations. Suppose that My(x,y)=Nx(x,y) and let there be a function ψ(x,y) for which ψx(x,y)=M(x,y) and ψy(x,y)=N(x,y)

Begin by integrating the first equation with respect to x. In practice, it doesn't matter if you integrate the first or the second equation, so long as the integration is done with respect to the appropriate variable.

ψx(x,y)=M(x,y) ψ(x,y)=M(x,y)dx+h(y) ψ(x,y)=Q(x,y)+h(y)

where Q(x,y) is any differentiable function such that Qx=M. The function h(y) plays the role of a constant of integration, but instead of just a constant, it is function of y, since M is a function of both x and y and we are only integrating with respect to x.

Now to show that it is always possible to find an h(y) such that ψy=N. ψ(x,y)=Q(x,y)+h(y)

Differentiate both sides with respect to y. ψy(x,y)=Qy(x,y)+h(y)

Set the result equal to N and solve for h(y). h(y)=N(x,y)Qy(x,y)

In order to determine h(y) from this equation, the right-hand side must depend only on y. This can be proven by showing that its derivative with respect to x is always zero, so differentiate the right-hand side with respect to x. Nx(x,y)xQy(x,y)Nx(x,y)yQx(x,y)

Since Qx=M, Nx(x,y)My(x,y) Now, this is zero based on our initial supposition that My(x,y)=Nx(x,y)

Therefore, h(y)=N(x,y)Qy(x,y) h(y)=(N(x,y)Qy(x,y))dy

ψ(x,y)=Q(x,y)+(N(x,y)Qy(x,y))dy+C

And this completes the proof.

Solutions to first order exact differential equations

First order exact differential equations of the form M(x,y)+N(x,y)dydx=0

can be written in terms of the potential function ψ(x,y) ψx+ψydydx=0

where {ψx(x,y)=M(x,y)ψy(x,y)=N(x,y)

This is equivalent to taking the exact differential of ψ(x,y). ψx+ψydydx=0ddxψ(x,y(x))=0

The solutions to an exact differential equation are then given by ψ(x,y(x))=c

and the problem reduces to finding ψ(x,y).

This can be done by integrating the two expressions M(x,y)dx and N(x,y)dy and then writing down each term in the resulting expressions only once and summing them up in order to get ψ(x,y).

The reasoning behind this is the following. Since {ψx(x,y)=M(x,y)ψy(x,y)=N(x,y)

it follows, by integrating both sides, that {ψ(x,y)=M(x,y)dx+h(y)=Q(x,y)+h(y)ψ(x,y)=N(x,y)dy+g(x)=P(x,y)+g(x)

Therefore, Q(x,y)+h(y)=P(x,y)+g(x)

where Q(x,y) and P(x,y) are differentiable functions such that Qx=M and Py=N.

In order for this to be true and for both sides to result in the exact same expression, namely ψ(x,y), then h(y) must be contained within the expression for P(x,y) because it cannot be contained within g(x), since it is entirely a function of y and not x and is therefore not allowed to have anything to do with x. By analogy, g(x) must be contained within the expression Q(x,y).

Ergo, Q(x,y)=g(x)+f(x,y) and P(x,y)=h(y)+d(x,y)

for some expressions f(x,y) and d(x,y). Plugging in into the above equation, we find that g(x)+f(x,y)+h(y)=h(y)+d(x,y)+g(x)f(x,y)=d(x,y) and so f(x,y) and d(x,y) turn out to be the same function. Therefore, Q(x,y)=g(x)+f(x,y) and P(x,y)=h(y)+f(x,y)

Since we already showed that {ψ(x,y)=Q(x,y)+h(y)ψ(x,y)=P(x,y)+g(x)

it follows that ψ(x,y)=g(x)+f(x,y)+h(y)

So, we can construct ψ(x,y) by doing M(x,y)dx and N(x,y)dy and then taking the common terms we find within the two resulting expressions (that would be f(x,y) ) and then adding the terms which are uniquely found in either one of them - g(x) and h(y).

Second order exact differential equations

The concept of exact differential equations can be extended to second order equations.[3] Consider starting with the first-order exact equation:

I(x,y)+J(x,y)dydx=0

Since both functions I(x,y), J(x,y) are functions of two variables, implicitly differentiating the multivariate function yields

dIdx+(dJdx)dydx+d2ydx2(J(x,y))=0

Expanding the total derivatives gives that

dIdx=Ix+Iydydx

and that

dJdx=Jx+Jydydx

Combining the dydx terms gives

Ix+dydx(Iy+Jx+Jydydx)+d2ydx2(J(x,y))=0

If the equation is exact, then Jx=Iy. Additionally, the total derivative of J(x,y) is equal to its implicit ordinary derivative dJdx. This leads to the rewritten equation

Ix+dydx(Jx+dJdx)+d2ydx2(J(x,y))=0

Now, let there be some second-order differential equation

f(x,y)+g(x,y,dydx)dydx+d2ydx2(J(x,y))=0

If Jx=Iy for exact differential equations, then

(Iy)dy=(Jx)dy

and

(Iy)dy=(Jx)dy=I(x,y)h(x)

where h(x) is some arbitrary function only of x that was differentiated away to zero upon taking the partial derivative of I(x,y) with respect to y. Although the sign on h(x) could be positive, it is more intuitive to think of the integral's result as I(x,y) that is missing some original extra function h(x) that was partially differentiated to zero.

Next, if

dIdx=Ix+Iydydx

then the term Ix should be a function only of x and y, since partial differentiation with respect to x will hold y constant and not produce any derivatives of y. In the second order equation

f(x,y)+g(x,y,dydx)dydx+d2ydx2(J(x,y))=0

only the term f(x,y) is a term purely of x and y. Let Ix=f(x,y). If Ix=f(x,y), then

f(x,y)=dIdxIydydx

Since the total derivative of I(x,y) with respect to x is equivalent to the implicit ordinary derivative dIdx , then

f(x,y)+Iydydx=dIdx=ddx(I(x,y)h(x))+dh(x)dx

So,

dh(x)dx=f(x,y)+Iydydxddx(I(x,y)h(x))

and

h(x)=(f(x,y)+Iydydxddx(I(x,y)h(x)))dx

Thus, the second order differential equation

f(x,y)+g(x,y,dydx)dydx+d2ydx2(J(x,y))=0

is exact only if g(x,y,dydx)=dJdx+Jx=dJdx+Jx and only if the below expression

(f(x,y)+Iydydxddx(I(x,y)h(x)))dx=(f(x,y)(I(x,y)h(x))x)dx

is a function solely of x. Once h(x) is calculated with its arbitrary constant, it is added to I(x,y)h(x) to make I(x,y). If the equation is exact, then we can reduce to the first order exact form which is solvable by the usual method for first-order exact equations.

I(x,y)+J(x,y)dydx=0

Now, however, in the final implicit solution there will be a C1x term from integration of h(x) with respect to x twice as well as a C2, two arbitrary constants as expected from a second-order equation.

Example

Given the differential equation

(1x2)y4xy2y=0

one can always easily check for exactness by examining the y term. In this case, both the partial and total derivative of 1x2 with respect to x are 2x, so their sum is 4x, which is exactly the term in front of y. With one of the conditions for exactness met, one can calculate that

(2x)dy=I(x,y)h(x)=2xy

Letting f(x,y)=2y, then

(2y2xyddx(2xy))dx=(2y2xy+2xy+2y)dx=(0)dx=h(x)

So, h(x) is indeed a function only of x and the second order differential equation is exact. Therefore, h(x)=C1 and I(x,y)=2xy+C1. Reduction to a first-order exact equation yields

2xy+C1+(1x2)y=0

Integrating I(x,y) with respect to x yields

x2y+C1x+i(y)=0

where i(y) is some arbitrary function of y. Differentiating with respect to y gives an equation correlating the derivative and the y term.

x2+i(y)=1x2

So, i(y)=y+C2 and the full implicit solution becomes

C1x+C2+yx2y=0

Solving explicitly for y yields

y=C1x+C21x2

Higher order exact differential equations

The concepts of exact differential equations can be extended to any order. Starting with the exact second order equation

d2ydx2(J(x,y))+dydx(dJdx+Jx)+f(x,y)=0

it was previously shown that equation is defined such that

f(x,y)=dh(x)dx+ddx(I(x,y)h(x))Jxdydx

Implicit differentiation of the exact second-order equation n times will yield an (n+2)th order differential equation with new conditions for exactness that can be readily deduced from the form of the equation produced. For example, differentiating the above second-order differential equation once to yield a third-order exact equation gives the following form

d3ydx3(J(x,y))+d2ydx2dJdx+d2ydx2(dJdx+Jx)+dydx(d2Jdx2+ddx(Jx))+df(x,y)dx=0

where

df(x,y)dx=d2h(x)dx2+d2dx2(I(x,y)h(x))d2ydx2Jxdydxddx(Jx)=F(x,y,dydx)

and where F(x,y,dydx) is a function only of x,y and dydx. Combining all dydx and d2ydx2 terms not coming from F(x,y,dydx) gives

d3ydx3(J(x,y))+d2ydx2(2dJdx+Jx)+dydx(d2Jdx2+ddx(Jx))+F(x,y,dydx)=0

Thus, the three conditions for exactness for a third-order differential equation are: the d2ydx2 term must be 2dJdx+Jx, the dydx term must be d2Jdx2+ddx(Jx) and

F(x,y,dydx)d2dx2(I(x,y)h(x))+d2ydx2Jx+dydxddx(Jx)

must be a function solely of x.

Example

Consider the nonlinear third-order differential equation

yy+3yy+12x2=0

If J(x,y)=y, then y(2dJdx+Jx) is 2yy and y(d2Jdx2+ddx(Jx))=yywhich together sum to 3yy. Fortunately, this appears in our equation. For the last condition of exactness,

F(x,y,dydx)d2dx2(I(x,y)h(x))+d2ydx2Jx+dydxddx(Jx)=12x20+0+0=12x2

which is indeed a function only of x. So, the differential equation is exact. Integrating twice yields that h(x)=x4+C1x+C2=I(x,y). Rewriting the equation as a first-order exact differential equation yields

x4+C1x+C2+yy=0

Integrating I(x,y) with respect to x gives that x55+C1x2+C2x+i(y)=0. Differentiating with respect to y and equating that to the term in front of y in the first-order equation gives that i(y)=y and that i(y)=y22+C3. The full implicit solution becomes

x55+C1x2+C2x+C3+y22=0

The explicit solution, then, is

y=±C1x2+C2x+C32x55

See also

References

  1. Wolfgang Walter (11 March 2013). Ordinary Differential Equations. Springer Science & Business Media. ISBN 978-1-4612-0601-9. https://books.google.com/books?id=2jvaBwAAQBAJ&q=%22potential+function%22+exact. 
  2. Vladimir A. Dobrushkin (16 December 2014). Applied Differential Equations: The Primary Course. CRC Press. ISBN 978-1-4987-2835-5. https://books.google.com/books?id=d-5MBgAAQBAJ&q=%22potential+function%22. 
  3. Tenenbaum, Morris; Pollard, Harry (1963). "Solution of the Linear Differential Equation with Nonconstant Coefficients. Reduction of Order Method.". Ordinary Differential Equations: An Elementary Textbook for Students of Mathematics, Engineering and the Sciences. New York: Dover. pp. 248. ISBN 0-486-64940-7. https://archive.org/details/ordinarydifferen00tene_850. 

Further reading

  • Boyce, William E.; DiPrima, Richard C. (1986). Elementary Differential Equations (4th ed.). New York: John Wiley & Sons, Inc. ISBN:0-471-07894-8