# data[].attributes.attachment_link.description
Its ubiquitous occurrence in pure and applied mathematics has led mathematician W. Rudin to opine that the exponential function is "the most important function in mathematics". In applied settings, exponential functions model a relationship in which a constant change in the independent variable gives the same proportional change (that is, percentage increase or decrease) in the dependent variable.

# data[].attributes.attachment_link.description
In calculus and related areas, a linear function is a function whose graph is a straight line, that is a polynomial function of degree at most one.

# data[].attributes.attachment_link.readable_text
In 1000 = 10 × 10 × 10 = 10loglog  mathematics, the logarithm is the inverse function to exponentiation. That means the logarithm of a given number x is the exponent to which another fixed number, the b, must be raised, to produce that number x. In the simplest case, the logarithm counts the number of occurrences of the same factor in repeated multiplication; e.g., since 10" of 1000 is ³, the "logarithm base 3, or x to base b is denoted as , or without parentheses, , or even without the explicit base, big O notation. ₁₀(1000) = 3. The logarithm of x, when no confusion is possible, or when the base does not matter such as in

More generally, exponentiation allows any positive real number as base to be raised to any real power, always producing a positive result, so for any two positive real numbers b and x, where b is not equal to 1, is always a unique real number y. More explicitly, the defining relation between exponentiation and logarithm is:

exactly if and and and .

The logarithm base 10 (that is b = 10) is called the common logarithm and has many applications in science and engineering. The natural logarithm has the (that is b ≈ 2.718) as its base; its use is widespread in mathematics and physics, because of its simpler integral and derivative. The binary logarithm uses base 2 (that is computer science. Logarithms are examples of b = 2) and is commonly used in concave functions.

Logarithms were introduced by John Napier in 1614 as a means of simplifying calculations. They were rapidly adopted by navigators, scientists, engineers, surveyors and others to perform high-accuracy computations more easily. Using logarithm tables, tedious multi-digit multiplication steps can be replaced by table look-ups and simpler addition. This is possible because of the fact-important in its own right-that the logarithm of a product is the sum of the logarithms of the factors:

provided that b, x and y are all positive and slide rule, also based on logarithms, allows quick calculations without tables, but at lower precision. The present-day notion of logarithms comes from Leonhard Euler, who connected them to the b ≠ 1. The exponential function in the 18th century, and who also introduced the letter e as the base of natural logarithms.

Logarithmic scales reduce wide-ranging quantities to tiny scopes. For example, the decibel (dB) is a unit used to express ratio as logarithms, mostly for signal power and amplitude (of which sound pressure is a common example). In chemistry, pH is a logarithmic measure for the acidity of an aqueous solution. Logarithms are commonplace in scientific formulae, and in measurements of the complexity of algorithms and of geometric objects called fractals. They help to describe frequency ratios of musical intervals, appear in formulas counting prime numbers or approximating factorials, 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 modular discrete logarithm is another variant; it has uses in public-key cryptography.

55 Addition, multiplication, and exponentiation are three of the most fundamental arithmetic operations. Addition, the simplest of these, is undone by subtraction: when you add 5 to x to get subtract x + 5, to reverse this operation you need to 5 from division: if you multiply x by x + 5. Multiplication, the next-simplest operation, is undone by 5 to get 5 in order to return to the original expression x. Logarithms also undo a fundamental arithmetic operation, exponentiation. Exponentiation is when you raise a number to a certain power. For example, raising 2 to the power x, you then must divide 3 equals x by 8:

The number b is referred to as the base of this expression. The base is the number that is raised to a particular power-in the above example, the base of the expression is 2. It is easy to make the base the subject of the expression: all you have to do is take the y-th root of both sides. This gives:

It is less easy to make y the subject of the expression. Logarithms allow us to do this:

log b x

This expression means that y is equal to the power that you need to raise b to in order to get x. This operation undoes exponentiation because the logarithm of exponent that the base has been raised to. x tells you the

This subsection contains a short overview of the exponentiation operation, which is fundamental to understanding logarithms. Raising b to the power, where n is a natural number, is done by multiplying n factors equal to b. The power of b is written , so that

