Homework 6 (Due 15 Mar)#

Due Mar 15 (midnight)

Date: Mar 4, 2024 Total points: 100

import numpy as np
from math import *
import matplotlib.pyplot as plt
import pandas as pd
%matplotlib inline
plt.style.use('seaborn-v0_8-colorblind')

Introduction to Homework 6#

This week’s exercises focus on oscillators and how to approximate the solution to the equations of motion using the SHO. The relevant reading background is:

  1. chapter 5 of Taylor

  2. chapter 6.6-6.8 of Boas

  3. chapters 2.0-2.3 and 5.0-5.2 of Strogatz

In both textbooks there are many nice worked out examples.

Practicalities about homeworks and projects#

  1. You can work in groups (optimal groups are often 2-3 people) or by yourself. If you work as a group you can hand in one answer only if you wish. Remember to write your name(s)!

  2. Homeworks are available ten days before the deadline.

  3. How do I(we) hand in? You can hand in the paper and pencil exercises as a scanned document. For this homework this applies to exercises 1-4. Alternatively, you can hand in everything (if you are ok with typing mathematical formulae using say Latex) as a jupyter notebook at D2L. The numerical exercise(s) (exercise 5-6 here) should always be handed in as a jupyter notebook by the deadline at D2L.

Exercise 1 (10pt) Morse Potential as an SHO#

If the potential has a local minimum, we can often find SHO approximation for that potential near the local minimum.

The Morse potential is a convenient model for the potential energy of a diatomic molecule. The potential is a radial one and thus one-dimensional. It is given by,

\[U(r) = A\left[ \left(e^{(R-r)/S}-1\right)^2-1\right]\]

where the distance between the centers of the two atoms is \(r\), and the constants \(A\), \(R\), and \(S\) are all positive. Here \(S<<R\).

  • 1a (2pt) Sketch (or plot) the potential as a function of \(r\).

  • 1b (3pt) Find the equilibrium position of the potential, i.e. the position where the potential is at a minimum. We will call this \(r_e\).

  • 1c (3pt) Rewrite the potential in terms of the displacement from equilibrium, \(r = r_e + x\). Expand the potential to second order in \(x\).

  • 1d (2pt) Find the effective spring constant, \(k\), for the potential near the minimum. What is the frequency of small oscillations about the minimum?

Exercise 2 (10pt), Simple Pendulum as an SHO#

Consider a pendulum of length \(L\) and mass \(m\). It can swing back and forth in a plane, under the influence of gravity. The pendulum is designed so that it can swing through a full circle.

  • 2a (3pt) Draw the free-body diagram for the pendulum, and write the equations of motion.

  • 2b (3pt) Find the potential energy of the pendulum as a function of the angle \(\phi\) it makes with the vertical. (Choose the zero of potential energy to be at the bottom of the pendulum’s swing.)

  • 2c (4pt) For small angles, show the potential reduces to an SHO. What is the effective spring constant, \(k\), for the potential near the minimum? What is the frequency of small oscillations about the minimum?

Exercise 3 (10pt), Time Averaging and the SHO#

Time Averaging is a common tool to use with periodic systems. It also us to discuss what happens to different properties of the system over one period.

An SHO has a period \(\tau\). We can find the time average of a variable \(f(t)\) over one period, \(\langle f \rangle\), by averaging over the period,

\[\langle f \rangle = \frac{1}{\tau}\int_0^\tau f(t)dt\]
  • 3a (2pt) Show that the time average of the position of the SHO is zero.

  • 3b (2pt) Show that the time average of the velocity of the SHO is zero.

  • 3c (6pt) Show that the time average of the kinetic energy of the SHO is equal to the time average of the potential energy (and importantly, non-zero). If the total energy is \(E\), these time averages are equal to \(E/2\). You might need to show that the very useful trigonometric identity,

\[\langle \sin^2(\omega t-\delta)\rangle = \langle \cos^2(\omega t-delta)\rangle = \frac{1}{2}\]

Exercise 4 (10pt), Toy Potential#

Consider a toy potential of the form,

\[U(r) = U_0\left(\dfrac{r}{R}+\lambda^2\frac{R}{r}\right)\]

where \(U_0\), \(R\), and \(\lambda\) are all positive constants and the domain of the potential is \(0<r<\infty\).

  • 4a (2pt) Sketch (or plot) the potential as a function of \(r\).

  • 4b (3pt) Find the equilibrium position of the potential, i.e. the position where the potential is at a minimum. We will call this \(r_e\).

  • 4c (5pt) Rewrite the potential in terms of the displacement from equilibrium, \(r = r_e + x\). Expand the potential to second order in \(x\). What is the effective spring constant, \(k\), for the potential near the minimum? What is the frequency of small oscillations about the minimum?

Exercise 5 (10pt), Defining Periodicity#

A common issue with oscillators is determining their periodicity. For the SHO, we can show that the period is \(2\pi/\omega_0\) where \(\omega_0\) is the natural frequency of the SHO. How might we define a periodicity more generally? Let’s start with the damped harmonic oscillator. Consider a weakly damped oscillator (\(\beta < \omega_0\)). The motion of the oscillator is given by,

