Worked out examples for buffer problems:

Example 1. Given that 0.4 mole sodium acetate (NaAc) plus 0.1 mole acetic acid (HAc) yields a pH of 5.36 when mixed, what is the pKa of acetic acid?
   HAc º Ac- + H+     pH = pKa + log[Ac-]/ [HAc]

                          5.36 = pKa + log 0.4/0.1
                          5.36 = pKa + log 4
                          pKa = 5.36 - 0.602 = 4.76

Example 2. Mixing 0.4 moles of CH3CH2NH3+ and 0.1 moles of CH3CH2NH2 gives a pH of 8.3. What is the pKa of ethylamine?

                       8.3 = pKa + log 0.1/0.4 base/acid
                       8.3 = pKa -0.602
                     pKa = 8.9

If 0.2 mole of OH- is added, what is the new pH?

                  CH3CH2NH3+ º CH3CH2NH2 + H+

       CH3CH2NH3+ + OH- º CH3CH2NH2 + H2O
 
           0.4 mole                        0.1 mole
                    to                                         to
          0.2 mole                         0.3 mole

                pH = pKa + log base/acid
                pH = 8.9 + log 0.3/0.2
                pH = 8.9 +0.18 or pH = 9.08