List of logarithmic identities – Wikipedia

before-content-x4

In mathematics, many logarithmic identities exist. The following is a compilation of the notable of these, many of which are used for computational purposes.

after-content-x4

Trivial identities[edit]

because
because

Explanations[edit]

By definition, we know that:

after-content-x4

where

b0{displaystyle color {blue}bcolor {black}neq 0}

or

b1{displaystyle color {blue}bcolor {black}neq 1}

.

Setting

x=0{displaystyle color {red}xcolor {black}=0}

,
we can see that:

bx=yb(0)=y1=yy=1{displaystyle color {blue}bcolor {black}color {red}^{x}color {black}=color {green}ycolor {black}iff color {blue}bcolor {black}color {red}^{(0)}color {black}=color {green}ycolor {black}iff color {blue}1color {black}=color {green}ycolor {black}iff color {green}ycolor {black}=color {blue}1color {black}}

. So, substituting these values into the formula, we see that:

logb(y)=xlogb(1)=0{displaystyle color {black}log color {blue}_{b}color {black}(color {green}ycolor {black})=color {red}xcolor {black}iff color {black}log color {blue}_{b}color {black}(color {blue}1color {black})=color {red}0color {black}}


, which gets us the first property.

Setting

x=1{displaystyle color {red}xcolor {black}=1}

,
we can see that:

bx=yb(1)=yb=yy=b{displaystyle color {blue}bcolor {black}color {red}^{x}color {black}=color {green}ycolor {black}iff color {blue}bcolor {black}color {red}^{(1)}color {black}=color {green}ycolor {black}iff color {blue}bcolor {black}=color {green}ycolor {black}iff color {green}ycolor {black}=color {blue}bcolor {black}}

. So, substituting these values into the formula, we see that:

logb(y)=xlogb(b)=1{displaystyle color {black}log color {blue}_{b}color {black}(color {green}ycolor {black})=color {red}xcolor {black}iff color {black}log color {blue}_{b}color {black}(color {blue}bcolor {black})=color {red}1color {black}}


, which gets us the second property.

Many mathematical identities are called trivial , only because they are relatively simple (typically from the perspective of an experienced mathematician).
This is not to say that calling an identity or formula trivial means that it’s not important.

Cancelling exponentials[edit]

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.

Both of the above are derived from the following two equations that define a logarithm:
(note that in this explanation, the variables of

x{displaystyle color {red}xcolor {black}}

and

x{displaystyle x}

may not be referring to the same number)

Looking at the equation

bx=y{displaystyle color {blue}bcolor {black}color {red}^{x}color {black}=color {green}ycolor {black}}

, and substituting the value for

x{displaystyle color {red}xcolor {black}}

of

logb(y)=x{displaystyle color {black}log color {blue}_{b}color {black}(color {green}ycolor {black})=color {red}xcolor {black}}

, we get the following equation:

bx=yblogb(y)=yblogb(y)=y{displaystyle color {blue}bcolor {black}color {red}^{x}color {black}=color {green}ycolor {black}iff color {blue}bcolor {black}color {red}^{log _{b}(y)}color {black}=color {green}ycolor {black}iff color {blue}bcolor {black}color {red}^{color {black}log color {blue}_{b}color {black}(color {green}ycolor {black})}color {black}=color {green}ycolor {black}}


, which gets us the first equation.
Another more rough way to think about it is that

bsomething=y{displaystyle color {blue}bcolor {black}color {red}^{text{something}}color {black}=color {green}ycolor {black}}

,
and that that “

something{displaystyle color {red}{text{something}}}

” is

logb(y){displaystyle color {black}log color {blue}_{b}color {black}(color {green}ycolor {black})}

.

Looking at the equation

logb(y)=x{displaystyle color {black}log color {blue}_{b}color {black}(color {green}ycolor {black})=color {red}xcolor {black}}


, and substituting the value for

y{displaystyle color {green}ycolor {black}}

of

bx=y{displaystyle color {blue}bcolor {black}color {red}^{x}color {black}=color {green}ycolor {black}}

, we get the following equation:

