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 mathematical identities are relatively simple (for an experienced mathematician), though not necessarily unimportant. Trivial logarithmic identities are:
logb(1)=0 | because | b0=1 | |
logb(b)=1 | because | b1=b |
By definition, we know that:
\color{black}log\color{blue}b\color{black}(\color{green}y\color{black})=\color{red}x\color{black}\iff\color{blue}b\color{black}\color{red}x\color{black}=\color{green}y\color{black}
\color{blue}b\color{black} ≠ 0
\color{blue}b\color{black} ≠ 1
Setting
\color{red}x\color{black}=0
\color{blue}b\color{black}\color{red}x\color{black}=\color{green}y\color{black} \iff\color{blue}b\color{black}\color{red}(0)\color{black}=\color{green}y\color{black} \iff\color{blue}1\color{black}=\color{green}y\color{black} \iff\color{green}y\color{black}=\color{blue}1\color{black}
\color{black}log\color{blue}b\color{black}(\color{green}y\color{black})=\color{red}x\color{black} \iff\color{black}log\color{blue}b\color{black}(\color{blue}1\color{black})=\color{red}0\color{black}
Setting
\color{red}x\color{black}=1
\color{blue}b\color{black}\color{red}x\color{black}=\color{green}y\color{black} \iff\color{blue}b\color{black}\color{red}(1)\color{black}=\color{green}y\color{black} \iff\color{blue}b\color{black}=\color{green}y\color{black} \iff\color{green}y\color{black}=\color{blue}b\color{black}
\color{black}log\color{blue}b\color{black}(\color{green}y\color{black})=\color{red}x\color{black} \iff\color{black}log\color{blue}b\color{black}(\color{blue}b\color{black})=\color{red}1\color{black}
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.
logb(x) | |
b |
=xbecauseantilogb(logb(x))=x
x) | |
log | |
b(b |
=xbecauselogb(antilogb(x))=x
Both of the above are derived from the following two equations that define a logarithm:(note that in this explanation, the variables of
\color{red}x\color{black}
x
\color{black}log\color{blue}b\color{black}(\color{green}y\color{black})=\color{red}x\color{black}\iff\color{blue}b\color{black}\color{red}x\color{black}=\color{green}y\color{black}
Looking at the equation
\color{blue}b\color{black}\color{red}x\color{black}=\color{green}y\color{black}
\color{red}x\color{black}
\color{black}log\color{blue}b\color{black}(\color{green}y\color{black})=\color{red}x\color{black}
\color{blue}b\color{black}\color{red}x\color{black}=\color{green}y\color{black} \iff\color{blue}b\color{black}
logb(y) | |
\color{red} |
\color{black}=\color{green}y\color{black} \iff\color{blue}b\color{black}\color{red}\color{blacklog\color{blue}b\color{black}(\color{green}y\color{black})}\color{black}=\color{green}y\color{black}
\color{blue}b\color{black}\color{red}something\color{black}=\color{green}y\color{black}
\color{red}{something
\color{black}log\color{blue}b\color{black}(\color{green}y\color{black})
Looking at the equation
\color{black}log\color{blue}b\color{black}(\color{green}y\color{black})=\color{red}x\color{black}
\color{green}y\color{black}
\color{blue}b\color{black}\color{red}x\color{black}=\color{green}y\color{black}
\color{black}log\color{blue}b\color{black}(\color{green}y\color{black})=\color{red}x\color{black} \iff\color{black}log\color{blue}b\color{black}(\color{green}bx\color{black})=\color{red}x\color{black} \iff\color{black}log\color{blue}b\color{black}({\color{blue}b\color{black}\color{red}x\color{black}}\color{black})=\color{red}x\color{black}
\color{black}log\color{blue}b\color{black}(\color{green}something\color{black})=\color{red}x\color{black}
\color{green}something
\color{blue}b\color{black}\color{red}x\color{black}
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 and/or, so that and . Derivations also use the log definitions and .
logb(xy)=logb(x)+logb(y) | because | bcbd=bc+d | ||||||||||||||||||||||||||||
logb(\tfrac{x}{y})=logb(x)-logb(y) | because | \tfrac{bc}{bd}=bc-d | ||||||||||||||||||||||||||||
| because | (bc)d=bcd | ||||||||||||||||||||||||||||
| because | \sqrt[y]{x}=x1/y | ||||||||||||||||||||||||||||
| because |
| ||||||||||||||||||||||||||||
clogb(x)+dlogb(y)=log
yd) | because |
|
Where
b
x
y
b\ne1
c
d
The laws result from canceling exponentials and the appropriate law of indices. Starting with the first law:
xy=
logb(x) | |
b |
logb(y) | |
b |
=
logb(x)+logb(y) | |
b |
⇒ logb(xy)=
logb(x)+logb(y) | |
log | |
b(b |
)=logb(x)+logb(y)
The law for powers exploits another of the laws of indices:
xy=
logb(x) | |
(b |
)y=
ylogb(x) | |
b |
⇒
y) | |
log | |
b(x |
=ylogb(x)
The law relating to quotients then follows:
logb(
x | |
y |
)=logb(xy-1)=logb(x)+
-1 | |
log | |
b(y |
)=logb(x)-logb(y)
logb(
1 | |
y |
)=
-1 | |
log | |
b(y |
)=-logb(y)
Similarly, the root law is derived by rewriting the root as a reciprocal power:
logb(\sqrt[y]x)=
| ||||
log | ||||
b(x |
)=
1 | |
y |
logb(x)
These are the three main logarithm laws/rules/principles,[3] from which the other properties listed above can be proven. Each of these logarithm properties correspond to their respective exponent law, and their derivations/proofs will hinge on those facts. There are multiple ways to derive/prove each logarithm law – this is just one possible method.
To state the logarithm of a product law formally:
\forallb\inR+,b ≠ 1,\forallx,y,\inR+,logb(xy)=logb(x)+logb(y)
Derivation:
Let
b\inR+
b ≠ 1
x,y\inR+
logb(x)
logb(y)
logb(x)
logb(y)
m=logb(x)
n=logb(y)
Rewriting these as exponentials, we see that
\begin{align} m&=logb(x)\iffbm=x,\\ n&=logb(y)\iffbn=y. \end{align}
From here, we can relate
bm
x
bn
y
xy=(bm)(bn)=bm ⋅ bn=bm
To recover the logarithms, we apply
logb
logb(xy)=
m+n | |
log | |
b(b |
)
The right side may be simplified using one of the logarithm properties from before: we know that
m+n | |
log | |
b(b |
)=m+n
logb(xy)=m+n
We now resubstitute the values for
m
n
x
y
b
logb(xy)=logb(x)+logb(y)
This completes the derivation.
To state the logarithm of a quotient law formally:
\forallb\inR+,b ≠ 1,\forallx,y,\inR+,logb\left(
x | |
y |
\right)=logb(x)-logb(y)
Derivation:
Let
b\inR+
b ≠ 1
x,y\inR+
We want to relate the expressions
logb(x)
logb(y)
logb(x)
logb(y)
m=logb(x)
n=logb(y)
Rewriting these as exponentials, we see that:
\begin{align} m&=logb(x)\iffbm=x,\\ n&=logb(y)\iffbn=y. \end{align}
From here, we can relate
bm
x
bn
y
x | |
y |
=
(bm) | |
(bn) |
=
bm | |
bn |
=bm
To recover the logarithms, we apply
logb
logb\left(
x | |
y |
\right)=logb\left(bm\right)
The right side may be simplified using one of the logarithm properties from before: we know that
m-n | |
log | |
b(b |
)=m-n
logb\left(
x | |
y |
\right)=m-n
We now resubstitute the values for
m
n
x
y
b
logb\left(
x | |
y |
\right)=logb(x)-logb(y)
This completes the derivation.
To state the logarithm of a power law formally:
\forallb\inR+,b ≠ 1,\forallx\inR+,\forallr\inR,
r) | |
log | |
b(x |
=rlogb(x)
Derivation:
Let
b\inR+
b ≠ 1
x\inR+
r\inR
r) | |
log | |
b(x |
logb(x)
logb(x)
m=logb(x)
To more easily manipulate the expression, we rewrite it as an exponential. By definition,
m=logb(x)\iffbm=x
bm=x
Similar to the derivations above, we take advantage of another exponent law. In order to have
xr
r
\begin{align} (bm)r&=(x)r\\ bmr&=xr \end{align}
where we used the exponent law
(bm)r=bmr
To recover the logarithms, we apply
logb
mr | |
log | |
b(b |
)=
r) | |
log | |
b(x |
The left side of the equality can be simplified using a logarithm law, which states that
mr | |
log | |
b(b |
)=mr
mr=
r) | |
log | |
b(x |
Substituting in the original value for
m
\begin{align} \left(logb(x)\right)r&=
r) | |
log | |
b(x |
\\ rlogb(x)&=
r) | |
log | |
b(x |
r) | |
\\ log | |
b(x |
&=rlogb(x) \end{align}
This completes the derivation.
To state the change of base logarithm formula formally:
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.
Let
a,b\inR+
a,b ≠ 1
x\inR+
a
b
x
logb(x)
m=logb(x)
To more easily manipulate the expression, it can be rewritten as an exponential.
Applying
loga
Now, using the logarithm of a power property, which states that
m) | |
log | |
a(b |
=mloga(b)
Isolating
m
Resubstituting
m=logb(x)
This completes the proof that
logb(x)=
loga(x) | |
loga(b) |
This formula has several consequences:
where is any permutation of the subscripts . For example
The following summation/subtraction rule is especially useful in probability theory when one is dealing with a sum of log-probabilities:
logb(a+c)=logba+logb\left(1+
\right) | because | \left(a+c\right)=a x \left(1+
\right) | |||||||
logb(a-c)=logba+logb\left(1-
\right) | because | \left(a-c\right)=a x \left(1-
\right) |
Note that the subtraction identity is not defined if
a=c
a
c
c\gga
log1p(x)
function that calculates loge(1+x)
x
More generally:
A useful identity involving exponents:or more universally:
x | |
1+x |
\leqln(1+x) \leq
x(6+x) | |
6+4x |
\leqxforall{-1}<x
\begin{align} | 2x | &\leq3-\sqrt{ |
2+x |
27 | |
3+2x |
All are accurate around
x=0
\lim | |
x\to0+ |
loga(x)=-infty ifa>1
\lim | |
x\to0+ |
loga(x)=infty if0<a<1
\limx\toinftyloga(x)=infty ifa>1
\limx\toinftyloga(x)=-infty if0<a<1
\lim | |
x\to0+ |
blog | |
x | |
a(x)=0 |
ifb>0
\limx\toinfty
loga(x) | |
xb |
=0 ifb>0
The last limit is often summarized as "logarithms grow more slowly than any power or root of x".
{d\overdx}lnx={1\overx},x>0
{d\overdx}ln|x|={1\overx},x ≠ 0
{d\overdx}logax={1\overxlna},x>0,a>0,anda ≠ 1
lnx=
x | |
\int | |
1 |
1 | |
t |
dt
ln(n+1)=
\limk
k | |
\sum | |
i=1 |
1 | |
xi |
\Deltax=
\limk
k | |
\sum | |
i=1 |
1 | |||||
|
⋅
n | |
k |
=
\limk
k ⋅ n | |
\sum | |
x=1 |
1 | |||||
|
⋅
1 | |
k |
=
\limk
k ⋅ n | |
\sum | |
x=1 |
1 | |
k+x |
=\limk
k ⋅ n+k | |
\sum | |
x=k+1 |
1 | |
x |
=\limk
k(n+1) | |
\sum | |
x=k+1 |
1 | |
x |
for
style\Deltax=
n | |
k |
xi
The natural logarithm
ln(1+x)=
infty | |
\sum | |
n=1 |
(-1)n+1xn | |
n |
=x-
x2 | |
2 |
+
x3 | |
3 |
-
x4 | |
4 |
+
x5 | |
5 |
-
x6 | |
6 |
+ … .
Within this interval, for
x=1
x>1
x\leq-1
ln(1+x)
It is not uncommon in advanced mathematics, particularly in analytic number theory and asymptotic analysis, to encounter expressions involving differences or ratios of harmonic numbers at scaled indices.[8] The identity involving the limiting difference between harmonic numbers at scaled indices and its relationship to the logarithmic function provides an intriguing example of how discrete sequences can asymptotically relate to continuous functions. This identity is expressed as[9]
\lim{k
which characterizes the behavior of harmonic numbers as they grow large. This approximation (which precisely equals
ln(n+1)
Hk
k
Hk=\sum{j=1
The harmonic numbers are a fundamental sequence in number theory and analysis, known for their logarithmic growth. This result leverages the fact that the sum of the inverses of integers (i.e., harmonic numbers) can be closely approximated by the natural logarithm function, plus a constant, especially when extended over large intervals.[10] [8] [11] As
k
Hk(n+1)
Hk
ln(n+1)
\sum{j=k+1
The limit explores the growth of the harmonic numbers when indices are multiplied by a scaling factor and then differenced. It specifically captures the sum from
k+1
k(n+1)
H{k(n+1)
This can be estimated using the integral test for convergence, or more directly by comparing it to the integral of
1/x
k
k(n+1)
\lim{k
As the window's lower bound begins at
k+1
k(n+1)
k\toinfty
1
n+1
k
The harmonic number difference formula for
ln(m)
ln(2)
ln(2)=\limk
k | |
\sum | |
n=1 |
\left(
1 | |
2n-1 |
-
1 | |
2n |
\right)
which can be generalized as the double series over the residues of
m
ln(m)=\sumx
\sum | |
r\inZm\capN |
\left(
1 | |
x-r |
-
1 | |
x |
\right)=\sumx
\sum | |
r\inZm\capN |
r | |
x(x-r) |
where
\langlem\rangle
m
style | 1 |
x |
style | 1 |
x-r |
m
ln(4)=\limk
k | |
\sum | |
n=1 |
\left(
1 | |
4n-3 |
-
1 | |
4n |
\right)+\left(
1 | |
4n-2 |
-
1 | |
4n |
\right)+\left(
1 | |
4n-1 |
-
1 | |
4n |
\right)
This method leverages the fine differences between closely related terms to stabilize the series. The sum over all residues
r\in\N
m
x-r
style | 1 |
x |
style | m |
x |
=
1 | |
n |
m\midx
m=\omega+1
m=|Zm\capN|
Zm\capN
[0,\omega]
N=N0
[1,\omega]
0
Zm\capN
style\int
1 | |
t |
dt
\omega
1
m
m
m
style | 1 |
m |
k | |
style\sum | |
n=1 |
\sum
1 | |
x-r |
Hkm
Hm
k | ||
style\sum | - | |
n=1 |
1 | |
n |
Hk
k+1
ln(m)
k | |
\sum | |
n=1 |
\omega | |
\sum | |
r=1 |
\left(
1 | |
mn-r |
-
1 | |
mn |
\right)=
k | |
\sum | |
n=1 |
\omega | |
\sum | |
r=0 |
\left(
1 | |
mn-r |
-
1 | |
mn |
\right)
=
k | |
\sum | |
n=1 |
\left(-
1 | |
n |
+
\omega | |
\sum | |
r=0 |
1 | |
mn-r |
\right)
=-Hk+
k | |
\sum | |
n=1 |
\omega | |
\sum | |
r=0 |
1 | |
mn-r |
=-Hk+
k | |
\sum | |
n=1 |
\omega | |
\sum | |
r=0 |
1 | |
(n-1)m+m-r |
=-Hk+
k | |
\sum | |
n=1 |
m | |
\sum | |
j=1 |
1 | |
(n-1)m+j |
=-Hk+
k | |
\sum | |
n=1 |
\left(Hnm-Hm(n-1)\right)
=-Hk+Hmk
\limk=Hkm-Hk=\sumx
\sum | |
r\inZm\capN |
\left(
1 | |
x-r |
-
1 | |
x |
\right)=ln(\omega+1)=ln(m)
\intlnxdx=xlnx-x+C=x(lnx-1)+C
\intlogaxdx=xlogax-
x | |
lna |
+C=
x(lnx-1) | |
lna |
+C
To remember higher integrals, it is convenient to define
x\left=xn(log(x)-Hn)
Hn
x\left=logx
x\left=xlog(x)-x
x\left=x2log(x)-\begin{matrix}
3 | |
2 |
\end{matrix}x2
x\left=x3log(x)-\begin{matrix}
11 | |
6 |
\end{matrix}x3
Then
d | |
dx |
x\left[=nx\left[
\intx\left[dx=
x\left | |
n+1 |
+C
The identities of logarithms can be used to approximate large numbers. Note that, where a, b, and c are arbitrary constants. Suppose that one wants to approximate the 44th Mersenne prime, . To get the base-10 logarithm, we would multiply 32,582,657 by, getting . We can then get .
Similarly, factorials can be approximated by summing the logarithms of the terms.
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.
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.
\operatorname{Log}(z)=ln(|z|)+i\operatorname{Arg}(z)
e\operatorname{Log(z)}=z
The multiple valued version of is a set, but it is easier to write it without braces and using it in formulas follows obvious rules.
When k is any integer:
log(z)=ln(|z|)+i\arg(z)
log(z)=\operatorname{Log}(z)+2\piik
elog(z)=z
Principal value forms:
\operatorname{Log}(1)=0
\operatorname{Log}(e)=1
Multiple value forms, for any k an integer:
log(1)=0+2\piik
log(e)=1+2\piik
Principal value forms:
\operatorname{Log}(z1)+\operatorname{Log}(z2)=\operatorname{Log}(z1z2)\pmod{2\pii}
\operatorname{Log}(z1)+\operatorname{Log}(z2)=\operatorname{Log}(z1z2) (-\pi<\operatorname{Arg}(z1)+\operatorname{Arg}(z2)\leq\pi;e.g.,\operatorname{Re}z1\geq0and\operatorname{Re}z2>0)
\operatorname{Log}(z1)-\operatorname{Log}(z2)=\operatorname{Log}(z1/z2)\pmod{2\pii}
\operatorname{Log}(z1)-\operatorname{Log}(z2)=\operatorname{Log}(z1/z2) (-\pi<\operatorname{Arg}(z1)-\operatorname{Arg}(z2)\leq\pi;e.g.,\operatorname{Re}z1\geq0and\operatorname{Re}z2>0)
Multiple value forms:
log(z1)+log(z2)=log(z1z2)
log(z1)-log(z2)=log(z1/z2)
A complex power of a complex number can have many possible values.
Principal value form:
z2 | |
{z | |
1} |
=
z2\operatorname{Log | |
e |
(z1)}
z2 | |
\operatorname{Log}{\left({z | |
1} |
\right)}=z2\operatorname{Log}(z1)\pmod{2\pii}
Multiple value forms:
z2 | |
{z | |
1} |
=
z2log(z1) | |
e |
Where, are any integers:
z2 | |
log{\left({z | |
1} |
\right)}=z2log(z1)+2\piik2
z2 | |
log{\left({z | |
1} |
\right)}=z2\operatorname{Log}(z1)+z22\piik1+2\piik2
k+1
style- | 1 |
n |
m=\omega+1
m
N1
m
eln(\omega
\omega+1
\omega=0
m=\omega=\omega0+1=1
\omega