[Math] How to prove if $f(x)$ is $O(\log_b (x))$, then $f(x)$ is $O(\log_a (x))$

asymptoticslogarithms

I was reading a book on discrete mathematics where they asked for a proof of "Show that for all real numbers $a$ and $b$ with $a > 1$ and $b > 1$, if $f(x)$ is $O(\log_b (x))$, then $f(x)$ is $O(\log_a (x))$". I searched Google where I found this,

$$\log_b(x) = \frac{\ln(x)}{\ln(b)}$$
$$\log_a(x) = \frac{\ln(x)}{\ln(a)}$$
$$\log_b(x) = \log_a(x)\cdot \frac{\ln(a)}{\ln(b)} = \log_a(x) \cdot \text{constant}$$

But I couldn't find the meaning of the last line. Is there another way to prove it?

Best Answer

The last line is simply the application of the first two: $$\log_b(x) = \frac{\ln(x)}{\ln(b)}= \ln(x) \cdot \frac{1}{\ln(b)} = \frac{\ln(x)}{\ln(a)} \cdot \ln(a) \cdot \frac{1}{\ln(b)} = \frac{\ln(x)}{\ln(a)} \cdot \frac{\ln(a) }{\ln(b)} = \log_a(x) \cdot \frac{\ln(a) }{\ln(b)}$$

Since $a$ and $b$ are constants, $\frac{\ln(a) }{\ln(b)}$ is constant as well.

Related Question