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 M and N have continuous first partial derivatives.

Check whether the equation is exact

Write the equation as M(x,y)+N(x,y)dydx=0. It’s exact if there’s a potential function Ψ whose partial derivatives satisfy Ψx=M and Ψy=N. On an open rectangle where M and N have continuous first partial derivatives, the test for exactness is

My=Nx

If the equation is exact, the chain rule makes the left side the derivative of Ψ(x,y(x)) along a solution. Since that derivative is zero, the potential stays constant. That gives the implicit solution Ψ(x,y)=C.

Find the potential function

x3y4+(x4y3+2y)dydx=0

Here M=x3y4 and N=x4y3+2y. Both My and Nx are 4x3y3. The coefficients are polynomials, so the test applies on any open rectangle.

Integrate M with respect to x, keeping y fixed. Any function of y has zero partial derivative with respect to x, so include a term h(y).

Ψ(x,y)=14x4y4+h(y)

Take the partial derivative with respect to y and match it to N.

Ψy=x4y3+h′(y)x4y3+h′(y)=x4y3+2yh′(y)=2y

We can take h(y)=y2 because any added constant will be absorbed into C. The potential now has the required x and y partial derivatives, so the solution is

14x4y4+y2=C

Use an initial value to determine C

If y(0)=2, the first term is zero at that point and the second term is 22=4. So the implicit solution through (0,2) is 14x4y4+y2=4.

If N is easier to integrate, you can start with it instead. Integrate with respect to y, add a function of x, and use Ψx=M to find that function.

For a review of the notation, see how differential equations describe a function and its derivatives.