Question. I have trouble understanding one step in Gibbs adsorption isotherm derivation. I don't understand why we can write $G=U+PV-TS+\sum \mu_i n_i$, how to prove this equation? I saw this equation in Hiemenz's Principles of colloid and surface chemistry, it was given without a proof, so it should be well-known. Some people here claim that this equation is incorrect, is it so? One of my colleges claims that it is correct and it is a definition.
What I already know. I know that $G=U+PV-TS$ is definition of Gibbs energy in case where reagent molar quantities are constant. Also I know that $G=\sum \mu_i n_i$, when p and V are constant, because when $p,T=const$ Gibbs energy is homogeneous function of $n_i$. I know how to prove $dG=Vdp-SdT+\sum_i \mu_i dn_i$. I also know that $d G= \left(\frac{\partial G}{\partial p} \right)_{T,n_i} dp+\left(\frac{\partial G}{\partial T} \right)_{p,n_i} dT+\sum_i \left(\frac{\partial G}{\partial n_i} \right)_{T,p, n_j} dn_i$, where $i\neq j$.
My attempt to solve question.
- There was similar question: Trying to understand the derivation of the Gibbs adsorption isotherm, but the answer was insufficient for my question.
- There also was similar question here: Why does $U = T S - P V + \sum_i \mu_i N_i$?. Here $U=TS-PV+\sum_i \mu_i n_i$ was proved using that U is homogeneous function of S, V, n, but there was no proof why U is homogenous function of S, V and n.
I am grasping that:
I assume that G has partial derivatives in all path points starting from initial to final point of integration, so there is total differential dG in all path points.
$G_1=U+PV-TS=\int \left( \left(\frac{\partial G}{\partial p} \right)_{T,n_i} dp+\left(\frac{\partial G}{\partial T} \right)_{p,n_i} dT \right)$. I am grasping that it is because $G_1= \int dG , ~if n_i=const$.
And that $G_2=\sum_i \mu_i n_i= \sum_i \int \left(\frac{\partial G}{\partial n_i} \right)_{T,p} dn_i$. It is so because from equation $G_2=\sum \mu_i n_i$ derivation I see that $G_2=\int dG, ~if p,V=const$.
$G=\int \left( \left(\frac{\partial G}{\partial p} \right)_{T,n_i} dp+\left(\frac{\partial G}{\partial T} \right)_{p,n_i} dT+\sum_i \left(\frac{\partial G}{\partial n_i} \right)_{T,p, n_j} dn_i \right)$, where $i \neq j$
So we have: $G=G_1+G_2=U+PV-TS+\sum \mu_i n_i$
Gaps in attempt to solve my question. If my attempt to prove $G=U+PV-TS+\sum \mu_i n_i$ is correct, I have this questions:
a. What are limits of integrals in my proof and why? I am guessing that they are from 0 to $(p,T,n_1...n_i...n_k)$.
b. When I try to plug in my $G_1$ and $G_2$ definitions to $G=U+PV-TS+\sum_i \mu_i n_i$, I don't get $G_1=U+PV-TS$ and $G_2=\sum_i \mu_i n_i$. That is when I try making constant T and p or $n_i$. How to account for this?
c. If there is way to make my proof more rigorous I would like to see it. If there is different proof, I would like to see it. Is there "classical proof", I would like see the source? I am surprised that I wasn't able to find proof of this statement in physical chemistry textbooks.
If whole equation is incorrect, like some people say, where is error in my proof attempt?
P.S.: Frequently, in thermodynamics books authors prove some steps by marking them "obvious" or "self-evident", frequently they add "physical story" that should make this obvious to readers. I am not asking for stories, I am asking for proof. By proof I understand sequence of formulas where each of them is an axiom or a hypothesis or derived from these using inference rules. All axioms and inference rules are listed, and on can't add new ones while proving something. In practice one can use theorems too. I know predicate logic, I prefer Fitch notation. I am a chemist, so things that are obvious to a physicist, might not be obvious to me.