Logarithms are a weak point for me and I'm curious how my professor went from the following logarithm to the next one. How are they equal? $$ 3^{\log_4 n} = n^{\log_4 3} $$
And does that mean I can change $2^{\log_2{n}}$ to $n^{\log_2{2}}$?
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It only takes a minute to sign up.
Sign up to join this communityLogarithms are a weak point for me and I'm curious how my professor went from the following logarithm to the next one. How are they equal? $$ 3^{\log_4 n} = n^{\log_4 3} $$
And does that mean I can change $2^{\log_2{n}}$ to $n^{\log_2{2}}$?
$x^y=e^{y\ln x}$ and $\log_{x}y = \frac{\ln y}{\ln x}$. Hence $$3^{\log_4n}=e^{\ln 3\frac{\ln n}{\ln 4}}=e^{\ln n\frac{\ln 3}{\ln 4}}=n^{\log_43}$$
Your proposed change is fine, although you don't really need it; $2^{\log_2n}=n$, since the exponentiation and logarithm cancel, being to the same base.