List of logarithmic identities

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

Trivial mathematical identities are relatively simple (for an experienced mathematician), though not necessarily unimportant. Trivial logarithmic identities are:

log b ( 1 ) = 0 {\displaystyle \log _{b}(1)=0} because b 0 = 1 {\displaystyle b^{0}=1}
log b ( b ) = 1 {\displaystyle \log _{b}(b)=1} because b 1 = b {\displaystyle b^{1}=b}

Explanations

By definition, we know that:

log b ( y ) = x b x = y {\displaystyle \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}} ,

where b 0 {\displaystyle \color {blue}b\color {black}\neq 0} and b 1 {\displaystyle \color {blue}b\color {black}\neq 1} .

Setting x = 0 {\displaystyle \color {red}x\color {black}=0} , we can see that: b x = y b ( 0 ) = y 1 = y y = 1 {\displaystyle \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}} . So, substituting these values into the formula, we see that: log b ( y ) = x log b ( 1 ) = 0 {\displaystyle \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}} , which gets us the first property.

Setting x = 1 {\displaystyle \color {red}x\color {black}=1} , we can see that: b x = y b ( 1 ) = y b = y y = b {\displaystyle \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}} . So, substituting these values into the formula, we see that: log b ( y ) = x log b ( b ) = 1 {\displaystyle \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}} , which gets us the second property.

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.

b log b ( x ) = x  because  antilog b ( log b ( x ) ) = x {\displaystyle b^{\log _{b}(x)}=x{\text{ because }}{\mbox{antilog}}_{b}(\log _{b}(x))=x}
log b ( b x ) = x  because  log b ( antilog b ( x ) ) = x {\displaystyle \log _{b}(b^{x})=x{\text{ because }}\log _{b}({\mbox{antilog}}_{b}(x))=x} [1]

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}x\color {black}} and x {\displaystyle x} may not be referring to the same number)

log b ( y ) = x b x = y {\displaystyle \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 b x = y {\displaystyle \color {blue}b\color {black}\color {red}^{x}\color {black}=\color {green}y\color {black}} , and substituting the value for x {\displaystyle \color {red}x\color {black}} of log b ( y ) = x {\displaystyle \color {black}\log \color {blue}_{b}\color {black}(\color {green}y\color {black})=\color {red}x\color {black}} , we get the following equation: b x = y b log b ( y ) = y b log b ( y ) = y {\displaystyle \color {blue}b\color {black}\color {red}^{x}\color {black}=\color {green}y\color {black}\iff \color {blue}b\color {black}\color {red}^{\log _{b}(y)}\color {black}=\color {green}y\color {black}\iff \color {blue}b\color {black}\color {red}^{\color {black}\log \color {blue}_{b}\color {black}(\color {green}y\color {black})}\color {black}=\color {green}y\color {black}} , which gets us the first equation. Another more rough way to think about it is that b something = y {\displaystyle \color {blue}b\color {black}\color {red}^{\text{something}}\color {black}=\color {green}y\color {black}} , and that that " something {\displaystyle \color {red}{\text{something}}} " is log b ( y ) {\displaystyle \color {black}\log \color {blue}_{b}\color {black}(\color {green}y\color {black})} .

Looking at the equation log b ( y ) = x {\displaystyle \color {black}\log \color {blue}_{b}\color {black}(\color {green}y\color {black})=\color {red}x\color {black}} , and substituting the value for y {\displaystyle \color {green}y\color {black}} of b x = y {\displaystyle \color {blue}b\color {black}\color {red}^{x}\color {black}=\color {green}y\color {black}} , we get the following equation: log b ( y ) = x log b ( b x ) = x log b ( b x ) = x {\displaystyle \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}b^{x}\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}} , which gets us the second equation. Another more rough way to think about it is that log b ( something ) = x {\displaystyle \color {black}\log \color {blue}_{b}\color {black}(\color {green}{\text{something}}\color {black})=\color {red}x\color {black}} , and that that something " something {\displaystyle \color {green}{\text{something}}} " is b x {\displaystyle \color {blue}b\color {black}\color {red}^{x}\color {black}} .

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

