Log(x), an easy and useful way to calculate it

  • Context: High School 
  • Thread starter Thread starter guifb99
  • Start date Start date
  • Tags Tags
    Log Logarithm
Click For Summary

Discussion Overview

The discussion revolves around methods for approximating logarithmic values, particularly focusing on the expression ½Logb(x²-1) as an approximation for logb(x). Participants explore the utility of this approximation for calculating logarithms of natural numbers, including primes, and discuss various approaches and examples.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant suggests that ½Logb(x²-1) is a useful approximation for logb(x), noting that it will not yield precise results but can be beneficial for calculations involving natural numbers.
  • Another participant asks for a practical example of calculating a logarithm using this method, specifically with x = 23.
  • A different approach is proposed, suggesting the use of the approximation f(x) ≈ (f(x-1) + f(x+1))/2 for calculating logarithms.
  • One participant questions the efficiency of averaging logarithms of adjacent integers, implying that it may not save effort compared to directly looking up the desired logarithm.
  • Another participant emphasizes the importance of learning to calculate logarithms by hand, referencing methods developed by Euler.
  • Participants share links to resources for manual logarithm calculations, although some links are noted as broken or needing correction.
  • One participant provides a specific example using x = 25, demonstrating the approximation and comparing it to the actual logarithm value.

Areas of Agreement / Disagreement

Participants express differing views on the utility and efficiency of the proposed logarithmic approximation methods. Some find value in the approximation, while others argue that it may not be a time-saving approach compared to direct lookup methods. The discussion remains unresolved regarding the best method for calculating logarithms.

Contextual Notes

Some participants note that the approximation may fail under certain conditions, such as when k is greater than one. Additionally, there are references to the limitations of the approximation for smaller values of x.

guifb99
Messages
10
Reaction score
1
½Logb(x2-1)≈logb(x)

This is an easy and useful way to calculate the log of any natural number, including primes, it won't ever give a precise result, obviously (because of the -1), but as "x2-1" will always have divisors smaller than "x", you can easily calculate the approximation by using the property that logc(a*b)=logc(a) + logc(b).

It could actually just be n-1logb(xn-k)≈logb(x) but it would be harder to calculate depending on which "k" or which "n" you use and won't be as useful for school purposes.

Obviously, since ½logb(x2)=logb(x), the closer "k" is to 0, the more precise the result will be. And the closer "n" is to infinity, also the more precise the result will be, since the value of "k" will become less and less significant as "xn" gets bigger.

*It's good to notice that for a "k" bigger than one, it will fail miserably.
 
Physics news on Phys.org
Hello guif,

How would you actually go about to calculate such a logarithm ? Can you give an example ? What if e.g. x = 23 ?
 
The general idea is the approximation ##f(x) \approx \frac{f(x-1) + f(x+1)}{2} ##.

for ##x > 1## , ##\log_b(x^2 -1) = \log_b((x-1)(x+1)) = \log_b(x-1) + \log_b(x+1)##
 
So instead of calculating ##\log 23## I look up ##\log 22 ## and ##\log 24## and then average ? :rolleyes:
 
  • Like
Likes   Reactions: mfb
You still have to look up logarithms with your method. Basically if you have to look up two logarithms to get a third, you could have saved yourself work by simply just looking up the log you wanted first off. You are not saving anything, really.

Euler developed a simple way by hand using 4 properties of properties of logarithms. So learn how to do logs by hand, I did, it's fun.

Try a simple google search.
 
  • Like
Likes   Reactions: dkotschessaa
jim mcnamara said:
You still have to look up logarithms with your method. Basically if you have to look up two logarithms to get a third, you could have saved yourself work by simply just looking up the log you wanted first off. You are not saving anything, really.

Euler developed a simple way by hand using 4 properties of properties of logarithms. So learn how to do logs by hand, I did, it's fun.:
https://www.fiziko.bureau42.com/teaching_tidbits/manual_logarithms.pdf

The link. It's dead, Jim.

-Dave K
(sorry)
 
Last edited by a moderator:
I had the file but no link. Thanks for the help. :smile:
 
  • #10
guifb99 said:
½Logb(x2-1)≈logb(x)
For large x, ##x^2 - 1 \approx x^2##, so ##\log_b(x^2 - 1) \approx \log_b(x^2) = 2 \log_b(x)##. Your equation above comes immediately from this one.

For example, with x = 25, ##\frac 1 2 \log(25^2 - 1) \approx 1.397592## and ##\log(25) \approx 1.39794##.
 
Last edited:
  • #11
jim mcnamara said:
I'm fixing it as we post !

The one about square roots by hand is very cool also. We are never taught this stuff.
 

Similar threads

  • · Replies 42 ·
2
Replies
42
Views
4K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
5K
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 24 ·
Replies
24
Views
7K