# Difference between revisions of "Exact differential equation"

(Rewrote to improve clarity and explain solution method, added example) |
|||

(16 intermediate revisions by 2 users not shown) | |||

Line 1: | Line 1: | ||

− | An '''exact differential equation''' is a differential equation that | + | An '''exact differential equation''' is a first order [[differential equation]] that has the form: |

− | + | :<math>M(t,y) + N(t,y)y' = 0\,</math> or <math>M(t,y) dt + N(t,y) dy = 0\,</math> | |

− | + | and is also exact.<ref name=MathematicalMethods>K.F. Riley, M.P. Hobson, S.J. Bence, ''Mathematical Methods for Physics and Engineering'', Cambridge University Press, 3<sup>rd</sup> ed., 2006</ref> This means that: | |

− | + | :<math>\frac{\partial M}{\partial y} = \frac{\partial N}{\partial t}</math> | |

− | + | If a first order differential equation is exact, then a [[conservative field]] exists and a [[potential energy|scalar potential]] can be defined.<ref name=mathworld>[http://mathworld.wolfram.com/ExactFirst-OrderOrdinaryDifferentialEquation.html Exact Equations] from mathworld.wolfram.com</ref> | |

− | To find the solution of this equation, we | + | ==Solution== |

− | + | To find the solution of this equation, we consider the fact that the equation has the form of an exact differential of a [[function]] φ(y,t). The total differential of φ(y,t) is then: | |

− | + | :<math> | |

− | :<math>\phi( | + | d\phi (y,t) = \frac{\partial \phi}{\partial y} dy + \frac{\partial \phi}{\partial t} dt |

+ | </math> | ||

+ | Comparing to our original differential equation, <math>\frac{\partial \phi}{\partial t} = M</math> and <math>\frac{\partial \phi}{\partial y} = N</math> and also that this implies that dφ(y,t)=0 and φ(y,t)=constant. To solve the equation, we [[Integration|integrate]] both sides of the total differential with respect to one of the variables, say t: | ||

− | + | :<math> | |

− | :<math>\frac{\partial \ | + | \phi(y,t) = \int M(t,y) \, dt + F(y) |

− | and | + | </math> |

− | :<math>\frac{\partial | + | |

− | + | where F(y) is a "constant of integration". (In reality, F(y) is a [[function]], but when we differentiate it with respect t, we treat y as constant and so its [[derivative]] becomes zero.) In order to solve for F(y), we differentiate φ(y,t) with respect to the other variable, in this case y, and set the result equal to N(t,y). | |

− | :<math>\frac{\partial M}{\partial y} = \frac{\partial N}{\partial t}</math> | + | |

− | + | ==Non-Exact Case== | |

+ | If the two functions, M(t,y) and N(t,y), instead have the property: | ||

+ | |||

+ | :<math> | ||

+ | \frac{\partial M}{\partial y} \neq \frac{\partial N}{\partial t} | ||

+ | </math> | ||

+ | |||

+ | then the equation is said to be "inexact" and the above method cannot be used directly to solve it. However, it can be used if a function, μ(t,y) can be found such that, when the differential equation is multiplied by μ(t,y), it becomes exact. Such a function is called an "integrating function".<ref name=mathworld/> This would transform the condition for exactness to: | ||

+ | |||

+ | :<math> | ||

+ | \frac{\partial}{\partial y} \left( \mu(y,t) M \right) = \frac{\partial}{\partial t} \left( \mu(y,t) N \right) | ||

+ | </math> | ||

+ | |||

+ | meaning that the integrating function can be found as: | ||

+ | |||

+ | :<math> | ||

+ | \mu = \frac{N\frac{\partial \mu}{\partial t}-M\frac{\partial \mu}{\partial y}}{\frac{\partial M}{\partial y}-\frac{\partial N}{\partial t}} | ||

+ | </math> | ||

+ | |||

+ | This isn't particularly useful by itself as we still have to solve for μ as a function of two variables. Often, the integrating function can be expressed as only one of the two variables, meaning we would only need to solve an ordinary differential equation rather than a partial differential equation. Otherwise, the integrating factor can sometimes be guessed or another method of finding a solution can be employed. | ||

+ | |||

+ | ==Example== | ||

+ | Consider the equation:<ref name=MathematicalMethods/> | ||

+ | |||

+ | :<math> | ||

+ | t \frac{dy}{dt}+3t+y=0 | ||

+ | </math> | ||

+ | |||

+ | Here we have M(t,y)=3t+y and N(t,y)=t. As: | ||

+ | |||

+ | :<math> | ||

+ | \frac{\partial M}{\partial y} = 1 = \frac{\partial N}{\partial t} | ||

+ | </math> | ||

+ | |||

+ | the equation is exact. Integrating M(t,y) with respect to t produces: | ||

+ | |||

+ | :<math> | ||

+ | \phi(t,y) = \int (3t+y) \, dt + F(y) = \frac{3t^2}{2} + ty + F(y) | ||

+ | </math> | ||

+ | |||

+ | and so: | ||

+ | |||

+ | :<math> | ||

+ | \frac{\partial \phi}{\partial y} = N(t,y) | ||

+ | </math> | ||

+ | |||

+ | :<math> | ||

+ | t + F'(y) = t | ||

+ | </math> | ||

+ | |||

+ | Therefore F'(y)=0 which means f(y) is a constant, a. Therefore the solution is: | ||

+ | :<math> | ||

+ | \phi(t,y) = \frac{3t^2}{2} + ty = \text{constant} | ||

+ | </math> | ||

− | where | + | where the constant a has been combined with the constant of the condition φ(t,y)=constant. |

− | + | ==References== | |

+ | {{reflist}} | ||

+ | ==See also== | ||

+ | *[[Differential equations]] | ||

+ | *[[Separation of variables]] | ||

+ | [[Category:Mathematics]] | ||

[[Category:Calculus]] | [[Category:Calculus]] | ||

[[Category:Differential Equations]] | [[Category:Differential Equations]] |

## Latest revision as of 08:35, 14 September 2017

An **exact differential equation** is a first order differential equation that has the form:

- or

and is also exact.^{[1]} This means that:

If a first order differential equation is exact, then a conservative field exists and a scalar potential can be defined.^{[2]}

## Solution

To find the solution of this equation, we consider the fact that the equation has the form of an exact differential of a function φ(y,t). The total differential of φ(y,t) is then:

Comparing to our original differential equation, and and also that this implies that dφ(y,t)=0 and φ(y,t)=constant. To solve the equation, we integrate both sides of the total differential with respect to one of the variables, say t:

where F(y) is a "constant of integration". (In reality, F(y) is a function, but when we differentiate it with respect t, we treat y as constant and so its derivative becomes zero.) In order to solve for F(y), we differentiate φ(y,t) with respect to the other variable, in this case y, and set the result equal to N(t,y).

## Non-Exact Case

If the two functions, M(t,y) and N(t,y), instead have the property:

then the equation is said to be "inexact" and the above method cannot be used directly to solve it. However, it can be used if a function, μ(t,y) can be found such that, when the differential equation is multiplied by μ(t,y), it becomes exact. Such a function is called an "integrating function".^{[2]} This would transform the condition for exactness to:

meaning that the integrating function can be found as:

This isn't particularly useful by itself as we still have to solve for μ as a function of two variables. Often, the integrating function can be expressed as only one of the two variables, meaning we would only need to solve an ordinary differential equation rather than a partial differential equation. Otherwise, the integrating factor can sometimes be guessed or another method of finding a solution can be employed.

## Example

Consider the equation:^{[1]}

Here we have M(t,y)=3t+y and N(t,y)=t. As:

the equation is exact. Integrating M(t,y) with respect to t produces:

and so:

Therefore F'(y)=0 which means f(y) is a constant, a. Therefore the solution is:

where the constant a has been combined with the constant of the condition φ(t,y)=constant.

## References

- ↑
^{1.0}^{1.1}K.F. Riley, M.P. Hobson, S.J. Bence,*Mathematical Methods for Physics and Engineering*, Cambridge University Press, 3^{rd}ed., 2006 - ↑
^{2.0}^{2.1}Exact Equations from mathworld.wolfram.com