the q-th root of .

Finally, any irrational number (a real number which is not rational) y can be approximated to arbitrary precision by rational numbers. This can be used to compute the y -th power of b : for example and is increasingly well approximated by . A more detailed explanation, as well as the formula b m + n = b m · b n is contained in the article on exponentiation.

The logarithm of a positive real number x with respect to base b is the exponent by which b must be raised to yield x. In other words, the logarithm of x to base b is the solution y to the equation

The logarithm is denoted "" (pronounced as "the logarithm of x to base b" or "the base-x" or (most commonly) "the log, base b logarithm of b, of x").

In the equation , the value y is the answer to the question "To what power must b be raised, in order to yield x?".

log 2₂ 16 = 4 , since ⁴ = 2 ×2 × 2 × 2 = 16.

Logarithms can also be negative: since

log1010₁₀150 is approximately 2.176, which lies between 2 and 3, just as 150 lies between ² = 100 and ³ = 1000.

For any base b, loglogb b = 1 and b 1 = 0, since b ¹ = b and b ⁰ = 1, respectively.

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

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. The logarithm of the p-th power of a number is p times the logarithm of the number itself; the logarithm of a p-th root is the logarithm of the number divided by p . The following table lists these identities with examples. Each of the identities can be derived after substitution of the logarithm definitions or [1] in the left hand sides.

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

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

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

which can be seen from taking the defining equation to the power of

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

Thus, is related to the number of decimal digits of a positive integer x: the number of digits is the smallest integer strictly bigger than log ₁₀ x. For example, is approximately 3.15. The next integer is 4, which is the number of digits of 1430. Both the natural logarithm and the logarithm to base two are used in information theory, corresponding to the use of nats or bits as the fundamental units of information, respectively. Binary logarithms are also used in computer science, where the binary system is ubiquitous; in music theory, where a pitch ratio of two (the octave) is ubiquitous and the cent is the binary logarithm (scaled by 1200) of the ratio between two adjacent equally-tempered pitches in European classical music; and in photography to measure exposure values.

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 , when the intended base can be determined from the context. The notation also occurs. The "ISO notation" column lists designations suggested by the International Organization for Standardization ( ISO 31-11). Because the notation has been used for all three bases (or when the base is indeterminate or immaterial), the intended base must often be inferred based on context or discipline. In computer science log usually refers to , and in mathematics log usually refers to . In other contexts log often means .

The history of logarithm in seventeenth-century Europe is the discovery of a new function that extended the realm of analysis beyond the scope of algebraic methods. The method of logarithms was publicly propounded by John Napier in 1614, in a book titled Mirifici Logarithmorum Canonis Descriptio ( Description of the Wonderful Rule of Logarithms). Prior to Napier's invention, there had been other techniques of similar scopes, such as the prosthaphaeresis or the use of tables of progressions, extensively developed by Jost Bürgi around 1600. Napier coined the term for logarithm in Middle Latin, "logarithmorum," derived from the Greek, literally meaning, "ratio-number," from logos "proportion, ratio, word" + arithmos "number".

The common logarithm of a number is the index of that power of ten which equals the number. Speaking of a number as requiring so many figures is a rough allusion to common logarithm, and was referred to by Archimedes as the "order of a number". The first real logarithms were heuristic methods to turn multiplication into addition, thus facilitating rapid computation. Some of these methods used tables derived from trigonometric identities. Such methods are called prosthaphaeresis.

Invention of the function now known as natural logarithm began as an attempt to perform a quadrature of a rectangular hyperbola by Grégoire de Saint-Vincent, a Belgian Jesuit residing in Prague. Archimedes had written The Quadrature of the Parabola in the third century BC, but a quadrature for the hyperbola eluded all efforts until Saint-Vincent published his results in 1647. The relation that the logarithm provides between a geometric progression in its argument and an arithmetic progression of values, prompted A. A. de Sarasa to make the connection of Saint-Vincent's quadrature and the tradition of logarithms in prosthaphaeresis, leading to the term "hyperbolic logarithm", a synonym for natural logarithm. Soon the new function was appreciated by Christiaan Huygens, and James Gregory. The notation Log y was adopted by Leibniz in 1675,[29] and the next year he connected it to the integral

