How do you calculate the pH of a weak acid?
We assume the concentration of HA doesn't change because it only dissociates a little.
We are given the value of K^a.
If H^+ and A^- are in a 1:1 ratio, you call them both 1x
You can work out x using this and as x = [H^+], you can then work out pH.