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

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.

Step by Step Solution

3.51 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a The 2ndorder ODE can be expressed as the following system of ODEs dydt z dzdt 4y Here is the an... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

1228-M-N-A-O(902).docx

120 KBs Word File

Students Have Also Explored These Related Numerical Analysis Questions!