First up I will calculate the pH of the buffer before any HCl is added.
Ammonium ions are very weakly acidic and hydrolyse:
#sf(NH_4^(+)rightleftharpoonsNH_3+H^+)#
For which:
#sf(K_a=([NH_3][H^+])/([NH_4^+])=5.6xx10^(-10)color(white)(x)"mol/l"" ""at"" ""25^@C)#
These are equilibrium concentrations. To find the pH we need to find #sf([H^+])# so rearranging:
#sf([H^+]=K_axx([NH_4^+])/([NH_3])" "color(red)((1)))#
#:.##sf([H^+]=5.6xx10^(-10)xx0.270/0.390=3.877xx10^(-10)color(white)(x)"mol/l")#
#sf(pH=-log[H^+]=-log(3.877xx10^(-10))=9.41)#
Now we need to find how much HCl can be added to bring the pH down to 9.
The buffer works because there is sufficient base to absorb the addition of small amounts of #sf(H^+)# ions:
#sf(H^++NH_3rarrNH_4^+)#
If #sf(x)# moles of #sf(H^+)# is added then the number of moles of #sf(NH_3)# goes down by #sf(x)# and the number of moles of #sf(NH_4^+)# goes up by #sf(x)#.
If you look at #sf(color(red)((1))# you can see that it is the ratio of #sf(([NH_4^+])/([NH_3]))# which can be altered to adjust the pH.
I will adjust #sf(color(red)((1))# so it gives a pH of 9 and then find the new ratio of #sf(([NH_4^+])/([NH_3]))#. This will allow #sf(x)# to be calculated.
#sf(pH=9)# so #sf([H^+]=10^(-pH)=10^(-9)color(white)(x)"mol/l")#
#:.##sf(10^(-9)=5.6xx10^(-10)xx([NH_4^+])/([NH_3]))#.
#:.##sf (([NH_4^+])/([NH_3])=1.785)#
Now to find the new concentrations:
Initial moles of #sf([NH_4^+]=cxxv=0.390xx130.0/1000=0.507)#
If #sf(x)# moles of #sf(H^+)# is added then the new moles of #sf(NH_4^+rArr(0.0507+x))#
Initial moles of #sf(NH_3=cxxv=0.270xx130.0/1000=0.0351)#
After adding #sf(x)# moles of #sf(H^+)# then the new moles of #sf(NH_3rArr(0.351-x))#
We know the required ratio to give a pH of 9 is 1.785 so we can write:
#sf(((0.0507+x))/((0.0357-x))=1.785" "color(red)((2)))#
Note I can use moles directly in this ratio rather than concentrations as the volume is common to both so will cancel.
Rearranging #sf(color(red)((2))rArr)#
#sf((0.0507+x)=1.785(0.0357-x))#
From which:
#sf(x=0.00467color(white)(x)"mol")#
This is the no. of moles of HCl which must be added.
Now we can find the mass of HCl needed:
#sf("mass"=nxxM_r=0.00467xx36.461=0.170color(white)(x)g)#
HCl is a gas at room temperature so it would be more practical to add this as a dilute solution of the appropriate concentration and volume.
You can see it is the ratio of acid to co - base concentration which decides the pH.
It is the absolute values of acid and co - base concentration which dictates how much acid or alkali can be dealt with.
This is a function of the "Buffer Capacity".