MCS 471 Practice Problems 5: Numerical Solution of ODEs

Hand Calculator and Maple Calculations

Do NOT Hand In: Practice Problems ONLY!


Background Reading:


CAUTION: These problems are just for practice and are not to be handed in. Some of these old exam problems and answers may not be relevant to your current course. Caveat Usor!

In the following problems, use "EXAM PRECISION: chop to 4 significant digits only when you write an intermediate or final answer down and continue calculations with those numbers recorded.



    For problems in the Gerald and Wheatley text,

  1. Consider the initial value problem:
         Let h =.5 and t(i) = i*h for i = 1 TO n. Find Y(i) = Y(t(i)) using 4-digit exam precision with the following methods
         (here, F(i) = f(Y(i)):

      (a) Euler's with n=3 tabulating
                       t(i), Y(i), F(i);
        

      (b) 4TH order Runge-kutta with n=2, tabulating
                        Y(i), RK1, RK2, RK3, RK4
        
      where needed.
  2. Estimate the step size, h, needed to make the maximum global discretization error < 0.5e-3 of Euler's Method for t in (0,10) when

  3. Approximate the solution to the ODE: using Euler's Method for i = 0 to 6 stepping with h = 0.25. Tabulate your answers chopped to 4 significant digits with columns for

  4. Find a numerical approximation to the solution of the initial value problem: using a 4th order Runge-Kutta Method with h = 0.1 for t = 0 to 2*h. Tabulate at each step except the last, reporting only items needed. Use a modification of 4 digit precision.
  5. a) Suppose that and that the local chopping is bounded by 5.e-3, find the optimal step size h = 1/n for euler's method when 0 < t < 1. (Hint: Show that -1.5<(d/dt)f(y(t),t) < 0, Y > 0, T > 0 and use this to estimate the Euler discretization error).


    b) For the ODE plus the IC in part a), illustrate Euler's Method with h = 0.1, tabulating

  6. Formulate an algorithm for a 4th order Runge-Kutta Method to numerically solve the initial value problem for autonomous systems of ordinary differential equations, where y(t) = [y(i,t)]_{NX1} and f(y(t)) = [f(i,y(t)]_{NX1} are vectors with N components. Illustrate your algorithm by solving the system with h = 0.1 for t = 0 to 1*h. Use a modified 4 digit precision.
  7. Solve the following IVP numerically: with h=0.1 and t(n)=n*h for n=1 to m using the following methods:
  8. Estimate the step size h needed to make the absolute value of the global theoretical discretization error on (0,3) less than 1.e-4 when
  9. Consider the BVP Apply the central difference BVP Method with h=1 to convert the BVP into a linear algebra problem with the proper numerical coefficients, but do not solve the matrix problem.
  10. Find a numerical approximation to the solution of using a 4th order Adams' (-Bashforth) Predictor-Corrector Method with a single derivative function evaluation following each "P" or "C" step, h = 0.25 for t=i*h and i = 1 to 5. Use just enough Euler steps to start the Adams' Method. Tabulate both y and f at both predictor and corrector steps.



Web Source: http://www.math.uic.edu/~hanson/mcs471pp5.html

Click Here For Class HomePage