log b ( x y ) = log b ( x ) + log b ( y ) {\displaystyle \log _{b}(xy)=\log _{b}(x)+\log _{b}(y)} because b c b d = b c + d {\displaystyle b^{c}b^{d}=b^{c+d}}
log b ( x y ) = log b ( x ) log b ( y ) {\displaystyle \log _{b}({\tfrac {x}{y}})=\log _{b}(x)-\log _{b}(y)} because b c b d = b c d {\displaystyle {\tfrac {b^{c}}{b^{d}}}=b^{c-d}}
log b ( x d ) = d log b ( x ) {\displaystyle \log _{b}(x^{d})=d\log _{b}(x)} because ( b c ) d = b c d {\displaystyle (b^{c})^{d}=b^{cd}}
log b ( x y ) = log b ( x ) y {\displaystyle \log _{b}\left({\sqrt[{y}]{x}}\right)={\frac {\log _{b}(x)}{y}}} because x y = x 1 / y {\displaystyle {\sqrt[{y}]{x}}=x^{1/y}}
x log b ( y ) = y log b ( x ) {\displaystyle x^{\log _{b}(y)}=y^{\log _{b}(x)}} because x log b ( y ) = b log b ( x ) log b ( y ) = ( b log b ( y ) ) log b ( x ) = y log b ( x ) {\displaystyle x^{\log _{b}(y)}=b^{\log _{b}(x)\log _{b}(y)}=(b^{\log _{b}(y)})^{\log _{b}(x)}=y^{\log _{b}(x)}}
c log b ( x ) + d log b ( y ) = log b ( x c y d ) {\displaystyle c\log _{b}(x)+d\log _{b}(y)=\log _{b}(x^{c}y^{d})} because log b ( x c y d ) = log b ( x c ) + log b ( y d ) {\displaystyle \log _{b}(x^{c}y^{d})=\log _{b}(x^{c})+\log _{b}(y^{d})}

