To be honest, I just threw this out, I am not even 100% sure if any of this maths is right as it seemed to be a slippery slope trying to solve this one.
I just put this here to show that the community here do try and make an effort, but this one is whey out of my range.
pH is:
[tex]pH=-log([H^+])[/tex]
Therefore:
[tex][H^+] = 10^{-pH}[/tex]
[tex]\Delta [H^+]=10^{-pH_2}-10^{-pH_1}[/tex]
Intermediate example you chosen: pH 8 -> pH 5.2
[tex][H^+_1] = 10^{-8}[/tex]
[tex][H^+_2] = 10^{-5.2}[/tex]
So if we have a solution that is at pH8 we need to increase the [tex]H^+[/tex] concentration by [tex]10^{-5.2}-10^{-8}[/tex]
Citric acid isn't a strong acid, so its Ka is < 1. We're aiming for the above mentioned concentration change so:
[tex]K_a(citric) = \frac{[X-][H^+]}{[Citric acid added]-[X^-]}[/tex]
Rearranging, remembering that [X-] = [H+] if no other acids/bases are present otherwise youll get a buffer case concentration wise:
[tex][\Delta H^+]^2+[\Delta H^+]K_a = [Citric acid added]K_a[/tex]
You must remember the volume of liquid already present might not be equal to a [tex]dm^3[/tex] so:
[tex][Citric acid added] = \frac{n}{v} = \frac{m}{192.123v}[/tex]
Volume of solution in [tex]dm^3[/tex]
Mass in grams
So inserting all what we know:
[tex][\Delta H^+]^2+[\Delta H^+]K_a = \frac{mK_a}{192.123V}[/tex]
Rearranging it for m to be the subject
[tex]\frac{192.123V}{K_a}([\Delta H^+]^2 + [\Delta H^+]K_a) = m[/tex]
Since we found [tex][\Delta H^+][/tex] before we can sub that in:
[tex]\frac{192.123V}{K_a}((e^{-2*pH_2}-e^{-2*pH_1})+(e^{-pH_2}-e^{-pH_1})K_a) = m[/tex]
As this is a quadratic equation we make [tex][\Delta H^+][/tex] the subject as such (if your trying to find the pH change on addition of m amount of acid to v):
[tex][\Delta H^+] = \frac{-K_a+\sqrt{K_a^2 + 4*\frac{mK_a}{192.123V}}}{2}[/tex]
If you want to know the pH change from adding mass m to volume V then:
[tex]\Delta pH = log_10 \left[ \frac{-K_a+\sqrt{K_a^2+4*\frac{mK_a}{192.123V}}}{2}\right][/tex]
The left side of the equation is decided by you, then the right side is found out, where:
[tex]K_a[/tex] Ka of the acid in question
[tex]m[/tex] mass of solid acid added that is changing the pH
[tex]V[/tex] Volume of solvent/solution that your adding the solid acid too
To be honest, I just threw this out, I am not even 100% sure if any of this maths is right as it seemed to be a slippery slope trying to solve this one.
This not only goes off the assumption of a monoprotic acid, but a monoprotic acid that is not in a salt solution (buffer possibilities), as you can see i messed my head up trying to calculate this extremely "easy" example (since I thought I'd do this in no time whatsoever) imagine trying to do this under more realistic conditions.