Last week in recitation, we learned about the MATLAB ODE suite - a set of tools provided by MATLAB to faciliate solving Ordinary Differential Equations. We discussed some advantages and shortcomings of the ODE suite, and solved a couple of differential equations using the MATLAB ODE tools, including the Newton's motion equation for a simple harmonic oscillator.
cos(wt), where w =
sqrt(k/m). Prove that this is the case. cos(wt+Z)
, the Newton's equation of motion for a simple harmonic oscillator
holds for any parameters A and Z. Then, solve for A and
Z given that the starting position is x0 and the starting
velocity is 0.)
The Newton's equation of motion for the damped harmonic oscillator is as follows:
As in the case of the simple harmonic oscillator, the motion equation for the damped harmonic oscillator can be solved analytically. However, we will not do so here. Instead, we will use Matlab's ODE tools to find numerical solutions to this motion equation.
ode23()
and ode45() routines.
ode45(), since it produces
more accurate results. What trajectory do you observe? What can you say about the motion of a
mass following this trajectory? A damped harmonic oscillator that follows
this kind of path is said to be overdamped.
Submit your code for parts a-d, and the trajectory plots for parts b-d.