• Support PF! Buy your school textbooks, materials and every day products Here!

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

  • #1

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.
 

Answers and Replies

  • #2
hunt_mat
Homework Helper
1,739
18
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?
 
  • #3
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
 
  • #4
hunt_mat
Homework Helper
1,739
18
Looks okay to me.
 
  • #5
Sweet, Thanks.
 

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

  • Last Post
Replies
7
Views
2K
  • Last Post
Replies
13
Views
1K
  • Last Post
Replies
2
Views
3K
Replies
43
Views
4K
  • Last Post
Replies
1
Views
3K
Replies
5
Views
1K
Replies
6
Views
2K
Replies
6
Views
4K
  • Last Post
Replies
0
Views
831
Replies
2
Views
694
Top