Academic help online
Consider the equation of motion of a driven simple harmonic oscillator
where a is a constant
a. Integrate the equation to find the solution analytically.
b. Solve the equation of motion using matlab ODE45, and plot (t) and (t). Let a = 1, m = 0.5, and k = 3. Be sure to label your axes (with units!) and add a legend to the plot.
Academic help online