We will say that the ODE where are functions of and , it is exact if , where indicates the partial derivative of with respect to and , the partial derivative of with respect to .
Example
An example of an exact ODE would be:
In effect, calling
we have .
It is necessary to observe that not all the ODEs are exact, for example
Example
This is not exact since calling , we have .
To solve this type of equations we need to find such that and and the solution is given by , where it is a constant.
To solve this type of equations we will proceed as follows.
We have:. We integrate on both sides of the equality with respect to :
Therefore we have the function we are looking for, except for the fact that we do not know , a function that only depends on . To find it, we derive the previous expression with respect to :
Also, we know that . Therefore equating terms we obtain a diifferentiable equation (that does not depend on , since the ODE is exact) and we can find .
Once we know , we add it to the expression of which, equated to a constant, is the solution of our ODE.
Example
Let's solve the ODE which we know to be exact.
We know that we are looking for a function so that . As we have already seen we have:
where is a function to be determined that only depends on . To find this function, let's impose that is a solution, that is .
Deriving with respect to we obtain a solution by equating it to a constant:
where is a constant that is not so important since we will also have a constant in the final solution.
And so, the solution to the ODE will be: