Search: in
Logarithm in Encyclopedia Encyclopedia
  Tutorials     Encyclopedia     Videos     Books     Software     DVDs  


does not meet or intersect it]].

The logarithm of a number is the exponent by which another fixed value, the base, has to be raised to produce that number. For example, the logarithm of 1000 to base 10 is 3, because 1000 is 10 to the power 3: More generally, if x = by, then y is the logarithm of x to base b, and is written logb(x), so log10(1000) = 3.

Logarithms were introduced by John Napier in the early 17th century as a means to simplify calculations. They were rapidly adopted by scientists, engineers, and others to perform computations more easily, using slide rules and logarithm tables. These devices rely on the fact—important in its own right—that the logarithm of a product is the sum of the logarithms of the factors:

\log_b(xy) = \log_b (x) + \log_b (y). \,

The present-day notion of logarithms comes from Leonhard Euler, who connected them to the exponential function in the 18th century.

The logarithm to base b = 10 is called the common logarithm and has many applications in science and engineering. The natural logarithm has the constant e ( 2.718) as its base; its use is widespread in pure mathematics, especially calculus. The binary logarithm uses base b = 2 and is prominent in computer science.

Logarithmic scales reduce wide-ranging quantities to smaller scopes. For example, the decibel is a logarithmic unit quantifying sound pressure and voltage ratios. In chemistry, pH and pOH are logarithmic measures for the acidity of an aqueous solution. Logarithms are commonplace in scientific formulas, and in measurements of the complexity of algorithms and of geometric objects called fractals. They describe musical intervals, appear in formulas counting prime numbers, inform some models in psychophysics, and can aid in forensic accounting.

In the same way as the logarithm reverses exponentiation, the complex logarithm is the inverse function of the exponential function applied to complex numbers. The discrete logarithm is another variant; it has applications in public-key cryptography.


Motivation and definition

The idea of logarithms is to reverse the operation of exponentiation, that is raising a number to a power. For example, the third power (or cube) of 2 is 8, because 8 is the product of three factors of 2:

2^3 = 2 \times 2 \times 2 = 8. \,

It follows that the logarithm of 8 with respect to base 2 is 3.


The third power of some number b is the product of 3 factors of b. More generally, raising b to the power, where n is a natural number, is done by multiplying n factors. The power of b is written bn, so that

b^n = \underbrace{b \times b \times \cdots \times b}_{n \text{ factors}}.

The n-th power of b, bn, is defined whenever b is a positive number and n is a real number. For example, b−1 is the reciprocal of b, that is, .


The logarithm of a number x with respect to base b is the exponent to which b has to be raised to yield x. In other words, the logarithm of x to base b is the solution y of the equation[1]

b^y = x. \,

The logarithm is denoted "logb(x)" (pronounced as "the logarithm of x to base b" or "the logarithm of x"). In the equation y = logb(x), the value y is the answer to the question "To what power must b be raised, in order to yield x?". For the logarithm to be defined, the base b must be a positive real number not equal to 1 and x must be a positive number.


For example, , since 16. Logarithms can also be negative:

\log_2 \!\left( \frac{1}{2} \right) = -1,\,


2^{-1} = \frac 1 {2^1} = \frac 1 2.

A third example: log10(150) is approximately 2.176, which lies between 2 and 3, just as 150 lies between and . Finally, for any base b, and , since and , respectively.

Logarithmic identities

Several important formulas, sometimes called logarithmic identities or log laws, relate logarithms to one another.[2]

Product, quotient, power, and root

The logarithm of a product is the sum of the logarithms of the numbers being multiplied; the logarithm of the ratio of two numbers is the difference of the logarithms. Therefore, the logarithm of the power of a number is p times the logarithm of the number itself; the logarithm of a root is the logarithm of the number divided by p. The following table lists these identities with examples:

Formula Example
product \log_b(x y) = \log_b (x) + \log_b (y) \, \log_3 (243) = \log_3(9 \cdot 27) = \log_3 (9) + \log_3 (27) = 2 + 3 = 5 \,
quotient \log_b \!\left(\frac x y \right) = \log_b (x) - \log_b (y) \, \log_2 (16) = \log_2 \!\left ( \frac{64}{4} \right ) = \log_2 (64) - \log_2 (4) = 6 - 2 = 4
power \log_b(x^p) = p \log_b (x) \, \log_2 (64) = \log_2 (2^6) = 6 \log_2 (2) = 6 \,
root \log_b \sqrt[p]{x} = \frac {\log_b (x)} p \, \log_{10} \sqrt{1000} = \frac{1}{2}\log_{10} 1000 = \frac{3}{2} = 1.5

Change of base

The logarithm logb(x) can be computed from the logarithms of x and b with respect to an arbitrary base k using the following formula:

\log_b(x) = \frac{\log_k(x)}{\log_k(b)}.\,

Typical scientific calculators calculate the logarithms to bases 10 and e.[3] Logarithms with respect to any base b can be determined using either of these two logarithms by the previous formula:

\log_b (x) = \frac{\log_{10} (x)}{\log_{10} (b)} = \frac{\log_{e} (x)}{\log_{e} (b)}. \,

Given a number x and its logarithm logb(x) to an unknown base b, the base is given by:

