Discussion of acid-base equilibria and how to calculate pH using the dissociation constants of weak acids and bases.