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

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:

<br /> y_{i+1}=y_{i}+hy&#039;(t_{i},y_{i})<br />

So in your case the equation would be:

<br /> y_{i+1}=y_{i}+h(y_{i}^{2}-4t_{i})<br />

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
 
Looks okay to me.
 
Sweet, Thanks.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top