How to solve an exact differential equation step by step
With an exact differential equation, the two terms on the left come from differentiating a single function. We’ll check whether that’s true, then recover the function one partial derivative at a time.
The video uses the equality of mixed partial derivatives. That equality is guaranteed when the second partial derivatives are continuous. For the test below, use a rectangle where and have continuous first partial derivatives.
Check whether the equation is exact
Write the equation as . It’s exact if there’s a potential function whose partial derivatives satisfy and . On an open rectangle where and have continuous first partial derivatives, the test for exactness is
If the equation is exact, the chain rule makes the left side the derivative of along a solution. Since that derivative is zero, the potential stays constant. That gives the implicit solution .
Find the potential function
Here and . Both and are . The coefficients are polynomials, so the test applies on any open rectangle.
Integrate with respect to , keeping fixed. Any function of has zero partial derivative with respect to , so include a term .
Take the partial derivative with respect to and match it to .
We can take because any added constant will be absorbed into . The potential now has the required and partial derivatives, so the solution is
Use an initial value to determine C
If , the first term is zero at that point and the second term is . So the implicit solution through is .
If is easier to integrate, you can start with it instead. Integrate with respect to , add a function of , and use to find that function.
For a review of the notation, see how differential equations describe a function and its derivatives.