How does logn/log 2 become log n (base 2)?

nicholaskong100

New member
Joined
Aug 1, 2021
Messages
33
1632078358875.png

I understand we take the log of both side. And I get log n/ log 2 instead. Is there a formula...but somehow how come it suppose to be log n (base 2)?
 
Well what you have posted is very hard to follow. But I think that it is about a change of base.
The standard change is [imath]\large{\log_b(a)=\dfrac{\log(a)}{\log(b)}}[/imath]
Thus [imath]\large{\log_2(n)=\dfrac{\log(n)}{\log(2)}}[/imath]
 
View attachment 28951

I understand we take the log of both side. And I get log n/ log 2 instead. Is there a formula...but somehow how come it suppose to be log n (base 2)?
If it is given to you that →

n = 2x ........................................then

Log2(n) = x ..............................by definition .................................

(avoid using 'i' for unknown constant)​

where n > 0
 
View attachment 28954

I understand we take the log of both side. And I get log n/ log 2 instead. Is there a formula...but somehow how come it suppose to be log n (base 2)?
When you solve an exponential equation, you can use any base for the log that you want. If you are using "log" to mean the "common", base 10, log, then you have found a way to solve the equation [imath]2^x=n[/imath] for x in terms of that log, and can calculate the value with a scientific calculator. The same is true if you are using "log" to mean the "natural", base e, log.

If you don't want to use a calculator to evaluate your answer, then you can instead take the base 2 log of both sides. Then you get [imath]\log_2(2^x) = \log_2(n)\;\Leftrightarrow\;x=\log_2(n)[/imath], which is what you were expecting.

You might also notice that if you take the logs in your answer to have base 2, then you get exactly what you expected: [imath]x=\frac{\log_2(n)}{\log_2(2)}=\frac{\log_2(n)}{1}=\log_2(n)[/imath].

The log you use will be the log you get! And you typically have this choice between using base 10 or e in order to get a decimal answer, or using the base of the exponential function to get the simplest form of the answer.
 
Top