Can Euler's Method Solve y'=y/x with Initial Conditions?

lydia_zhu
Messages
1
Reaction score
0
Hi everyone.

I was asked to learn Euler's method by myself but I was really confused with this question. How can I work out this equation by using Eulers' method (which is a method solving first order fifferencial equation with initial conditions)
Given:y'=y/x, y(2)=3, use h=0.2, what is y(2.8) ?

thanks very much!
 
Physics news on Phys.org
You write
<br /> \frac{dy}{dx}=\frac{y(x+h)-y(x)}{h}<br />
to obtain:
<br /> \frac{y(x+h)-y(x)}{h}=y(x)/x<br />
To obtain:
<br /> y(x+h)=y(x)+\frac{y(x)h}{x}<br />
start with y(2) and increment.
 
Thread 'Direction Fields and Isoclines'
I sketched the isoclines for $$ m=-1,0,1,2 $$. Since both $$ \frac{dy}{dx} $$ and $$ D_{y} \frac{dy}{dx} $$ are continuous on the square region R defined by $$ -4\leq x \leq 4, -4 \leq y \leq 4 $$ the existence and uniqueness theorem guarantees that if we pick a point in the interior that lies on an isocline there will be a unique differentiable function (solution) passing through that point. I understand that a solution exists but I unsure how to actually sketch it. For example, consider a...
Back
Top