The motion of a mass on a spring with a damper is given by the ordinary differential equation d2x dx dt2 dt How the solution behaves depends on the relative value of the two parameters β-b/ (2m) and ω–k /m over damped critically damped under damped 9 0.5 05 time Write a python code that asks the user for values of m, b, k, and xo, creates a plot of the system response over time, and tells the user if the system is over, under-,
EXPERT ANSWER import numpy as np import matplotlib.pyplot as plt # This code solves the ODE mx” + bx’ + kx = F0*cos(Wd*t) # m is the mass of the object in kg, b is the damping constant in Ns/m # k is the spring constant in N/m, F0 is the driving force in N, …