Question: I would like to see Matlab codes too. Thanks! 5. A force of 3 N stretches a spring 10 cm. A mass of 2 kg

I would like to see Matlab codes too. Thanks!
5. A force of 3 N stretches a spring 10 cm. A mass of 2 kg is attached to the end of this spring and is also attached to a damping device that exerts a force of 3 N when the velocity of the mass is 5 m/s. The mass is pulled 5 cm rightwards from its equilibrium position and released with a rightwards velocity of 10 cm/s. The rightwards displacement x, in m, of the mass at any time t > 0, in s, can be written in the form x(t) = Ce-Pt cos(wit ), for some positive constants C, p, wi, 7. (a) Set up the initial value problem that X(t) solves. Calculate the numerical values C, p, wi and 7 and save the results, accurate to four decimal places, as hw2q5a_C, hw2q5a_p, hw2q5a_w1 and hw2q5a-gamma, respectively. (b) In a single figure, plot the solution X(t) over the interval 0 0, in s, can be written in the form x(t) = Ce-Pt cos(wit ), for some positive constants C, p, wi, 7. (a) Set up the initial value problem that X(t) solves. Calculate the numerical values C, p, wi and 7 and save the results, accurate to four decimal places, as hw2q5a_C, hw2q5a_p, hw2q5a_w1 and hw2q5a-gamma, respectively. (b) In a single figure, plot the solution X(t) over the interval 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
