I was doing the following question yesterday:
Calculate the pH of a $\pu{0.1 M}$ solution of $\ce{NH4HS}$, given $\mathrm{p}K_\mathrm{b}$ of $\ce{NH3}$ is $4.74$, and $\mathrm{p}K_\mathrm{a1}$ and $\mathrm{p}K_\mathrm{a2}$ of $\ce{H2S}$ are $7.04$ and $11.96$, respectively.
My approach
The following equilibria exist in the solution $$\ce{NH4HS -> NH4+ + HS-} \tag{Eqn:1} $$ $$\ce{NH4+ + H2O <=> NH3 + H3O+} \tag{Eqn:2}$$ $$\ce{HS- + H2O <=> H2S + OH-} \tag{Eqn:3}$$ $$\ce{HS- + H2O <=> S^{2-} + H3O+} \tag{Eqn:4}$$ $$\ce{H2O + H2O <=> H3O+ + OH-} \tag{Eqn:5}$$
Setting up the equations
- Material Balancing:
$$\pu{0.1 M} = \ce{[NH_4 ^+] + [NH_3]} \tag{Eqn:M1}$$ $$\pu{0.1 M} = \ce{[H2S] + [HS-] + [S^2-]} \tag{Eqn:M2}$$
Charge Balancing: $$\ce{[H3O+] + [NH4+] = [OH-] + [HS-] + 2[S^2-]} \tag{Eqn:C}$$
Writing $K_\mathrm{eq}$ expressions:
For $(\text{Eqn:2})$, $$\frac{K_\mathrm{w}}{K_\mathrm{b}} = \frac{\ce{[NH_3}][\ce{H_3O^+}]}{\ce{[NH_4^+]}}$$ For $(\text{Eqn:3})$, $$\frac{K_\mathrm{w}}{K_\mathrm{a1}} = \frac{[\ce{H_2S}][\ce{OH^-}]}{[\ce{HS^-}]}$$ For $(\text{Eqn:4})$, $$K_\mathrm{a2} = \frac{[\ce{S^2-}][\ce{H_3O^+}]}{[\ce{HS^-}]}$$ For $(\text{Eqn:5})$, $$K_\mathrm{w} = [\ce{H_3O^+}][\ce{OH^-}]$$
These equations are driving me crazy and any approximation(s) that can be used to reduce number of variables here are appreciated.
Answer
$\ce{[H+] =\sqrt{K_{a1}.[\frac{K_\mathrm{w}}{K_\mathrm{b}} + K_\mathrm{a2}]}}$ $\implies$ pH =$8.14$
I have seen this question but in that case, the $\ce{NH4+}$ doesn't undergo hydrolysis.