So the problem is dy/dx=-x/y. Im using Eulers method so i want to find an exact solution since one wasent given so i can compare the results.
Doing eulers method is fine, its just trying to find the exact solution so i can graph it in matlab thats giving me trouble
now i see this is separable so
Intergrating i get an exact solution of
(y^2)/2 = (-x^2)/2
I leave out the constant, divide by 2 and sq rt both sides and get
y=(-x^2)^(1/2) ... 'sqrt(-x^2)'
Now i see this is complex cause we cant have negative in a square root.
So first, can anyone let me know is this the correct exact solution?