Euler's Method - dy/dt = y^2-4t

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 5K views
killersanta
Messages
63
Reaction score
0

Homework Statement



dy/dt = y^2-4t - y(0) = 0.5 - 0 <_ t <_ 3.0 - Change in t = 0.5

I have to use Euler's method to make a table, but I'm not sure how to handle the t. I have only done it with y's and no other variables.
 
Physics news on Phys.org
Eulers method is given as:

[tex] y_{i+1}=y_{i}+hy'(t_{i},y_{i})[/tex]

So in your case the equation would be:

[tex] y_{i+1}=y_{i}+h(y_{i}^{2}-4t_{i})[/tex]

Understand now?
 
I think, I just started putting the t's in for t and the y's for y... So for the first line I got:
K: 0
t:0
y:0.5
dy/dt(t,y) = .25
Change in t*dy/dt(t,y) = .125
 
Sweet, Thanks.