Logarithm tables, slide rules, and historical applications

By simplifying difficult calculations before calculators and computers became available, logarithms contributed to the advance of science, especially 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."

As the function is the inverse function of logb x, it has been called the antilogarithm.

A key tool that enabled the practical use of logarithms was the table of logarithms. The first such table was compiled by Henry Briggs in 1617, immediately after Napier's invention but with the innovation of using 10 as the base. Briggs' first table contained the common logarithms of all integers in the range 1-1000, with a precision of 14 digits. Subsequently, tables with increasing scope were written. These tables listed the values of for any number x in a certain range, at a certain precision. Base-10 logarithms were universally used for computation, hence the name common logarithm, since numbers that differ by factors of 10 have logarithms that differ by integers. The common logarithm of x can be separated into an integer part and a fractional part, known as the characteristic and mantissa. Tables of logarithms need only include the mantissa, as the characteristic can be easily determined by counting digits from the decimal point. The characteristic of is one plus the characteristic of x, and their mantissas are the same. Thus using a three-digit log table, the logarithm of 3542 is approximated by

Greater accuracy can be obtained by interpolation:

The value of can be determined by reverse look up in the same table, since the logarithm is a monotonic function.

The product and quotient of two positive numbers c and were routinely calculated as the sum and difference of their logarithms. The product or quotient c/d came from looking up the antilogarithm of the sum or difference, via the same table:

and

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

and

Trigonometric calculations were facilitated by tables that contained the common logarithms of trigonometric functions.

Another critical application was the slide rule, a pair of logarithmically divided scales used for calculation. 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, as illustrated here:

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.

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

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

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. This theorem states that a continuous function that produces two values and also produces any value that lies between and . 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 . Because takes arbitrarily large and arbitrarily small positive values, any number y > 0 lies between and for suitable and . Hence, the intermediate value theorem ensures that the equation has a solution. Moreover, there is only one solution to this equation, because the function f is strictly increasing (for b > 1), or strictly decreasing (for ).

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

The function is essentially characterized by the product formula

More precisely, the logarithm to any base b > 1 is the only increasing function f from the positive reals to the reals satisfying and

The formula for the logarithm of a power says in particular that for any number x,

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

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 .

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 on the graph of f yields a point on the graph of the logarithm and vice versa. As a consequence, diverges to infinity (gets bigger than any given number) if x grows to infinity, provided that b is greater than one. In that case, is an increasing function. For x approaches zero, goes to minus infinity for b < 1, tends to minus infinity instead. When b > 1 (plus infinity for b < 1, respectively).

Analytic properties of functions pass to their inverses. Thus, as is a continuous and differentiable function, so is . Roughly, a continuous function is differentiable if its graph has no sharp "corners". Moreover, as the derivative of evaluates to by the properties of the exponential function, the chain rule implies that the derivative of is given by

The derivative of ln x is 1/1/ x; this implies that ln x is the unique antiderivative of x that has the value 0 for x =1. It is this very simple formula that motivated to qualify as "natural" the natural logarithm; this is also one of the main reasons of the importance of the constant .

The derivative with a generalised functional argument is

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

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

In other words, ln(1/ln(1/ t) equals the area between the x axis and the graph of the function x, ranging from x = 1 to (figure at the right). This is a consequence of the fundamental theorem of calculus and the fact that the derivative of x) is 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. For example, the product formula is deduced as:

The equality (1) splits the integral into two parts, while the equality (2) is a change of variable (). 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 again. Therefore, the left hand blue area, which is the integral of from t to tu is the same as the integral from 1 to u. This justifies the equality (2) with a more geometric proof.

The second equality uses a change of variables ( integration by substitution), .

The sum over the reciprocals of natural numbers,

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

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

There are also some other integral representations of the logarithm that are useful in some situations:

The first identity can be verified by showing that it has the same value at x = 1, and the same derivative. The second identity can be proven by writing

