In the microcanonical ensemble all states $(p, q) \in \Gamma$ (where $\Gamma$ is the phase space of a system with $3N$ coordinates) with the same energy have the same probability density. I would express this as follows:
\begin{gather} \rho(p, q; N, V, E) = \frac{\epsilon \delta(H(p, q) - E)}{\Omega(N, V, E)}\\ \Omega(N, V, E) = h^{-3N} \int_\Gamma d^{3N} p~d^{3N}q~\epsilon \delta(H(p, q) - E) \end{gather}
Where $H(p, q)$ is the Hamiltonian, $\delta$ the Dirac delta function, $E$ the energy of the system, $3N$ the number of degrees of freedom, $\epsilon$ is a "small" constant with units of energy, and $h$ is Planck's constant.
I have never seen this expression written exactly like this anywhere, but I believe it to correctly capture the idea of the ensemble. At the very least, it is dimensionally correct, and it recovers the fact that $\langle H \rangle = E$, but if it has issues please let me know.
From this expression I would like to recover the usual entropy formula for the microcanonical ensemble: $S(N, V, E) = \ln \Omega(N, V, E)$ (I set Boltzmann's constant to 1 for convenience here). My problem is that if I apply the "general" definition of differential entropy: $S = - \int dx~p(x) \ln p(x)$ I get the following:
$$ S(N, V, E) = - h^{-3N} \int_\Gamma d^{3N} p~d^{3N}q~ \rho(p, q; N, V, E) \ln \rho(p, q; N, V, E) \\= - h^{-3N} \int_\Gamma d^{3N} p~d^{3N}q~ \frac{\epsilon \delta(H(p, q) - E)}{\Omega(N, V, E)} \ln \frac{\epsilon \delta(H(p, q) - E)}{\Omega(N, V, E)} $$
This expression has a logarithm of a delta function, which already makes me pretty uncomfortable, but lets say we can apply the usual log properties to get something like:
$$ S(N, V, E) = - h^{-3N} \int_\Gamma d^{3N} p~d^{3N}q~ \frac{\epsilon \delta(H(p, q) - E)}{\Omega(N, V, E)} \ln \epsilon \delta(H(p, q) - E) + h^{-3N} \int_\Gamma d^{3N} p~d^{3N}q~ \frac{\epsilon \delta(H(p, q) - E)}{\Omega(N, V, E)} \ln \Omega(N, V, E) \\= \frac{-h^{-3N}}{\Omega(N, V, E)}\int_\Gamma d^{3N} p~d^{3N}q~ \epsilon \delta(H(p, q) - E) \ln \epsilon \delta(H(p, q) - E) + \ln \Omega(N, V, E) $$
This is almost what I want, since the second term is the expression I needed, but the first term seems to be an... infinite negative number? I can rewrite it using the sifting property: $$ -\frac{\int_\Gamma d^{3N} p~d^{3N}q~ \delta(H(p, q) - E) \ln \epsilon \delta(H(p, q) - E)}{\int_\Gamma d^{3N} p~d^{3N}q~ \delta(H(p, q) - E)} = \frac{-\ln \epsilon\delta(E - E)}{\Omega(N, V, E)} = \frac{-\infty}{\Omega(N, V, E)} = -\infty $$ I get then $S(N, V, E) = -\infty + \ln \Omega(N, V, E)$.
I'm pretty uncomfortable with these delta function manipulations overall, and I feel like this is very ugly, I would like to know which are the issues in this derivation, and whether it is possible to get to $\ln \Omega(N, V, E)$ more cleanly (I know some of my Dirac delta expressions are not well defined).