2-DOF system with translational and rotational motion The diagram shows an inverted pendulum on a cart that is driven by a force F. Here we consider the case where F = 0. Assume that the mass of the pendulum is concentrated at the ball (the rod is massless). Let x denote the position of the cart in an inertial reference frame. The linearized equations of motion for small theta, dtheta/dt, and dx/dt are the following: x=mg/m theta theta = M+m/Ml gtheta (a) Define the state variables of the system and the state vector x. Convert the two 2nd-order ODE\'s above into four 1-order ODE \'s that are functions of the state variables. Write an output equation y = Cx in which there are 2 outputs, theta and x. (b) Suppose that the system starts at rest with the cart position at x = 0 and the pendulum angle at theta = pi/10. Use the MATLAB function ode45 to numerically solve the four 1st-order ODE\'s from time 0 sec to 1 sec with parameters in = 0.5 kg. M = 3 kg. l = 1 m, and g = 9.81 m/s^2. Plot x over time in one figure, and plot theta over time in another figure. Hand in your code with your homework. Solution 1)x^2+3x=98 2)the plot comes to be elliptical.