Exact Differential Equations
Equation that involves a differential co-efficient is called a Differential equation. Let's take the equation P(x, y)dx + Q(x, y)dy = 0. This equation is called the exact differential equation if, ∂P/∂y = ∂Q/∂y.
In this article, we have covered in detail about exact differential equation.
Table of Content
Exact Differential Equation Definition
A differential equation Mdx + Ndy = 0 is said to be an exact differential equation, if ∂M/∂y = ∂N/∂x

Testing for Exactness
Rake functions P(x, y) and Q(x, y) having the continuous partial derivatives in a particular domain, then the differential equation is exact iff,
∂P/∂y = ∂Q/∂y
Solving Exact Differential Equations
We can solve exact differential equation by following the steps added below as:
Step 1: Given differential equation can be written as Mdx + Ndy = 0 form considering as equation 1
Step 2: Check ∂M/∂y = ∂N/∂x
Step 3: General solution of equation 1 is
∫Mdx +∫Ndy =C
(y= constant) and (do not contain x)
Solving Exact Differntial Equations by Integrating factor
If Mdx + Ndy = 0 is a homogeneous differential equation and Mdx + Ndy is not equal to 0 then this equation can be solve by multiplying the differential equation with integrating factor and the integrating factor for the same is, 1/(Mx+Ny) for equation of the form Mdx + Ndy = 0.
Example: Solve exact differential equation x2ydx - (x3+y3)dy = 0
Solution:
Comparing with Mdx + Ndy = 0
M = x2y, and N = -(x3+y3)
∂M/∂y = x2 and ∂N/∂x = -3x2
So here ∂M/∂y is not equal to ∂N/∂x
Here, given equation is not exact differential equation
Considering Integrating factor
Integrating Factor = 1/Mx + Ny
=1/(x2y)x+(-x3-y3)y
= 1/(x3y-x3y-y4)=-1/y4
=-1/y4 is an integrating factor
Multiplying the equation with Integrating factor
=(-x2y/y4)dx+(x3+y3/y4)dy=0
=(-x2/y3)dx+(x3/y4+1/y)dy=0
Comparing with M1dx + N1dy= 0
M1= -x2/y2 and N1 = x3/y4+1/y
Therefore ∂M1/∂y = ∂N1/∂x
Finding ∫M1dx +∫N1dy =C
∫(-x2/y3)dx+(x3/y4+1/y)dy=C
-x3/3y3+logy = C
It is the solution for given equation.
Exact Differential Equation Examples
Examples of exact differential equations are:
- (2xy + y3)dx + (x2 + 3xy2)dy = 0
- (3x2y - y3)dx + (x3 - 3xy2)dy = 0
- (2xy + y2)dx + (x2 + 2xy)dy = 0
- (x2cosy - ysinx)dx + (xsiny + ycosx)dy = 0
Read More:
Exact Differential Equation Problems
Problem 1: Solve (hx + by + f)dy + (ax + hy + g)dx = 0
Solution:
Given equation is (hx+by+f)dy+(ax+hy+g)dx=0....(1)
Step 1: Comparing with Mdx + Ndy = 0
M= ax+hy+g and N = hx+by+f
Step 2: Check ∂M/∂y = ∂N/∂x
∂M/∂y = h
∂N/∂x = h
Therefore ∂M/∂y = ∂N/∂x
Step 3: The general solution of equation 1 is
∫Mdx +∫Ndy =C
(y= constant) and (do not contain x)
=∫(ax+hy+g)dy+∫(hx+by+f)dx=C
=ax2/2+hy∫dx+g∫dx+0+by2/2+f∫dy=C
=ax2/2+hyx+gx+by2/2+fy=C (here ∫dx= x, ∫dy = y)
Therefore it is the solution for given differential equation.
Problem 2: Solve (y2-2xy)dx-(x2-2xy)dy=0
Solution:
Given equation is (y2-2xy)dx-(x2-2xy)dy=0....(1)
Step 1: Comparing with Mdx + Ndy = 0
M= y2-2xy and N = -x2+2xy
Step 2: Check ∂M/∂y = ∂N/∂x
∂M/∂y = 2y-2x
∂N/∂x = -2x+2y
Therefore ∂M/∂y = ∂N/∂x
Step 3: The general solution of equation 1 is
∫Mdx +∫Ndy =C
(y= constant) and (do not contain x)
=∫(y2-2xy)dx+∫(-x2+2xy)dy=C
=y2∫dx-2y∫xdx+0=C
=xy2-x2y=C
Therefore it is a solution for a given differential equation.
Problem 3: Solve (y(1+1/x)+cosy)dx+(x+logx-siny)dy=0
Solution:
Given equation is (y(1+1/x)+cosy)dx+(x+logx-siny)dy=0
Step 1: Comparing with Mdx + Ndy = 0
M= y+y/x+cosy and N = x+logx-xsiny
Step 2: Check ∂M/∂y = ∂N/∂x
∂M/∂y = 1+1/x-siny
∂N/∂x = 1+1/x-siny
Therefore ∂M/∂y = ∂N/∂x
Step 3: The general solution of equation 1 is
∫Mdx +∫Ndy =C
(y= constant) and (do not contain x)
∫(y+y/x)+cosy)dx+∫(x+logx-siny)dy=C
=xy+ylogx+xcosy+0=C
=y(x+logx)+xcosy=C
Therefore it is a solution for a given differential equation.
Problem 4: Solve (x2-4xy-2y2)dx+(y2-4xy-2x2)dy=0
Solution:
Given equation is (x2-4xy-2y2)dx+(y2-4xy-2x2)dy=0
Step 1: Comparing with Mdx + Ndy = 0
M= x2-4xy-2y2 and N = y2-4xy-2x2
Step 2: Check ∂M/∂y = ∂N/∂x
∂M/∂y = -4x-4y
∂N/∂x = -4x-4y
Therefore ∂M/∂y = ∂N/∂x
Step 3: The general solution of equation 1 is
Mdx +∫Ndy =C
(y= constant) and (do not contain x)
=∫(x2-4xy-2y2)dx+∫(y2-4xy-2x2)dy=C
=x3/3-4yx2/2-2y2x+y3/3=C
=x3/3-2x2y-2xy2+y3/3=C
Therefore it is a solution for given differential equation.
Problem 5: Solve (2xy+y-tany)dx+(x2-xtan2y+sec2y)dy=0
Solution:
Given equation is (2xy+y-tany)dx+(x2-xtan2y+sec2y)dy=0
Step 1: Comparing with Mdx + Ndy = 0
M= 2xy+y-tany and N = x2-xtan2y
Step 2: Check ∂M/∂y = ∂N/∂x
∂M/∂y = 2x+1-sec2y = 2x-tan2y
∂N/∂x = 2x-tan2y
Therefore ∂M/∂y = ∂N/∂x
Step 3: The general solution of equation 1 is
∫Mdx +∫Ndy =C
(y= constant) and (do not contain x)
=∫(2xy+y-tany)dx+∫(x2-xtan2y+sec2y)dy=C
=2y∫xdx+y∫dx-tany∫dx+0+0+∫sec2ydy=C
=2yx2/2+xy-xtany+tany=C
=xy(1+x)+tany(1-x)=C
Therefore it is a solution for a given differential equation.