exam 11 (50).pdf - Question Given the initial conditions y(0 = 1 and y(0 = 0 solve the following initial-value problem from t = 0 to 4 Obtain your

# exam 11 (50).pdf - Question Given the initial conditions...

This preview shows page 1 - 7 out of 7 pages.

Question: Given the initial conditions, y(0) = 1 and y'(0) = 0, solve the following initial-value problem from t = 0 to 4: Obtain your solutions with (a) Eulerâ€™s method and (b) the fourth-order RK method. In both cases, use a step size of 0.1. Plot both solutions on the same graph along with the exact solution y = cos 2t. Answer : The second order differential equation can be expressed as system of two first order ODEs, that is, (a) The Euler method is given as , here the variables have usual meaning. The differential equation is evaluated using Eulerâ€™s method with step size and the results of few steps is shown in the table given below:
(b) It is required to evaluate the given equation using fourth order RK method with . Evaluate the slope at the beginning of the interval Use this value to compute a value of and

#### You've reached the end of your free preview.

Want to read all 7 pages?

• Spring '17
• John DOe
• Derivative, English-language films