Free-electron fraction during hydrogen--helium recombination (source code)

= Free-electron fraction during hydrogen--helium recombination

In a <hydrogen>–<helium> gas with negligible doubly ionized <helium>, define the nuclear <number densities> $n_H=n_{H^0}+n_{H^+}$ and $n_{He}=n_{He^0}+n_{He^+}$. Neglecting nuclear <binding energy> in the abundance conversion, the <baryon> <number density> and helium mass fraction satisfy
$$
n_B=n_H+4n_{He},\qquad Y_p=\frac{4n_{He}}{n_B}.
$$
The <ionization fractions> $X_{H^+}=n_{H^+}/n_H$ and $X_{He^+}=n_{He^+}/n_{He}$ count ionized nuclei within each species. <Charge neutrality> gives $n_e=n_HX_{H^+}+n_{He}X_{He^+}$, hence
$$
\mathcal F\equiv\frac{n_e}{n_B}=(1-Y_p)X_{H^+}+\frac{Y_p}{4}X_{He^+}.
$$
Thus complete single ionization gives $\mathcal F=1-3Y_p/4$, rather than one <electron> per <baryon>. This fraction uses a different denominator from $n_e/n_H$. At sufficiently high <temperature> to doubly ionize <helium>, the helium contribution must instead count two <electrons> per such nucleus.