I am trying to solve the equation: (3xy^2)dx + (2x^2y)dy = 0 in matlab but I can't get it to work. Can you please help me? This is my code so far.
The dx and dy do not show up in matlab, as ML thinks they are 1. Then dsolve returns an error.
This is my code:
syms dy dx y x
dy = diff(y)
dx = diff(x)
eqn = 3*x*y^2*dx + 2*x^2*y*dy == 0
dsolve(eqn)
I tried to use dsolve.
Edit: the answer is C = (x^3y^2)^(1/5)
Rearrange it to look like this:
This is a separable, non-linear, first-order ordinary differential equation.
Here is the solution from Wolfram Alpha.