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:**333**Joined:**Mon Mar 30, 2009 1:30 pm**Location:**USA-
**Contact:**

Since you didn't indicate which technique to use I'd assume that you are wanting to use the Euler method.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

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:**333**Joined:**Mon Mar 30, 2009 1:30 pm**Location:**USA-
**Contact:**

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:**333**Joined:**Mon Mar 30, 2009 1:30 pm**Location:**USA-
**Contact:**

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.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 !

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.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