Download Careers360 App
Exact Differential Equation

Exact Differential Equation

Edited By Komal Miglani | Updated on Jul 02, 2025 06:37 PM IST

Let's begin by understanding what differential equations are. A differential equation is an equation involving one or more terms and the derivatives of one dependent variable with respect to the other independent variable. An exact differential equation is a specific type of ordinary differential equation commonly utilized in physics and engineering. Exact differential equations are widely used in thermodynamics for calculating internal energy and also used in electrostatics for calculating electric potential.

This Story also Contains
  1. What is a Differential Equation?
  2. Exact Differential Equation
  3. Exact Differential Equation Integrating Factor
  4. How to Solve Exact Differential Equations
  5. Solved Examples Based On Exact Differential Equations
Exact Differential Equation
Exact Differential Equation

In this article, we will cover the Exact differential equations. This concept falls under the broader category of differential equations. It is not only essential for board exams but also for competitive exams like the Joint Entrance Examination (JEE Main), and other entrance exams such as SRMJEE, BITSAT, WBJEE, BCECE, and more. Over the last ten years of the JEE Main exam (from 2013 to 2023), a total of five questions have been asked on this concept, including one in 2019, one in 2020, two in 2021, and one in 2022.

What is a Differential Equation?

A differential equation is an equation involving one or more terms and the derivatives of one dependent variable with respect to the other independent variable.

Differential equation: $\frac{d y}{d x}=f(x)$
Where " $x$ " is an independent variable and " $y$ " is a dependent variable

Example of differential equation: $x \frac{d y}{d x}+2 y=0$
The above-written equation involves variables as well as the derivative of the dependent variable $\mathrm{y}$ with respect to the independent variable $\mathrm{x}$. Therefore, it is a differential equation.
The following relations are some of the examples of differential equations:
(i) $\frac{d y}{d x}=\sin 2 x+\cos x$
(ii) $\mathrm{k} \frac{\mathrm{d}^2 \mathrm{y}}{\mathrm{dx}^2}=\left[1+\left(\frac{\mathrm{dy}}{\mathrm{dx}}\right)^2\right]^{3 / 2}$

Exact Differential Equation

The equation $\mathrm{A}(\mathrm{x}, \mathrm{y}) \mathrm{dx}+\mathrm{B}(\mathrm{x}, \mathrm{y}) \mathrm{dy}=0$ is an exact differential equation if there exists a function of two variables $x$ and $y$ having continuous partial derivatives such that the exact differential equation definition is separated as follows

$
u_x(x, y)=A(x, y) \text { and } u_y(x, y)=B(x, y)
$

General Form

The general form of the exact differential equation is $A(x, y) d x+B(x, y) d y=0$ where A and B are the polynomial functions in terms of x and y.

Sometimes some differential equations can be solved using observation only. In such equations, we can get a differential of a function of x and y.

The equation $A(x, y) d x+B(x, y) d y=0$ is an exact differential equation if there exists a function of two variables $x$ and $y$ having continuous partial derivatives such that the exact differential equation definition is separated as follows $u_x(x, y)=A(x, y)$ and $u_y(x, y)=B(x, y)$

General Form
Sometimes some differential equations can be solved using observation only. In such equations, we can get a differential of a function of x and y .

Exact Differential Equation Integrating Factor

If the differential equation $A(x, y) d x+B(x, y) d y=0$ is not exact, it is possible to make it exact by multiplying using a relevant factor $\mathrm{u}(\mathrm{x}, \mathrm{y})$ which is known as integrating factor for the given differential equation.

Consider an example,

$
2 y d x+x d y=0
$

Now check it whether the given differential equation is exact using testing for exactness.
The given differential equation is not exact.
In order to convert it into the exact differential equation, multiply by the integrating factor $u(x, y)=x$, the differential equation becomes,

$
2 x y d x+x^2 d y=0
$

The above resultant equation is an exact differential equation because the left side of the equation is a total differential of $x^2 y$.

Sometimes it is difficult to find the integrating factor. But, there are two classes of differential equations whose integrating factor may be found easily. Those equations have the integrating factor having the functions of either $x$ alone or $y$ alone.

