Show that the equation for hydrostatic equilibrium, Eq. ( 6 ), can also be written in terms of the optical depth $\tau,$ as
\[\frac{d P}{d \tau}=\frac{g}{\bar{K}}\]
This form of the equation is often useful in building model stellar atmospheres.
$$\frac{d P}{d r}=-G \frac{M_{r} \rho}{r^{2}}=-\rho g$$