Professional Documents
Culture Documents
THQ Ch7
THQ Ch7
THQ Ch7
Use the Euler’s method with h = 0.25 to solve from x = 0 to x = 1. It is known that y(0) = 1.
dy
= (1 + 2x)√y
dx
(a) Write the Euler's equation:
___________________________________________________
(b) At x0 = 0, y0 = ________
i x y f(x, y) f(x,y)∙h
0 0 1
1 0.25 1.25
2 0.5 2.584
3 0.75
4 1 3.266
Chapter 7 (Runge–Kutta)
Take Home Quiz
Use the RK 4th method with h = 0.5 to solve from x = 0 to x = 1. It is known that y(0) = 1.
dy
= (1 + 2x)√y
dx
(a) Write the RK4th equation:
______________________________________________________________
(b) At x0 = 0, y0 = 1
(c) Calculate k1 =
(f) Calculate k2 =
(i) Calculate k3 =
(j) Calculate x + h =
(l) Calculate k4 =
(m) Calculate y1 =
(n) Repeat steps (b–m) to fill the table.