When you consider the differential equation $A(x, y) d x+B(x, y) d y=0$, the two cases involved are:

Case 1: If $[1 / B(x, y)]\left[A_y(x, y)-B_x(x, y)\right]=h(x)$, which is a function of $x$ alone, then $e^{\int h(x) d x}$ is an integrating factor.

Case 2: If $[1 / A(x, y)]\left[B_x(x, y)-A_y(x, y)\right]=k(y)$, which is a function of $y$ alone, then $e^{j k(y) d y}$ is an integrating factor.

How to Solve Exact Differential Equations

The following steps explain how to solve the exact differential equation:

Step 1: The first step to solving the exact differential equation is to make sure the given differential equation is exact.

$
\frac{\partial Q}{\partial x}=\frac{\partial P}{\partial y}
$

Step 2: Write the system of two differential equations that defines the function $u(x, y)$. That is

$
\begin{aligned}
& \frac{\partial u}{\partial x}=P(x, y) \\
& \frac{\partial u}{\partial y}=Q(x, y)
\end{aligned}
$

Step 3: Integrating the first equation over the variable $x$, we get

$
u(x, y)=\int P(x, y) d x+\phi(y)
$

Step 4: Differentiating concerning $y$, substitute the function $u(x, y)$ in the second equation

$
\frac{\partial u}{\partial x}=\frac{\partial}{\partial x}\left[\int P(x, y) d x+\phi(y)\right]=Q(x, y)
$

Step 5: We can find the function $\varphi(y)$ by integrating the last expression so that the function $\mathrm{u}(\mathrm{x}, \mathrm{y})$ becomes

$
u(x, y)=\int P(x, y) d x+\phi(y)
$

Step 6: Finally, the general solution of the exact differential equation is given by

$
u(x, y)=C
$

Illustration 1 :

Solution of the differential equation $2 x y d x+\left(x^2+3 y^2\right) d y=0$ is Let us first separate terms containing only x with dx and terms containing only y with dy

$
2 x y d x+x^2 d y+3 y^2 d y=0
$

Here first two terms have both $x$ and $y$. We can make an observation that first two terms are the differentiation of $x^2 y$. Hence we can write this equation as

$
d\left(x^2 y\right)+3 y^2 d y=0
$

Integrating this, we get

$
x^2 y+y^3+c=0
$
This is the solution of this equation

The presence of the following exact differentials should be observed in a given differential equation

1. $x d y+y d x=d(x y)$
2. $x d x+y d y=\frac{1}{2} d\left(x^2+y^2\right)$
3. $\frac{x d y-y d x}{x^2}=d\left(\frac{y}{x}\right)$
4. $\frac{y d x-x d y}{y^2}=d\left(\frac{x}{y}\right)$
5. $\frac{x d y-y d x}{x y}=\frac{d y}{y}-\frac{d x}{x}=d\left[\log \left(\frac{y}{x}\right)\right]$
6. $\frac{y d x-x d y}{x y}=d\left[\log \left(\frac{x}{y}\right)\right]$

Illustration 2:

$
\frac{x d y-y d x}{x^2+y^2}+e^x d x=0
$

Observe that

$
\frac{x d y-y d x}{x^2+y^2}=\frac{\frac{x d y-y d x}{x^2}}{1+\frac{y^2}{x^2}}=\frac{d\left(\frac{y}{x}\right)}{1+\left(\frac{y}{x}\right)^2}=d\left[\tan ^{-1}\left(\frac{y}{x}\right)\right]
$

So the equation is

$
d\left[\tan ^{-1} \frac{y}{x}\right]+e^x d x=0
$
Integrating

$\tan ^{-1} \frac{y}{x}+e^x+c=0$

Recommended Video Based on Exact Differential Equations


Solved Examples Based On Exact Differential Equations

Example 1: The solution of the differential equation dy/dx = -1 is

Solution:

$
\begin{aligned}
& d(x+y)=d x+d y \\
& \frac{d y}{d x}=-1 \Rightarrow d x+d y=0 \Rightarrow d(x+y)=0 \\
& \Rightarrow \int d(x+y)=C \Rightarrow(x+y)=C
\end{aligned}
$