b = x^\frac{1}{\log_b(x)}.

Particular bases

Among all choices for the base b, three are particularly common. These are b = 10, b = e (the irrational mathematical constant 2.71828), and b = 2. In mathematical analysis, the logarithm to base e is widespread because of its particular analytical properties explained below. On the other hand, logarithms are easy to use for manual calculations in the decimal number system:[4]

\log_{10}(10 x) = \log_{10}(10) + \log_{10}(x) = 1 + \log_{10}(x).\

Thus, log10(x) is related to the number of decimal digits of a positive integer x: the number of digits is the smallest integer strictly bigger than log10(x).[5] For example, log10(1430) is approximately 3.15. The next integer is 4, which is the number of digits of 1430. The logarithm to base two is used in computer science, where the binary system is ubiquitous.

The following table lists common notations for logarithms to these bases and the fields where they are used. Many disciplines write log(x) instead of logb(x), when the intended base can be determined from the context. The notation blog(x) also occurs.[6] The "ISO notation" column lists designations suggested by the International Organization for Standardization (ISO 31-11).[7]

Base b Name for logb(x) ISO notation Other notations Used in
2 binary logarithm lb(x)[8] ld(x), log(x), lg(x) computer science, information theory, mathematics
e natural logarithm ln(x) log(x)
(in mathematics and many programming languages)
mathematical analysis, physics, chemistry,
statistics, economics, and some engineering fields
10 common logarithm lg(x) log(x)
(in engineering, biology, astronomy),
various engineering fields (see decibel and see below),
logarithm tables, handheld calculators



The eighth-century Indian mathematician Virasena worked with the concept of ardhaccheda: the number of times a number of the form 2n could be halved. For exact powers of 2, this is the logarithm to that base, which is a whole number; for other numbers, it is undefined. He described relations such as the product formula and also introduced integer logarithms in base 3 (trakacheda) and base 4 (caturthacheda).[9][10] Michael Stifel published Arithmetica integra in Nuremberg in 1544 which contains a table[11] of integers and powers of 2 that has been considered an early version of a logarithmic table.[12][13]

In the 16th and early 17th centuries an algorithm called prosthaphaeresis was used to approximate multiplication and division. This used the trigonometric identity

\cos\,\alpha\,\cos\,\beta = \frac12[\cos(\alpha+\beta) + \cos(\alpha-\beta)]

or similar or convert the multiplications to additions and table lookups. However logarithms are more straightforward and require less work. It can be shown using complex numbers that this is basically the same technique.

The Babylonians sometime in 2000 1600 BC invented the quarter square multiplication algorithm to multiply two numbers using only addition, subtraction and a table of squares. However it could not be used for division without an additional table of reciprocals. This method was used to simplify the accurate multiplication of large numbers till superseded by the use of computers.

From Napier to Euler

alt=A baroque picture of a sitting man with a beard.

The method of logarithms was publicly propounded by John Napier in 1614, in a book entitled Mirifici Logarithmorum Canonis Descriptio (Description of the Wonderful Rule of Logarithms).[14] Joost B rgi independently invented logarithms but published six years after Napier.[15]

Johannes Kepler, who used logarithm tables extensively to compile his Ephemeris and therefore dedicated it to John Napier,[16] remarked:

By repeated subtractions Napier calculated for L ranging from 1 to 100. The result for L=100 is approximately 0.99999 = 1 10 5. Napier then calculated the products of these numbers with for L from 1 to 50, and did similarly with and . These computations, which occupied 20 years, allowed him to give, for any number N from 5 to 10 million, the number L that solves the equation

N=10^7 {(1-10^{-7})}^L. \,

Napier first called L an "artificial number", but later introduced the word "logarithm" to mean a number that indicates a ratio: (logos) meaning proportion, and (arithmos) meaning number. In modern notation, the relation to natural logarithms is: [17]

L = \log_{(1-10^{-7})} \!\left( \frac{N}{10^7} \right) \approx 10^7 \log_{ \frac{1}{e}} \!\left( \frac{N}{10^7} \right) = -10^7 \log_e \!\left( \frac{N}{10^7} \right),

where the very close approximation corresponds to the observation that

{(1-10^{-7})}^{10^7} \approx \frac{1}{e}. \,

The invention was quickly and widely met with acclaim. The works of Bonaventura Cavalieri (Italy), Edmund Wingate (France), Xue Fengzuo (China), and Johannes Kepler's Chilias logarithmorum (Germany) helped spread the concept further.[18]

thumb In 1647 Gr goire de Saint-Vincent related logarithms to the quadrature of the hyperbola, by pointing out that the area f(t) under the hyperbola from to satisfies

f(tu) = f(t) + f(u).\,

The natural logarithm was first described by Nicholas Mercator in his work Logarithmotechnia published in 1668,[19] although the mathematics teacher John Speidell had already in 1619 compiled a table on the natural logarithm.[20] Around 1730, Leonhard Euler defined the exponential function and the natural logarithm by

e^x = \lim_{n \rightarrow \infty} (1+x/n)^n,
\ln(x) = \lim_{n \rightarrow \infty} n(x^{1/n} - 1).

Euler also showed that the two functions are inverse to one another.[21][22][23]

Logarithm tables, slide rules, and historical applications

