$ΔG=-nFe$ (example) and $μ = μ° + RT\ln a$ are used very frequently in chemical thermodynamics.
However, if the Gibbs energy and pressure $P^\circ,G^\circ$ in the standard state of an ideal gas are known, when an isothermal reaction $(P^\circ,G^\circ) \to (P,G)$ occurs, if the pressure P at the end of this reaction is known, the Gibbs energy G at the end state can be expressed by the following formula.
$$G\ =G^\circ+\ nRT\ln\left(\frac{P}{P^\circ}\right)$$
Using the extensivity of G and partially differentiating with respect to n, the "Gibbs energy per mole", that is, the chemical potential μ of this system, is
$$\mu=\mu^\circ+\ RT\ln\left(\frac{P}{P^\circ}\right)$$
So, If we further assume that in an ideal solution where solute A is volatile, and the mole fraction of substance A is $\chi_A$ and the vapor pressure of the pure substance A is $P_A^\bullet$, then the vapor pressure $P_A$ of A satisfies the following equation.
$$P_A=\ \chi_A\ P_A^\bullet$$
Therefore, if substance A is volatile and the vapor is an ideal gas, the chemical potential of the vapor of substance A is:
$$\mu_A=\mu_A^\circ+RT\ln\left(\frac{\chi_A\ P_A^\bullet}{P^\circ}\right)\ \\ =\mu_A^\circ+RT\ln\left(\frac{\ P_A^\bullet}{P^\circ}\right)\ +RT\ln\left(\chi_A\right)$$
When we define$\mu_A^\bullet$ as follows
$$\mu_A^\bullet := \mu_A^\circ+RT\ln\left(\frac{\ P_A^\bullet}{P^\circ}\right)\ $$
we get $$\mu_A = \mu_A^\bullet +RT\ln\left(\chi_A\right)$$
However, if A is non-volatile (for example NaCl),
$$P_A^\bullet =0$$
and so
$$\ln\left(\frac{\ P_A^\bullet}{P^\circ}\right) =\ln (0) = -\infty$$
Of course, for volatile non-ideal solvents an empirical correction using activity values could be made. The chemical potential μ is expressed as a function of the standard chemical potential μ° and the activity a as follows:
$μ = μ° + RT \ln a$
However, in the case of non-volatile solvents such as NaCl, there is the major problem of ln(0)=-∞ mentioned above, so derivation using vapor pressure seems inherently difficult, and even if activity is used, it seems necessary to use a logic that at least avoids "ln(0)=-∞".
Despite this, many textbooks use the same formula for the chemical potential of an ideal solution of a non-volatile solute as for a volatile solute.
My question: Why does the following equation hold even when the A is non-volatile? How does the following equation derive when A is non-volatile?
$μ = μ° + RT \ln a$