Where b {\displaystyle b} , x {\displaystyle x} , and y {\displaystyle y} are positive real numbers and b 1 {\displaystyle b\neq 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:

x y = b log b ( x ) b log b ( y ) = b log b ( x ) + log b ( y ) log b ( x y ) = log b ( b log b ( x ) + log b ( y ) ) = log b ( x ) + log b ( y ) {\displaystyle xy=b^{\log _{b}(x)}b^{\log _{b}(y)}=b^{\log _{b}(x)+\log _{b}(y)}\Rightarrow \log _{b}(xy)=\log _{b}(b^{\log _{b}(x)+\log _{b}(y)})=\log _{b}(x)+\log _{b}(y)}

The law for powers exploits another of the laws of indices:

x y = ( b log b ( x ) ) y = b y log b ( x ) log b ( x y ) = y log b ( x ) {\displaystyle x^{y}=(b^{\log _{b}(x)})^{y}=b^{y\log _{b}(x)}\Rightarrow \log _{b}(x^{y})=y\log _{b}(x)}

The law relating to quotients then follows:

log b ( x y ) = log b ( x y 1 ) = log b ( x ) + log b ( y 1 ) = log b ( x ) log b ( y ) {\displaystyle \log _{b}{\bigg (}{\frac {x}{y}}{\bigg )}=\log _{b}(xy^{-1})=\log _{b}(x)+\log _{b}(y^{-1})=\log _{b}(x)-\log _{b}(y)}
log b ( 1 y ) = log b ( y 1 ) = log b ( y ) {\displaystyle \log _{b}{\bigg (}{\frac {1}{y}}{\bigg )}=\log _{b}(y^{-1})=-\log _{b}(y)}

Similarly, the root law is derived by rewriting the root as a reciprocal power:

log b ( x y ) = log b ( x 1 y ) = 1 y log b ( x ) {\displaystyle \log _{b}({\sqrt[{y}]{x}})=\log _{b}(x^{\frac {1}{y}})={\frac {1}{y}}\log _{b}(x)}

Derivations of product, quotient, and power rules

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

To state the logarithm of a product law formally:

b R + , b 1 , x , y , R + , log b ( x y ) = log b ( x ) + log b ( y ) {\displaystyle \forall b\in \mathbb {R} _{+},b\neq 1,\forall x,y,\in \mathbb {R} _{+},\log _{b}(xy)=\log _{b}(x)+\log _{b}(y)}

Derivation:

Let b R + {\displaystyle b\in \mathbb {R} _{+}} , where b 1 {\displaystyle b\neq 1} , and let x , y R + {\displaystyle x,y\in \mathbb {R} _{+}} . We want to relate the expressions log b ( x ) {\displaystyle \log _{b}(x)} and log b ( 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 log b ( x ) {\displaystyle \log _{b}(x)} and log b ( y ) {\displaystyle \log _{b}(y)} quite often, we will give them some variable names to make working with them easier: Let m = log b ( x ) {\displaystyle m=\log _{b}(x)} , and let n = log b ( y ) {\displaystyle n=\log _{b}(y)} .

Rewriting these as exponentials, we see that

m = log b ( x ) b m = x , n = log b ( y ) b n = y . {\displaystyle {\begin{aligned}m&=\log _{b}(x)\iff b^{m}=x,\\n&=\log _{b}(y)\iff b^{n}=y.\end{aligned}}}

From here, we can relate b m {\displaystyle b^{m}} (i.e. x {\displaystyle x} ) and b n {\displaystyle b^{n}} (i.e. y {\displaystyle y} ) using exponent laws as

x y = ( b m ) ( b n ) = b m b n = b m + n {\displaystyle xy=(b^{m})(b^{n})=b^{m}\cdot b^{n}=b^{m+n}}

To recover the logarithms, we apply log b {\displaystyle \log _{b}} to both sides of the equality.

log b ( x y ) = log b ( b m + n ) {\displaystyle \log _{b}(xy)=\log _{b}(b^{m+n})}

The right side may be simplified using one of the logarithm properties from before: we know that log b ( b m + n ) = m + n {\displaystyle \log _{b}(b^{m+n})=m+n} , giving

log b ( x y ) = m + n {\displaystyle \log _{b}(xy)=m+n}

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

log b ( x y ) = log b ( x ) + log b ( y ) {\displaystyle \log _{b}(xy)=\log _{b}(x)+\log _{b}(y)}

This completes the derivation.

Logarithm of a quotient

To state the logarithm of a quotient law formally:

b R + , b 1 , x , y , R + , log b ( x y ) = log b ( x ) log b ( y ) {\displaystyle \forall b\in \mathbb {R} _{+},b\neq 1,\forall x,y,\in \mathbb {R} _{+},\log _{b}\left({\frac {x}{y}}\right)=\log _{b}(x)-\log _{b}(y)}

Derivation:

Let b R + {\displaystyle b\in \mathbb {R} _{+}} , where b 1 {\displaystyle b\neq 1} , and let x , y R + {\displaystyle x,y\in \mathbb {R} _{+}} .

We want to relate the expressions log b ( x ) {\displaystyle \log _{b}(x)} and log b ( 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 log b ( x ) {\displaystyle \log _{b}(x)} and log b ( y ) {\displaystyle \log _{b}(y)} quite often, we will give them some variable names to make working with them easier: Let m = log b ( x ) {\displaystyle m=\log _{b}(x)} , and let n = log b ( y ) {\displaystyle n=\log _{b}(y)} .

Rewriting these as exponentials, we see that:

m = log b ( x ) b m = x , n = log b ( y ) b n = y . {\displaystyle {\begin{aligned}m&=\log _{b}(x)\iff b^{m}=x,\\n&=\log _{b}(y)\iff b^{n}=y.\end{aligned}}}

From here, we can relate b m {\displaystyle b^{m}} (i.e. x {\displaystyle x} ) and b n {\displaystyle b^{n}} (i.e. y {\displaystyle y} ) using exponent laws as

x y = ( b m ) ( b n ) = b m b n = b m n {\displaystyle {\frac {x}{y}}={\frac {(b^{m})}{(b^{n})}}={\frac {b^{m}}{b^{n}}}=b^{m-n}}

To recover the logarithms, we apply log b {\displaystyle \log _{b}} to both sides of the equality.

log b ( x y ) = log b ( b m n ) {\displaystyle \log _{b}\left({\frac {x}{y}}\right)=\log _{b}\left(b^{m-n}\right)}

The right side may be simplified using one of the logarithm properties from before: we know that log b ( b m n ) = m n {\displaystyle \log _{b}(b^{m-n})=m-n} , giving

log b ( x y ) = m n {\displaystyle \log _{b}\left({\frac {x}{y}}\right)=m-n}

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

log b ( x y ) = log b ( x ) log b ( y ) {\displaystyle \log _{b}\left({\frac {x}{y}}\right)=\log _{b}(x)-\log _{b}(y)}

This completes the derivation.

Logarithm of a power

To state the logarithm of a power law formally,

b R + , b 1 , x R + , r R , log b ( x r ) = r log b ( x ) {\displaystyle \forall b\in \mathbb {R} _{+},b\neq 1,\forall x\in \mathbb {R} _{+},\forall r\in \mathbb {R} ,\log _{b}(x^{r})=r\log _{b}(x)}

Derivation:

Let b R + {\displaystyle b\in \mathbb {R} _{+}} , where b 1 {\displaystyle b\neq 1} , let x R + {\displaystyle x\in \mathbb {R} _{+}} , and let r R {\displaystyle r\in \mathbb {R} } . For this derivation, we want to simplify the expression log b ( x r ) {\displaystyle \log _{b}(x^{r})} . To do this, we begin with the simpler expression log b ( x ) {\displaystyle \log _{b}(x)} . Since we will be using log b ( x ) {\displaystyle \log _{b}(x)} often, we will define it as a new variable: Let m = log b ( x ) {\displaystyle m=\log _{b}(x)} .

To more easily manipulate the expression, we rewrite it as an exponential. By definition, m = log b ( x ) b m = x {\displaystyle m=\log _{b}(x)\iff b^{m}=x} , so we have

b m = x {\displaystyle b^{m}=x}

Similar to the derivations above, we take advantage of another exponent law. In order to have x r {\displaystyle x^{r}} in our final expression, we raise both sides of the equality to the power of r {\displaystyle r} :

( b m ) r = ( x ) r b m r = x r {\displaystyle {\begin{aligned}(b^{m})^{r}&=(x)^{r}\\b^{mr}&=x^{r}\end{aligned}}}

where we used the exponent law ( b m ) r = b m r {\displaystyle (b^{m})^{r}=b^{mr}} .

To recover the logarithms, we apply log b {\displaystyle \log _{b}} to both sides of the equality.

log b ( b m r ) = log b ( x r ) {\displaystyle \log _{b}(b^{mr})=\log _{b}(x^{r})}

The left side of the equality can be simplified using a logarithm law, which states that log b ( b m r ) = m r {\displaystyle \log _{b}(b^{mr})=mr} .

m r = log b ( x r ) {\displaystyle mr=\log _{b}(x^{r})}

Substituting in the original value for m {\displaystyle m} , rearranging, and simplifying gives

( log b ( x ) ) r = log b ( x r ) r log b ( x ) = log b ( x r ) log b ( x r ) = r log b ( x ) {\displaystyle {\begin{aligned}\left(\log _{b}(x)\right)r&=\log _{b}(x^{r})\\r\log _{b}(x)&=\log _{b}(x^{r})\\\log _{b}(x^{r})&=r\log _{b}(x)\end{aligned}}}

This completes the derivation.

Changing the base

To state the change of base logarithm formula formally:

a , b R + , a , b 1 , x R + , log b ( x ) = log a ( x ) log a ( b ) {\displaystyle \forall a,b\in \mathbb {R} _{+},a,b\neq 1,\forall x\in \mathbb {R} _{+},\log _{b}(x)={\frac {\log _{a}(x)}{\log _{a}(b)}}}

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

Let a , b R + {\displaystyle a,b\in \mathbb {R} _{+}} , where a , b 1 {\displaystyle a,b\neq 1} Let x R + {\displaystyle x\in \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 log b ( x ) {\displaystyle \log _{b}(x)} quite frequently, we define it as a new variable: Let m = log b ( x ) {\displaystyle m=\log _{b}(x)} .

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

b m = x {\displaystyle b^{m}=x}

Applying log a {\displaystyle \log _{a}} to both sides of the equality,

log a ( b m ) = log a ( x ) {\displaystyle \log _{a}(b^{m})=\log _{a}(x)}

Now, using the logarithm of a power property, which states that log a ( b m ) = m log a ( b ) {\displaystyle \log _{a}(b^{m})=m\log _{a}(b)} ,

m log a ( b ) = log a ( x ) {\displaystyle m\log _{a}(b)=\log _{a}(x)}

Isolating m {\displaystyle m} , we get the following:

m = log a ( x ) log a ( b ) {\displaystyle m={\frac {\log _{a}(x)}{\log _{a}(b)}}}

Resubstituting m = log b ( x ) {\displaystyle m=\log _{b}(x)} back into the equation,

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

This completes the proof that log b ( x ) = log a ( x ) log a ( b ) {\displaystyle \log _{b}(x)={\frac {\log _{a}(x)}{\log _{a}(b)}}} .

This formula has several consequences:

log b a = 1 log a b {\displaystyle \log _{b}a={\frac {1}{\log _{a}b}}}

log b n a = log b a n {\displaystyle \log _{b^{n}}a={\log _{b}a \over n}}

b log a d = d log a b {\displaystyle b^{\log _{a}d}=d^{\log _{a}b}}

log b a = log b ( 1 a ) = log 1 / b a {\displaystyle -\log _{b}a=\log _{b}\left({1 \over a}\right)=\log _{1/b}a}


log b 1 a 1 log b n a n = log b π ( 1 ) a 1 log b π ( n ) a n , {\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},}

where π {\textstyle \pi } is any permutation of the subscripts 1, ..., n. For example

log b w log a x log d c log d z = log d w log b x log a c log d z . {\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.}

Summation/subtraction

The following summation/subtraction rule is especially useful in probability theory when one is dealing with a sum of log-probabilities:

log b ( a + c ) = log b a + log b ( 1 + c a ) {\displaystyle \log _{b}(a+c)=\log _{b}a+\log _{b}\left(1+{\frac {c}{a}}\right)} because ( a + c ) = a × ( 1 + c a ) {\displaystyle \left(a+c\right)=a\times \left(1+{\frac {c}{a}}\right)}
log b ( a c ) = log b a + log b ( 1 c a ) {\displaystyle \log _{b}(a-c)=\log _{b}a+\log _{b}\left(1-{\frac {c}{a}}\right)} because ( a c ) = a × ( 1 c a ) {\displaystyle \left(a-c\right)=a\times \left(1-{\frac {c}{a}}\right)}

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 c a {\displaystyle c\gg a} to avoid losing the "1 +" due to rounding errors. Many programming languages have a specific log1p(x) function that calculates log e ( 1 + x ) {\displaystyle \log _{e}(1+x)} without underflow (when x {\displaystyle x} is small).

More generally:

log b i = 0 N a i = log b a 0 + log b ( 1 + i = 1 N a i a 0 ) = log b a 0 + log b ( 1 + i = 1 N b ( log b a i log b a 0 ) ) {\displaystyle \log _{b}\sum _{i=0}^{N}a_{i}=\log _{b}a_{0}+\log _{b}\left(1+\sum _{i=1}^{N}{\frac {a_{i}}{a_{0}}}\right)=\log _{b}a_{0}+\log _{b}\left(1+\sum _{i=1}^{N}b^{\left(\log _{b}a_{i}-\log _{b}a_{0}\right)}\right)}

Exponents

A useful identity involving exponents:

x log ( log ( x ) ) log ( x ) = log ( x ) {\displaystyle x^{\frac {\log(\log(x))}{\log(x)}}=\log(x)}
or more universally:
x log ( a ) log ( x ) = a {\displaystyle x^{\frac {\log(a)}{\log(x)}}=a}

Other/resulting identities

1 1 log x ( a ) + 1 log y ( a ) = log x y ( a ) {\displaystyle {\frac {1}{{\frac {1}{\log _{x}(a)}}+{\frac {1}{\log _{y}(a)}}}}=\log _{xy}(a)}
1 1 log x ( a ) 1 log y ( a ) = log x y ( a ) {\displaystyle {\frac {1}{{\frac {1}{\log _{x}(a)}}-{\frac {1}{\log _{y}(a)}}}}=\log _{\frac {x}{y}}(a)}

Inequalities

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

x 1 + x ln ( 1 + x ) x ( 6 + x ) 6 + 4 x x  for all  1 < x {\displaystyle {\frac {x}{1+x}}\leq \ln(1+x)\leq {\frac {x(6+x)}{6+4x}}\leq x{\mbox{ for all }}{-1}<x}
2 x 2 + x 3 27 3 + 2 x x 1 + x + x 2 / 12 ln ( 1 + x ) x 1 + x x 2 2 + x 1 + x  for  0 x , reverse for  1 < x 0 {\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}}}

All are accurate around x = 0 {\displaystyle x=0} , but not for large numbers.

Calculus identities

Limits

lim x 0 + log a ( x ) = if  a > 1 {\displaystyle \lim _{x\to 0^{+}}\log _{a}(x)=-\infty \quad {\mbox{if }}a>1}
lim x 0 + log a ( x ) = if  0 < a < 1 {\displaystyle \lim _{x\to 0^{+}}\log _{a}(x)=\infty \quad {\mbox{if }}0<a<1}
lim x log a ( x ) = if  a > 1 {\displaystyle \lim _{x\to \infty }\log _{a}(x)=\infty \quad {\mbox{if }}a>1}
lim x log a ( x ) = if  0 < a < 1 {\displaystyle \lim _{x\to \infty }\log _{a}(x)=-\infty \quad {\mbox{if }}0<a<1}
lim x 0 + x b log a ( x ) = 0 if  b > 0 {\displaystyle \lim _{x\to 0^{+}}x^{b}\log _{a}(x)=0\quad {\mbox{if }}b>0}
lim x log a ( x ) x b = 0 if  b > 0 {\displaystyle \lim _{x\to \infty }{\frac {\log _{a}(x)}{x^{b}}}=0\quad {\mbox{if }}b>0}

The last limit is often summarized as "logarithms grow more slowly than any power or root of x".

Derivatives of logarithmic functions

d d x ln x = 1 x , x > 0 {\displaystyle {d \over dx}\ln x={1 \over x},x>0}
d d x ln | x | = 1 x , x 0 {\displaystyle {d \over dx}\ln |x|={1 \over x},x\neq 0}
d d x log a x = 1 x ln a , x > 0 , a > 0 ,  and  a 1 {\displaystyle {d \over dx}\log _{a}x={1 \over x\ln a},x>0,a>0,{\text{ and }}a\neq 1}

Integral definition

ln x = 1 x 1 t   d t {\displaystyle \ln x=\int _{1}^{x}{\frac {1}{t}}\ dt}

Riemann Sum

ln ( n + 1 ) = {\displaystyle \ln(n+1)=}
lim k i = 1 k 1 x i Δ x = {\displaystyle \lim _{k\to \infty }\sum _{i=1}^{k}{\frac {1}{x_{i}}}\Delta x=}
lim k i = 1 k 1 1 + i 1 k n n k = {\displaystyle \lim _{k\to \infty }\sum _{i=1}^{k}{\frac {1}{1+{\frac {i-1}{k}}n}}\cdot {\frac {n}{k}}=}
lim k x = 1 k n 1 1 + x / k 1 k = {\displaystyle \lim _{k\to \infty }\sum _{x=1}^{k\cdot n}{\frac {1}{1+x/k}}\cdot {\frac {1}{k}}=}
lim k x = 1 k n 1 k + x {\displaystyle \lim _{k\to \infty }\sum _{x=1}^{k\cdot n}{\frac {1}{k+x}}}

for Δ x = n / k {\displaystyle \Delta x=n/k} and x i {\displaystyle x_{i}} is a sample point in each interval.

Series representation

The natural logarithm ln ( 1 + x ) {\displaystyle \ln(1+x)} has a well-known Taylor series expansion that converges for x {\displaystyle x} in the open-closed interval ( 1 , 1 ] {\displaystyle (-1,1]} :

ln ( 1 + x ) = n = 1 ( 1 ) n + 1 x n n = x x 2 2 + x 3 3 x 4 4 + x 5 5 x 6 6 + . {\displaystyle \ln(1+x)=\sum _{n=1}^{\infty }{\frac {(-1)^{n+1}x^{n}}{n}}=x-{\frac {x^{2}}{2}}+{\frac {x^{3}}{3}}-{\frac {x^{4}}{4}}+{\frac {x^{5}}{5}}-{\frac {x^{6}}{6}}+\cdots .}

Within this interval, for x = 1 {\displaystyle x=1} , the series is conditionally convergent, and for all other values, it is absolutely convergent. For x > 1 {\displaystyle x>1} or x 1 {\displaystyle x\leq -1} , the series does not converge to ln ( 1 + x ) {\displaystyle \ln(1+x)} . In these cases, different representations or methods must be used to evaluate the logarithm.

Integrals of logarithmic functions

ln x d x = x ln x x + C = x ( ln x 1 ) + C {\displaystyle \int \ln x\,dx=x\ln x-x+C=x(\ln x-1)+C}
log a x d x = x log a x x ln a + C = x ( ln x 1 ) ln a + C {\displaystyle \int \log _{a}x\,dx=x\log _{a}x-{\frac {x}{\ln a}}+C={\frac {x(\ln x-1)}{\ln a}}+C}

To remember higher integrals, it is convenient to define

x [ n ] = x n ( log ( x ) H n ) {\displaystyle x^{\left[n\right]}=x^{n}(\log(x)-H_{n})}

where H n {\displaystyle H_{n}} is the nth harmonic number:

x [ 0 ] = log x {\displaystyle x^{\left[0\right]}=\log x}
x [ 1 ] = x log ( x ) x {\displaystyle x^{\left[1\right]}=x\log(x)-x}
x [ 2 ] = x 2 log ( x ) 3 2 x 2 {\displaystyle x^{\left[2\right]}=x^{2}\log(x)-{\begin{matrix}{\frac {3}{2}}\end{matrix}}x^{2}}
x [ 3 ] = x 3 log ( x ) 11 6 x 3 {\displaystyle x^{\left[3\right]}=x^{3}\log(x)-{\begin{matrix}{\frac {11}{6}}\end{matrix}}x^{3}}

Then

d d x x [ n ] = n x [ n 1 ] {\displaystyle {\frac {d}{dx}}\,x^{\left[n\right]}=nx^{\left[n-1\right]}}
x [ n ] d x = x [ n + 1 ] n + 1 + C {\displaystyle \int x^{\left[n\right]}\,dx={\frac {x^{\left[n+1\right]}}{n+1}}+C}

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 (−π, π].
  • Log ( z ) = ln ( | z | ) + i Arg ( z ) {\displaystyle \operatorname {Log} (z)=\ln(|z|)+i\operatorname {Arg} (z)}
  • e Log ( z ) = z {\displaystyle e^{\operatorname {Log} (z)}=z}

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 ) {\displaystyle \log(z)=\ln(|z|)+i\arg(z)}
log ( z ) = Log ( z ) + 2 π i k {\displaystyle \log(z)=\operatorname {Log} (z)+2\pi ik}
e log ( z ) = z {\displaystyle e^{\log(z)}=z}

Constants

Principal value forms:

Log ( 1 ) = 0 {\displaystyle \operatorname {Log} (1)=0}
Log ( e ) = 1 {\displaystyle \operatorname {Log} (e)=1}

Multiple value forms, for any k an integer:

log ( 1 ) = 0 + 2 π i k {\displaystyle \log(1)=0+2\pi ik}
log ( e ) = 1 + 2 π i k {\displaystyle \log(e)=1+2\pi ik}

Summation

Principal value forms:

Log ( z 1 ) + Log ( z 2 ) = Log ( z 1 z 2 ) ( mod 2 π i ) {\displaystyle \operatorname {Log} (z_{1})+\operatorname {Log} (z_{2})=\operatorname {Log} (z_{1}z_{2}){\pmod {2\pi i}}}
Log ( z 1 ) + Log ( z 2 ) = Log ( z 1 z 2 ) ( π < Arg ( z 1 ) + Arg ( z 2 ) π ;  e.g.,  Re z 1 0  and  Re z 2 > 0 ) {\displaystyle \operatorname {Log} (z_{1})+\operatorname {Log} (z_{2})=\operatorname {Log} (z_{1}z_{2})\quad (-\pi <\operatorname {Arg} (z_{1})+\operatorname {Arg} (z_{2})\leq \pi ;{\text{ e.g., }}\operatorname {Re} z_{1}\geq 0{\text{ and }}\operatorname {Re} z_{2}>0)} [7]
Log ( z 1 ) Log ( z 2 ) = Log ( z 1 / z 2 ) ( mod 2 π i ) {\displaystyle \operatorname {Log} (z_{1})-\operatorname {Log} (z_{2})=\operatorname {Log} (z_{1}/z_{2}){\pmod {2\pi i}}}
Log ( z 1 ) Log ( z 2 ) = Log ( z 1 / z 2 ) ( π < Arg ( z 1 ) Arg ( z 2 ) π ;  e.g.,  Re z 1 0  and  Re z 2 > 0 ) {\displaystyle \operatorname {Log} (z_{1})-\operatorname {Log} (z_{2})=\operatorname {Log} (z_{1}/z_{2})\quad (-\pi <\operatorname {Arg} (z_{1})-\operatorname {Arg} (z_{2})\leq \pi ;{\text{ e.g., }}\operatorname {Re} z_{1}\geq 0{\text{ and }}\operatorname {Re} z_{2}>0)} [7]