logb(y)=xlogb(bx)=xlogb(bx)=x{displaystyle color {black}log color {blue}_{b}color {black}(color {green}ycolor {black})=color {red}xcolor {black}iff color {black}log color {blue}_{b}color {black}(color {green}b^{x}color {black})=color {red}xcolor {black}iff color {black}log color {blue}_{b}color {black}({color {blue}bcolor {black}color {red}^{x}color {black}}color {black})=color {red}xcolor {black}}


, which gets us the second equation.
Another more rough way to think about it is that

logb(something)=x{displaystyle color {black}log color {blue}_{b}color {black}(color {green}{text{something}}color {black})=color {red}xcolor {black}}

,
and that that something “

something{displaystyle color {green}{text{something}}}

” is

bx{displaystyle color {blue}bcolor {black}color {red}^{x}color {black}}

.

Using simpler operations[edit]

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

Where

b{displaystyle b}

,

x{displaystyle x}

, and

y{displaystyle y}

are positive real numbers and

b1{displaystyle bneq 1}

, and

c{displaystyle c}

and

d{displaystyle d}

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:

Derivations of product, quotient, and power rules[edit]

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.

Logarithm of a product[edit]

To state the logarithm of a product law formally:

Derivation:

Let

bR+{displaystyle bin mathbb {R} _{+}}

, where

b1{displaystyle bneq 1}

,
and let

x,yR+{displaystyle x,yin mathbb {R} _{+}}

. We want to relate the expressions

logb(x){displaystyle log _{b}(x)}

and

logb(y){displaystyle log _{b}(y)}

. This can be done more easily by rewriting in terms of exponentials, whose properties we already know. Additionally, since we are going to refer to

logb(x){displaystyle log _{b}(x)}

and

logb(y){displaystyle log _{b}(y)}

quite often, we will give them some variable names to make working with them easier: Let

m=logb(x){displaystyle m=log _{b}(x)}

, and let

n=logb(y){displaystyle n=log _{b}(y)}

.

Rewriting these as exponentials, we see that

m=logb(x)bm=x{displaystyle m=log _{b}(x)iff b^{m}=x}

and

n=logb(y)bn=y{displaystyle n=log _{b}(y)iff b^{n}=y}

. From here, we can relate

bm{displaystyle b^{m}}

(i.e.

x{displaystyle x}

) and

bn{displaystyle b^{n}}

(i.e.

y{displaystyle y}

) using exponent laws as

To recover the logarithms, we apply

logb{displaystyle log _{b}}

to both sides of the equality.

The right side may be simplified using one of the logarithm properties from before: we know that

logb(bm+n)=m+n{displaystyle log _{b}(b^{m+n})=m+n}

, giving

We now resubstitute the values for

m{displaystyle m}

and

n{displaystyle n}

into our equation, so our final expression is only in terms of

x{displaystyle x}

,

y{displaystyle y}

, and

b{displaystyle b}

.

This completes the derivation.

Logarithm of a quotient[edit]

To state the logarithm of a quotient law formally:

Derivation:

Let

bR+{displaystyle bin mathbb {R} _{+}}

, where

b1{displaystyle bneq 1}

,
and let

x,yR+{displaystyle x,yin mathbb {R} _{+}}

.

We want to relate the expressions

logb(x){displaystyle log _{b}(x)}

and

logb(y){displaystyle log _{b}(y)}

. This can be done more easily by rewriting in terms of exponentials, whose properties we already know. Additionally, since we are going to refer to

logb(x){displaystyle log _{b}(x)}

and

logb(y){displaystyle log _{b}(y)}

quite often, we will give them some variable names to make working with them easier: Let

m=logb(x){displaystyle m=log _{b}(x)}

, and let

n=logb(y){displaystyle n=log _{b}(y)}

.

Rewriting these as exponentials, we see that:

m=logb(x)bm=x{displaystyle m=log _{b}(x)iff b^{m}=x}

and

n=logb(y)bn=y{displaystyle n=log _{b}(y)iff b^{n}=y}

. From here, we can relate

bm{displaystyle b^{m}}

(i.e.

x{displaystyle x}

) and

bn{displaystyle b^{n}}

(i.e.

y{displaystyle y}

) using exponent laws as

To recover the logarithms, we apply

logb{displaystyle log _{b}}

to both sides of the equality.

