Exact Differential Equation Calculator

Type M(x, y) and N(x, y) to test the equation for exactness and solve it.

The coefficient of dx, written in x and y.

The coefficient of dy, written in x and y.

Try

Result

You entered(2x)dx+(2y)dy=0\left(2x\right)dx + \left(2y\right)dy = 0

x2+y2=C\displaystyle x^{2} + y^{2} = C
Show the work
  1. Type of equation

    M dx + N dy = 0 with ∂M/∂y = ∂N/∂x, so the equation is exact.

  2. Exact equation

    M dx+N dy=0M\,dx + N\,dy = 0 is exact when ∂M/∂y=∂N/∂x\partial M/\partial y = \partial N/\partial x. Both sides are equal here, so a potential function Φ(x,y)\Phi(x, y) exists.

    ∂M∂y=∂N∂x=0=∂N∂x\begin{aligned} \frac{\partial M}{\partial y} &= \frac{\partial N}{\partial x} \\ &= 0 \\ &= \frac{\partial N}{\partial x} \end{aligned}
  3. Potential function

    Integrate MM with respect to xx, adding an unknown function g(y)g(y) in place of the constant.

    Φ=∫2x dx=x2+g(y)\begin{aligned} \Phi &= \int 2x\,dx \\ &= x^{2} + g(y) \end{aligned}
  4. Find g(y)

    Differentiate Φ\Phi with respect to yy and match NN.

    ∂Φ∂y=0+g′(y)=2y  ⇒  g′(y)=2y  ⇒  g(y)=y2\begin{aligned} \frac{\partial \Phi}{\partial y} &= 0 + g'(y) \\ &= 2y \;\Rightarrow\; g'(y) \\ &= 2y \;\Rightarrow\; g(y) \\ &= y^{2} \end{aligned}
  5. Result

    The general solution, with arbitrary constants.

    x2+y2=Cx^{2} + y^{2} = C

Worked examples