The 1797 Encyclop dia Britannica explanation of logarithms
The 1797 Encyclop dia Britannica explanation of logarithms

By simplifying difficult calculations, logarithms contributed to the advance of science, and especially of astronomy. They were critical to advances in surveying, celestial navigation, and other domains. Pierre-Simon Laplace called logarithms

[a]n admirable artifice which, by reducing to a few days the labour of many months, doubles the life of the astronomer, and spares him the errors and disgust inseparable from long calculations.[24]

A key tool that enabled the practical use of logarithms before calculators and computers was the table of logarithms.[25] The first such table was compiled by Henry Briggs in 1617, immediately after Napier's invention. Subsequently, tables with increasing scope and precision were written. These tables listed the values of logb(x) and bx for any number x in a certain range, at a certain precision, for a certain base b (usually b = 10). For example, Briggs' first table contained the common logarithms of all integers in the range 1–1000, with a precision of 8 digits. As the function is the inverse function of logb(x), it has been called the antilogarithm.[26] The product and quotient of two positive numbers c and d were routinely calculated as the sum and difference of their logarithms. The product cd or quotient c/d came from looking up the antilogarithm of the sum or difference, also via the same table:

c d = b^{\log_b (c)} \, b^{\log_b (d)} = b^{\log_b (c) + \log_b (d)} \,


\frac c d = c d^{-1} = b^{\log_b (c) - \log_b (d)}. \,

For manual calculations that demand any appreciable precision, performing the lookups of the two logarithms, calculating their sum or difference, and looking up the antilogarithm is much faster than performing the multiplication by earlier methods such as prosthaphaeresis, which relies on trigonometric identities. Calculations of powers and roots are reduced to multiplications or divisions and look-ups by

c^d = (b^{\log_b (c) })^d = b^{d \log_b (c)} \,


\sqrt[d]{c} = c^{\frac 1 d} = b^{\frac{1}{d} \log_b (c)}. \,

Many logarithm tables give logarithms by separately providing the characteristic and mantissa of x, that is to say, the integer part and the fractional part of log10(x).[27] The characteristic of is one plus the characteristic of x, and their significands are the same. This extends the scope of logarithm tables: given a table listing log10(x) for all integers x ranging from 1 to 1000, the logarithm of 3542 is approximated by

\log_{10}(3542) = \log_{10}(10\cdot 354.2) = 1 + \log_{10}(354.2) \approx 1 + \log_{10}(354). \,

Another critical application was the slide rule, a pair of logarithmically divided scales used for calculation, as illustrated here:

alt=A slide rule: two rectangles with logarithmically ticked axes, arrangement to add the distance from 1 to 2 to the distance from 1 to 3, indicating the product 6.
alt=A slide rule: two rectangles with logarithmically ticked axes, arrangement to add the distance from 1 to 2 to the distance from 1 to 3, indicating the product 6.

The non-sliding logarithmic scale, Gunter's rule, was invented shortly after Napier's invention. William Oughtred enhanced it to create the slide rule a pair of logarithmic scales movable with respect to each other. Numbers are placed on sliding scales at distances proportional to the differences between their logarithms. Sliding the upper scale appropriately amounts to mechanically adding logarithms. For example, adding the distance from 1 to 2 on the lower scale to the distance from 1 to 3 on the upper scale yields a product of 6, which is read off at the lower part. The slide rule was an essential calculating tool for engineers and scientists until the 1970s, because it allows, at the expense of precision, much faster computation than techniques based on tables.[21]

Analytic properties

A deeper study of logarithms requires the concept of a function. A function is a rule that, given one number, produces another number.[28] An example is the function producing the power of b from any real number x, where the base (or radix) b is a fixed number. This function is written

f(x) = b^x. \,

Logarithmic function

To justify the definition of logarithms, it is necessary to show that the equation

b^x = y \,

has a solution x and that this solution is unique, provided that y is positive and that b is positive and unequal to 1. A proof of that fact requires the intermediate value theorem from elementary calculus.[29] This theorem states that a continuous function which produces two values m and n also produces any value that lies between m and n. A function is continuous if it does not "jump", that is, if its graph can be drawn without lifting the pen.

This property can be shown to hold for the function f(x) = bx. Because f takes arbitrarily large and arbitrarily small positive values, any number lies between f(x0) and f(x1) for suitable x0 and x1. Hence, the intermediate value theorem ensures that the equation f(x) = y has a solution. Moreover, there is only one solution to this equation, because the function f is strictly increasing (for ), or strictly decreasing (for ).[30]

The unique solution x is the logarithm of y to base b, logb(y). The function which assigns to y its logarithm is called logarithm function or logarithmic function (or just logarithm).

Inverse function

alt=The graphs of two functions. The formula for the logarithm of a power says in particular that for any number x,

\log_b \left (b^x \right) = x \log_b(b) = x.

In prose, taking the power of b and then the logarithm gives back x. Conversely, given a positive number y, the formula

b^{\log_b(y)} = y

says that first taking the logarithm and then exponentiating gives back y. Thus, the two possible ways of combining (or composing) logarithms and exponentiation give back the original number. Therefore, the logarithm to base b is the inverse function of .[31]

