Question: For ordinary differential equation x(t) + 4x'(t) + 5x(t) = 0 with initial conditions x(0) = 3 and x' (0) =-5, a) Use the four

For ordinary differential equation x"(t) + 4x'(t) + 5x(t) = 0 with initial conditions x(0) = 3 and x' (0) =-5, a) Use the four order Runge-Kutta method with step size h 0.1 to solve the differential equation over the interval [0, 5] in MATLAB. Compare the numerical solution with the true solution x(t) in a MATLAB plot over the same interval (Hint: define yx) b) 3e-2t cos(t) + e-z sin (t)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
