Given the initial conditions, y(0) = 1 and y'(0) = 0, solve the following initial-value problem from

Question:

Given the initial conditions, y(0) = 1 and y'(0) = 0, solve the following initial-value problem from t = 0 to 4:
d2y/dt2 + 4y = 0
Obtain your solutions with
(a) Euler's method and
(b) The fourthorder RK method.
In both cases, use a step size of 0.125. Plot both solutions on the same graph along with the exact solution y = cos 2t.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Numerical Methods for Engineers

ISBN: 978-9352602131

7th edition

Authors: Steven C. Chapra, Raymond P. Canale

Question Posted: