Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Homework 7

Total points: 100

Exercise 1 (10pt) Where does the energy go?

The damped harmonic oscillator is described by the equation of motion:

mx¨+bx˙+kx=0m\ddot{x} + b\dot{x} + kx = 0

where mm is the mass, bb is the damping coefficient, and kk is the spring constant.

The damping term (Fdamp=−bx˙F_{damp} = - b\dot{x}) models the dissipative forces acting on the oscillator. The total energy for the oscillator is given by the sum of the kinetic and potential energies,

E=12mx˙2+12kx2.E = \frac{1}{2}m\dot{x}^2 + \frac{1}{2}kx^2.

Exercise 2 (10pt), Unpacking the critically damped solution

The solution for critical damping (β=ω0\beta = \omega_0) is given by,

x(t)=x1(t)+x2(t)=Ae−βt+Bte−βt,x(t) = x_1(t) + x_2(t) = Ae^{-\beta t} + Bte^{-\beta t},

where AA and BB are constants. Notice the second solution x2(t)=Bte−ω0tx_2(t) = Bte^{-\omega_0t} has an additional linear term tt. We glossed over this solution in class, but it is important to understand why this term is present because it tells us about solving differential equations with pathologically difficult-to-see solutions.

Start with the under damped solutions,

y1(t)=e−βtcos⁡(ω1t)andy2(t)=e−βtsin⁡(ω1t),y_1(t) = e^{-\beta t}\cos(\omega_1 t) \quad \text{and} \quad y_2(t) = e^{-\beta t}\sin(\omega_1 t),

where we have used the notation ω1=ω02−β2\omega_1 = \sqrt{\omega_0^2 - \beta^2}.

Exercise 3 (20pt), Exploring the damped harmonic oscillator

You can choose to solve this exercise using analytical or graphical methods. Should you decide to use numerical methods, use a method that accurately reproduces the expected energy decay. Total mechanical energy is not conserved for a damped oscillator. This exercise does not need to be solved numerically because closed-form solutions exist.

The solution to the simple harmonic oscillator is given by,

x(t)=Ashocos⁡(ω0t)+Bshosin⁡(ω0t),x(t) = A_{sho}\cos(\omega_0 t) + B_{sho}\sin(\omega_0 t),

where AshoA_{sho} and BshoB_{sho} are determined by the initial conditions. The solution to the underdamped harmonic oscillator is given by,

x(t)=e−βt(Acos⁡(ω1t)+Bsin⁡(ω1t)),x(t) = e^{-\beta t}\left(A\cos(\omega_1 t) + B\sin(\omega_1 t)\right),

where AA and BB are also determined by the initial conditions.

Scenario 1

An undamped oscillator has a period T0=1.000sT_0 = 1.000\mathrm{s}, but then the damping is turned on. We observe the period increases by 0.001 seconds.

Scenario 2

An undamped oscillator has a period T0=1.000sT_0 = 1.000\mathrm{s}. With weak damping, the amplitude drops by 50% in one period T1T_1. Recall the period of the damped oscillator is given by T1=2π/ω1T_1 = 2\pi/\omega_1.

Exercise 4 (40pt), The Damped Driven Oscillator

The damped driven oscillator is described by the equation of motion,

mx¨+bx˙+kx=F(t),m\ddot{x} + b\dot{x} + kx = F(t),

where F0F_0 is the amplitude of the driving force and ω\omega is the frequency of the driving force. We reduced this equation by dividing by mm to get the equation of motion in terms of the damping coefficient β=b/2m\beta = b/2m and the natural frequency ω0=k/m\omega_0 = \sqrt{k/m}. In the equation below, f(t)=F0/mf(t) = F_0/m.

x¨+2βx˙+ω02x=f(t).\ddot{x} + 2\beta\dot{x} + \omega_0^2x = f(t).

We solve this equation for sinusoidal driving forces, f(t)=f0cos⁡(ωt)f(t) = f_0\cos(\omega t) and demonstrated the resonance effect. In this exercise, we will numerically solve the equation of motion. This will allow us to explore the behavior of the damped driven oscillator for different periodic driving forces, not just sinusoidal ones.

We have written a numerical solver for the damped undriven oscillator; it’s similar to the prior codes we’ve used. Your task is to modify the code to include a driving force. We have used the second order Runge-Kutta method to solve the equation of motion. You can use the code as a starting point for the damped driven oscillator. Notice we also call the code in the next cell.

<Figure size 1000x800 with 1 Axes>

Exercise 5 (20pt), Project Check-in 1

This is the first of three check-ins for your final project. Previously, you submitted a project proposal with milestones. Now, you will submit a progress report. This is common in science and engineering research. Funding agencies require an annual report to ensure the project is on track. While we are not funding you, we want this work to be a similar experience to a research project.

The first annual report is often a minimal progress report. How much can you say? You have only just started!

But, you can say what you have done, what you are planning to do, what you have learned so far, and what changes you have to make. This is the purpose of this exercise.