From the quantum statistics of a completely degenerate electron gas (all the lowest quantum states are occupied), the
pressure and the
density of a white dwarf are calculated in terms of the maximum electron momentum p_0standardized as x = p_0 / mc, with pressure P = A f(x) and density \rho = B x^3, where \begin{align} & A = \frac{\pi m_\text{e}^4 c^5}{3h^3} = 6.02\times 10^{21} \text{ Pa}, \\ & B = \frac{8\pi}{3}m_p\mu_\text{e}\left(\frac{m_\text{e} c}{h}\right)^3 = 9.82\times 10^8 \mu_\text{e} \text{ kg/m}^3, \\ & f(x) = x(2x^2-3)(x^2+1)^{1/2} + 3 \sinh^{-1} x, \end{align} \mu_\text{e} is the mean molecular weight of the gas, and h is the
Planck constant. When this is substituted into the
hydrostatic equilibrium equation \frac 1 {r^2} \frac{d}{dr}\left(\frac{r^2}{\rho}\frac{dP}{dr}\right)=-4\pi G \rho where G is the
gravitational constant and r is the radial distance, we get \frac{1}{r^2} \frac{d}{dr}\left(r^2\frac{d\sqrt{x^2+1}}{dr}\right)=-\frac{\pi G B^2}{2A}x^3 and letting y^2 = x^2 + 1, we have \frac{1}{r^2} \frac{d}{dr}\left(r^2\frac{dy}{dr}\right)=-\frac{\pi G B^2}{2A}(y^2-1)^{3/2} If we denote the density at the origin as \rho_\text{o} = B x_\text{o}^3 = B (y_\text{o}^2-1)^{3/2} , then a non-dimensional scale r = \left(\frac{2A}{\pi G B^2}\right)^{1/2} \frac{\eta}{y_\text{o}}, \quad y = y_\text{o} \varphi gives \frac{1}{\eta^2} \frac{d}{d\eta}\left(\eta^2 \frac{d\varphi}{d\eta}\right) + (\varphi^2 - C)^{3/2} = 0 where C=1/y_\text{o}^2. In other words, once the above equation is solved the density is given by \rho = B y_\text{o}^3 \left(\varphi^2 - \frac 1 {y_\text{o}^2}\right)^{3/2}. The mass interior to a specified point can then be calculated M(\eta) = -\frac{4\pi}{B^2}\left(\frac{2A}{\pi G}\right)^{3/2}\eta^2\frac{d\varphi}{d\eta}. The radius–mass relation of the white dwarf is usually plotted in the plane \eta_\infty–M(\eta_\infty). == Solution near the origin ==