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

26 次查看(过去 30 天)
'exact differential equation'dy/dx=(x^2-y^2)/2*x*y'
  2 个评论
Star Strider
Star Strider 2018-9-30
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 2018-9-30
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

请先登录,再进行评论。

采纳的回答

madhan ravi
madhan ravi 2018-10-1
syms y(x)
ode=2*x*y*(diff(y))==(x^2)-(y^2)
sol=dsolve(ode)
  5 个评论

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by