ode does not appear to give correct answer
이전 댓글 표시
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)
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

