Exact differential equations are firstorder differential equations of the form \(\displaystyle{ M(x,y)~dx + N(x,y)~dy = 0 }\) where \(M_y = N_x\). The requirement that \(M_y = N_x\) means the differential equation is what we call exact.
classification: this technique applies to firstorder differential equations 

\( M(x,y)~dx + N(x,y)~dy = 0 \) and \(M_y = N_x\) 
Here are some equivalent ways of writing this differential equation. 

\(\displaystyle{ M(x,y)~dx + N(x,y)~dy = 0 }\) 
\(\displaystyle{ M(x,y) + N(x,y)y' = 0 }\) 
\(\displaystyle{ M(x,y) + N(x,y)\frac{dy}{dx} = 0 }\) 
How To Solve
Let's go through an example, stepbystep to see how to solve these problems.
Example
Find the general solution to the exact differential equation \( 2xydx + (x^23)dy = 0 \).
Solution  First, let's pull out M and N and make sure this equation is exact.
M(x,y) is the coefficient of the \(dx\), so \( M(x,y) = 2xy \). 
N(x,y) is the coefficient of the \(dy\), so \( N(x,y) = x^23 \). 
To check that this is exact, we need to find \(M_y\) and \(N_x\) and compare them. 
\(M_y = 2x\) and \(N_x = 2x\). Since they are equal, this equation is exact. 
Now we calculate \(\int{M~dx} = \int{2xy~dx} = x^2 y + f(y) \). Notice that rather than having a constant of integration, we have a constant FUNCTION of integration. This is because when we take the partial derivative of f(y) with respect to x, we get zero.
Now we do a similar integration on N, except with respect to y this time.
\(\int{N~dy} = \int{x^23~dy} = x^2 y  3y + g(x)\) Again we need a FUNCTION of integration, not just a constant.
Now we combine the results, being careful not to duplicate anything. Let's look at the first result of integration, i.e. \( x^2 y + f(y) \). We will keep the \(x^2y\) term. Now we look at the other result. Notice we have another \(x^2y\) term, so we don't need that since we already have one. But we don't have \(3y\) yet, so we keep that to satisfy the \(f(y)\) requirement in the first result.
So now we have \(x^2y  3y\) and, since we assume our solution in the form \(F(x,y)=K\), we have \(x^2y3y=K\) as our final answer.
Here is a great video explaining the technique and showing a couple of examples.
video by Dr Chris Tisdell 

In the video above, he does a good job of emphasizing that, before you start actually solving the differential equation, you need to make sure it is exact by calculating \(M_y\) and \(N_x\) and checking that they are equal. Otherwise, this technique will take you down a path that leads nowhere. Most instructors will take off points if you don't show work that you did this. So check with your instructor. But even if they don't take off points, it could save you a lot of time on homework and exams if you do this and it takes only a few seconds. So it is a good investment of your time.
The main difference with these types of problems is that you need to remember the constant of integration is actually a function of integration. This occurs because we are taking the partial integral of one variable while holding the other variable constant. This concept is covered in detail on the multivariable partial integration page.
Here is another video that is very similar to the first one, with a few different examples. But watching this one also, will help you understand this technique better.
video by Dr Chris Tisdell 

Integrating Factors
If we have a firstorder equation of the form \( M(x,y)~dx + N(x,y)~dy = 0 \) but \(M_y \neq N_x\), i.e. the equation is not exact (also called inexact), we may be able to convert the equation to exact using integrating factors. You first came across integrating factors when you studied linear, firstorder equations. This technique also uses an integrating factor but it is calculated differently.
There are actually two possible integrating factors that convert the differential equation to an exact equation.
\(\displaystyle{ \mu_1 = \exp \int{ \frac{M_y  N_x}{N} dx } }\) 

\(\displaystyle{ \mu_2 = \exp \int{ \frac{M_y  N_x}{M} dy } }\) 
The trick comes in when you are asked to evaluate these integrals. The evaluation is not always possible and can get quite messy. Also, one integral may yield an integrating factor that is quite complicated while the other one may be much easier to use.
Once we have an integrating factor, we multiply it into the entire differential equation. The result should be an exact equation. (Make sure to check that it is before you finish the problem.) You can then use the technique above to get a solution. Here are a couple of videos with an example.
In this first video, he starts an indepth example where he calculates an integrating factor for a specific inexact equation. He finishes the example in the next video.
video by Khan Academy 

Here is the completion of the example he starts in the previous video. He calculated an integrating factor in the above video and he finishes the problem, which is now exact, in this video.
video by Khan Academy 

Okay, time for some practice problems.
Practice
Unless otherwise instructed, solve these differential equations. Make sure to check that the equation is exact before attempting to solve. If the equation is not exact, calculate an integrating factor and use it make the equation exact. If an initial condition is given, find the explicit solution also. Give your answers in exact form.
Basic
\( 2xy~dx + (x^2+3y^2)~dy = 0 \)
Problem Statement 

\( 2xy~dx + (x^2+3y^2)~dy = 0 \)
Solution 

video by Dr Chris Tisdell 

close solution

Log in to rate this practice problem and to see it's current rating. 

\( 2xy~dx + x^2~dy = 0 \)
Problem Statement 

\( 2xy~dx + x^2~dy = 0 \)
Solution 

video by Dr Chris Tisdell 

close solution

Log in to rate this practice problem and to see it's current rating. 

\( 2xy~dx + (x^21)~dy = 0 \)
Problem Statement 

\( 2xy~dx + (x^21)~dy = 0 \)
Final Answer 

\( x^2y  y = C \)
Problem Statement 

\( 2xy~dx + (x^21)~dy = 0 \)
Solution 

video by MIP4U 

Final Answer 

\( x^2y  y = C \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

\( [\cos(x)\sin(x)xy^2]~dx + y(1x^2)~dy = 0 \)
Problem Statement 

\( [\cos(x)\sin(x)xy^2]~dx + y(1x^2)~dy = 0 \)
Final Answer 

\( (1/2)[y^2(1x^2) + sin^2(x)] = C \)
Problem Statement 

\( [\cos(x)\sin(x)xy^2]~dx + y(1x^2)~dy = 0 \)
Solution 

video by MIP4U 

Final Answer 

\( (1/2)[y^2(1x^2) + sin^2(x)] = C \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

\( (y\cos(x)+2xe^y) + (\sin(x)+x^2e^y1)y' = 0 \)
Problem Statement 

\( (y\cos(x)+2xe^y) + (\sin(x)+x^2e^y1)y' = 0 \)
Final Answer 

\( y\sin(x) + x^2e^y  y = C \)
Problem Statement 

\( (y\cos(x)+2xe^y) + (\sin(x)+x^2e^y1)y' = 0 \)
Solution 

video by PatrickJMT 

Final Answer 

\( y\sin(x) + x^2e^y  y = C \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

\( (2xy+1) + (x^2+3y^2)y' = 0 \)
Problem Statement 

\( (2xy+1) + (x^2+3y^2)y' = 0 \)
Solution 

video by Dr Chris Tisdell 

close solution

Log in to rate this practice problem and to see it's current rating. 

\( (e^{x+y}2x)dx + (e^{x+y}+2y)dy = 0 \), \(y(0)=0\)
Problem Statement 

\( (e^{x+y}2x)dx + (e^{x+y}+2y)dy = 0 \), \(y(0)=0\)
Final Answer 

\( 1 = e^{x+y}  x^2 + y^2 \)
Problem Statement 

\( (e^{x+y}2x)dx + (e^{x+y}+2y)dy = 0 \), \(y(0)=0\)
Solution 

video by Krista King Math 

Final Answer 

\( 1 = e^{x+y}  x^2 + y^2 \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

\( xy^3dx + (x^2y^2+1)dy = 0 \)
Problem Statement 

Solve \( xy^3dx + (x^2y^2+1)dy = 0 \) using exact integrating factors, if necessary.
Final Answer 

\(\displaystyle{ \frac{1}{2}x^2y^2 + \lny = C }\)
Problem Statement 

Solve \( xy^3dx + (x^2y^2+1)dy = 0 \) using exact integrating factors, if necessary.
Solution 

He makes several mistakes in his solution and answer. First, when calculating the integrating factor, he needs \(dy\) in the integral. Second, since we can't tell if \(y\) is always positive, he needs absolute value signs on his natural log term.
video by Engineer4Free 

Final Answer 

\(\displaystyle{ \frac{1}{2}x^2y^2 + \lny = C }\) 
close solution

Log in to rate this practice problem and to see it's current rating. 

\( 2x + 3 + (2y2)y' = 0 \)
Problem Statement 

\( 2x + 3 + (2y2)y' = 0 \)
Final Answer 

\( x^2 + 3x + y^2  2y = C \)
Problem Statement 

\( 2x + 3 + (2y2)y' = 0 \)
Solution 

video by Khan Academy 

Final Answer 

\( x^2 + 3x + y^2  2y = C \) 
close solution

Log in to rate this practice problem and to see it's current rating. 

Intermediate
\( (3x+y+1)~dx + (3y+x+1)~dy = 0 \)
Problem Statement 

\( (3x+y+1)~dx + (3y+x+1)~dy = 0 \)
Solution 

video by Dr Chris Tisdell 

close solution

Log in to rate this practice problem and to see it's current rating. 

\( (2x+y+1)~dx + (2y+x+1)~dy = 0 \)
Problem Statement 

\( (2x+y+1)~dx + (2y+x+1)~dy = 0 \)
Solution 

video by Dr Chris Tisdell 

close solution

Log in to rate this practice problem and to see it's current rating. 

\(\displaystyle{ (2xy^{1}+2ye^{2x}1) + (e^{2x}+y^2x^2y^{2})\frac{dy}{dx} = 0 }\)
Problem Statement 

\(\displaystyle{ (2xy^{1}+2ye^{2x}1) + (e^{2x}+y^2x^2y^{2})\frac{dy}{dx} = 0 }\)
Solution 

video by Krista King Math 

close solution

Log in to rate this practice problem and to see it's current rating. 

\( (3x^22xy+2)~dx + (6y^2x^2+3)~dy = 0 \)
Problem Statement 

\( (3x^22xy+2)~dx + (6y^2x^2+3)~dy = 0 \)
Solution 

video by Khan Academy 

close solution

Log in to rate this practice problem and to see it's current rating. 

You CAN Ace Differential Equations
To bookmark this page and practice problems, log in to your account or set up a free account.
Single Variable Calculus 

MultiVariable Calculus 

Differential Equations 

Precalculus 

Do you have a practice problem number but do not know on which page it is found? If so, enter the number below and click 'page' to go to the page on which it is found or click 'practice' to be taken to the practice problem.
 
free ideas to save on books 

Help Keep 17Calculus Free 

The 17Calculus and 17Precalculus iOS and Android apps are no longer available for download. If you are still using a previously downloaded app, your app will be available until the end of 2020, after which the information may no longer be available. However, do not despair. All the information (and more) is now available on 17calculus.com for free. 
Partial Differential Equations for Scientists and Engineers (Dover Books on Mathematics) 

Save Up To 50% Off SwissGear Backpacks Plus Free Shipping Over $49 at eBags.com! 
Practice Instructions
Unless otherwise instructed, solve these differential equations. Make sure to check that the equation is exact before attempting to solve. If the equation is not exact, calculate an integrating factor and use it make the equation exact. If an initial condition is given, find the explicit solution also. Give your answers in exact form.