Question: Construct a MATLAB program to implement 4 t h order R - K Method to solve the following initial value problem m x + c

Construct a MATLAB program to implement 4th order R-K Method to solve the following initial value
problem
mx+cx+kx=cos3t
Use m=1,c=2,k=4. Solve for initial velocity, x(0)=0; and an initial displacement, x(0)=1.
Plot displacement vs time. Use an appropriate time step and end time to capture the dynamics of the
system.
Note that the 2nd order equation can be converted in to two first order equations, using a newly defined
set of "state variables" x1=x and x2=x
x1=x2
x2=cos3t-2x2-4x1
 Construct a MATLAB program to implement 4th order R-K Method to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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

Students Have Also Explored These Related Databases Questions!