At pH=7, i.e., the solubility in water is S,
The solubility product, Ksp=S2−−−−−>1
Assume the solubility of sparingly soluble salt is atpH=2
MX⇌M⊕+X⊖S1S1−x
The weak dissociation reaction is as follows,
X⊖+H⊕⇌HXS1−x10−2x
Assume the acid dissociation constant is Ka.
Now, Ka1=[H+][X−][HX]
Ksp=S1(S1−x)
Ka1=[H+]S1−xS1 assume S1≃x
S1−x=S1Ksp
Ka1=[H+]KspS12⇒S12=Ka10−2Ksp−−−−−−−>2
Now from 1 and 2,
S2S12=Ka10−2⇒Ka=10−610−2×10−8⇒Ka=10−4⇒pKa=4