Inverse functions are closely related to the original functions. Their graphs correspond to each other upon exchanging the x- and the y-coordinates (or upon reflection at the diagonal line x = y), as shown at the right: a point (t, u = bt) on the graph of f yields a point (u, t = logbu) on the graph of the logarithm and vice versa. As a consequence, logb(x) diverges to infinity (gets bigger than any given number) if x grows to infinity, provided that b is greater than one. In that case, logb(x) is an increasing function. For , logb(x) tends to minus infinity instead. When x approaches zero, logb(x) goes to minus infinity for (plus infinity for , respectively).

Derivative and antiderivative

alt=A graph of the logarithm function and a line touching it in one point. Analytic properties of functions pass to their inverses.[29] Thus, as f(x) = bx is a continuous and differentiable function, so is logb(y). Roughly, a continuous function is differentiable if its graph has no sharp "corners". Moreover, as the derivative of f(x) evaluates to ln(b)bx by the properties of the exponential function, the chain rule implies that the derivative of logb(x) is given by[30][32]

\frac{d}{dx} \log_b(x) = \frac{1}{x\ln(b)}.

That is, the slope of the tangent touching the graph of the logarithm at the point equals . In particular, the derivative of ln(x) is 1/x, which implies that the antiderivative of 1/x is . The derivative with a generalised functional argument f(x) is