Multiple value forms:

log ( z 1 ) + log ( z 2 ) = log ( z 1 z 2 ) {\displaystyle \log(z_{1})+\log(z_{2})=\log(z_{1}z_{2})}
log ( z 1 ) log ( z 2 ) = log ( z 1 / z 2 ) {\displaystyle \log(z_{1})-\log(z_{2})=\log(z_{1}/z_{2})}

Powers

A complex power of a complex number can have many possible values.

Principal value form:

z 1 z 2 = e z 2 Log ( z 1 ) {\displaystyle {z_{1}}^{z_{2}}=e^{z_{2}\operatorname {Log} (z_{1})}}
Log ( z 1 z 2 ) = z 2 Log ( z 1 ) ( mod 2 π i ) {\displaystyle \operatorname {Log} {\left({z_{1}}^{z_{2}}\right)}=z_{2}\operatorname {Log} (z_{1}){\pmod {2\pi i}}}

Multiple value forms:

z 1 z 2 = e z 2 log ( z 1 ) {\displaystyle {z_{1}}^{z_{2}}=e^{z_{2}\log(z_{1})}}

Where k1, k2 are any integers:

log ( z 1 z 2 ) = z 2 log ( z 1 ) + 2 π i k 2 {\displaystyle \log {\left({z_{1}}^{z_{2}}\right)}=z_{2}\log(z_{1})+2\pi ik_{2}}
log ( z 1 z 2 ) = z 2 Log ( z 1 ) + z 2 2 π i k 1 + 2 π i k 2 {\displaystyle \log {\left({z_{1}}^{z_{2}}\right)}=z_{2}\operatorname {Log} (z_{1})+z_{2}2\pi ik_{1}+2\pi ik_{2}}

See also

References

  1. ^ Weisstein, Eric W. "Logarithm". mathworld.wolfram.com. Retrieved 2020-08-29.
  2. ^ "4.3 - Properties of Logarithms". people.richland.edu. Retrieved 2020-08-29.
  3. ^ "Properties and Laws of Logarithms". courseware.cemc.uwaterloo.ca/8. Retrieved 2022-04-23.
  4. ^ "Archived copy" (PDF). Archived from the original (PDF) on 2016-10-20. Retrieved 2016-12-20.{{cite web}}: CS1 maint: archived copy as title (link)
  5. ^ http://www.lkozma.net/inequalities_cheat_sheet/ineq.pdf [bare URL PDF]
  6. ^ http://downloads.hindawi.com/archive/2013/412958.pdf [bare URL PDF]
  7. ^ a b Abramowitz, Milton (1965). Handbook of mathematical functions, with formulas, graphs, and mathematical tables. Irene A. Stegun. New York: Dover Publications. ISBN 0-486-61272-4. OCLC 429082.

External links

  • A lesson on logarithms can be found on Wikiversity
  • Logarithm in Mathwords