\[x(t) = A e^{-\beta t}\cos(\omega_1 t - \delta)\]

where \(A\) is the amplitude, \(\beta\) is the damping constant, \(\omega_1 = \sqrt{\omega_0^2 - \beta^2}\) and \(\delta\) is the phase.

The motion decays with time, but we can still define a periodicity, \(\tau_1\), which is the time between peaks in the motion.

  • 5a (4pt) Sketch (or plot) the motion of the oscillator as a function of time. Show that you can find \(\tau_1 = 2\pi/omega_1\) from looking at successive maxima.

  • 5b (3pt) Show that an equivalent definition of \(\tau_1\) is twice the time between zero crossings of the motion.

  • 5c (3pt) If the damping \(\beta\) is half the natural frequency (\(\omega_0\)), how does the amplitude of the motion decay in one period?

Exercise 6 (50 pt), Find your own 1D Oscillator#

We have built all the tools to study 1D unforced oscillators. Now you get to pick your own potential and study it. You can pick any 1D potential you like, but it should have a local minimum. Make sure it is not a driven oscillator (i.e., no explicit time dependence in the equations of motion). To earn full credit for this exercise, you must:

  • 6a (5pt) Present the potential and describe its origin, why it is interesting, where it comes from, etc. Educate us about it.

  • 6b (5pt) Sketch (or plot) the potential as a function of it’s argument (and chosen variables) and find the equilibrium position of the potential, i.e. the position where the potential is at a minimum.

  • 6c (10pt) Rewrite the potential in terms of the displacement from equilibrium. Expand the potential to second order to find the effective spring constant, \(k\), for the potential near the minimum. What is the frequency of small oscillations about the minimum?

  • 6d (10pt) Construct the equations of motion for the potential and solve them numerically. Choose initial conditions and parameters that give oscillatory motion. Note it doesn’t have to be SHO (In fact, it probably won’t be). Plot the position as a function of time. Make sure we can see the oscillations.

  • 6e (10pt) Plot the phase diagram of the trajectory (you don’t have to produce a phase diagram, but just plot the trajectory in phase space). What does the phase diagram tell you about the motion?

  • 6f (10pt) Find the period of your motion. Here you might have to make some definitions of what periodicity means for your potential.

Examples of 1D potentials#

  1. Simple Pendulum (Nonlinear Small Angle Approximation):

    • Potential: \( V(\theta) = mgh(1 - \cos(\theta)) \), where \(m\) is the mass, \(g\) is the acceleration due to gravity, \(h\) is the length of the pendulum, and \(\theta\) is the angular displacement.

  2. Nonlinear Spring (Hardening or Softening):

    • Potential: \( V(x) = \frac{k}{2} x^2 + \frac{\beta}{3} x^3 \), where \(k\) and \(\beta\) are constants. Depending on the sign of \(\beta\), the spring can exhibit hardening (\(\beta > 0\)) or softening (\(\beta < 0\)) nonlinearity.

  3. Lennard-Jones Potential Oscillator (for a diatomic molecule model):

    • Potential: \( V(r) = 4\epsilon \left[ \left(\frac{\sigma}{r}\right)^{12} - \left(\frac{\sigma}{r}\right)^6 \right] \), where \(\epsilon\) is the depth of the potential well, \(\sigma\) is the finite distance at which the inter-particle potential is zero, and \(r\) is the distance between particles.

  4. Morse Potential (for molecular vibrations):

    • Potential: \( V(x) = D_e \left(1 - e^{-a(x - x_0)}\right)^2 \), where \(D_e\) is the depth of the potential well, \(a\) is a constant related to the width of the well, \(x\) is the displacement from equilibrium, and \(x_0\) is the equilibrium bond length. This potential models the energy of a diatomic molecule as a function of the distance between atoms, showing oscillatory behavior that represents molecular vibrations.

  5. Double Well Potential:

    • Potential: \( V(x) = -\frac{\mu}{2} x^2 + \frac{\lambda}{4} x^4 \), where \(\mu\) and \(\lambda\) are positive constants. This system exhibits bistability with two stable equilibria, leading to interesting nonlinear dynamics and potential oscillations between the wells under certain conditions.

Extra Credit - Integrating Classwork With Research#

This opportunity will allow you to earn up to 5 extra credit points on a Homework per week. These points can push you above 100% or help make up for missed exercises. In order to earn all points you must:

  1. Attend an MSU research talk (recommended research oriented Clubs is provided below)

  2. Summarize the talk using at least 150 words

  3. Turn in the summary along with your Homework.

Approved talks: Talks given by researchers through the following clubs:

  • Research and Idea Sharing Enterprise (RAISE)​: Meets Wednesday Nights Society for Physics Students (SPS)​: Meets Monday Nights

  • Astronomy Club​: Meets Monday Nights

  • Facility For Rare Isotope Beam (FRIB) Seminars: ​Occur multiple times a week