Logarithm
Logarithm is mathematical function that find the power that we need to raise the base in order to get x.
Logarithm definition
When:
b y = x
Then base b logarithm of x is:
logb(x) = y
So the base b logarithm of x is the exponent that b should be raised y to get x.
Example
when
24 = 16
Then
log2(16) = 4
Logarithm as inverse function of exponential function
The logarithmic function logb(x) is the inverse function of the exponential function bx .
For x>0,
f (f -1(x)) = blogb(x) = x
Or
f -1(f (x)) = logb(bx) = x
Natural logarithm (ln)
Natural logarithm is a logarithm to the base e:
ln(x) = loge(x)
When e constant is the number:

See: Natural logarithm
Inverse logarithm calculation
The inverse logarithm (or anti logarithm) is calculated by raising the base b to the logarithm y:
x = log-1(y) = b y
Logarithmic function
The logarithmic function has the basic form of:
f (x) = logb(x)
Logarithm rules
| Rule name | Rule |
|---|
Logarithm product rule | logb(x ∙ y) = logb(x) + logb(y) |
Logarithm quotient rule | logb(x / y) = logb(x) - logb(y) |
Logarithm power rule | logb(x y) = y ∙ logb(x) |
Logarithm base switch rule | logb(c) = 1 / logc(b) |
Logarithm base change rule | logb(x) = logc(x) / logc(b) |
Derivative of logarithm | f (x) = logb(x) ⇒ f ' (x) = 1 / ( x ln(b) ) |
Integral of logarithm | ∫ logb(x) dx = x ∙ ( logb(x) - 1 / ln(b) ) + C |
Logarithm of 0 | logb(0) is undefined |
 |
Logarithm of 1 | logb(1) = 0 |
See: Logarithm rules
Logarithm of product
The logarithm of a product of x and y is the sum of logarithm of x and logarithm of y.
logb(x ∙ y) = logb(x) + logb(y)
For example:
logb(3 ∙ 7) = logb(3) + logb(7)
Logarithm of ratio
The logarithm of a quotient of x and y is the difference of logarithm of x and logarithm of y.
logb(x / y) = logb(x) - logb(y)
For example:
logb(3 / 7) = logb(3) - logb(7)
Logarithm of power
logb(x y) = y ∙ logb(x)
For example:
logb(28) = 8 ∙ logb(2)
Logarithm base switch
logb(c) = 1 / logc(b)
For example:
log2(8) = 1 / log8(2)
Logarithm base change
logb(x) = logc(x) / logc(b)
Logarithm of 0
logb(0)
The natural logarithm of zero is undefined, but the limit near 0 is minus infinity:

Logarithm of 1
logb(1) = 0
For example:
log2(1) = 0
Logarithm of the base
logb(b) = 1
For example:
log2(2) = 1
Logarithm derivative
When
f (x) = logb(x)
Then the derivative of f(x):
f ' (x) = 1 / ( x ln(b) )
Logarithm integral
The integral of logarithm of x:
∫ logb(x) dx = x ∙ ( logb(x) - 1 / ln(b) ) + C
Logarithm approximation
log2(x) ≈ n + (x/2n - 1) ,
Logarithms table
| x | log10 x | log2 x | loge x |
|---|
| 0 | undefined | undefined | undefined |
| 0+ | - ∞ | - ∞ | - ∞ |
| 0.0001 | -4.000000 | -13.287712 | -9.210340 |
| 0.001 | -3.000000 | -9.965784 | -6.907755 |
| 0.01 | -2.000000 | -6.643856 | -4.605170 |
| 0.1 | -1.000000 | -3.321928 | -2.302585 |
| 1 | 0.000000 | 0.000000 | 0.000000 |
| 2 | 0.301030 | 1.000000 | 0.693147 |
| 3 | 0.477121 | 1.584963 | 1.098612 |
| 4 | 0.602060 | 2.000000 | 1.386294 |
| 5 | 0.698970 | 2.321928 | 1.609438 |
| 6 | 0.778151 | 2.584963 | 1.791759 |
| 7 | 0.845098 | 2.807355 | 1.945910 |
| 8 | 0.903090 | 3.000000 | 2.079442 |
| 9 | 0.954243 | 3.169925 | 2.197225 |
| 10 | 1.000000 | 3.321928 | 2.302585 |
| 20 | 1.301030 | 4.321928 | 2.995732 |
| 30 | 1.477121 | 4.906891 | 3.401197 |
| 40 | 1.602060 | 5.321928 | 3.688879 |
| 50 | 1.698970 | 5.643856 | 3.912023 |
| 60 | 1.778151 | 5.906991 | 4.094345 |
| 70 | 1.845098 | 6.129283 | 4.248495 |
| 80 | 1.903090 | 6.321928 | 4.382027 |
| 90 | 1.954243 | 6.491853 | 4.499810 |
| 100 | 2.000000 | 6.643856 | 4.605170 |
| 200 | 2.301030 | 7.643856 | 5.298317 |
| 300 | 2.477121 | 8.228819 | 5.703782 |
| 400 | 2.602060 | 8.643856 | 5.991465 |
| 500 | 2.698970 | 8.965784 | 6.214608 |
| 600 | 2.778151 | 9.228819 | 6.396930 |
| 700 | 2.845098 | 9.451211 | 6.551080 |
| 800 | 2.903090 | 9.643856 | 6.684612 |
| 900 | 2.954243 | 9.813781 | 6.802395 |
| 1000 | 3.000000 | 9.965784 | 6.907755 |
| 10000 | 4.000000 | 13.287712 | 9.210340 |
Logarithm calculator ►
See also