How to obtain Numerical solution for the range x=1 to x=1.5 with intervals of 0.1 if dy/dx=3-y/x?

if dy/dx=3-y/x

How to obtain Numerical solution for the range x=1 to x=1.5 with intervals of 0.1 if dy/dx=3-y/x?

if dy/dx=3-y/x

if dy/dx=3-y/x

- Martingale
**Posts:**344**Joined:**Mon Mar 30, 2009 1:30 pm**Location:**USA-
**Contact:**

BRAIN wrote:How to obtain Numerical solution for the range x=1 to x=1.5 with intervals of 0.1 if dy/dx=3-y/x?

if dy/dx=3-y/x

Since you didn't indicate which technique to use I'd assume that you are wanting to use the Euler method.

where are you stuck?

Thank you for answer, yes I am using Euler method, I actually worked out to use of euler method but my problem is that to differentiate the dy/dx = 3 - y/x at the beginnining.!?

Thank you

Thank you

- Martingale
**Posts:**344**Joined:**Mon Mar 30, 2009 1:30 pm**Location:**USA-
**Contact:**

BRAIN wrote:Thank you for answer, yes I am using Euler method, I actually worked out to use of euler method but my problem is that to differentiate the dy/dx = 3 - y/x at the beginnining.!?

Thank you

why would you want to differentiate ?

Well I am not sure if I really need to differentiate this equation but in my other class exercise we differentiate dy/dx + y = 2x to 2x-y !

so I thought I need to differentiate dy/dx = 3 - y/x too ! so I was confused with all, Am I wrong?

If I don't need to then I can carry on using Euler method!?

Thanks

so I thought I need to differentiate dy/dx = 3 - y/x too ! so I was confused with all, Am I wrong?

If I don't need to then I can carry on using Euler method!?

Thanks

- Martingale
**Posts:**344**Joined:**Mon Mar 30, 2009 1:30 pm**Location:**USA-
**Contact:**

BRAIN wrote:Well I am not sure if I really need to differentiate this equation but in my other class exercise we differentiate dy/dx + y = 2x to 2x-y !

This is not differentiating... this is just solving for dy/dx (which you want to do). In your problem you already have dy/dx as a function of x and y.

BRAIN wrote:so I thought I need to differentiate dy/dx = 3 - y/x too ! so I was confused with all, Am I wrong?

If I don't need to then I can carry on using Euler method!?

Thanks

no you don't need to differentiate and you can use Euler's method. Just follow the outline in your book, notes or the link I provided above.