How is \(K_E = \frac{3}{2} k_BT\) for gas?#

By Hanan Gharyaba

\["~True~Knowledge~Is~Knowing~What~You~Don't~Know~"\]

If you find yourself wondering around some concepts in this Notebook, you might want to check


The proportionality between \(\color{red}{\text{Temperature}}\) and \(\color{red}{\text{Kinetic energy}}\) \( K_E \propto T\) for gases is intuitive to a lot of students.This notebook is for those who enjoy having both maths and physics as a defence for their common knowledge.

Step 1: Sett up the calculation of the change in momentum#

Assuming we have a box with a volume V, containing one gas particle with a mass \(m\) and a velocity \(v_x\). Hence moving with a velocity v in the positive x axes direction.

#Installing needed libraries 
!pip install bubblebox evince
import bubblebox as bb
import evince as ev
from bubblebox.mdbox import no_forces

import matplotlib.pyplot as plt
import numpy as np

%matplotlib notebook
ev.enable_notebook() # Must be last line
s1 = bb.mdbox(n_bubbles =1, size = (1,1), vel = 1)
s1.view()
while True:
    s1.advance()
    s1.update_view()

The momentum of a body is by definition its mass multiplied by its velocity:

\(momentum = m \cdot v\)

The moving particle as shown in the box, will collide with the wall and is reflected. Assuming that the collision with the wall is perfectly elastic, resulting to zero loss in momentum, it is possible to calculate the absulte change in momentum.

\(\Delta momentum ~ = | momentum_{after~collision} – momentum_{before~ collision}|\)

\(~~~~~~~~~~~~~~~~~~~~~= | -m v_x – m v_x| \)

\(~~~~~~~~~~~~~~~~~~~~~= |-2mv_x| \)

\(~~~~~~~~~~~~~~~~~~~~~= 2mv_x\)

Note that becouse the collisions are elastic, the particle will end up having the same velocity, yet in the opposite direction

In a more complicated system, many molecules will collide with the wall in the interval \(\Delta t\), and the Total change in momentum is the product of the change in momentum of each molecule, multiplied by the total number of molecules that reach the wall at the interval.

Step 2: Enlarge the system and calculate the change in momentum#

Let’s add more particles and enlarge the system to 3 dimentions. Setting the box to have a side area = A, and a total volum = V

Keep in mind: In order to calculate the total change in momentum, we need to calculate the total amount of particles that will collide with the wall in the given time interval

s2 = bb.mdbox(n_bubbles =9, size = (4,2,2), vel = 0)

#s2.set_forces(no_forces, force_params = 1, )
s2.view()
while True: 
    s2.advance()
    s2.update_view()

Knowing that the velocity of a particle is defined as the distance travelled at a time interval \(v_x = \frac{\Delta x}{\Delta t}\), the distance a molecule travels by is \(\Delta x = {v_x} \Delta t\)

This means that all the particles with the given velocity \({v_x}\) and a position within a distance \(\Delta x = {v_x} \Delta t\) from the boxes wall will collide with it (given that the particles are moving towards that wall)

As the box is sat to have a wall area = A . All the particles in the volume \(|{v_x}\cdot \Delta t|\cdot A\) will collide with the wall (given that they are moving toward it)

Assuming the box contain n mol of molecules. The density of the molecules in the whole box is the number of molecules divided by the boxes volume

\(particle~density = \frac{n\cdot N_A}{V}\)

Where \(N_A\) = Avogadro’s constant

This formula for particle density can be used to calculate the amount of particles at any volume fraction of the box.

For the volume \(|{v_x}\cdot \Delta t|\cdot A\):

The number of particles = \( \frac{n\cdot N_A}{V} \cdot |{v_x}\cdot \Delta t|\cdot A\)

At any instant half of the particles will move towards the wall and the other half away from it, meaning that the average number of collision with the wall during the time interval \(\Delta t\) is halv the number of the particles,

Mean number of collisions = \(\frac{1}{2} \cdot \frac{n\cdot N_A}{V} \cdot |{v_x}\cdot \Delta t|\cdot A \)

Now: that we know the amount of patricles colliding & the change in momentum for one particle; Let us calculate the momentum change for the whole amount of particles:

\(\Delta momentum = mean~number~of~collisions \cdot 2m v_x\)

\(\Delta momentum =\frac{1}{2} \cdot \frac{n\cdot N_A}{V} \cdot |{v_x}\cdot \Delta t|\cdot A \cdot 2m v_x \)

Given that \(M = m \cdot N_A\) we can rewrite the expression over to become:

\(\Delta momentum = \frac{n~M~A~v_x^2\Delta t}{V}\)

Step 3: Calculate the pressure P from the change in momentum#

Pressure is equal to the force devided by the area. And ccording to Newtons second law of motion this rate of change in momentum is equal to the force.

Therfore:

The rate of change in moemntum \(\frac{\Delta momentum}{\Delta t} = \frac{n~M~A~v_x^2}{V}\)

Pressure = \(\frac{ \frac{n~M~A~v_x^2}{V}}{A}\)

Pressure = \(\frac{n~M~v_x^2}{V}\)

\(PV = {n~M~v_x^2}\)

Step 4: Adding more Dimentions#

The average values of \(v_x^2 , v_y^2, v_z^2 \) are all the same

Given that \( v^2 = v_x^2 + v_y^2 + v_z^2 \)

It follows that \(v_x^2 = \frac{1}{3}\cdot v^2\)

Sitting \(v_x^2 = \frac{1}{3}\cdot v^2\) in the pressure expression:

\(PV = \frac{1}{3} n~M~v^2\)

\(PV = \frac{1}{3} n~M~v^2\)

Step 5: Inserting Temperature T in our expression#

Using the ideal gass equation \(PV = nRT\)

\(nRT = \frac{1}{3} n~M~v^2 \)

\(RT = \frac{1}{3} M~v^2\)

Setting back M to its value \(M = m \cdot N_A\)

\(RT = \frac{1}{3} m \cdot N_A~v^2\)

Fram here, we can rearrange the equation to get the expression of the kinetic energy in the right side, by multiplying both sides with \(\frac{3}{2 N_A}\)

\(\frac{3}{2} RT = \frac{1}{2} m \cdot N_A v^2\)

\(\frac{3}{2} \frac{RT}{N_A} = \frac{1}{2} m v^2\)

Given that Boltzmann’s constant \(k_B = \frac{R}{N_A}\)

\(\frac{3}{2} k_B T = \frac{1}{2} m v^2\)

resulting to:

\(\color{red}{\text{\)E_k = \frac{3}{2} k_B T\(}}\)