ode does not appear to give correct answer
Afficher commentaires plus anciens
Can anybody help with this very simple ode problem?
Here is the differential equation that I am trying to solve with MATLAB: dy/dx = (4*x^2)/y .
The answer should be: y = ±√((8x^3)/3+2c)
But the answer that MATLAB gives me is: (2^(1/2)*3^(1/2)*(4*x^3 + C1)^(1/2))/3
-(2^(1/2)*3^(1/2)*(4*x^3 + C1)^(1/2))/3 . In simpler terms, it gives me y = ±√((8x^3)+2c)/3. It differs from what I get 'on paper' because the 2c is also divided by 3 and I don't believe that it should be.
What am I doing wrong? Here is my code:
ode = diff(y,x) == (4*x^2)/y
ysol(x) = dsolve(ode)
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Ordinary Differential Equations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

