How can we get the solution for an 'exact differential equation' dy/dx=(x^2-y^2)/2*x*y in matlab

26 visualizaciones (últimos 30 días)
'exact differential equation'dy/dx=(x^2-y^2)/2*x*y'
  2 comentarios
Star Strider
Star Strider el 30 de Sept. de 2018
You seem to have omitted the LHS.
dxdt = (x^2-y^2)/2*x*y
dydt = (x^2-y^2)/2*x*y
dxdy = (x^2-y^2)/2*x*y
dydx = (x^2-y^2)/2*x*y
or something else?
abcdr
abcdr el 30 de Sept. de 2018
My bad. The equation is 2*x*y*(dy/dx)=(x^2)-(y^2). This is an exact equation. How do we find the solution of an exact differential equation in matlab

Iniciar sesión para comentar.

Respuesta aceptada

madhan ravi
madhan ravi el 1 de Oct. de 2018
syms y(x)
ode=2*x*y*(diff(y))==(x^2)-(y^2)
sol=dsolve(ode)
  5 comentarios

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by