Hence, the answer is $\mathrm{x}+\mathrm{y}=\mathrm{C}$.
Example 2: The solution of a differential equation $\frac{d y}{d x}=\frac{-\cos x}{\cos y}$ is
Solution:
As we have learned
The general form of Variable Separation -

$
\begin{aligned}
& d(x+y)=d x+d y \\
& \cos x d x+\cos y d y=0 \text { is also a linear differential eq } \\
& d \sin x+d(\sin y)=0 \Rightarrow d(\sin x+\sin y)=0 \\
& \int d(\sin x+\sin y)=C \Rightarrow \sin x+\sin y=C
\end{aligned}
$


$
\cos x d x+\cos y d y=0 \text { is also a linear differential equation that we can write }
$

Hence, the answer is $\sin x+\sin y=C$..

Example 3: Solution of differential equation $\sin x \cos y d y+\sin y \cos x d x$
Solution:
As we have learned
The general form of Variable Separation -

$
d(x y)=y d x+x d y
$

The equation can be written as

$
\begin{aligned}
& (\sin x) d(\sin y)+(\sin y) d(\sin x)=0 \Rightarrow d(\sin x \cdot \sin y)=0 \\
& \Rightarrow \int d(\sin x \cdot \sin y)=C \Rightarrow \sin x \cdot \sin y=C
\end{aligned}
$

Hence, the answer is $\sin x \cdot \sin y=C$.

Example 4: The solution of the differential equation $(2 x y-\sin x) d x+\left(\left(x^2\right)-\cos y\right) d y=0$ is

Solution:
As we have learned

The general form of Variable Separation -

$
d(x y)=y d x+x d y
$

The equation can be written as

$
\begin{aligned}
& 2 x y d x-\sin x d x+x^2 d y-\cos y d y=0 \\
& 2 x y d x+x^2 d y-\sin x d x-\cos y d y=0 \\
& \Rightarrow y(2 x) d x+x^2 d y-\sin x d x-\cos y d y=0 \\
& \Rightarrow d\left(y \cdot x^2\right)+d(\cos x)-d(\sin y)=0 \\
& \Rightarrow \int d\left(y \cdot x^2\right)+\int d(\cos x)-\int d(\sin y)=C \\
& \Rightarrow x^2 y+\cos x-\sin y=C
\end{aligned}
$

Hence, the answer is $x^2 y+\cos x-\sin y=C$

Example 5: The solution of the differential equation $y d x / d y=x+2 \sqrt{ } y^2-x^2$ is
Solution:
As we have learned
The general form of Variable Separation -

$
d\left(\frac{x}{y}\right)=\frac{y d x-x d y}{y^2}
$

The equation can be written as

$
\begin{aligned}
& y d x=x d y+2 \sqrt{y^2-x^2} d y \\
& \Rightarrow y d x-x d y=2 \sqrt{y^2-x^2} d y \\
& \Rightarrow y d x-x d y=2 y \sqrt{1-x^2 / y^2} d y
\end{aligned}
$

dividing both sides by $y^2$ we get

$
\begin{aligned}
& \frac{y d x-x d y}{y^2}=\frac{2 \sqrt{1-(x / y)^2}}{y} d y \\
& \Rightarrow \frac{d(x / y)}{\sqrt{1-(x / y)^2}}=2 / y d y
\end{aligned}
$

on integrating, we get

$
\sin ^{-1} x / y=2 \ln |y|+C
$
Hence, the answer is $\sin ^{-1} x / y=2 \ln |y|+C$ .

Frequently Asked Questions (FAQs)

1. What is a differential equation?

 It describes the rate of change in quantity and is used in science, engineering, business, etc. It can model many phenomena in different fields.

2. What is an exact differential equation?

An exact differential equation is a type of first-order differential equation that is solved with the help of integration.

3. What is an exact differential equation?
An exact differential equation is a special type of first-order differential equation that can be written as M(x,y)dx + N(x,y)dy = 0, where M and N are functions of x and y. The key characteristic is that this equation represents the total differential of some function f(x,y).
4. What is the order of the exact differential equations?

Exact differential equations are generally first order.

