The Wayback Machine - https://web.archive.org/web/20241008214445/https://www.geeksforgeeks.org/exact-differential-equations/
Open In App

Exact Differential Equations

Last Updated : 22 May, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

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.

Exact Differential Equation Definition

A differential equation Mdx + Ndy = 0 is said to be an exact differential equation, if ∂M/∂y =  ∂N/∂x

Exact-Differential-Equation

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.

FAQs on Exact Differential Equations

What is the exact system of differential equations?

Exact differential equations are differential equations of first-order that can be combined into a single exact differential equation.

What is the exact condition of a differential equation?

Differential equation is exact iff for M(x, y)dx + N(x, y)dy = 0 and then (∂M/∂y) = (∂N/∂x).

What is called differential equation?

A differential equation is a mathematical equation that involves derivatives of an unknown function and describes the relationship between the function and its derivatives.



Previous Article
Next Article

Similar Reads

Exact Equations and Integrating Factors
Differential Equations are used to describe a lot of physical phenomena. They help us to observe something happening in real life and put it in a mathematical form. At this level, we are mostly concerned with linear and first-order differential equations. A differential equation in “y” is linear if all derivatives of y appear only to the first powe
10 min read
Class 12 RD Sharma Solutions - Chapter 22 Differential Equations - Exercise 22.9 | Set 3
Question 27. (x2 - 2xy)dy + (x2 - 3xy + 2y2)dx = 0 Solution: We have, (x2 - 2xy)dy + (x2 - 3xy + 2y2)dx = 0 (dy/dx) = (x2 - 3xy + 2y2)/(2xy - y2) It is a homogeneous equation, So, put y = vx (i) On differentiating both sides w.r.t x, dy/dx = v + x(dv/dx) So, v + x(dv/dx) = (x2 - 3xvx + 2v2x2)/(2xvx - x2) v + x(dv/dx) = (1 - 3v + 2v2)/(2v - 1) x(dv/
14 min read
Class 12 NCERT Solutions- Mathematics Part II - Chapter 9 Differential Equations-Exercise -9.2
In each of the Questions 1 to 6 verify that the given functions (explicit) is a solution of the corresponding differential equation:Question 1. y = ex + 1 : y'' - y' = 0 Solution: Given: y = ex + 1 On differentiating we get y' = ex -(1) Again differentiating we get y'' = ex -(2) Now substitute the values from equation(1) and (2), in the differentia
4 min read
Runge-Kutta 2nd order method to solve Differential equations //
Given the following inputs: An ordinary differential equation that defines the value of dy/dx in the form x and y.[latex]\LARGE \frac{dy}{dx} = f(x, y)[/latex]Initial value of y, i.e., y(0).[latex]\LARGE y(0)= y_o[/latex] The task is to find the value of unknown function y at a given point x, i.e. y(x). Example: Input: x0 = 0, y0 = 1, x = 2, h = 0.
8 min read
Homogeneous Differential Equations
Homogeneous Differential Equations are differential equations with homogenous functions. They are equations containing a differentiation operator, a function, and a set of variables. The general form of the homogeneous differential equation is f(x, y).dy + g(x, y).dx = 0, where f(x, y) and h(x, y) is a homogenous function. Homogenous functions are
9 min read
Class 12 RD Sharma Solutions - Chapter 22 Differential Equations - Exercise 22.5 | Set 1
Solve the following differential equations:Question 1. (dy/dx) = x2 + x - (1/x) Solution: We have, (dy/dx) = x2 + x - (1/x) dy = [x2 + x - (1/x)]dx On integrating both sides, we get ∫(dy) = ∫[x2 + x - (1/x)]dx y = (x3/3) + (x2/2) - log(x) + c -(Here, 'c' is integration constant) Question 2. (dy/dx) = x5 + x2 - (2/x) Solution: We have, (dy/dx) = x5
5 min read
Class 12 RD Sharma Solutions - Chapter 22 Differential Equations - Exercise 22.10 | Set 2
Solve the following differential equations:Question 24. (2x - 10y3)(dy/dx) + y = 0 Solution: We have, (2x - 10y3)(dy/dx) + y = 0 (2x - 10y3)(dy/dx) = -y (dx/dy) = -(2x - 10y3)/y (dx/dy) + 2x/y = 10y2 ...........(i) The given equation is a linear differential equation of the form (dx/dy) + Px = Q Where, P = 2/y, Q = 10y2 So, I.F = e∫Pdy = e∫(2/y)dy
15+ min read
Class 12 NCERT Solutions- Mathematics Part II - Chapter 9 Differential Equations-Exercise -9.3
In each of the exercises 1 to 5, from a differential equation representing the given family of curves by eliminating arbitrary constraints a and b.Question 1.[Tex]\frac{x}{a}+\frac{y}{b}=1[/Tex]Solution: Given: [Tex]\frac{x}{a}+\frac{y}{b}=1[/Tex] We can also write bx + ay = ab On differentiating we get b + ay' = 0 y' = -b/a Again differentiating w
5 min read
Class 12 NCERT Solutions- Mathematics Part ii – Chapter 9– Differential Equations Exercise 9.1
Order of a Differential EquationOrder of a differential equation is defined as the highest order derivative present in the equation. It indicates the complexity of the equation and the number of independent variables involved. Degree of a Differential EquationDegree of a differential equation is defined for polynomial differential equations. It ref
3 min read
Class 12 NCERT Solutions- Mathematics Part ii – Chapter 9– Differential Equations Exercise 9.4
NCERT solutions Class 12 Chapter 9 Exercise 9.4 consists of 16 questions that impart a clear understanding of Differential Equations. Learn about the concept used and the solution to Chapter 9– Integrals Exercise 9.4 in this article. Question 1. dy/dx = (x2 + y2) / (x2 + xy)Solution: Given equation: [Tex]\frac{dy}{dx}=\frac{x^2+y^2}{x^2+xy}[/Tex] [
5 min read
Separable Differential Equations
Separable differential equations are a special type of ordinary differential equation (ODE) that can be solved by separating the variables and integrating each side separately. Any differential equation that can be written in form of y' = f(x).g(y), is called a separable differential equation. Basic form of the Separable differential equations is d
8 min read
Class 12 NCERT Solutions- Mathematics Part ii – Chapter 9– Differential Equations Exercise 9.5
In the article, we will solve Exercise 9.5 from Chapter 9, “Differential Equations” in the NCERT. Exercise 9.5 covers Homogeneous differential equations. Basic Concept to Solve Exercise 9.5STEP 1: First of all, prove that the given differential equation is a Homogeneous differential equation. STEP 2: Then put [tex]y = vx[/tex] in the differential e
11 min read
Order and Degree of Differential Equations
Order and Degree of differential equations indicate the degree of complexity and the number of independent variables in the differential equations. The highest derivative sets the order of the equation and offers important information about the function's behaviour and evolution. It is an important tool for dealing with scientific and engineering p
10 min read
Partial Differential Equations Practice Problems
Partial Differential Equations (PDEs) are equations that contain functions and terms that involve partial derivatives of the function. It finds application in almost every branch of science and engineering like physics, and applied mathematicians. Some of the originally interesting aspects of PDEs include heat conduction, wave propagation, fluid dy
6 min read
Ordinary Differential Equations
Ordinary Differential Equations(ODE) is the mathematical equation that describe how a function's rate of change relates to its current state. It involves a single independent variable and its derivatives. Let's know more about Ordinary Differential Equations, it's types, order and degree of Ordinary differential equation in detail below. Ordinary D
13 min read
Linear Differential Equations
Linear Differential Equations are differential equations where the unknown function and its derivatives appear linearly. In other words, the equation is a linear combination of the function and its derivative, with constant coefficients. Such types of equations have solutions that can be expressed as a sum of particular and homogeneous solutions. I
13 min read
Practice Questions on Differential Equations
Differential equations are mathematical equations that involve derivatives of a function or functions. They describe how a quantity changes over time or space, representing physical, biological, economic, or other systems. Solutions to differential equations provide functions that satisfy the relationships defined by the derivatives. This article e
6 min read
How to solve Differential Equations?
Equations that have an independent variable, as well as the dependent variable and the derivative of the dependent variable with respect to the independent variable, are known as differential equations. Those differential equations which contain a single independent variable are called ordinary differential equations and which have more than one in
5 min read
Particular Solutions to Differential Equations
Indefinite integrals are the reverse of the differentiation process. Given a function f(x) and it's derivative f'(x), they help us in calculating the function f(x) from f'(x). These are used almost everywhere in calculus and are thus called the backbone of the field of calculus. Geometrically speaking, the integrals represent the area and volume un
7 min read
Class 12 RD Sharma Solutions - Chapter 22 Differential Equations - Exercise 22.9 | Set 1
Solve the following differential equationsQuestion 1. x2dy + y(x + y)dy = 0Solution: We have, x2dy + y(x + y)dy = 0 dy/dx = -y(x + y)/x2 It is a homogeneous equation, So, put y = vx (i) On differentiating both sides w.r.t x, dy/dx = v + x(dv/dx) So, v + x(dv/dx) = -vx(x + vx)/x2 v + x(dv/dx) = -v - v2 x(dv/dx) = -2v - v2 [Tex]\frac{dv}{(v^2 + 2v)}
9 min read
Class 12 RD Sharma Solutions - Chapter 22 Differential Equations - Exercise 22.10 | Set 1
Solve the following differential equationsQuestion 1. dy/dx + 2y = e3xSolution: We have, dy/dx + 2y = e3x ...........(i) The given equation is a linear differential equation of the form (dy/dx) + Py = Q Where, P = 2, Q = e3x So, I.F = e∫Pdx = e∫2dx = e2x The solution of differential equation is, y(I.F) = ∫Q(I.F)dx + c y(e2x) = ∫e3x.e2xdx + c y(e2x)
14 min read
Class 12 RD Sharma Solutions - Chapter 22 Differential Equations - Exercise 22.2 | Set 1
Differential equations are mathematical tools that describe relationships involving rates of change. They are central in many fields such as physics, engineering, economics, and biology, because they effectively model dynamic systems. A differential equation involves a function and its derivatives, expressing how the function changes over time or s
8 min read
Class 12 RD Sharma Solutions - Chapter 22 Differential Equations - Exercise 22.9 | Set 2
Differential equations are mathematical tools that describe relationships involving rates of change. They are central in many fields such as physics, engineering, economics, and biology, because they effectively model dynamic systems. A differential equation involves a function and its derivatives, expressing how the function changes over time or s
11 min read
Class 12 RD Sharma Solutions - Chapter 22 Differential Equations - Exercise 22.11 | Set 2
In Chapter 22 of RD Sharma's textbook for Class 12, which covers Differential Equations, Exercise 22.11 focuses on applying various methods to solve higher-order differential equations. These equations are critical in modeling dynamics and processes where the rate of change depends not only on the state but also on how the state changes over time.
12 min read
Class 12 RD Sharma Solutions - Chapter 22 Differential Equations - Exercise 22.11 | Set 3
Exercise 22.11 Set 3 in RD Sharma's Class 12 Mathematics textbook continues to explore the method of variation of parameters for solving non-homogeneous second-order linear differential equations. This set likely presents more challenging problems, building upon the skills developed in Sets 1 and 2. Students will encounter a diverse range of right-
11 min read
Class 12 RD Sharma Solutions - Chapter 22 Differential Equations - Exercise 22.11 | Set 1
This set of practice questions focuses on first-order differential equations, covering various types including separable equations, homogeneous equations, and linear equations. Students will practice identifying the type of differential equation, solving using appropriate methods, and verifying solutions. These questions aim to reinforce understand
12 min read
Class 12 RD Sharma Solutions - Chapter 22 Differential Equations - Exercise 22.7 | Set 1
Solve the following differential equations:Question 1. (x - 1)(dy/dx) = 2xySolution: We have, (x - 1)(dy/dx) = 2xy dy/y = [2x/(x - 1)]dx On integrating both sides, ∫(dy/y) = ∫[2x + (x - 1)]dx log(y) = ∫[2 + 2/(x - 1)]dx log(y) = 2x + 2log(x - 1) + c (Where 'c' is integration constant) Question 2. (x2 + 1)dy = xydxSolution: We have, (x2 + 1)dy = xyd
8 min read
Class 12 RD Sharma Solutions - Chapter 22 Differential Equations - Exercise 22.7 | Set 2
Solve the following differential equations:Question 21. (1 - x2)dy + xydx = xy2dxSolution: We have, (1 - x2)dy + xydx = xy2dx (1 - x2)dy = xy2dx - xydx (1 - x2)dy = xy(y - 1)dx [Tex]\frac{dy}{y(y-1)}=\frac{xdx}{(1-x^2)}[/Tex] On integrating both sides, [Tex]∫[\frac{1}{y-1}-\frac{1}{y}]dy=\frac{1}{2}∫\frac{2x}{1-x^2}dx[/Tex] log(y - 1) - logy = -(1/
8 min read
Class 12 RD Sharma Solutions - Chapter 22 Differential Equations - Exercise 22.7| Set 3
Solve the differential equations(question 40-48):Question 40. 2x(dy/dx) = 3y, y(1) = 2Solution: We have, 2x(dy/dx) = 3y 2dy/y = 3dx/x On integrating both sides, 2∫dy/y = 3∫dx/x 2log(y) = 3log(x) + log(c) y2 = x3c Put x = 1, y = 2 in above equation c = 4 y2 = 4x3 Question 41. xy(dy/dx) = y + 2, y(2) = 0Solution: We have, xy(dy/dx) = y + 2 ydy/(y + 2
14 min read
Class 12 RD Sharma Solutions - Chapter 22 Differential Equations - Exercise 22.8
Solve the following:Question 1: dy/dx = (x + y + 1)2Solution: We have, dy/dx = (x + y + 1)2 Putting x + y + 1 = v Therefore, dv/dx - 1 = v2 ⇒ dv/dx = v2 + 1 ⇒ 1/(v2 + 1) dv = dx Integrating both sides, we get ∫ 1/(v2 + 1) dv = ∫ dx Question 2: dy/dx cos (x - y) = 1Solution: We have, dy/dx cos (x - y) = 1 ⇒ dy/dx = 1/cos(x - y) Putting x - y = v ⇒ 1
10 min read