Why is f(y,t+h) Equal to y(t+2) in Implicit Euler Method?

porcupineman23
Messages
3
Reaction score
0
Hey
I don't understand this backward euler solution, in particular why the f(y,t+h) is equal to y(t+2)
 

Attachments

  • photo.JPG
    photo.JPG
    39.6 KB · Views: 597
Physics news on Phys.org
porcupineman23 said:
Hey
I don't understand this backward euler solution, in particular why the f(y,t+h) is equal to y(t+2)
Because it's wrong.

It should be:

y(t+2)=y(t)+y'(t+2)h

Since, in this problem y'=-y, you have:

y(t+2)=y(t)-y(t+2)h

Solving for y(t+2) gives:
y(t+2)=\frac{y(t)}{1+2h}
Chet
 
Chestermiller said:
Because it's wrong.
I agree with you there!

It should be:

y(t+2)=y(t)+y'(t+2)h
Actually, it should be y(t+h)=y(t)+h*y'(t+h). Given that y'(t)=-y(t), this becomes y(t+h)=y(t)-h*y(t+h), or y(t+h)=y(t)/(1+h).

Solving for y(t+2) gives:
y(t+2)=\frac{y(t)}{1+2h}
Chet
Better: ##y(t+2)=\frac {y(t)}{3}##.

You've already set h=2.
 
D H said:
I agree with you there!

Actually, it should be y(t+h)=y(t)+h*y'(t+h). Given that y'(t)=-y(t), this becomes y(t+h)=y(t)-h*y(t+h), or y(t+h)=y(t)/(1+h).


Better: ##y(t+2)=\frac {y(t)}{3}##.

You've already set h=2.
Thanks DH. I'm usually more careful about checking over what I've written before I submit my replies. I hope I didn't confuse the OP too much.

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

Similar threads

Back
Top