Solving ODEs with Euler's, Midpoint, and Trapezoid Methods - Prof. Li-Tien Cheng, Assignments of Mathematics

Instructions for solving ordinary differential equations (odes) using euler's method, midpoint method, and trapezoid method. Students are required to approximate solutions and find absolute errors for given step sizes. Additionally, they are asked to use simpson's rule to approximate the right-hand side integral of an ode and write down the corresponding implicit approximation scheme.

Typology: Assignments

Pre 2010

Uploaded on 03/28/2010

koofers-user-54w
koofers-user-54w 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Homework #9
1. Use Euler’s method with stepsize h= 0.25 to solve the ODE
y0=y+t
for y(1) given y(0) = 1.
2. Consider the ODE
y0=2ty
with y(0) = 2. The exact solution is y(t)=2et2.
(a) Use Euler’s method with stepsize h= 0.5 to approximate y(1) and find the
absolute error E(0.5) of this approximation.
(b) Use Euler’s method with stepsize h= 0.25 to approximate y(1) and find the
absolute error E(0.25) of this approximation.
(c) Compute E(0.5)/E(0.25).
3. Use Midpoint Method with stepsize h= 0.5 to solve the ODE
y0=y+t
for y(1) given y(0) = 1.
4. Use Trapezoid Method with stepsize h= 0.5 to solve the ODE
y0=y+t
for y(1) given y(0) = 1.
5. (Math 274) Consider y0=f(x, y) at x=x2, where x0< x1< x2with regular spacing h.
Integrate both sides from x0to x2. Use Simpson’s Rule to approximate the right hand
side integral. Finally, write down the corresponding implicit approximation scheme for
solving this ODE at x2in terms of data at x0, x1, x2.
1

Partial preview of the text

Download Solving ODEs with Euler's, Midpoint, and Trapezoid Methods - Prof. Li-Tien Cheng and more Assignments Mathematics in PDF only on Docsity!

Homework #

  1. Use Euler’s method with stepsize h = 0.25 to solve the ODE y′^ = y + t for y(1) given y(0) = 1.
  2. Consider the ODE y′^ = − 2 ty with y(0) = 2. The exact solution is y(t) = 2e−t^2. (a) Use Euler’s method with stepsize h = 0.5 to approximate y(1) and find the absolute error E(0.5) of this approximation. (b) Use Euler’s method with stepsize h = 0.25 to approximate y(1) and find the absolute error E(0.25) of this approximation. (c) Compute E(0.5)/E(0.25).
  3. Use Midpoint Method with stepsize h = 0.5 to solve the ODE y′^ = y + t for y(1) given y(0) = 1.
  4. Use Trapezoid Method with stepsize h = 0.5 to solve the ODE y′^ = y + t for y(1) given y(0) = 1.
  5. (Math 274) Consider y′^ = f (x, y) at x = x 2 , where x 0 < x 1 < x 2 with regular spacing h. Integrate both sides from x 0 to x 2. Use Simpson’s Rule to approximate the right hand side integral. Finally, write down the corresponding implicit approximation scheme for solving this ODE at x 2 in terms of data at x 0 , x 1 , x 2.