The right side may be simplified using one of the logarithm properties from before: we know that

logb(bmn)=mn{displaystyle log _{b}(b^{m-n})=m-n}

, giving

We now resubstitute the values for

m{displaystyle m}

and

n{displaystyle n}

into our equation, so our final expression is only in terms of

x{displaystyle x}

,

y{displaystyle y}

, and

b{displaystyle b}

.

This completes the derivation.

Logarithm of a power[edit]

To state the logarithm of a power law formally,

Derivation:

Let

bR+{displaystyle bin mathbb {R} _{+}}

, where

b1{displaystyle bneq 1}

, let

xR+{displaystyle xin mathbb {R} _{+}}

, and let

rR{displaystyle rin mathbb {R} }

. For this derivation, we want to simplify the expression

logb(xr){displaystyle log _{b}(x^{r})}

. To do this, we begin with the simpler expression

logb(x){displaystyle log _{b}(x)}

. Since we will be using

logb(x){displaystyle log _{b}(x)}

often, we will define it as a new variable: Let

m=logb(x){displaystyle m=log _{b}(x)}

.

To more easily manipulate the expression, we rewrite it as an exponential. By definition,

m=logb(x)bm=x{displaystyle m=log _{b}(x)iff b^{m}=x}

, so we have

Similar to the derivations above, we take advantage of another exponent law. In order to have

xr{displaystyle x^{r}}

in our final expression, we raise both sides of the equality to the power of

r{displaystyle r}

:

where we used the exponent law

(bm)r=bmr{displaystyle (b^{m})^{r}=b^{mr}}

.

To recover the logarithms, we apply

logb{displaystyle log _{b}}

to both sides of the equality.

The left side of the equality can be simplified using a logarithm law, which states that

logb(bmr)=mr{displaystyle log _{b}(b^{mr})=mr}

.

Substituting in the original value for

m{displaystyle m}

, rearranging, and simplifying gives

This completes the derivation.

Changing the base[edit]

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.

Proof/derivation[edit]

Let

a,bR+{displaystyle a,bin mathbb {R} _{+}}

, where

a,b1{displaystyle a,bneq 1}

Let

xR+{displaystyle xin mathbb {R} _{+}}

. Here,

a{displaystyle a}

and

b{displaystyle b}

are the two bases we will be using for the logarithms. They cannot be 1, because the logarithm function is not well defined for the base of 1.[citation needed] The number

x{displaystyle x}

will be what the logarithm is evaluating, so it must be a positive number. Since we will be dealing with the term

logb(x){displaystyle log _{b}(x)}

quite frequently, we define it as a new variable: Let

m=logb(x){displaystyle m=log _{b}(x)}

.

To more easily manipulate the expression, it can be rewritten as an exponential.

Applying

loga{displaystyle log _{a}}

to both sides of the equality,

Now, using the logarithm of a power property, which states that

loga(bm)=mloga(b){displaystyle log _{a}(b^{m})=mlog _{a}(b)}

,

Isolating

m{displaystyle m}

, we get the following:

Resubstituting

m=logb(x){displaystyle m=log _{b}(x)}

back into the equation,

This completes the proof that

logb(x)=loga(x)loga(b){displaystyle log _{b}(x)={frac {log _{a}(x)}{log _{a}(b)}}}

.

This formula has several consequences:

where

π{textstyle pi }

is any permutation of the subscripts 1, …, n. For example

Summation/subtraction[edit]

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

a=c{displaystyle a=c}

, since the logarithm of zero is not defined. Also note that, when programming,

a{displaystyle a}

and

c{displaystyle c}

may have to be switched on the right hand side of the equations if

ca{displaystyle cgg a}

to avoid losing the “1 +” due to rounding errors. Many programming languages have a specific log1p(x) function that calculates

loge(1+x){displaystyle log _{e}(1+x)}

without underflow (when

x{displaystyle x}

is small).

More generally:

Exponents[edit]

A useful identity involving exponents:

or more universally:

Other/resulting identities[edit]

Inequalities[edit]

Based on,[4][5] and [6]

All are accurate around

x=0{displaystyle x=0}

, but not for large numbers.

Calculus identities[edit]

Limits[edit]

after-content-x4