How does my professor go from this logarithm to the following one of a different base?

86 Views Asked by At

enter image description here

I don't understand on the second last line how my professor goes from $2^{log_3(n)} = n^{log_3(2)}$ how is that relation formed?

3

There are 3 best solutions below

8
On BEST ANSWER

Note that $\log_b a = \frac{\log b}{\log a}$, so

$$2^{\log_3 n} = 2^{\frac{\log n}{\log 3}} = \exp\left(\log 2 \cdot \frac{\log n}{\log 3}\right) = \exp \left(\log n \cdot\frac{\log 2}{\log 3}\right) = n^{\frac{\log 2}{\log 3}} = n^{\log_3 2}.$$

0
On

Hint: Take the base-three logarithm of them both. Apply known logarithm properties.

0
On

Change of basis property of logarithms:

$$\log_3n=\frac{\log_2n}{\log_23}\implies 2^{\log_3n}=\left(2^{\log_2n}\right)^{1/\log_23}=n^{1/\log_23}=n^{\log_32}$$