List of logarithmic identities

From HandWiki
Short description: None

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:

[math]\displaystyle{ \log_b(1) = 0 }[/math] because [math]\displaystyle{ b^0 = 1 }[/math]
[math]\displaystyle{ \log_b(b) = 1 }[/math] because [math]\displaystyle{ b^1 = b }[/math]

Explanations

By definition, we know that:

[math]\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} }[/math],

where [math]\displaystyle{ \color{blue}b\color{black} \neq 0 }[/math] and [math]\displaystyle{ \color{blue}b\color{black}\neq 1 }[/math].

Setting [math]\displaystyle{ \color{red}x\color{black} = 0 }[/math], we can see that: [math]\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} }[/math]. So, substituting these values into the formula, we see that: [math]\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} }[/math] , which gets us the first property.

Setting [math]\displaystyle{ \color{red}x\color{black} = 1 }[/math], we can see that: [math]\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} }[/math]. So, substituting these values into the formula, we see that: [math]\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} }[/math] , 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.

[math]\displaystyle{ b^{\log_b(x)} = x\text{ because }\mbox{antilog}_b(\log_b(x)) = x }[/math]
[math]\displaystyle{ \log_b(b^x) = x\text{ because }\log_b(\mbox{antilog}_b(x)) = x }[/math][1]

Both of the above are derived from the following two equations that define a logarithm: (note that in this explanation, the variables of [math]\displaystyle{ \color{red}x\color{black} }[/math] and [math]\displaystyle{ x }[/math] may not be referring to the same number)

[math]\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} }[/math]

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

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

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

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

Where [math]\displaystyle{ b }[/math], [math]\displaystyle{ x }[/math], and [math]\displaystyle{ y }[/math] are positive real numbers and [math]\displaystyle{ b \ne 1 }[/math], and [math]\displaystyle{ c }[/math] and [math]\displaystyle{ d }[/math] are real numbers.

The laws result from canceling exponentials and the appropriate law of indices. Starting with the first law:

[math]\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) }[/math]

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

[math]\displaystyle{ x^y = (b^{\log_b(x)})^y = b^{y \log_b(x)} \Rightarrow \log_b(x^y) = y \log_b(x) }[/math]

The law relating to quotients then follows:

[math]\displaystyle{ \log_b \bigg(\frac{x}{y}\bigg) = \log_b(x y^{-1}) = \log_b(x) + \log_b(y^{-1}) = \log_b(x) - \log_b(y) }[/math]
[math]\displaystyle{ \log_b \bigg(\frac{1}{y}\bigg) = \log_b(y^{-1}) = - \log_b(y) }[/math]

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

[math]\displaystyle{ \log_b(\sqrt[y]x) = \log_b(x^{\frac{1}{y}}) = \frac{1}{y}\log_b(x) }[/math]

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:

[math]\displaystyle{ \forall b \in \mathbb{R}_+, b \neq 1, \forall x, y, \in \mathbb{R}_+, \log_b(xy) = \log_b(x) + \log_b(y) }[/math]

Derivation:

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

Rewriting these as exponentials, we see that

[math]\displaystyle{ \begin{align} m &= \log_b(x) \iff b^m = x, \\ n &= \log_b(y) \iff b^n = y. \end{align} }[/math]

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

[math]\displaystyle{ xy = (b^m)(b^n) = b^m \cdot b^n = b^{m + n} }[/math]

To recover the logarithms, we apply [math]\displaystyle{ \log_b }[/math] to both sides of the equality.

[math]\displaystyle{ \log_b(xy) = \log_b(b^{m + n}) }[/math]

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

[math]\displaystyle{ \log_b(xy) = m + n }[/math]

We now resubstitute the values for [math]\displaystyle{ m }[/math] and [math]\displaystyle{ n }[/math] into our equation, so our final expression is only in terms of [math]\displaystyle{ x }[/math], [math]\displaystyle{ y }[/math], and [math]\displaystyle{ b }[/math].

[math]\displaystyle{ \log_b(xy) = \log_b(x) + \log_b(y) }[/math]

This completes the derivation.

Logarithm of a quotient

To state the logarithm of a quotient law formally:

[math]\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) }[/math]

Derivation:

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

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

Rewriting these as exponentials, we see that:

[math]\displaystyle{ \begin{align} m &= \log_b(x) \iff b^m = x, \\ n &= \log_b(y) \iff b^n = y. \end{align} }[/math]

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

[math]\displaystyle{ \frac{x}{y} = \frac{(b^m)}{(b^n)} = \frac{b^m}{b^n} = b^{m - n} }[/math]

To recover the logarithms, we apply [math]\displaystyle{ \log_b }[/math] to both sides of the equality.

[math]\displaystyle{ \log_b \left( \frac{x}{y} \right) = \log_b \left( b^{m -n} \right) }[/math]

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

[math]\displaystyle{ \log_b \left( \frac{x}{y} \right) = m -n }[/math]

We now resubstitute the values for [math]\displaystyle{ m }[/math] and [math]\displaystyle{ n }[/math] into our equation, so our final expression is only in terms of [math]\displaystyle{ x }[/math], [math]\displaystyle{ y }[/math], and [math]\displaystyle{ b }[/math].

