令log(a)b=x
则 a^x=b
两边同时取以c为底的对数
log(c)a^x=log(c)b
xlog(c)a=log(c)b
x=log(c)b/log(c)a
∴ logab=logcb/logca