Since we want the equation to solve for pH, we’ll move the log[H+] to the left hand side of the equation and the log Ka to the right.