\frac{d}{dx} \ln(f(x)) = \frac{f'(x)}{f(x)}.

The quotient at the right hand side is called the logarithmic derivative of f. Computing f'(x) by means of the derivative of ln(f(x)) is known as logarithmic differentiation.[33] The antiderivative of the natural logarithm ln(x) is:[34]

\int \ln(x) \,dx = x \ln(x) - x + C.

Related formulas, such as antiderivatives of logarithms to other bases can be derived from this equation using the change of bases.[35]

Integral representation of the natural logarithm

alt=A hyperbola with part of the area underneath shaded in grey. The natural logarithm of t agrees with the integral of 1/x dx from 1 to t:

\ln (t) = \int_1^t \frac{1}{x} \, dx.

In other words, ln(t) equals the area between the x axis and the graph of the function 1/x, ranging from x = 1 to x = t (figure at the right). This is a consequence of the fundamental theorem of calculus and the fact that derivative of ln(x) is 1/x. The right hand side of this equation can serve as a definition of the natural logarithm. Product and power logarithm formulas can be derived from this definition.[36] For example, the product formula ln(tu) = ln(t) + ln(u) is deduced as:

\ln(tu) = \int_1^{tu} \frac{1}{x} \, dx \ \stackrel {(1)} = \int_1^{t} \frac{1}{x} \, dx + \int_t^{tu} \frac{1}{x} \, dx \ \stackrel {(2)} = \ln(t) + \int_1^u \frac{1}{w} \, dw = \ln(t) + \ln(u).

The equality (1) splits the integral into two parts, while the equality (2) is a change of variable (w = x/t). In the illustration below, the splitting corresponds to dividing the area into the yellow and blue parts. Rescaling the left hand blue area vertically by the factor t and shrinking it by the same factor horizontally does not change its size. Moving it appropriately, the area fits the graph of the function f(x) = 1/x again. Therefore, the left hand blue area, which is the integral of f(x) from t to tu is the same as the integral from 1 to u. This justifies the equality (2) with a more geometric proof.

alt=The hyperbola depicted twice. The area underneath is split into different parts.

The power formula ln(tr) = r ln(t) may be derived in a similar way:

\ln(t^r) = \int_1^{t^r} \frac{1}{x}dx = \int_1^t \frac{1}{w^r} \left(rw^{r - 1} \, dw\right) = r \int_1^t \frac{1}{w} \, dw = r \ln(t).

The second equality uses a change of variables (integration by substitution), w := x1/r.

The sum over the reciprocals of natural numbers,

1 + \frac 1 2 + \frac 1 3 + \cdots + \frac 1 n = \sum_{k=1}^n \frac{1}{k},

is called the harmonic series. It is closely tied to the natural logarithm: as n tends to infinity, the difference,

\sum_{k=1}^n \frac{1}{k} - \ln(n),

converges (i.e., gets arbitrarily close) to a number known as the Euler Mascheroni constant. This relation aids in analyzing the performance of algorithms such as quicksort.[37]

Transcendence of the logarithm

The logarithm is an example of a transcendental function and from a theoretical point of view, the Gelfond Schneider theorem asserts that logarithms usually take "difficult" values. The formal statement relies on the notion of algebraic numbers, which includes all rational numbers, but also numbers such as the square root of 2 or

\sqrt{-5+\sqrt[3]{3 / 13}}.

Complex numbers that are not algebraic are called transcendental;[38] for example, and e are such numbers. Almost all complex numbers are transcendental. Using these notions, the Gelfond–Scheider theorem states that given two algebraic numbers a and b, logb(a) is either a transcendental number or a rational number p / q (in which case aq = bp, so a and b were closely related to begin with).[39]


Logarithms are easy to compute in some cases, such as log10(1,000) = 3. In general, logarithms can be calculated using power series or the arithmetic-geometric mean, or be retrieved from a precalculated logarithm table that provides a fixed precision.[40][41] Newton's method, an iterative method to solve equations approximately, can also be used to calculate the logarithm, because its inverse function, the exponential function, can be computed efficiently.[42] Using look-up tables, CORDIC-like methods can be used to compute logarithms if the only available operations are addition and bit shifts.[43][44] Moreover, the binary logarithm algorithm calculates lb(x) recursively based on repeated squarings of x, taking advantage of the relation

\log_2(x^2) = 2 \log_2 (x). \,

Power series

Taylor series

alt=An animation showing increasingly good approximations of the logarithm graph. For any real number z that satisfies , the following formula holds:[45]

\ln (z) = (z-1) - \frac{(z-1)^2}{2} + \frac{(z-1)^3}{3} - \frac{(z-1)^4}{4} + \cdots

This is a shorthand for saying that ln(z) can be approximated to a more and more accurate value by the following expressions:

\begin{array}{lllll} (z-1) & & \\ (z-1) & - & \frac{(z-1)^2}{2} & \\ (z-1) & - & \frac{(z-1)^2}{2} & + & \frac{(z-1)^3}{3} \\ \vdots & \end{array}

For example, with the third approximation yields 0.4167, which is about 0.011 greater than . This series approximates ln(z) with arbitrary precision, provided the number of summands is large enough. In elementary calculus, ln(z) is therefore the limit of this series. It is the Taylor series of the natural logarithm at z = 1. The Taylor series of ln z provides a particularly useful approximation to ln(1+z) when z is small, |z| << 1, since then

\ln (1+z) = z - \frac{z^2}{2} + \cdots \approx z.

For example, with z = 0.1 the first-order approximation gives ln(1.1) 0.1, which is less than 5% off the correct value 0.0953.

More efficient series

Another series is based on the Area hyperbolic tangent function:

\ln (z) = 2\cdot\operatorname{artanh}\,\frac{z-1}{z+1} = 2 \left ( \frac{z-1}{z+1} + \frac{1}{3}{\left(\frac{z-1}{z+1}\right)}^3 + \frac{1}{5}{\left(\frac{z-1}{z+1}\right)}^5 + \cdots \right ),

for any real number z > 0.[45] Using the Sigma notation this is also written as

\ln (z) = 2\sum_{n=0}^\infty\frac{1}{2n+1}\left(\frac{z-1}{z+1}\right)^{2n+1}.

This series can be derived from the above Taylor series. It converges more quickly than the Taylor series, especially if z is close to 1. For example, for z = 1.5, the first three terms of the second series approximate ln(1.5) with an error of about . The quick convergence for z close to 1 can be taken advantage of in the following way: given a low-accuracy approximation and putting

A = \frac z{\exp(y)}, \,

the logarithm of z is:

\ln (z)=y+\ln (A). \,

The better the initial approximation y is, the closer A is to 1, so its logarithm can be calculated efficiently. A can be calculated using the exponential series, which converges quickly provided y is not too large. Calculating the logarithm of larger z can be reduced to smaller values of z by writing , so that .

A closely related method can be used to compute the logarithm of integers. From the above series, it follows that:

\ln (n+1) = \ln(n) + 2\sum_{k=0}^\infty\frac{1}{2k+1}\left(\frac{1}{2 n+1}\right)^{2k+1}.

If the logarithm of a large integer n is known, then this series yields a fast converging series for log(n+1).

Arithmetic-geometric mean approximation

The arithmetic-geometric mean yields high precision approximations of the natural logarithm. ln(x) is approximated to a precision of 2p (or p precise bits) by the following formula (due to Carl Friedrich Gauss):[46][47]

\ln (x) \approx \frac{\pi}{2 M(1,2^{2-m}/x)} - m \ln (2).

Here M denotes the arithmetic-geometric mean. It is obtained by repeatedly calculating the average (arithmetic mean) and the square root of the product of two numbers (geometric mean). Moreover, m is chosen such that

x \,2^m > 2^{p/2}.\,

Both the arithmetic-geometric mean and the constants and ln(2) can be calculated with quickly converging series.


alt=A photograph of a nautilus' shell. Logarithms have many applications inside and outside mathematics. Some of these occurrences are related to the notion of scale invariance. For example, each chamber of the shell of a nautilus is an approximate copy of the next one, scaled by a constant factor. This gives rise to a logarithmic spiral.[48] Benford's law on the distribution of leading digits can also be explained by scale invariance.[49] Logarithms are also linked to self-similarity. For example, logarithms appear in the analysis of algorithms that solve a problem by dividing it into two similar smaller problems and patching their solutions.[50] The dimensions of self-similar geometric shapes, that is, shapes whose parts resemble the overall picture are also based on logarithms. Logarithmic scales are useful for quantifying the relative change of a value as opposed to its absolute difference. Moreover, because the logarithmic function log(x) grows very slowly for large x, logarithmic scales are used to compress large-scale scientific data. Logarithms also occur in numerous scientific formulas, such as the Tsiolkovsky rocket equation, the Fenske equation, or the Nernst equation.

Logarithmic scale

alt=A graph of the value of one mark over time. The line showing its value is increasing very quickly, even with logarithmic scale. Scientific quantities are often expressed as logarithms of other quantities, using a logarithmic scale. For example, the decibel is a logarithmic unit of measurement. It is based on the common logarithm of ratios—10 times the common logarithm of a power ratio or 20 times the common logarithm of a voltage ratio. It is used to quantify the loss of voltage levels in transmitting electrical signals,[51] to describe power levels of sounds in acoustics,[52] and the absorbance of light in the fields of spectrometry and optics. The signal-to-noise ratio describing the amount of unwanted noise in relation to a (meaningful) signal is also measured in decibels.[53] In a similar vein, the peak signal-to-noise ratio is commonly used to assess the quality of sound and image compression methods using the logarithm.[54]

The strength of an earthquake is measured by taking the common logarithm of the energy emitted at the quake. This is used in the moment magnitude scale or the Richter scale. For example, a 5.0 earthquake releases 10 times and a 6.0 releases 100 times the energy of a 4.0.[55] Another logarithmic scale is apparent magnitude. It measures the brightness of stars logarithmically.[56] Yet another example is pH in chemistry; pH is the negative of the common logarithm of the activity of hydronium ions (the form hydrogen ions take in water).[57] The activity of hydronium ions in neutral water is 10 7 mol L 1, hence a pH of 7. Vinegar typically has a pH of about 3. The difference of 4 corresponds to a ratio of 104 of the activity, that is, vinegar's hydronium ion activity is about 10 3 mol L 1.

Semilog (log-linear) graphs use the logarithmic scale concept for visualization: one axis, typically the vertical one, is scaled logarithmically. For example, the chart at the right compresses the steep increase from 1 million to 1 trillion to the same space (on the vertical axis) as the increase from 1 to 1 million. In such graphs, exponential functions of the form f(x) = a bx appear as straight lines with slope proportional to b. Log-log graphs scale both axes logarithmically, which causes functions of the form f(x) = a xk to be depicted as straight lines with slope proportional to the exponent k. This is applied in visualizing and analyzing power laws.[58]


Logarithms occur in several laws describing human perception:[59][60] Hick's law proposes a logarithmic relation between the time individuals take for choosing an alternative and the number of choices they have.[61] Fitts's law predicts that the time required to rapidly move to a target area is a logarithmic function of the distance to and the size of the target.[62] In psychophysics, the Weber Fechner law proposes a logarithmic relationship between stimulus and sensation such as the actual vs. the perceived weight of an item a person is carrying.[63] (This "law", however, is less precise than more recent models, such as the Stevens' power law.[64])

Psychological studies found that mathematically unsophisticated individuals tend to estimate quantities logarithmically, that is, they position a number on an unmarked line according to its logarithm, so that 10 is positioned as close to 20 as 100 is to 200. Increasing mathematical understanding shifts this to a linear estimate (positioning 100 10x as far away).[65][66]

Probability theory and statistics

Three probability density functions (PDF) of random variables with log-normal distributions. The location parameter , which is zero for all three of the PDFs shown, is the mean of the logarithm of the random variable, not the mean of the variable itself. alt=A bar chart and a superimposed second chart. The two differ slightly, but both decrease in a similar fashion. Logarithms arise in probability theory: the law of large numbers dictates that, for a fair coin, as the number of coin-tosses increases to infinity, the observed proportion of heads approaches one-half. The fluctuations of this proportion about one-half are described by the law of the iterated logarithm.[67]

Logarithms also occur in log-normal distributions. When the logarithm of a random variable has a normal distribution, the variable is said to have a log-normal distribution.[68] Log-normal distributions are encountered in many fields, wherever a variable is formed as the product of many independent positive random variables, for example in the study of turbulence.[69]

Logarithms are used for maximum-likelihood estimation of parametric statistical models. For such a model, the likelihood function depends on at least one parameter that needs to be estimated. A maximum of the likelihood function occurs at the same parameter-value as a maximum of the logarithm of the likelihood (the "log likelihood"), because the logarithm is an increasing function. The log-likelihood is easier to maximize, especially for the multiplied likelihoods for independent random variables.[70]

Benford's law describes the occurrence of digits in many data sets, such as heights of buildings. According to Benford's law, the probability that the first decimal-digit of an item in the data sample is d (from 1 to 9) equals log10(d + 1) log10(d), regardless of the unit of measurement.[71] Thus, about 30% of the data can be expected to have 1 as first digit, 18% start with 2, etc. Auditors examine deviations from Benford's law to detect fraudulent accounting.[72]

Computational complexity

Analysis of algorithms is a branch of computer science that studies the performance of algorithms (computer programs solving a certain problem).[73] Logarithms are valuable for describing algorithms which divide a problem into smaller ones, and join the solutions of the subproblems.[74]

For example, to find a number in a sorted list, the binary search algorithm checks the middle entry and proceeds with the half before or after the middle entry if the number is still not found. This algorithm requires, on average, log2(N) comparisons, where N is the list's length.[75] Similarly, the merge sort algorithm sorts an unsorted list by dividing the list into halves and sorting these first before merging the results. Merge sort algorithms typically require a time approximately proportional to .[76] The base of the logarithm is not specified here, because the result only changes by a constant factor when another base is used. A constant factor, is usually disregarded in the analysis of algorithms under the standard uniform cost model.[77]

A function f(x) is said to grow logarithmically if f(x) is (exactly or approximately) proportional to the logarithm of x. (Biological descriptions of organism growth, however, use this term for an exponential function.[78]) For example, any natural number N can be represented in binary form in no more than bits. In other words, the amount of memory needed to store N grows logarithmically with N.

Entropy and chaos

alt=An oval shape with the trajectories of two particles.

Entropy is broadly a measure of the disorder of some system. In statistical thermodynamics, the entropy S of some physical system is defined as

S = - k \sum_i p_i \ln(p_i).\,

The sum is over all possible states i of the system in question, such as the positions of gas particles in a container. Moreover, pi is the probability that the state i is attained and k is the Boltzmann constant. Similarly, entropy in information theory measures the quantity of information. If a message recipient may expect any one of N possible messages with equal likelihood, then the amount of information conveyed by any one such message is quantified as log2(N) bits.[79]

Lyapunov exponents use logarithms to gauge the degree of chaoticity of a dynamical system. For example, for a particle moving on an oval billiard table, even small changes of the initial conditions result in very different paths of the particle. Such systems are chaotic in a deterministic way because small errors of measurement of the initial state will predictably lead to largely different final states.[80] At least one Lyapunov exponent of a deterministically chaotic system is positive.


alt=Parts of a triangle are removed in an iterated way.

Logarithms occur in definitions of the dimension of fractals.[81] Fractals are geometric objects that are self-similar: small parts reproduce, at least roughly, the entire global structure. The Sierpinski triangle (pictured) can be covered by three copies of itself, each having sides half the original length. This causes the Hausdorff dimension of this structure to be log(3)/log(2) 1.58. Another logarithm-based notion of dimension is obtained by counting the number of boxes needed to cover the fractal in question.


Logarithms are related to musical tones and intervals. In equal temperament, the frequency ratio depends only on the interval between two tones, not on the specific frequency, or pitch, of the individual tones. For example, the note A has a frequency of 440 Hz and B-flat has a frequency of 466 Hz. The interval between A and B-flat is a semitone, as is the one between B-flat and B (frequency 493 Hz). Accordingly, the frequency ratios agree:

\frac{466}{440} \approx \frac{493}{466} \approx 1.059 \approx \sqrt[12]2.

Therefore, logarithms can be used to describe the intervals: an interval is measured in semitones by taking the logarithm of the frequency ratio, while the logarithm of the frequency ratio expresses the interval in cents, hundredths of a semitone. The latter is used for finer encoding, as it is needed for non-equal temperaments.[82]

(the two tones are played at the same time)
1/12 tone Semitone Just major third Major third Tritone Octave
Frequency ratio r 2^{\frac 1 {72}} \approx 1.0097 2^{\frac 1 {12}} \approx 1.0595 \tfrac 5 4 = 1.25 \begin{align} 2^{\frac 4 {12}} & = \sqrt[3] 2 \\ & \approx 1.2599 \end{align} \begin{align} 2^{\frac 6 {12}} & = \sqrt 2 \\ & \approx 1.4142 \end{align} 2^{\frac {12} {12}} = 2
Corresponding number of semitones
\log_{\sqrt[12] 2}(r) = 12 \log_2 (r)
\tfrac 1 6 \, 1 \, \approx 3.8631 \, 4 \, 6 \, 12 \,
Corresponding number of cents
\log_{\sqrt[1200] 2}(r) = 1200 \log_2 (r)
16 \tfrac 2 3 \, 100 \, \approx 386.31 \, 400 \, 600 \, 1200 \,

Number theory

Natural logarithms are closely linked to counting prime numbers (2, 3, 5, 7, 11, ...), an important topic in number theory. For any integer x, the quantity of prime numbers less than or equal to x is denoted (x). The prime number theorem asserts that (x) is approximately given by


in the sense that the ratio of (x) and that fraction approaches 1 when x tends to infinity.[83] As a consequence, the probability that a randomly chosen number between 1 and x is prime is inversely proportional to the numbers of decimal digits of x. A far better estimate of (x) is given by the offset logarithmic integral function Li(x), defined by

\mathrm{Li}(x) = \int_2^x \frac1{\ln(t)} \,dt.

The Riemann hypothesis, one of the oldest open mathematical conjectures, can be stated in terms of comparing (x) and Li(x).[84] The Erd s Kac theorem describing the number of distinct prime factors also involves the natural logarithm.

The logarithm of n factorial, n! = 1 2 ... n, is given by

\ln (n!) = \ln (1) + \ln (2) + \cdots + \ln (n). \,

This can be used to obtain Stirling's formula, an approximation of n! for large n.[85]


Complex logarithm

alt=An illustration of the polar form: a point is described by an arrow or equivalently by its length and angle to the x axis.

The complex numbers a solving the equation


are called complex logarithms. Here, z is a complex number. A complex number is commonly represented as z = x + iy, where x and y are real numbers and i is the imaginary unit. Such a number can be visualized by a point in the complex plane, as shown at the right. The polar form encodes a non-zero complex number z by its absolute value, that is, the distance r to the origin, and an angle between the x axis and the line passing through the origin and z. This angle is called the argument of z. The absolute value r of z is

r=\sqrt{x^2+y^2}. \,

The argument is not uniquely specified by z: both and ' = + 2 are arguments of z because adding 2 radians or 360 degrees to corresponds to "winding" around the origin counter-clock-wise by a turn. The resulting complex number is again z, as illustrated at the right. However, exactly one argument satisfies and . It is called the principal argument, denoted Arg(z), with a capital A.[86] (An alternative normalization is .[87])

alt=A density plot. In the middle there is a black point, at the negative axis the hue jumps sharply and evolves smoothly otherwise. Using trigonometric functions sine and cosine, or the complex exponential, respectively, r and are such that the following identities hold:[88]

\begin{array}{lll}z& = & r \left (\cos \varphi + i \sin \varphi\right) \\ & = & r e^{i \varphi}. \end{array} \,

This implies that the power of e equals z, where

a = \ln (r) + i ( \varphi + 2 n \pi ), \,

is the principal argument Arg(z) and n is an arbitrary integer. Any such a is called a complex logarithm of z. There are infinitely many of them, in contrast to the uniquely defined real logarithm. If n = 0, a is called the principal value of the logarithm, denoted Log(z). The principal argument of any positive real number x is 0; hence Log(x) is a real number and equals the real (natural) logarithm. However, the above formulas for logarithms of products and powers do not generalize to the principal value of the complex logarithm.[89]

The illustration at the right depicts Log(z). The discontinuity, that is, the jump in the hue at the negative part of the x- or real axis, is caused by the jump of the principal argument there. This locus is called a branch cut. This behavior can only be circumvented by dropping the range restriction on . Then the argument of z and, consequently, its logarithm become multi-valued functions.

Inverses of other exponential functions

Exponentiation occurs in many areas of mathematics and its inverse function is often referred to as the logarithm. For example, the logarithm of a matrix is the (multi-valued) inverse function of the matrix exponential.[90] Another example is the p-adic logarithm, the inverse function of the p-adic exponential. Both are defined via Taylor series analogous to the real case.[91] In the context of differential geometry, the exponential map maps the tangent space at a point of a manifold to a neighborhood of that point. Its inverse is also called the logarithmic (or log) map.[92]

In the context of finite groups exponentiation is given by repeatedly multiplying one group element b with itself. The discrete logarithm is the integer n solving the equation

b^n = x,\,

where x is an element of the group. Carrying out the exponentiation can be done efficiently, but the discrete logarithm is believed to be very hard to calculate in some groups. This asymmetry has important applications in public key cryptography, such as for example in the Diffie Hellman key exchange, a routine that allows secure exchanges of cryptographic keys over unsecured information channels.[93] Zech's logarithm is related to the discrete logarithm in the multiplicative group of non-zero elements of a finite field.[94]

Further logarithm-like inverse functions include the double logarithm ln(ln(x)), the super- or hyper-4-logarithm (a slight variation of which is called iterated logarithm in computer science), the Lambert W function, and the logit. They are the inverse functions of the double exponential function, tetration, of ,[95] and of the logistic function, respectively.[96]

Related concepts

From the perspective of pure mathematics, the identity expresses a group isomorphism between positive reals under multiplication and reals under addition. Logarithmic functions are the only continuous isomorphisms between these groups.[97] By means of that isomorphism, the Haar measure (Lebesgue measure) dx on the reals corresponds to the Haar measure dx/x on the positive reals.[98] In complex analysis and algebraic geometry, differential forms of the form df/f are known as forms with logarithmic poles.[99]

The polylogarithm is the function defined by

\operatorname{Li}_s(z) = \sum_{k=1}^\infty {z^k \over k^s}.

It is related to the natural logarithm by Li1(z) = ln(1 z). Moreover, Lis(1) equals the Riemann zeta function (s).[100]

See also



External links

am: ar: an:Logaritmo az:Loqarifma bjn:Logaritma zh-min-nan:T i-s be: be-x-old: bg: bs:Logaritam br:Logaritm ca:Logaritme cs:Logaritmus da:Logaritme de:Logarithmus et:Logaritm el: es:Logaritmo eo:Logaritmo eu:Logaritmo fa: hif:Logarithm fr:Logarithme gl:Logaritmo gan: ko: hi: hr:Logaritam io:Logaritmo id:Logaritma ia:Logarithmo is:Logri it:Logaritmo he: ka: kk: la:Logarithmus lv:Logaritms lt:Logaritmas hu:Logaritmus mg:Anisa ml: ms:Logaritma nl:Logaritme ja: no:Logaritme nn:Logaritme oc:Logaritme uz:Logarifm pnb: pl:Logarytm pt:Logaritmo ro:Logaritm ru: sq:Logaritmet scn:Lugar ttimu si: simple:Logarithm sk:Logaritmus sl:Logaritem sr: sh: fi:Logaritmi sv:Logaritm ta: tt: th: tr:Logaritma uk: vi:L garit war:Logaritmo zh-yue: bat-smg:Luogar tmos zh:

Source: Wikipedia | The above article is available under the GNU FDL. | Edit this article

Search for Logarithm in Tutorials
Search for Logarithm in Encyclopedia
Search for Logarithm in Videos
Search for Logarithm in Books
Search for Logarithm in Software
Search for Logarithm in DVDs
Search for Logarithm in Store


Logarithm in Encyclopedia
Logarithm top Logarithm

Home - Add TutorGig to Your Site - Disclaimer

©2011-2013 All Rights Reserved. Privacy Statement