How to Solve Exact Differential Equations

Exact differential equations are a fundamental topic in calculus and differential equations, often encountered in various scientific and engineering disciplines. They represent a special class of first-order differential equations that can be solved straightforwardly once recognized as exact. Solving these equations efficiently requires understanding their structure, the conditions for exactness, and the methods to find their solutions. In this guide, we will explore the steps involved in solving exact differential equations, provide helpful tips, and illustrate the process with examples to enhance your understanding.

How to Solve Exact Differential Equations

An exact differential equation typically has the form:

M(x, y) dx + N(x, y) dy = 0

where M and N are functions of x and y. The key characteristic of an exact differential equation is that there exists a potential function \(\Psi(x, y)\) such that:

\(\frac{\partial \Psi}{\partial x} = M(x, y)\) and \(\frac{\partial \Psi}{\partial y} = N(x, y)\)

When these conditions are satisfied, the total differential \(d\Psi = M dx + N dy\) is exact, and the solution can be obtained by integrating these functions accordingly.


Step 1: Verify if the Differential Equation is Exact

The first step in solving an exact differential equation is to verify whether it is, in fact, exact. To do this, check the following condition:

  • Calculate \(\frac{\partial M}{\partial y}\) and \(\frac{\partial N}{\partial x}\).
  • If \(\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}\), then the differential equation is exact.

If the condition holds, you can proceed to solve directly. If not, you may need to make the equation exact by multiplying through by an integrating factor.


Step 2: Find the Potential Function \(\Psi(x, y)\)

Once confirmed exact, the next step is to find the potential function \(\Psi(x, y)\). The process involves:

  • Integrate \(M(x, y)\) with respect to \(x\), treating \(y\) as a constant:

\(\Psi(x, y) = \int M(x, y) dx + h(y)\)

  • Here, \(h(y)\) is an arbitrary function of \(y\) because the partial derivative with respect to \(x\) eliminates any \(y\)-dependent terms.
  • Differentiate \(\Psi(x, y)\) with respect to \(y\) and set it equal to \(N(x, y)\):

\(\frac{\partial \Psi}{\partial y} = \frac{\partial}{\partial y} \left(\int M(x, y) dx \right) + h'(y) = N(x, y)\)

  • Solve for \(h'(y)\) and integrate to find \(h(y)\).

Combining these steps yields the potential function \(\Psi(x, y)\), which leads to the general solution.


Step 3: Write the General Solution

The general solution to the exact differential equation is given by:

\(\Psi(x, y) = C\)

where \(C\) is an arbitrary constant. Substituting the potential function back into this equation yields an implicit relation between \(x\) and \(y\), which can sometimes be solved explicitly depending on the functions involved.


Handling Non-Exact Equations

If the differential equation is not exact, it can sometimes be made exact by multiplying through by an integrating factor. This factor can be a function of \(x\), \(y\), or both. The process involves:

  • Checking whether an integrating factor exists that depends solely on \(x\) or \(y\).
  • Finding the integrating factor by analyzing the derivatives of \(M\) and \(N\).
  • Multiplying the entire differential equation by this factor to make it exact.

For example, if \(\frac{\frac{\partial N}{\partial x} - \frac{\partial M}{\partial y}}{N}\) is a function of \(x\) only, then an integrating factor of the form \(\mu(x) = e^{\int P(x) dx}\) can be used.


Practical Example

Let's consider an example to illustrate these steps:

Given the differential equation:

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

Step 1: Verify Exactness

  • M(x, y) = 2xy + y^2
  • N(x, y) = x^2 + 2xy

Calculate derivatives:

  • \(\frac{\partial M}{\partial y} = 2x + 2y\)
  • \(\frac{\partial N}{\partial x} = 2x + 2y\)

Since \(\frac{\partial M}{\partial y} = \frac{\partial N}{\partial x}\), the equation is exact.

Step 2: Find \(\Psi(x, y)\)

  • Integrate \(M(x, y)\) with respect to \(x\):
  • \(\Psi(x, y) = \int (2xy + y^2) dx = x^2 y + y^2 x + h(y)\)

  • Differentiate \(\Psi\) with respect to \(y\):
  • \(\frac{\partial \Psi}{\partial y} = x^2 + 2xy + h'(y)\)

  • Set equal to \(N(x, y)\):
  • \(x^2 + 2xy + h'(y) = x^2 + 2xy\)

  • Solve for \(h'(y)\):
  • \(h'(y) = 0\)

  • Integrate to find \(h(y)\):
  • \(h(y) = \text{constant}\)

    Step 3: Write the General Solution

    The potential function is:

    \(\Psi(x, y) = x^2 y + y^2 x = C\)

    This implicitly defines the solution to the differential equation.


    Summary of Key Points

    Solving exact differential equations involves several systematic steps. First, verify whether the equation is exact by comparing the partial derivatives of \(M\) and \(N\). If it is, find the potential function \(\Psi(x, y)\) by integrating \(M\) with respect to \(x\), then determine the auxiliary function \(h(y)\) by differentiating \(\Psi\) with respect to \(y\) and matching it to \(N(x, y)\). The general solution is given by setting \(\Psi(x, y) = C\), an arbitrary constant. When the differential equation is not exact, look for an integrating factor to make it exact before applying the same procedure. Mastery of these steps enables efficient solving of a wide range of exact differential equations, which are fundamental in modeling physical systems, thermodynamics, and many areas of engineering. Practice with various examples to develop intuition and confidence in handling these equations effectively.

Back to blog

Leave a comment