from matplotlib import pyplot as plt
from mpl_toolkits.axes_grid1 import make_axes_locatable

import numpy as np
from scipy.optimize import curve_fit
from scipy.integrate import quad

from common import draw_classic_axes, configure_plotting

configure_plotting()
  

Solutions for lecture 1 exercises

Warm-up exercises

  1. An ideal gas only contains 3 positional degrees of freedom.
  2. .
  3. See image below (with )
  4. Minus sign in the exponent. This would result in , which is not physical.
  5. See plot with slider
fig, ax = plt.subplots()
omega = np.linspace(0.1, 3)
T = [1,2]
ax.plot(omega, 1/(np.exp(omega/T[0]) - 1), label = r'$T_1$')
ax.plot(omega, 1/(np.exp(omega/T[1]) - 1), label = r'$T_2$')
ax.set_ylim([0,3])
ax.set_xlim([0,3])
ax.set_xlabel('$\hbar \omega$')
ax.set_xticks([0])
ax.set_xticklabels(['$0$'])
ax.set_ylabel('$n_B$')
ax.set_yticks([0,1, 2])
ax.set_yticklabels(['$0$','$1$', '$2$'])
ax.legend()
draw_classic_axes(ax, xlabeloffset=.2)
fig.show();

png

Exercise 1: Heat capacity of a classical oscillator.

where we used .

  1. The heat capacity is temperature independent.

Exercise 2: Quantum harmonic oscillator.

  1. where we used .

In the high temperature limit and , so which is the same result as in Exercise 1.3.

  1. Compare your result with the plot with the slider. Did you correctly indicate the where the Einstein temperature is?

where we used .

Exercise 3: Total heat capacity of a diatomic material.

  1. Use the formula .

  2. Energy per atom is given by

  1. Energy per atom is given by

  1. Heat capacity per atom is given by

where the heat capacities are calculated with the formula from Excercise 2.4.