[math]\displaystyle{ \log_b \left( \frac{x}{y} \right) = \log_b(x) - \log_b(y) }[/math]

This completes the derivation.

Logarithm of a power

To state the logarithm of a power law formally,

[math]\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) }[/math]

Derivation:

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

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

[math]\displaystyle{ b^m = x }[/math]

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

[math]\displaystyle{ \begin{align} (b^m)^r &= (x)^r \\ b^{mr} &= x^r \end{align} }[/math]

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

To recover the logarithms, we apply [math]\displaystyle{ \log_b }[/math] to both sides of the equality.

[math]\displaystyle{ \log_b(b^{mr}) = \log_b(x^r) }[/math]

The left side of the equality can be simplified using a logarithm law, which states that [math]\displaystyle{ \log_b(b^{mr}) = mr }[/math].

[math]\displaystyle{ mr = \log_b(x^r) }[/math]

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

[math]\displaystyle{ \begin{align} \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{align} }[/math]

This completes the derivation.

Changing the base

To state the change of base logarithm formula formally: [math]\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)} }[/math]

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 [math]\displaystyle{ a, b \in \mathbb{R}_+ }[/math], where [math]\displaystyle{ a, b \neq 1 }[/math] Let [math]\displaystyle{ x \in \mathbb{R}_+ }[/math]. Here, [math]\displaystyle{ a }[/math] and [math]\displaystyle{ b }[/math] 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 [math]\displaystyle{ x }[/math] will be what the logarithm is evaluating, so it must be a positive number. Since we will be dealing with the term [math]\displaystyle{ \log_b(x) }[/math] quite frequently, we define it as a new variable: Let [math]\displaystyle{ m = \log_b(x) }[/math].

To more easily manipulate the expression, it can be rewritten as an exponential. [math]\displaystyle{ b^m = x }[/math]

Applying [math]\displaystyle{ \log_a }[/math] to both sides of the equality, [math]\displaystyle{ \log_a(b^m) = \log_a(x) }[/math]

Now, using the logarithm of a power property, which states that [math]\displaystyle{ \log_a(b^m) = m\log_a(b) }[/math], [math]\displaystyle{ m\log_a(b) = \log_a(x) }[/math]

Isolating [math]\displaystyle{ m }[/math], we get the following: [math]\displaystyle{ m = \frac{\log_a(x)}{\log_a(b)} }[/math]

Resubstituting [math]\displaystyle{ m = \log_b(x) }[/math] back into the equation, [math]\displaystyle{ \log_b(x) = \frac{\log_a(x)}{\log_a(b)} }[/math]

This completes the proof that [math]\displaystyle{ \log_b(x) = \frac{\log_a(x)}{\log_a(b)} }[/math].

This formula has several consequences:

[math]\displaystyle{ \log_b a = \frac 1 {\log_a b} }[/math]

[math]\displaystyle{ \log_{b^n} a = {\log_b a \over n} }[/math]

[math]\displaystyle{ b^{\log_a d} = d^{\log_a b} }[/math]

[math]\displaystyle{ -\log_b a = \log_b \left({1 \over a}\right) = \log_{1/b} a }[/math]


[math]\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, }[/math]

where [math]\displaystyle{ \pi }[/math] is any permutation of the subscripts 1, ..., n. For example [math]\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. }[/math]

Summation/subtraction

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

[math]\displaystyle{ \log_b (a+c) = \log_b a + \log_b \left(1 + \frac{c}{a}\right) }[/math] because [math]\displaystyle{ \left(a + c \right) = a \times \left(1 + \frac{c}{a} \right) }[/math]
[math]\displaystyle{ \log_b (a-c) = \log_b a + \log_b \left(1 - \frac{c}{a}\right) }[/math] because [math]\displaystyle{ \left(a - c \right) = a \times \left(1 - \frac{c}{a} \right) }[/math]

Note that the subtraction identity is not defined if [math]\displaystyle{ a=c }[/math], since the logarithm of zero is not defined. Also note that, when programming, [math]\displaystyle{ a }[/math] and [math]\displaystyle{ c }[/math] may have to be switched on the right hand side of the equations if [math]\displaystyle{ c \gg a }[/math] to avoid losing the "1 +" due to rounding errors. Many programming languages have a specific log1p(x) function that calculates [math]\displaystyle{ \log_e (1+x) }[/math] without underflow (when [math]\displaystyle{ x }[/math] is small).

More generally: [math]\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) }[/math]

Exponents

A useful identity involving exponents: [math]\displaystyle{ x^{\frac{\log(\log(x))}{\log(x)}} = \log(x) }[/math] or more universally: [math]\displaystyle{ x^{\frac{\log(a)}{\log(x)}} = a }[/math]

Other/resulting identities

[math]\displaystyle{ \frac{1}{\frac{1}{\log_x(a)} + \frac{1}{\log_y(a)}} = \log_{xy}(a) }[/math] [math]\displaystyle{ \frac{1}{\frac{1}{\log_x(a)}-\frac{1}{\log_y(a)}} = \log_{\frac{x}{y}}(a) }[/math]

