How can you derive the ideal gas law?
3 Answers
Ideal gas equation is arrived at from experimental evidence.
From Charles' law,
From Boyle's law,
Also, from Avogadro's law that equal volumes of gases at the same temperature and pressure have equal number of molecules,
The above results are combined immediately to obtain that,
Therefore,
Hence,
But for
Thus,
Thus, we finally arrive at the ideal gas law,
Where,
Another way I recently came across is essentially a derivation. I'll illustrate below.
Explanation:
From statistical mechanics, the Helmholtz free energy is given as,
But,
If energy levels are closely spaced,
However,
Therefore, the partition function of each molecule (subsystem),
This is evaluated by Gamma functions and is,
Now, the partition function of the entire system consisting of
However, from Thermodynamics,
Thus we get the ideal gas equation,
Aritra has a good statistical mechanics derivation, but I want to provide one that goes all the way back to particle statistics.
As a bonus, we get expressions for
Most particles (namely, socalled corrected boltzons) have a statistical distribution given by (Norman Davidson, Statistical Mechanics, 1969):
#lnt = sum_i (N_i ln (g_i/N_i) + N_i)# where
#t# gives the number of microstates in the system with#N_i# particles in a state of energy#epsilon_i# of degeneracy#g_i# .
The Boltzmann formulation of entropy is wellknown:
#S = k_Blnt#
As long as the energy levels in a system are only a function of the volume (and not the entropy itself), we can first find the absolute entropy from this known distribution:
#S = k_B sum_i (N_i ln (g_i/N_i) + N_i)#
A conservative system is constrained by a constant number of particles and energy, such that

the total number of particles is constrained to
#N = sum_i N_i# . 
the total internal energy is constrained to
#E = sum_i N_iepsilon_i# .
Furthermore, the distribution of states is given by:
#N_i/N = (g_ie^(epsilon_i//k_BT))/(sum_i g_i e^(epsilon_i//k_BT)# where
#q# is the microcanonical partition function,#q = sum_i g_ie^(epsilon_i//k_BT)# , and#q# is a function of only temperature and volume.
As a result, the absolute entropy can be rewritten as:
#S = k_B [sum_i N_i ln (q/N e^(epsilon_i//k_BT)) + sum_i N_i]#
Since
#S = k_B [ln (q/N) sum_i N_i + sum_i N_iln(e^(epsilon_i//k_BT)) + sum_i N_i]#
From the constraints given, the absolute entropy is:
#barul(stackrel(" ")(" "S = Nk_Bln(q/N) + E/(T) + Nk_B" "))# (As a fun fact, the standard molar entropy found in the back of General Chemistry textbooks can be derived from this equation.)
From the idea that the Gibbs' free energy is given as a function of the enthalpy and entropy,
Similarly, we also have that the Helmholtz energy is
#A = cancelE  (Nk_BTln(q/N) + cancelE + Nk_BT)#
#=> barul(stackrel(" ")(" "A = Nk_BTln(q/N)  Nk_BT" "))#
The chemical potential
#dA = SdT  PdV + sum_i mu_idN_i#
#mu = G/N = ((delA)/(delN))_(T,V)#
#= k_BT(N cdot (delln(q//N))/(delN) + ln(q/N))  k_BT#
Since
#barul(stackrel(" ")(" "mu = k_BTln(q/N)" "))#
By comparison, since
#G = A + Nk_BT#
From thermodynamics, just like
#G = H  TS#
#= TS + E + PV#
#= A + PV# .
Therefore, the ideal gas law is:
#color(blue)(barul(stackrel(" ")(" "PV = Nk_BT = nRT" ")))# where
#N/nk_B = N_Ak_B = R# , with#n# being the mols of gas and#N# being the number of gas particles.
And this holds as long as "the number of system states in the subsystems is equal to the number in the most probable distribution" (Norman Davidson, Statistical Mechanics, 1969).