Comprehensive Guide to Exact Differential Equations

Definition of Exact Differential Equations

  • The most general first-order and first-degree Ordinary Differential Equation (ODE) is represented in the form:     M(x,y)dx+N(x,y)dy=0M(x, y) dx + N(x, y) dy = 0

  • An ODE of this form is considered an exact differential equation if and only if the expression on the left-hand side is an exact differential.

  • Condition for Exactness:     The equation Mdx+Ndy=0M dx + N dy = 0 will be an exact differential equation if and only if:     ∂M∂y=∂N∂x\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}

Examples of Exact Differentials

  • Example 1:     xdy+ydx=0x dy + y dx = 0     This is an exact differential because it can be written as:     d(xy)=0d(xy) = 0

  • Example 2:     sin⁡(x)cos⁡(y)dy+cos⁡(x)sin⁡(y)dx=0\sin(x) \cos(y) dy + \cos(x) \sin(y) dx = 0     This is an exact differential because it can be written as:     d(sin⁡(x)sin⁡(y))=0d(\sin(x) \sin(y)) = 0

Procedure for Solving Exact Differential Equations

To solve an exact differential equation, follow these three specific steps:

  1. Integrate MM with respect to xx:     Perform the integration while treating yy as a constant.     ∫Mdx\int M dx

  2. Identify and integrate terms in NN:     Find out those terms in NN which are free from (do not contain) the variable xx and integrate them with respect to yy.     ∫(terms of N not containing x)dy\int (\text{terms of } N \text{ not containing } x) dy

  3. Combine and Equate:     Add the results of the two expressions obtained in steps (i) and (ii) and equate the resulting sum to an arbitrary constant (cc).     General formula:     ∫y ConstantMdx+∫(terms of N not containing x)dy=c\int_{y \text{ Constant}} M dx + \int (\text{terms of } N \text{ not containing } x) dy = c

Worked Example 1

  • Problem: Solve (x2−2xy+3y2)dx+(4y3+6xy−x2)dy=0(x^2 - 2xy + 3y^2) dx + (4y^3 + 6xy - x^2) dy = 0

  • Step 1: Identify MM and NN     M=x2−2xy+3y2M = x^2 - 2xy + 3y^2     N=4y3+6xy−x2N = 4y^3 + 6xy - x^2

  • Step 2: Test for Exactness

    • Calculate partial derivative of MM with respect to yy:         ∂M∂y=−2x+6y\frac{\partial M}{\partial y} = -2x + 6y

    • Calculate partial derivative of NN with respect to xx:         ∂N∂x=6y−2x\frac{\partial N}{\partial x} = 6y - 2x

    • Since ∂M∂y=∂N∂x\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}, the given equation is exact.

  • Step 3: Apply the Solution Method

    • Integrate MM with respect to xx (treating yy as constant):         ∫(x2−2xy+3y2)dx=x33−x2y+3xy2\int (x^2 - 2xy + 3y^2) dx = \frac{x^3}{3} - x^2y + 3xy^2

    • Find terms in NN not containing xx and integrate with respect to yy:         The term is 4y34y^3.         ∫4y3dy=y4\int 4y^3 dy = y^4

    • Combine and equate to cc:         x33−x2y+3xy2+y4=c\frac{x^3}{3} - x^2y + 3xy^2 + y^4 = c

Worked Example 2

  • Problem: Solve 2xydx+(x2−1)dy=02xy dx + (x^2 - 1) dy = 0

  • Step 1: Identify MM and NN     M(x,y)=2xyM(x, y) = 2xy     N(x,y)=x2−1N(x, y) = x^2 - 1

  • Step 2: Test for Exactness

    • ∂M∂y=∂∂y(2xy)=2x\frac{\partial M}{\partial y} = \frac{\partial}{\partial y}(2xy) = 2x

    • ∂N∂x=∂∂x(x2−1)=2x\frac{\partial N}{\partial x} = \frac{\partial}{\partial x}(x^2 - 1) = 2x

    • The condition ∂M∂y=∂N∂x\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x} is satisfied.

  • Step 3: Solution

    • Integrate MM with respect to xx: ∫2xydx=x2y\int 2xy dx = x^2y

    • Integrate terms of NN free from xx: ∫−1dy=−y\int -1 dy = -y

    • General solution: x2y−y=cx^2y - y = c

Exercises for Practice

Complete the following exercises using the exactness method:

  1. (x2+y)dx+(y2+x)dy=0(x^2 + y) dx + (y^2 + x) dy = 0

  2. (e2y−ycos⁡(xy))dx+(2xe2y−xcos⁡(xy)+2y)dy=0(e^{2y} - y \cos(xy)) dx + (2x e^{2y} - x \cos(xy) + 2y) dy = 0

  3. ex(x2+y2+2x)dx+2yexdy=0e^x (x^2 + y^2 + 2x) dx + 2y e^x dy = 0

  4. (5x+4y)dx+(4x−8y3)dy=0(5x + 4y) dx + (4x - 8y^3) dy = 0

  5. (sin⁡(y)−ysin⁡(x))dx+(cos⁡(x)+xcos⁡(y)−y)dy=0(\sin(y) - y \sin(x)) dx + (\cos(x) + x \cos(y) - y) dy = 0

  6. (3x2y+ex)dx+(x3+xey−2y)dy=0(3x^2y + e^x) dx + (x^3 + x e^y - 2y) dy = 0