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(y cos⁡x)dx+(sin⁡x)dy=0\left(y\,\cos x\right)dx + \left(\sin x\right)dy = 0

y sin⁡x=C\displaystyle y\,\sin x = 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=cos⁡x=∂N∂x\begin{aligned} \frac{\partial M}{\partial y} &= \frac{\partial N}{\partial x} \\ &= \cos x \\ &= \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.

    Φ=∫y cos⁡x dx=y sin⁡x+g(y)\begin{aligned} \Phi &= \int y\,\cos x\,dx \\ &= y\,\sin x + g(y) \end{aligned}
  4. Find g(y)

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

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

    The general solution, with arbitrary constants.

    y sin⁡x=Cy\,\sin x = C

Worked examples