Inequalities

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

[math]\displaystyle{ \frac{x}{1+x} \leq \ln(1+x) \leq \frac{x(6+x)}{6+4x} \leq x \mbox{ for all } {-1} \lt x }[/math]
[math]\displaystyle{ \begin{align} \frac{2x}{2+x}&\leq3-\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 \le x \text{, reverse for } {-1} \lt x \le 0 \end{align} }[/math]

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

Calculus identities

Limits

[math]\displaystyle{ \lim_{x\to 0^+}\log_a(x)=-\infty\quad \mbox{if } a \gt 1 }[/math]
[math]\displaystyle{ \lim_{x\to 0^+}\log_a(x)=\infty\quad \mbox{if } 0 \lt a \lt 1 }[/math]
[math]\displaystyle{ \lim_{x\to\infty}\log_a(x)=\infty\quad \mbox{if } a \gt 1 }[/math]
[math]\displaystyle{ \lim_{x\to\infty}\log_a(x)=-\infty\quad \mbox{if } 0 \lt a \lt 1 }[/math]
[math]\displaystyle{ \lim_{x\to 0^+}x^b\log_a(x)=0\quad \mbox{if } b \gt 0 }[/math]
[math]\displaystyle{ \lim_{x\to\infty}\frac{\log_a(x)}{x^b}=0\quad \mbox{if } b \gt 0 }[/math]

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

Derivatives of logarithmic functions

[math]\displaystyle{ {d \over dx} \ln x = {1 \over x }, x \gt 0 }[/math]
[math]\displaystyle{ {d \over dx} \ln |x| = {1 \over x }, x \neq 0 }[/math]
[math]\displaystyle{ {d \over dx} \log_a x = {1 \over x \ln a}, x \gt 0, a \gt 0, \text{ and } a\neq 1 }[/math]

Integral definition

[math]\displaystyle{ \ln x = \int_1^x \frac {1}{t}\ dt }[/math]

Integrals of logarithmic functions

[math]\displaystyle{ \int \ln x \, dx = x \ln x - x + C = x(\ln x - 1) + C }[/math]
[math]\displaystyle{ \int \log_a x \, dx = x \log_a x - \frac{x}{\ln a} + C = \frac{x (\ln x - 1)}{\ln a} + C }[/math]

To remember higher integrals, it is convenient to define

[math]\displaystyle{ x^{\left [n \right]} = x^{n}(\log(x) - H_n) }[/math]

where [math]\displaystyle{ H_n }[/math] is the nth harmonic number:

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

Then

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

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

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:

[math]\displaystyle{ \log(z) = \ln(|z|) + i \arg(z) }[/math]
[math]\displaystyle{ \log(z) = \operatorname{Log}(z) + 2 \pi i k }[/math]
[math]\displaystyle{ e^{\log(z)} = z }[/math]

Constants

Principal value forms:

[math]\displaystyle{ \operatorname{Log}(1) = 0 }[/math]
[math]\displaystyle{ \operatorname{Log}(e) = 1 }[/math]

Multiple value forms, for any k an integer:

[math]\displaystyle{ \log(1) = 0 + 2 \pi i k }[/math]
[math]\displaystyle{ \log(e) = 1 + 2 \pi i k }[/math]

Summation

Principal value forms:

[math]\displaystyle{ \operatorname{Log}(z_1) + \operatorname{Log}(z_2) = \operatorname{Log}(z_1 z_2) \pmod {2 \pi i} }[/math]
[math]\displaystyle{ \operatorname{Log}(z_1) + \operatorname{Log}(z_2) = \operatorname{Log}(z_1 z_2)\quad (-\pi \lt \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 \gt 0) }[/math][7]
[math]\displaystyle{ \operatorname{Log}(z_1) - \operatorname{Log}(z_2) = \operatorname{Log}(z_1 / z_2) \pmod {2 \pi i} }[/math]
[math]\displaystyle{ \operatorname{Log}(z_1) - \operatorname{Log}(z_2) = \operatorname{Log}(z_1 / z_2) \quad (-\pi \lt \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 \gt 0) }[/math][7]

Multiple value forms:

[math]\displaystyle{ \log(z_1) + \log(z_2) = \log(z_1 z_2) }[/math]
[math]\displaystyle{ \log(z_1) - \log(z_2) = \log(z_1 / z_2) }[/math]

Powers

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

Principal value form:

[math]\displaystyle{ {z_1}^{z_2} = e^{z_2 \operatorname{Log}(z_1)} }[/math]
[math]\displaystyle{ \operatorname{Log}{\left({z_1}^{z_2}\right)} = z_2 \operatorname{Log}(z_1) \pmod {2 \pi i} }[/math]

Multiple value forms:

[math]\displaystyle{ {z_1}^{z_2} = e^{z_2 \log(z_1)} }[/math]

Where k1, k2 are any integers:

[math]\displaystyle{ \log{\left({z_1}^{z_2}\right)} = z_2 \log(z_1) + 2 \pi i k_2 }[/math]
[math]\displaystyle{ \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 }[/math]

See also

References

External links

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