# Thread:

1. ## Division by log base 10 and ln

Had a question someone might be able to answer...

Why do I get the same number if I divide, let's say log5/log3, as if I divided ln5/ln3???

What exactly is the relationship between logs and natural logs that makes this true?

Thanks in advance.

M

2. Those better not yield the same answer.
log(5)=x where x satisfies $10^x=5$
ln(5)=x where x satisfies $e^x=5$
log(3)=x where x satisfies $10^x=3$
ln(3)=x where x satisfies $e^x=3$

If you got the same answer when you calculated these ratios you have made an error somewhere.

3. If you are interested, you can express logs in different bases in terms of the natural log as follows.

$y=log_a(b)\Rightarrow a^y=b\Rightarrow ln(a^y)=ln(b)\Rightarrow yln(a)=ln(b) \Rightarrow y=\frac{ln(b)}{ln(a)}$

So we see that

$log_a(b)=\frac{ln(b)}{ln(a)}$

4. Right, that makes sense. I think I understand logs somewhat... The thing is when I was working a problem and I input the data into my calculator, I got the same answer whether I hit the log key or the ln key.

5. hmm now that is strange. generally log without any subscript is understood to be log base 10. Whereas ln is to be log base e. might be worth seeing whether it is giving you ln or log though so you can apply the change of base stuff as necessary. try log(10) and ln(e) if you guess the base right you should get 1. That oughta at least tell you which base it is giving you.

6. I thought so too, but we did several examples to prove what I don't know, that's what I am trying to figure out...lol.

I have been curious since Monday and I have tried researching all I can about logarithms. I don't have either of my calculators on me but I am going to keep trying to figure it out.

Thanks for your help though. If you have a calculator handy, input the numbers, first using the log key then use the ln key. Weird.

7. oh dude, yeah you are right they should be the same, I was thinking $ln(5/3)$ and $log(5/3)$ my bad dude. Here is why it is true.

$a=log(5)\Rightarrow 10^a=5 \Rightarrow a=\frac{ln(5)}{ln(10)}$
$b=log(3)\Rightarrow 10^b=5 \Rightarrow b=\frac{ln(3)}{ln(10)}$

$\frac{log(5)}{log(3)}=\frac{a}{b}=\frac{\frac{ln(5 )}{ln(10)}}{\frac{ln(3)}{ln(10)}}=\frac{ln(5)}{ln( 3)}$

8. Originally Posted by merrysoul
Why do I get the same number if I divide, let's say log5/log3, as if I divided ln5/ln3??
It's the change-of-base formula:

log_b(x) = log_c(x)/log_c(b)

This is because:

log_b(x) = y

x = b^y

log_c(x) = log_c(b^y) = y*log_c(b)

log_c(x)/log_c(b) = y = log_b(x)

By applying the change-of-base formula twice (once backwards and once forwards), we get:

log_10(5)/log_10(3) = log_3(5) = ln(5)/ln(3)
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 11, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9338490962982178, "perplexity_flag": "middle"}