I want to derive the Maxwell–Boltzmann distribution using only the fundamental relation and the Boltzmann's entropy formula.
$dU=TdS-pdV\tag1$ $S=k_b ln(\Omega)\tag2$
So using only the two equations I get:
$$dS=k_b\frac{1}{\Omega} d\Omega$$
$$dS=\frac{1}{T}dU$$
$$\frac{1}{T}dU=k_b\frac{1}{\Omega} d\Omega$$ $$\frac{1}{Tk_b}dU=\frac{1}{\Omega} d\Omega$$ $$\frac{U}{Tk_b}=ln(\Omega)$$
$U=\frac{mv^2}{2}$ I also substitute the kinetic energy formula.
$$\frac{mv^2}{2Tk_b}=ln(\Omega)$$
$$\Omega=exp\left(\frac{mv^2}{2Tk_b}\right)$$
$$\frac{1}{\Omega}=exp\left(\frac{-mv^2}{2Tk_b}\right)$$
$$P(v)=\frac{exp\left(\frac{-mv^2}{2Tk_b}\right)}{\sum exp\left(\frac{-mv^2}{2Tk_b}\right)}$$
$$P(v)=\frac{exp\left(\frac{-mv^2}{2Tk_b}\right)}{\displaystyle Z}$$
where ${\displaystyle Z=\sum exp\left(\frac{-mv^2}{2Tk_b}\right)}={\displaystyle Z=\sum _{i}e^{-\beta E_{i}}}$ is the canonical partition function (whatever that means).
and so
$${\displaystyle f(\mathbf {v} )~d^{3}\mathbf {v} =A\exp \left(-{\frac {mv^{2}}{2k_{\text{B}}T}}\right)~d^{3}\mathbf {v} }$$
where $A$ is the normalization constant I obtain by solving the Gaussian integral.
I want to derive it like this, because I am not yet familiar so much with statistical mechanics, but I know classical thermodynamics and I wonder if this derivation is "legal" (whatever that means).