Question: Solve using MATLAB 9.6 Solving Higher-Order ODE with Euler Method and Heun Method N-th order differential equations can be converted into n-dimensional systems of first
9.6 Solving Higher-Order ODE with Euler Method and Heun Method N-th order differential equations can be converted into n-dimensional systems of first order equations. By utilizing this, it is possible to solve higher-order ODE's with either the Euler Method or the Heun Method. Problem 9.6 Consider the following 2nd order differential equation: d2 dt2 (9.9) dt At t-0, y-0.5 and dy/dt-0.2 1.) Formulate the given second order equation as two first order equations. 2.) Write a MATLAB program to solve for y and dy/dt using Heuns method over the in- terval t=[0,10] with a step size of 0.1. 3.) Plot your solutions on a single plot (use plot command and hold on trick; plot y and dy/dt with different colors and enclose a legend)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