Real numbers that are not algebraic are called transcendental;[46] for example, π and e are such numbers, but is not. Almost all real numbers are transcendental. The logarithm is an example of a transcendental function. The Gelfond-Schneider theorem asserts that logarithms usually take transcendental, i.e., "difficult" values.[47]

Logarithms are easy to compute in some cases, such as loglb( ₁₀(1000) = 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. 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. Using look-up tables, CORDIC-like methods can be used to compute logarithms by using only the operations of addition and bit shifts. Moreover, the binary logarithm algorithm calculates x) recursively, based on repeated squarings of x, taking advantage of the relation

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

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

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.

Another series is based on the area hyperbolic tangent function:

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

the logarithm of z is:

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. Putting in the above series, it follows that:

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

Arithmetic-geometric mean approximation

The ln( arithmetic-geometric mean yields high precision approximations of the natural logarithm. Sasaki and Kanada showed in 1982 that it was particularly fast for precisions between 400 and 1000 decimal places, while Taylor series methods were typically faster when less precision was needed. In their work x) is approximated to a precision of (or p precise bits) by the following formula (due to Carl Friedrich Gauss):

Here M(M( x, y) denotes the arithmetic-geometric mean of x and y. It is obtained by repeatedly calculating the average ( arithmetic mean) and ( geometric mean) of x and y then let those two numbers become the next x and y. The two numbers quickly converge to a common limit which is the value of m is chosen such that x, y).

to ensure the required precision. A larger m makes the calculation take more steps (the initial x and y are farther apart so it takes more steps to converge) but gives more precision. The constants pi and ln(2) can be calculated with quickly converging series.

Feynman's algorithm

While at Los Alamos National Laboratory working on the Manhattan Project, Richard Feynman developed a bit-processing algorithm that is similar to long division and was later used in the Connection Machine. The algorithm uses the fact that every real number is representable as a product of distinct factors of the form . The algorithm sequentially builds that product : if , then it changes to . It then increase by one regardless. The algorithm stops when is large enough to give the desired accuracy. Because is the sum of the terms of the form corresponding to those for which the factor was included in the product , may be computed by simple addition, using a table of for all . Any base may be used for the logarithm table.[56]

Logarithms have many applications inside and outside mathematics. Some of these occurrences are related to the notion of log( 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. Benford's law on the distribution of leading digits can also be explained by scale invariance. 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. 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 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.

Scientific quantities are often expressed as logarithms of other quantities, using a logarithmic scale. For example, the decibel is a unit of measurement associated with logarithmic-scale quantities. 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, to describe power levels of sounds in acoustics, 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. 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.

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 magnitude scale. For example, a 5.0 earthquake releases 32 times and a 6.0 releases 1000 times the energy of a 4.0. Another logarithmic scale is apparent magnitude. It measures the brightness of stars logarithmically. 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). The activity of hydronium ions in neutral water is 10 −7 , hence a pH of 7. Vinegar typically has a pH of about 3. The difference of 4 corresponds to a ratio of 10 ⁴ of the activity, that is, vinegar's hydronium ion activity is about .

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 appear as straight lines with slope equal to the logarithm of b. Log-log graphs scale both axes logarithmically, which causes functions of the form to be depicted as straight lines with slope equal to the exponent k. This is applied in visualizing and analyzing power laws.

Logarithms occur in several laws describing human perception: Hick's law proposes a logarithmic relation between the time individuals take to choose an alternative and the number of choices they have. 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. 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. (This "law", however, is less realistic than more recent models, such as Stevens's power law.)

Psychological studies found that individuals with little mathematics education 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 100 as 100 is to 1000. Increasing education shifts this to a linear estimate (positioning 1000 10x as far away) in some circumstances, while logarithms are used when the numbers to be plotted are difficult to plot linearly.

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.

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. 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.

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 must 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.

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 , regardless of the unit of measurement. 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.

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

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, comparisons, where N is the list's length. 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 . 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.

A function is said to grow logarithmically if is (exactly or approximately) proportional to the logarithm of x. (Biological descriptions of organism growth, however, use this term for an exponential function.) 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 is broadly a measure of the disorder of some system. In statistical thermodynamics, the entropy S of some physical system is defined as

