When we use logarithms, we usually have a function of the form #log_(a)b=c#. #log_(a)b# asks for what power I raise the base #a# to get #b#. Here, since #log_(a)b=c#, then BY DEFINITION, #a^(c)=b#.

To put this in a bit more practical way, we know that #10^2=100#, and #10^3=1000#. If we take logarithms to the base 10, then #log_(10)100=2#, and #log_(10)1000=3#. Why? Because #10^2=100#, and #10^3=1000#. And when I input a number on my calculator, say #x#, when I push the #log# button, I get a number #y#, such that #10^y=x#. Try this out with #100#, #1000#, #1000000#. You will get simple whole numbers.

Back in the day, before the advent of electronic calculators, students of maths and chemistry and physics, would routinely use logarithmic tables for multiplying or dividing large (or very small) numbers.

In water, it is a fact that for the ion product given in the equation,

#2H_2O rightleftharpoonsH_3O^+ + HO^-#

#[H_3O^+][HO^-]=10^-14# at #298K#. I can take #"logarithms to the base 10"# of BOTH sides to give:

#log_10[H_3O^+] + log_10[HO^-]=log_(10)10^-14#

But CLEARLY, the power to which I raise #10# to get #10^-14# is #-14#. Are you with me?

SO #log_10[H_3O^+] + log_10[HO^-]=-14#

OR #14=-log_10[H_3O^+] - log_10[HO^-]#

And if I DEFINE #pH=-log_10[H_3O^+]#, and #pOH=-log_(10)[HO^-]#, then we get the defining relationship:

#pH + pOH=14 " in water at 298K"#.

More on buffers here if you need it.