5. How to solve exact differential equations?

 Exact differential equations are generally solved by observations and after this, we integrate them.

6. Write some applications of exact differential equations.

 Exact differential equations are widely used in thermodynamics, electrostatics, and fluid mechanics.

 

7. What is an integrating factor and when is it used?
An integrating factor is a function that, when multiplied by a non-exact differential equation, makes it exact. It's used when a differential equation is not initially exact but can be made exact through multiplication by a suitable function.
8. Can all first-order differential equations be made exact?
No, not all first-order differential equations can be made exact. However, many non-exact equations can be transformed into exact equations using an integrating factor. The existence of an integrating factor depends on the specific form of the equation.
9. What is the relationship between exact differential equations and the total differential in calculus?
An exact differential equation M(x,y)dx + N(x,y)dy = 0 is equivalent to the total differential df = 0, where f is the potential function. This connection highlights why exact equations are called "exact" - they represent the exact differential of some function.
10. What is the geometric interpretation of an exact differential equation?
Geometrically, the solution to an exact differential equation f(x,y) = C represents a family of level curves in the xy-plane. Each curve corresponds to a different value of C and represents a solution to the differential equation.
11. Can a differential equation be exact even if it's not in the standard form M(x,y)dx + N(x,y)dy = 0?
Yes, a differential equation can be exact even if it's not initially written in the standard form. It may require rearrangement or multiplication by a constant to bring it into the form M(x,y)dx + N(x,y)dy = 0 before checking for exactness.
12. How can you determine if a differential equation is exact?
To determine if a differential equation M(x,y)dx + N(x,y)dy = 0 is exact, check if the partial derivatives of M with respect to y and N with respect to x are equal: ∂M/∂y = ∂N/∂x. If this condition is satisfied, the equation is exact.
13. What is the significance of the function f(x,y) in an exact differential equation?
The function f(x,y) is called the potential function. Its existence is what makes the equation exact. The solution to the exact differential equation is f(x,y) = C, where C is a constant.
14. How do you solve an exact differential equation?
To solve an exact differential equation:
15. How does the concept of exactness relate to conservative vector fields?
Exact differential equations are closely related to conservative vector fields in multivariable calculus. If F = (M, N) is a conservative vector field, then Mdx + Ndy = 0 is an exact differential equation. The potential function f(x,y) corresponds to the scalar potential of the vector field.
16. What are some real-world applications where exact differential equations naturally arise?
Exact differential equations often appear in physics and engineering, particularly in:
17. How does the concept of exactness extend to higher-order differential equations?
The concept of exactness primarily applies to first-order equations. However, some higher-order equations can be reduced to systems of first-order equations, where exactness might be applicable. In general, exactness is less commonly used for higher-order equations.
18. Can an exact differential equation have a unique solution without an initial condition?
An exact differential equation without an initial condition will have a general solution f(x,y) = C, representing a family of solutions. A unique solution requires an initial condition to determine the specific value of C.
19. How does the concept of exactness relate to the existence and uniqueness theorem for differential equations?
Exactness ensures the existence of a solution (the potential function). However, uniqueness still requires initial conditions. The existence and uniqueness theorem provides broader conditions for solution existence and uniqueness, while exactness offers a specific method for finding solutions when applicable.
20. How does the method for solving exact differential equations differ from the method for separable equations?
While both methods aim to find a general solution, they differ in approach:
21. Can an exact differential equation have singular solutions?
Generally, exact differential equations do not have singular solutions. The solution f(x,y) = C represents a family of smooth curves. However, in some cases, the potential function f(x,y) might have singularities that could lead to interesting behavior in the solution curves.
22. How do you handle exact differential equations where M and N are functions of more than two variables?
For equations with more than two variables, the concept of exactness extends to partial differential equations. The condition for exactness becomes more complex, involving multiple partial derivative equalities. The solution process is similar but involves multivariable calculus techniques.
23. Can the concept of exactness be applied to systems of differential equations?
The concept of exactness can be extended to systems of differential equations, but it becomes more complex. For a system to be exact, it must satisfy certain integrability conditions that ensure the existence of a potential function vector. The solution process involves finding this vector potential.
24. What is the significance of the Poincaré lemma in the context of exact differential equations?
The Poincaré lemma states that on a simply connected domain, every closed form is exact. In the context of differential equations, this means that if
25. What is the significance of the condition ∂M/∂y = ∂N/∂x in exact differential equations?
The condition ∂M/∂y = ∂N/∂x ensures that the differential equation represents the total differential of some function. It guarantees that the integration process will yield a consistent potential function f(x,y), regardless of the order of integration.
26. How does the method of solving exact differential equations relate to line integrals?
Solving an exact differential equation is equivalent to evaluating a line integral that is independent of path. The condition for exactness (∂M/∂y = ∂N/∂x) is the same as the condition for a vector field to be conservative, which ensures path independence in line integrals.
27. What happens if ∂M/∂y ≠ ∂N/∂x but the difference is a function of x or y only?
If ∂M/∂y - ∂N/∂x is a function of x only or y only, the equation is not exact but can be made exact by using an integrating factor. This situation often leads to a straightforward method for finding the integrating factor.
28. How does the process of solving exact differential equations compare to using integrating factors?
Solving exact equations involves directly finding a potential function. Using integrating factors is a two-step process: first finding a factor to make the equation exact, then solving the resulting exact equation. Integrating factors extend the applicability of the exact equation method.
29. Can a differential equation be partially exact, and what does this mean?
A differential equation is either exact or not exact; there's no "partially exact" state. However, some non-exact equations might be close to exact, requiring only a simple integrating factor to become exact. This situation might be informally referred to as "partially exact."
30. How do you handle exact differential equations with variable coefficients?
Exact differential equations with variable coefficients are solved using the same method as those with constant coefficients. The key is to correctly perform the partial differentiations and integrations, paying careful attention to the variable nature of the coefficients.
31. What is the relationship between exact differential equations and perfect differentials in thermodynamics?
In thermodynamics, a perfect differential (like dU for internal energy) is analogous to an exact differential in mathematics. Both represent state functions where the change depends only on the initial and final states, not the path taken. This property is crucial in thermodynamic calculations.
32. How does the concept of exactness relate to conservation laws in physics?
Exact differential equations often represent conservation laws in physics. The potential function f(x,y) typically corresponds to a conserved quantity (like energy or momentum). The exactness condition ensures that the change in this quantity depends only on the endpoints, not the path taken.
33. Can an exact differential equation have a solution that's not expressible in closed form?
While the general solution to an exact equation is f(x,y) = C, finding an explicit form for f(x,y) might not always be possible in terms of elementary functions. In such cases, the solution might involve implicit functions or special functions.
34. How do you approach an exact differential equation where one of the functions M or N is zero?
If either M or N is zero, the equation simplifies significantly. For example, if N(x,y) = 0, the equation becomes M(x,y)dx = 0. This can be solved by direct integration with respect to x, treating y as a constant.
35. What is the significance of the curl in determining whether a differential equation is exact?
In vector calculus, the curl of a vector field F = (M, N) being zero (curl F = ∂N/∂x - ∂M/∂y = 0) is equivalent to the condition for the differential equation Mdx + Ndy = 0 being exact. This connection highlights the relationship between exactness and conservative vector fields.
36. How does the method for solving exact differential equations extend to partial differential equations?
For partial differential equations (PDEs), the concept of exactness extends to finding a potential function that satisfies multiple partial differential conditions. The solution process involves ensuring consistency across all variables and can lead to more complex integration techniques.
37. Can an exact differential equation have a solution that exhibits chaotic behavior?
Exact differential equations typically yield well-behaved solutions due to the existence of a potential function. Chaotic behavior is more commonly associated with nonlinear systems and higher-order equations. However, the potential function itself could have complex level curves leading to intricate solution behavior.
38. How do you handle exact differential equations with piecewise-defined functions?
For piecewise-defined functions, solve the equation separately in each region where M and N are continuous. Ensure that the solutions match at the boundaries between regions. This may result in a piecewise-defined solution or additional conditions at the transition points.
39. What is the connection between exact differential equations and gradient vector fields?
An exact differential equation Mdx + Ndy = 0 is equivalent to the equation ∇f = (M, N), where f is the potential function. This shows that (M, N) is the gradient of f, connecting exact equations to gradient vector fields in multivariable calculus.
40. How does the concept of exactness relate to the idea of path independence in physics?
Exactness in differential equations corresponds to path independence in physical processes. In a conservative system (represented by an exact equation), the work done or energy change depends only on the initial and final states, not the path taken between them.
41. Can an exact differential equation have multiple distinct potential functions?
While an exact differential equation has a unique general solution f(x,y) = C, the potential function f(x,y) is only unique up to an additive constant. Any function F(x,y) = f(x,y) + K, where K is a constant, will also satisfy the equation.
42. How do you approach an exact differential equation where M and N have singularities?
When M and N have singularities, carefully analyze the behavior near these points. The solution might not be defined or might have special properties at these singularities. You may need to solve the equation piecewise, excluding the singular points, and then analyze the limiting behavior.
43. What is the relationship between exact differential equations and closed differential forms in differential geometry?
An exact differential equation Mdx + Ndy = 0 corresponds to a closed differential 1-form ω = Mdx + Ndy. The exactness condition ∂M/∂y = ∂N/∂x is equivalent to dω = 0 (where d is the exterior derivative), which defines a closed form in differential geometry.
44. How does the method of solving exact differential equations compare to the method of characteristics for PDEs?
While exact differential equations are typically used for ODEs, the method of characteristics is used for first-order PDEs. Both methods aim to find a solution by following certain paths: exact equations use level curves of a potential function, while the method of characteristics follows characteristic curves along which the PDE simplifies.
45. How does the presence of parameters in an exact differential equation affect the solution process?
Parameters in an exact differential equation are treated as constants during the solution process. The general solution will include these parameters, potentially leading to a family of potential functions. Analyzing how the solution changes with respect to these parameters can provide insights into the system's behavior.
46. What is the significance of the Frobenius theorem in relation to exact differential equations?
The Frobenius theorem provides conditions for when a system of differential forms (which includes exact differential equations as a special case) has a solution. It generalizes the concept of exactness to higher dimensions and is crucial in understanding when a system of equations can be solved by finding a potential function or integrating factor.
47. How do you approach an exact differential equation where the functions M and N are defined implicitly?
When M and N are defined implicitly, you may need to use implicit differentiation to verify the exactness condition and to perform the necessary integrations. The solution process might involve solving auxiliary equations or using more advanced techniques from implicit function theory.
48. Can the method for solving exact differential equations be adapted for complex-valued functions?
Yes, the method can be extended to complex-valued functions. The exactness condition and solution process remain similar, but you'll need to work with complex differentials and ensure that the Cauchy-Riemann equations are satisfied for analytic functions.
49. How does the concept of exactness relate to Hamiltonian systems in classical mechanics?
In Hamiltonian mechanics, the equations of motion form a system of exact differential equations. The Hamiltonian function serves as the potential function, and the symplectic structure of phase space ensures that the system satisfies the exactness condition. This connection highlights the deep relationship between exactness and conservation laws in physics.
50. What are some common mistakes students make when solving exact differential equations?
Common mistakes include:
51. How does the concept of exactness extend to differential forms on manifolds?
On manifolds, exact differential equations correspond to exact differential forms. A form ω is exact if there exists a function f such that ω = df. The concept generalizes to higher dimensions, where an n-form ω is exact if there exists an (n-1)-form α such that ω = dα. This extension is crucial in differential geometry and theoretical physics.
52. Can numerical methods be effectively applied to solve exact differential equations?
While exact differential equations have analytical solutions, numerical methods can be useful for visualizing solutions or handling cases where the integrals are difficult to evaluate analytically. Methods like Runge-Kutta can be applied, but it's important to remember that these numerical solutions approximate the true exact solution.
53. How does the process of solving exact differential equations relate to finding orthogonal trajectories?
Orthogonal trajectories are curves that intersect the solution curves of a differential equation at right angles. For an exact equation f(x,y) = C, the orthogonal trajectories satisfy the equation -∂f/∂y dx + ∂f/∂x dy = 0. This relationship allows for finding orthogonal trajectories once the exact solution is known.

Articles

Back to top