The object A is oscillating in free vibration governed by the following differential equation:
$4\ddot{x} + 2\dot{x} + 3x = 0$
It is subjected to the initial conditions $x(0)=0.3$ m and $v(0)=0.2$ m/s over a time interval of 0 to
30 s with an increment of 0.01 s.
1. Use ode45 to find the response of A oscillating motion.
2. Plot the displacement of A. Write axes titles and graph title.
3. Plot the velocity of A on a new figure. Write axes titles and graph title.
4. The system is now undamped meaning the second term of the differential equation is
zero. Find the undamped response of A.
5. Compare the damped and undamped responses of A by plotting the displacements on
one figure and the velocities on another figure. Write legend. Use hold on.
6. Using subplot, plot the displacements and velocities of A (damped and undamped).