I am trying to resolve the following non-linear differential equation in matlab:
For which I have written the following code
ode = (diff(y,t))==((((t^2)/2)-(y))^(1/2));
cond = y(0) == 0;
ySol(t) = dsolve(ode,cond)
The result that Matlab calculates is the following:
But I do not understand why Matlab gives me the result in that way.
Why appears like that? Why appears (t^2)/4-(t^2)/2 instead of -(t^2)/4 ?
Is it okay the result? By hand I have reached the result (t^2)/4 and If you check this solution in the equation it make sense, but it does not make sense the result that Matlab gives. Am I wrong?
Thanks a lot