The sum is over all possible states i of the system in question, such as the positions of gas particles in a container. Moreover, 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 bits.

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 measurement errors of the initial state predictably lead to largely different final states. At least one Lyapunov exponent of a deterministically chaotic system is positive.

Logarithms occur in definitions of the dimension of fractals. 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 makes the Hausdorff dimension of this structure ln(3)/ln(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:

Therefore, logarithms can be used to describe the intervals: an interval is measured in semitones by taking the logarithm of the base-2 frequency ratio, while the 1/1200 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.

Interval
(the two tones are played at the same time)

1/12 tone

Frequency ratio r

Corresponding number of semitones

Corresponding number of cents

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 . The prime number theorem asserts that is approximately given by

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

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

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

All the complex numbers a that solve the equation

are called complex logarithms of z, when z is (considered as) a complex number. A complex number is commonly represented as x and z = x + iy, where y are real numbers and i is an imaginary unit, the square of which is −1. 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 (positive, real) distance r to the origin, and an angle between the real (x) axis Re and the line passing through both the origin and z. This angle is called the argument of z.

The absolute value r of z is given by

Using the geometrical interpretation of and and their periodicity in any complex number z may be denoted as

for any integer number k. Evidently the argument of z is not uniquely specified: both φ and φ' = φ + 2Arg( kπ are valid arguments of z for all integers k, because adding 2 kπ radian or k⋅360°[nb 6] to φ corresponds to "winding" around the origin counter-clock-wise by k turns. The resulting complex number is always z, as illustrated at the right for z as the so-called principal argument, denoted A, by requiring φ to belong to one, conveniently selected turn, e.g., [95] or [96] These regions, where the argument of z is uniquely determined are called branches of the argument function. k = 1. One may select exactly one of the possible arguments of z), with a capital

Euler's formula connects the trigonometric functions sine and cosine to the complex exponential:

Using this formula, and again the periodicity, the following identities hold:

where ln( r) is the unique real natural logarithm, denote the complex logarithms of z, and k is an arbitrary integer. Therefore, the complex logarithms of z, which are all those complex values for which the power of e equals z, are the infinitely many values

for arbitrary integers k.

Taking k such that Log(Log( is within the defined interval for the principal arguments, then a k is called the principal value of the logarithm, denoted z), again with a capital L. The principal argument of any positive real number x is 0; hence do not generalize to the principal value of the complex logarithm. x) is a real number and equals the real (natural) logarithm. However, the above formulas for logarithms of products and powers [98]

The illustration at the right depicts Log( z), confining the arguments of z to the interval . This way the corresponding branch of the complex logarithm has discontinuities all along the negative real x axis, which can be seen in the jump in the hue there. This discontinuity arises from jumping to the other boundary in the same branch, when crossing a boundary, i.e., not changing to the corresponding k-value of the continuously neighboring branch. Such a locus is called a branch cut. Dropping the range restrictions on the argument makes the relations "argument of z", and consequently the "logarithm of z", multi-valued 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. 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. 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.

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

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. Zech's logarithm is related to the discrete logarithm in the multiplicative group of non-zero elements of a finite field.

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 , and of the logistic function, respectively.

From the perspective of group theory, 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. By means of that isomorphism, the Haar measure ( Lebesgue measure) dx on the reals corresponds to the Haar measure on the positive reals. The non-negative reals not only have a multiplication, but also have addition, and form a semiring, called the probability semiring; this is in fact a semifield. The logarithm then takes multiplication to addition (log multiplication), and takes addition to log addition ( LogSumExp), giving an isomorphism of semirings between the probability semiring and the log semiring.

Logarithmic one-forms appear in complex analysis and algebraic geometry as differential forms with logarithmic poles.

The polylogarithm is the function defined by

1. Some mathematicians disapprove of this notation. In his 1985 autobiography, ^ Paul Halmos criticized what he considered the "childish ln notation," which he said no mathematician had ever used. The notation was invented byIrving Stringham, a mathematician.

2. The same series holds for the principal value of the complex logarithm for complex numbers z satisfying |^ z − 1| < 1.

3. ^ The same series holds for the principal value of the complex logarithm for complex numbers z with positive real part.

Media related to Logarithm at Wikimedia Commons

The dictionary definition of logarithm at Wiktionary

Khan Academy: Logarithms, free online micro lectures

Hazewinkel, Michiel, ed. (2001) [1994], "Logarithmic function", Encyclopedia of Mathematics, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN 978-1-55608-010-4

Colin Byfleet, Educational video on logarithms

Edward Wright, Translation of Napier's work on logarithms, archived from the original on 3 December 2002

Glaisher, James Whitbread Lee (1911). "Logarithm" . In Chisholm, Hugh (ed.). Encyclopædia Britannica. 16 (11th ed.). Cambridge University Press. pp. 868-77.

# data[].attributes.attachment_link.description
In 1000 = 10 × 10 × 10 = 10loglog  mathematics, the logarithm is the inverse function to exponentiation. That means the logarithm of a given number x is the exponent to which another fixed number, the b, must be raised, to produce that number x.

# data[].attributes.attachment_link.readable_text
In mathematics, a rational function is any function which can be defined by a rational fraction, i.e. an algebraic fraction such that both the numerator and the denominator are polynomials. The coefficients of the polynomials need not be rational numbers; they may be taken in any field K. In this case, one speaks of a rational function and a rational fraction over K. The values of the variables may be taken in any field L containing K. Then the domain of the function is the set of the values of the variables for which the denominator is not zero and the codomain is L.

The set of rational functions over a field K is a field, the field of fractions of the ring of the polynomial functions over K.

A function is called a rational function if and only if it can be written in the form

where and are polynomial functions of and is not the zero function. The domain of is the set of all values of for which the denominator is not zero.

However, if and have a non-constant polynomial greatest common divisor , then setting and produces a rational function

which may have a larger domain than , and is equal to on the domain of It is a common usage to identify and , that is to extend "by continuity" the domain of to that of Indeed, one can define a rational fraction as an equivalence class of fractions of polynomials, where two fractions and are considered equivalent if . In this case is equivalent to .

A proper rational function is a rational function in which the degree of is no greater than the degree of and both are real polynomials.[1]

There are several non equivalent definitions of the degree of a rational function.

Most commonly, the degree of a rational function is the maximum of the degrees of its constituent polynomials P and Q, when the fraction is reduced to lowest terms. If the degree of f is d, then the equation

has d distinct solutions in z except for certain values of w, called critical values, where two or more solutions coincide or where some solution is rejected at infinity (that is, when the degree of the equation decrease after having cleared the denominator).

In the case of complex coefficients, a rational functions with degree one is a Möbius transformation.

The degree of the graph of a rational function is not the degree as defined above: it is the maximum of the degree of the numerator and one plus the degree of the denominator.

In some contexts, such as in asymptotic analysis, the degree of a rational function is the difference between the degrees of the numerator and the denominator.

In network synthesis and network analysis, a rational function of degree two (that is, the ratio of two polynomials of degree at most two) is often called a biquadratic function .

The rational function

is not defined at

It is asymptotic to as

The rational function

is defined for all real numbers, but not for all complex numbers, since if x were a square root of (i.e. the imaginary unit or its negative), then formal evaluation would lead to division by zero:

which is undefined.

A constant function such as f( x) = π is a rational function since constants are polynomials. The function itself is rational, even though the value of f( x) is irrational for all x.

Every polynomial function is a rational function with A function that cannot be written in this form, such as is not a rational function. The adjective "irrational" is not generally used for functions.

The rational function is equal to 1 for all x except 0, where there is a removable singularity. The sum, product, or quotient (excepting division by the zero polynomial) of two rational functions is itself a rational function. However, the process of reduction to standard form may inadvertently result in the removal of such singularities unless care is taken. Using the definition of rational functions as equivalence classes gets around this, since x/ x is equivalent to 1/1.

The coefficients of a Taylor series of any rational function satisfy a linear recurrence relation, which can be found by equating the rational function to a Taylor series with indeterminate coefficients, and collecting like terms after clearing the denominator.

For example,

Multiplying through by the denominator and distributing,

After adjusting the indices of the sums to get the same powers of x, we get

Combining like terms gives

Since this holds true for all x in the radius of convergence of the original Taylor series, we can compute as follows. Since the constant term on the left must equal the constant term on the right it follows that

Then, since there are no powers of x on the left, all of the coefficients on the right must be zero, from which it follows that

Conversely, any sequence that satisfies a linear recurrence determines a rational function when used as the coefficients of a Taylor series. This is useful in solving such recurrences, since by using partial fraction decomposition we can write any proper rational function as a sum of factors of the form 1 / (ax + b) and expand these as geometric series, giving an explicit formula for the Taylor coefficients; this is the method of generating functions.

In abstract algebra the concept of a polynomial is extended to include formal expressions in which the coefficients of the polynomial can be taken from any field. In this setting given a field F and some indeterminate X, a rational expression is any element of the field of fractions of the polynomial ring F[ X]. Any rational expression can be written as the quotient of two polynomials P/ Q with Q ≠ 0, although this representation isn't unique. P/ Q is equivalent to R/ S, for polynomials P, Q, R, and S, when PS = QR. However, since F[ X] is a unique factorization domain, there is a unique representation for any rational expression P/ Q with P and Q polynomials of lowest degree and Q chosen to be monic. This is similar to how a fraction of integers can always be written uniquely in lowest terms by canceling out common factors.

The field of rational expressions is denoted F( X). This field is said to be generated (as a field) over F by (a transcendental element) X, because F( X) does not contain any proper subfield containing both F and the element X.

Complex rational functions

In complex analysis, a rational function

is the ratio of two polynomials with complex coefficients, where Q is not the zero polynomial and P and Q have no common factor (this avoids f taking the indeterminate value 0/0).

The domain of f is the set of complex numbers such that and its range is the set of the complex numbers w such that

Every rational function can be naturally extended to a function whose domain and range are the whole Riemann sphere ( complex projective line).

Rational functions are representative examples of meromorphic functions.

Notion of a rational function on an algebraic variety

An extended version of the abstract idea of rational function is used in algebraic geometry. There the function field of an algebraic variety V is formed as the field of fractions of the coordinate ring of V (more accurately said, of a Zariski-dense affine open set in V). Its elements f are considered as regular functions in the sense of algebraic geometry on non-empty open sets U, and also may be seen as morphisms to the projective line.

These objects are first encountered in school algebra. In more advanced mathematics they play an important role in ring theory, especially in the construction of field extensions. They also provide an example of a nonarchimedean field (see Archimedean property).

Rational functions are used in numerical analysis for interpolation and approximation of functions, for example the Padé approximations introduced by Henri Padé. Approximations in terms of rational functions are well suited for computer algebra systems and other numerical software. Like polynomials, they can be evaluated straightforwardly, and at the same time they express more diverse behavior than polynomials.

Rational functions are used to approximate or model more complex equations in science and engineering including fields and forces in physics, spectroscopy in analytical chemistry, enzyme kinetics in biochemistry, electronic circuitry, aerodynamics, medicine concentrations in vivo, wave functions for atoms and molecules, optics and photography to improve image resolution, and acoustics and sound[citation needed ].

In signal processing, the Laplace transform (for continuous systems) or the z-transform (for discrete-time systems) of the impulse response of commonly-used linear time-invariant systems (filters) with infinite impulse response are rational functions over complex numbers.

Hazewinkel, Michiel, ed. (2001) [1994], "Rational function", Encyclopedia of Mathematics, Springer Science+Business Media B.V. / Kluwer Academic Publishers, ISBN 978-1-55608-010-4

Press, W.H.; Teukolsky, S.A.; Vetterling, W.T.; Flannery, B.P. (2007), "Section 3.4. Rational Function Interpolation and Extrapolation", Numerical Recipes: The Art of Scientific Computing (3rd ed.), New York: Cambridge University Press, ISBN 978-0-521-88068-8

# data[].attributes.attachment_link.description
In mathematics, a rational function is any function which can be defined by a rational fraction, i.e. an algebraic fraction such that both the numerator and the denominator are polynomials. The coefficients of the polynomials need not be rational numbers; they may be taken in any field K.