In mathematics, many logarithmic identities exist. The following is a compilation of the notable of these, many of which are used for computational purposes.
Trivial identities[]
![{\displaystyle \log _{b}(1)=0}](https://wikimedia.org/api/rest_v1/media/math/render/svg/901f6efd3f7b26aa95b855e884a8c2c620ef1fe0) |
because |
, given that b doesn't equal 0
|
![{\displaystyle \log _{b}(b)=1}](https://wikimedia.org/api/rest_v1/media/math/render/svg/d3a58a8d06818394825efc588fa84970424b75f8) |
because |
|
Cancelling exponentials[]
Logarithms and exponentials with the same base cancel each other. This is true because logarithms and exponentials are inverse operations—much like the same way multiplication and division are inverse operations, and addition and subtraction are inverse operations.
![{\displaystyle b^{\log _{b}(x)}=x{\text{ because }}{\mbox{antilog}}_{b}(\log _{b}(x))=x}](https://wikimedia.org/api/rest_v1/media/math/render/svg/b1cfe924e512bd3ca53cf347d63f7d3f7272fb41)
>[1]
Both of the above are derived from the following two equations that define a logarithm:
![{\displaystyle b^{c}=x\iff \log _{b}(x)=c}](https://wikimedia.org/api/rest_v1/media/math/render/svg/7ca5002cad64534a2f66626a2b20c7555fde03d1)
Substituting c in the left equation gives blogb(x) = x, and substituting x in the right gives logb(bc) = c. Finally, replace c with x.
Using simpler operations[]
Logarithms can be used to make calculations easier. For example, two numbers can be multiplied just by using a logarithm table and adding. These are often known as logarithmic properties, which are documented in the table below.[2] The first three operations below assume that x = bc and/or y = bd, so that logb(x) = c and logb(y) = d. Derivations also use the log definitions x = blogb(x) and x = logb(bx).
![{\displaystyle \log _{b}(xy)=\log _{b}(x)+\log _{b}(y)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/a72b4b7ba4c487ba5c15587d2eff610355605901) |
because |
|
![{\displaystyle \log _{b}({\tfrac {x}{y}})=\log _{b}(x)-\log _{b}(y)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/b3376dd2b0c1a700e1e60f7897b953ba52c696fb) |
because |
|
![{\displaystyle \log _{b}(x^{d})=d\log _{b}(x)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/d23edf2cabd7544f17387e50fbad8ce772cdedad) |
because |
|
![{\displaystyle \log _{b}\left({\sqrt[{y}]{x}}\right)={\frac {\log _{b}(x)}{y}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/de242874c347b5ca76ff4594f7595f5c94ff935e) |
because |
|
![{\displaystyle x^{\log _{b}(y)}=y^{\log _{b}(x)}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/f223e2054ba145e70ed80ffbc4ccc7ff59bc7479) |
because |
|
![{\displaystyle c\log _{b}(x)+d\log _{b}(y)=\log _{b}(x^{c}y^{d})}](https://wikimedia.org/api/rest_v1/media/math/render/svg/e0a65199c28cefee092329b6d7617a6e3c1531ac) |
because |
|
Where
,
, and
are positive real numbers and
, and
and
are real numbers.
The laws result from canceling exponentials and the appropriate law of indices. Starting with the first law:
The law for powers exploits another of the laws of indices:
The law relating to quotients then follows:
Similarly, the root law is derived by rewriting the root as a reciprocal power:
Changing the base[]
![{\displaystyle \log _{b}a={\frac {\log _{10}(a)}{\log _{10}(b)}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/e2ff173bf9e26cc3f8eafa25f0d4d99f14491334)
This identity is useful to evaluate logarithms on calculators. For instance, most calculators have buttons for ln and for log10, but not all calculators have buttons for the logarithm of an arbitrary base.
- Consider the equation
![{\displaystyle b^{c}=a}](https://wikimedia.org/api/rest_v1/media/math/render/svg/286a2132e99e5b4c245a1e85e555adc9969cad20)
- Take logarithm base
of both sides: ![{\displaystyle \log _{d}b^{c}=\log _{d}a}](https://wikimedia.org/api/rest_v1/media/math/render/svg/7c77cf28037a2fdee2447839e509816bb9b343c5)
- Simplify and solve for
: ![c\log_d b=\log_d a](https://wikimedia.org/api/rest_v1/media/math/render/svg/51bd3be02581c3aaf0e2ea6fab8c26fac9714474)
![{\displaystyle c={\frac {\log a}{\log b}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/42d6c51bae6fb7ca697457019b5c5475fab52cfc)
- Since
, then ![\log_b a=\frac{\log_d a}{\log_d b}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2d683c8b3096efa3f6ba1679c0e09d720df82780)
This formula has several consequences:
![{\displaystyle \log _{b}a={\frac {1}{\log _{a}b}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/afbd90f044a3e1c3866e76db5084d6440806b87e)
![{\displaystyle \log _{b^{n}}a={\log _{b}a \over n}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2c8df267df99a0374213437ccd72e03a224eccbc)
![b^{\log_a d} = d^{\log_a b}](https://wikimedia.org/api/rest_v1/media/math/render/svg/f57de9ecf16668f377d064291bc83d7bc5e40e59)
![{\displaystyle -\log _{b}a=\log _{b}\left({1 \over a}\right)=\log _{1/b}a}](https://wikimedia.org/api/rest_v1/media/math/render/svg/8099b968498bd74d8d02e1c7e4cf45f6c9c788b1)
![{\displaystyle \log _{b_{1}}a_{1}\,\cdots \,\log _{b_{n}}a_{n}=\log _{b_{\pi (1)}}a_{1}\,\cdots \,\log _{b_{\pi (n)}}a_{n},}](https://wikimedia.org/api/rest_v1/media/math/render/svg/16295b3605c216712d4e045930ee32fa87d27968)
where
is any permutation of the subscripts 1, ..., n. For example
![{\displaystyle \log _{b}w\cdot \log _{a}x\cdot \log _{d}c\cdot \log _{d}z=\log _{d}w\cdot \log _{b}x\cdot \log _{a}c\cdot \log _{d}z.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/7ce3836091ae9fca0663410b4ef713b88604d99e)
Summation/subtraction[]
The following summation/subtraction rule is especially useful in probability theory when one is dealing with a sum of log-probabilities:
|
because
|
|
|
because
|
|
Note that the subtraction identity is not defined if
, since the logarithm of zero is not defined.
Also note that, when programming,
and
may have to be switched on the right hand side of the equations if
to avoid losing the "1 +" due to rounding errors. Many programming languages have a specific log1p(x)
function that calculates
without underflow (when
is small).
More generally:
![\log _b \sum\limits_{i=0}^N a_i = \log_b a_0 + \log_b \left( 1+\sum\limits_{i=1}^N \frac{a_i}{a_0} \right) = \log _b a_0 + \log_b \left( 1+\sum\limits_{i=1}^N b^{\left( \log_b a_i - \log _b a_0 \right)} \right)](https://wikimedia.org/api/rest_v1/media/math/render/svg/9f4c59c584e7512b846c7e98e17932096e19a325)
Exponents[]
A useful identity involving exponents:
![{\displaystyle x^{\frac {\log(\log(x))}{\log(x)}}=\log(x)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/610552aa2cc72e08c0d636d0d04ec31dcd51c5b7)
or more universally:
![{\displaystyle x^{\frac {\log(a)}{\log(x)}}=a}](https://wikimedia.org/api/rest_v1/media/math/render/svg/d2f8386ad2b6da8aaa2776d62b7569d91d479f80)
Other/resulting identities[]
![{\displaystyle {\frac {1}{{\frac {1}{\log _{x}(a)}}+{\frac {1}{\log _{y}(a)}}}}=\log _{xy}(a)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/599137f1e849fad875c48718d24b960645d516c7)
![{\displaystyle {\frac {1}{{\frac {1}{\log _{x}(a)}}-{\frac {1}{\log _{y}(a)}}}}=\log _{\frac {x}{y}}(a)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/cb4da7c2e008c31ccc8d879a14a0a48b4d832651)
Inequalities[]
Based on,[3][4] and [5]
![{\displaystyle {\frac {x}{1+x}}\leq \ln(1+x)\leq {\frac {x(6+x)}{6+4x}}\leq x{\mbox{ for all }}{-1}<x}](https://wikimedia.org/api/rest_v1/media/math/render/svg/cac772d43c9e3b130cf2cfdfc0b792fe4275fef8)
![{\displaystyle {\begin{aligned}{\frac {2x}{2+x}}&\leq 3-{\sqrt {\frac {27}{3+2x}}}\leq {\frac {x}{\sqrt {1+x+x^{2}/12}}}\\[4pt]&\leq \ln(1+x)\leq {\frac {x}{\sqrt {1+x}}}\leq {\frac {x}{2}}{\frac {2+x}{1+x}}\\[4pt]&{\text{ for }}0\leq x{\text{, reverse for }}{-1}<x\leq 0\end{aligned}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/7129f5e2c3c1cd0dd7b0e5c1d7bf181d569539c5)
All are accurate around
, but not for large numbers.
Calculus identities[]
![{\displaystyle \lim _{x\to 0^{+}}\log _{a}(x)=-\infty \quad {\mbox{if }}a>1}](https://wikimedia.org/api/rest_v1/media/math/render/svg/050eb88efd0aa05ed0940a1ea2173b61ae5d2bb0)
![{\displaystyle \lim _{x\to 0^{+}}\log _{a}(x)=\infty \quad {\mbox{if }}0<a<1}](https://wikimedia.org/api/rest_v1/media/math/render/svg/e19146c97b6d735e6903161940937f831d8d9cfe)
![{\displaystyle \lim _{x\to \infty }\log _{a}(x)=\infty \quad {\mbox{if }}a>1}](https://wikimedia.org/api/rest_v1/media/math/render/svg/c79ee13d90275ff2ae78c27806be74fe07d74367)
![{\displaystyle \lim _{x\to \infty }\log _{a}(x)=-\infty \quad {\mbox{if }}0<a<1}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2887cfd0e0a0d3b0eb4a11a1ddd5648d3e1024c1)
![{\displaystyle \lim _{x\to 0^{+}}x^{b}\log _{a}(x)=0\quad {\mbox{if }}b>0}](https://wikimedia.org/api/rest_v1/media/math/render/svg/3160b82b1f938dd09d8ad3ad345e65259e6911cd)
![{\displaystyle \lim _{x\to \infty }{\frac {\log _{a}(x)}{x^{b}}}=0\quad {\mbox{if }}b>0}](https://wikimedia.org/api/rest_v1/media/math/render/svg/43b8207752a5377c71c1f53b40e203c0dd658ad6)
The last limit is often summarized as "logarithms grow more slowly than any power or root of x".
Derivatives of logarithmic functions[]
![{d \over dx} \ln x = {1 \over x },](https://wikimedia.org/api/rest_v1/media/math/render/svg/4b24dae54313d77ec27a6189583b6a5561b701ab)
![{d \over dx} \log_b x = {1 \over x \ln b},](https://wikimedia.org/api/rest_v1/media/math/render/svg/fd2796ab49a7712e3f625f4f1473d352adc12c4e)
Where
,
, and
.
Integral definition[]
![\ln x = \int_1^x \frac {1}{t} dt](https://wikimedia.org/api/rest_v1/media/math/render/svg/51e72c70a86d7ec8c9b4353058bda339ff8598c7)
Integrals of logarithmic functions[]
![\int \log_a x \, dx = x(\log_a x - \log_a e) + C](https://wikimedia.org/api/rest_v1/media/math/render/svg/e3e9d4b89241e2696ab222e6e33cb73c928a62af)
To remember higher integrals, it is convenient to define
![x^{\left [n \right]} = x^{n}(\log(x) - H_n)](https://wikimedia.org/api/rest_v1/media/math/render/svg/be26aeae0c7b88d50e760d2ce40df2af4c44b0bb)
where
is the nth harmonic number:
![x^{\left [ 0 \right ]} = \log x](https://wikimedia.org/api/rest_v1/media/math/render/svg/078fe3653cf35a30aea1b7f03ea554ae7670b967)
![x^{\left [ 1 \right ]} = x \log(x) - x](https://wikimedia.org/api/rest_v1/media/math/render/svg/9c12b6bda581e741822ed456b8e7c42955525db0)
![{\displaystyle x^{\left[2\right]}=x^{2}\log(x)-{\begin{matrix}{\frac {3}{2}}\end{matrix}}x^{2}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/966e2b00f916c63e7ccb68fd3da3908597238c66)
![{\displaystyle x^{\left[3\right]}=x^{3}\log(x)-{\begin{matrix}{\frac {11}{6}}\end{matrix}}x^{3}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/c0f07636bb06f28bbc8fd84ea091e1fb4b6487f1)
Then
![{\displaystyle {\frac {d}{dx}}\,x^{\left[n\right]}=nx^{\left[n-1\right]}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/9ee1e2e7dc8cef7f0c3a355fcf254c7650852a12)
![{\displaystyle \int x^{\left[n\right]}\,dx={\frac {x^{\left[n+1\right]}}{n+1}}+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/92036b7056a0179b00f4d6739640046d2e8553ba)
Approximating large numbers[]
The identities of logarithms can be used to approximate large numbers. Note that logb(a) + logb(c) = logb(ac), where a, b, and c are arbitrary constants. Suppose that one wants to approximate the 44th Mersenne prime, 232,582,657 −1. To get the base-10 logarithm, we would multiply 32,582,657 by log10(2), getting 9,808,357.09543 = 9,808,357 + 0.09543. We can then get 109,808,357 × 100.09543 ≈ 1.25 × 109,808,357.
Similarly, factorials can be approximated by summing the logarithms of the terms.
Complex logarithm identities[]
The complex logarithm is the complex number analogue of the logarithm function. No single valued function on the complex plane can satisfy the normal rules for logarithms. However, a multivalued function can be defined which satisfies most of the identities. It is usual to consider this as a function defined on a Riemann surface. A single valued version, called the principal value of the logarithm, can be defined which is discontinuous on the negative x axis, and is equal to the multivalued version on a single branch cut.
Definitions[]
In what follows, a capital first letter is used for the principal value of functions, and the lower case version is used for the multivalued function. The single valued version of definitions and identities is always given first, followed by a separate section for the multiple valued versions.
- ln(r) is the standard natural logarithm of the real number r.
- Arg(z) is the principal value of the arg function; its value is restricted to (−π, π]. It can be computed using Arg(x + iy) = atan2(y, x).
- Log(z) is the principal value of the complex logarithm function and has imaginary part in the range (−π, π].
![\operatorname{Log}(z) = \ln(|z|) + i \operatorname{Arg}(z)](https://wikimedia.org/api/rest_v1/media/math/render/svg/ce3b6b5d895dc34cd7fe1a9deb5a5cdc032c5dcb)
![e^{\operatorname{Log}(z)} = z](https://wikimedia.org/api/rest_v1/media/math/render/svg/e10733f82bae08d2b858745c7394198cc56ebd60)
The multiple valued version of log(z) is a set, but it is easier to write it without braces and using it in formulas follows obvious rules.
- log(z) is the set of complex numbers v which satisfy ev = z
- arg(z) is the set of possible values of the arg function applied to z.
When k is any integer:
![\log(z) = \ln(|z|) + i \arg(z)](https://wikimedia.org/api/rest_v1/media/math/render/svg/560b7ab47d94f4181b83d97274c381c2c5ff9bdd)
![\log(z) = \operatorname{Log}(z) + 2 \pi i k](https://wikimedia.org/api/rest_v1/media/math/render/svg/e0d82758a97572baaca63dd3269c0d8815121c0c)
![e^{\log(z)} = z](https://wikimedia.org/api/rest_v1/media/math/render/svg/d014aa3b80452f9b2d705df46141ecd3d6a77054)
Constants[]
Principal value forms:
![\operatorname{Log}(1) = 0](https://wikimedia.org/api/rest_v1/media/math/render/svg/d334814ac9f15b6c502dcf24996227be2387eca5)
![\operatorname{Log}(e) = 1](https://wikimedia.org/api/rest_v1/media/math/render/svg/4b7af5c8d5b041f873b0a3830a0764148ec6e993)
Multiple value forms, for any k an integer:
![\log(1) = 0 + 2 \pi i k](https://wikimedia.org/api/rest_v1/media/math/render/svg/4c3df846f92d1458404a21d2af0224bb7f5f1b0e)
![\log(e) = 1 + 2 \pi i k](https://wikimedia.org/api/rest_v1/media/math/render/svg/e104b9073cfdf336a2158dc04629c206841df536)
Summation[]
Principal value forms:
![\operatorname{Log}(z_1) + \operatorname{Log}(z_2) = \operatorname{Log}(z_1 z_2) \pmod {2 \pi i}](https://wikimedia.org/api/rest_v1/media/math/render/svg/9add87793ba23c8eeea2a29eba062bd8690df7ea)
[6]
![\operatorname{Log}(z_1) - \operatorname{Log}(z_2) = \operatorname{Log}(z_1 / z_2) \pmod {2 \pi i}](https://wikimedia.org/api/rest_v1/media/math/render/svg/30befeea1d445922e2b4d6024f581b3d93b707ed)
[6]
Multiple value forms:
![\log(z_1) + \log(z_2) = \log(z_1 z_2)](https://wikimedia.org/api/rest_v1/media/math/render/svg/95bc3196ab347dc2e6af9e9d9e5c51205058ac3b)
![\log(z_1) - \log(z_2) = \log(z_1 / z_2)](https://wikimedia.org/api/rest_v1/media/math/render/svg/51a1fbec8466425b834aa1a26899fe21fb0d0180)
Powers[]
A complex power of a complex number can have many possible values.
Principal value form:
![{z_1}^{z_2} = e^{z_2 \operatorname{Log}(z_1)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/4647cc88b2a865c49818e02c9a70137186036e5a)
![\operatorname{Log}{\left({z_1}^{z_2}\right)} = z_2 \operatorname{Log}(z_1) \pmod {2 \pi i}](https://wikimedia.org/api/rest_v1/media/math/render/svg/f9ab92121a1a0880e884ca990b296e5e62513f5c)
Multiple value forms:
![{z_1}^{z_2} = e^{z_2 \log(z_1)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/3fd73505df93592f86d12d4ffd4e31974850c407)
Where k1, k2 are any integers:
![\log{\left({z_1}^{z_2}\right)} = z_2 \log(z_1) + 2 \pi i k_2](https://wikimedia.org/api/rest_v1/media/math/render/svg/1c9144d397eabeacc01351179bf46b6d8162e331)
![\log{\left({z_1}^{z_2}\right)} = z_2 \operatorname{Log}(z_1) + z_2 2 \pi i k_1 + 2 \pi i k_2](https://wikimedia.org/api/rest_v1/media/math/render/svg/ca87e9aae0c0c69013e8e60a841a70220cd483d9)
See also[]
References[]
External links[]