MATLAB: ODE analytical solution

differential equationsode

How can I find the analytical solution to the following ode?
y'+ x/y=0
when x=0 and y=5.

Best Answer

simplify(dsolve('Dy=-x/y','y(0)=5','x'))
ans =
(25 - x^2)^(1/2)