list of logarithmic identities

{{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. The trivial logarithmic identities are as follows:

:

cellpadding=3

| if \log_b(1) = 0

then b^0 = 1
if \log_b(b) = 1 then b^1 = b

= Explanations =

By definition, we know that:

:\log_b(y) = x \iff b^x = y,

where b \neq 0 and b \neq 1.

Setting x = 0,

we can see that:

b^x = y

\iff b^{(0)} = y

\iff 1 = y

\iff y = 1

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

\log_b (y) = x

\iff \log_b (1) = 0

, which gets us the first property.

Setting x = 1,

we can see that:

b^x = y

\iff b^{(1)} = y

\iff b = y

\iff y = b

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

\log_b (y) = x

\iff \log_b (b) = 1

, 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\text{ because }\mbox{antilog}_b(\log_b(x)) = x

:\log_b(b^x) = x\text{ because }\log_b(\mbox{antilog}_b(x)) = x{{Cite web|last=Weisstein|first=Eric W.|title=Logarithm|url=https://mathworld.wolfram.com/Logarithm.html|access-date=2020-08-29|website=mathworld.wolfram.com|language=en}}

Both of the above are derived from the following two equations that define a logarithm:

(note that in this explanation, the variables of x and x may not be referring to the same number)

:\log_b (y) = x \iff b^x = y

Looking at the equation b^x = y , and substituting the value for x of

\log_b (y) = x , we get the following equation:

b^x = y

\iff b^{\log _b(y)} = y

\iff b^{\log_b (y)} = y

, which gets us the first equation.

Another more rough way to think about it is that b^{\text{something}} = y,

and that that "\text{something}" is \log_b (y) .

Looking at the equation \log_b (y) = x

, and substituting the value for y of b^x = y, we get the following equation:

\log_b (y) = x

\iff \log_b(b^x) = x

\iff \log_b(b^x) = x

, which gets us the second equation.

Another more rough way to think about it is that \log_b (\text{something}) = x,

and that that something "\text{something}" is b^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.{{Cite web|title=4.3 - Properties of Logarithms|url=https://people.richland.edu/james/lecture/m116/logs/properties.html|access-date=2020-08-29|website=people.richland.edu}} The first three operations below assume that {{math|1=x = bc}} and/or {{math|1=y = bd}}, so that {{math|1=logb(x) = c}} and {{math|1=logb(y) = d}}. Derivations also use the log definitions {{math|1=x = blogb(x)}} and {{math|1=x = logb(bx)}}.

:

cellpadding=3

| \log_b(xy)=\log_b(x)+\log_b(y)

becauseb^c b^d=b^{c+d}
\log_b(\tfrac{x}{y})=\log_b(x)-\log_b(y)because\tfrac{b^c}{b^d}=b^{c-d}
\log_b(x^d)=d\log_b(x)because(b^c)^d=b^{cd}
\log_b\left(\sqrt[y]{x}\right)=\frac{\log_b(x)}{y}because\sqrt[y]{x}=x^{1/y}
x^{\log_b(y)}=y^{\log_b(x)}becausex^{\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)because\log_b(x^c y^d)=\log_b(x^c)+\log_b(y^d)

Where b, x, and y are positive real numbers and b \ne 1, and c and d are real numbers.

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

: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)} \Rightarrow \log_b(x^y) = y \log_b(x)

The law relating to quotients then follows:

:\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)

:\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(\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,

{{Cite web

|url=https://courseware.cemc.uwaterloo.ca/8/assignments/210/6

|title=Properties and Laws of Logarithms

|website=courseware.cemc.uwaterloo.ca/8

|access-date=2022-04-23

}}

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:

:\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 \in \mathbb{R}_+, where b \neq 1,

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

Rewriting these as exponentials, we see that

:\begin{align}

m &= \log_b(x) \iff b^m = x, \\

n &= \log_b(y) \iff b^n = y.

\end{align}

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

:xy = (b^m)(b^n) = b^m \cdot b^n = b^{m + n}

To recover the logarithms, we apply \log_b to both sides of the equality.

:\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, giving

:\log_b(xy) = m + n

We now resubstitute the values for m and n into our equation, so our final expression is only in terms of x, y, and b.

:\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:

:\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 \in \mathbb{R}_+, where b \neq 1,

and let x, y \in \mathbb{R}_+.

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

Rewriting these as exponentials, we see that:

:\begin{align}

m &= \log_b(x) \iff b^m = x, \\

n &= \log_b(y) \iff b^n = y.

\end{align}

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

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

To recover the logarithms, we apply \log_b to both sides of the equality.

:\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, giving

:\log_b \left( \frac{x}{y} \right) = m -n

We now resubstitute the values for m and n into our equation, so our final expression is only in terms of x, y, and b.

:\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:

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

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

:b^m = x

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

:

\begin{align}

(b^m)^r &= (x)^r \\

b^{mr} &= x^r

\end{align}

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

To recover the logarithms, we apply \log_b to both sides of the equality.

:\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^{mr}) = mr.

:mr = \log_b(x^r)

Substituting in the original value for m, rearranging, and simplifying gives

:

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

This completes the derivation.

Changing the base

To state the change of base logarithm formula formally:

\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 \in \mathbb{R}_+, where a, b \neq 1 Let x \in \mathbb{R}_+. Here, a and 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|date=July 2022}} The number 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) quite frequently, we define it as a new variable: Let m = \log_b(x).

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

b^m = x

Applying \log_a to both sides of the equality,

\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),

m\log_a(b) = \log_a(x)

Isolating m, we get the following:

m = \frac{\log_a(x)}{\log_a(b)}

Resubstituting m = \log_b(x) back into the equation,

\log_b(x) = \frac{\log_a(x)}{\log_a(b)}

This completes the proof that \log_b(x) = \frac{\log_a(x)}{\log_a(b)}.

This formula has several consequences:

\log_b a = \frac 1 {\log_a b}

\log_{b^n} a = {\log_b a \over n}

\log_{b} a = \log_b e \cdot \log_e a = \log_b e \cdot \ln a

b^{\log_a d} = d^{\log_a b}

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

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

\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 \left(1 + \frac{c}{a}\right)

|because

|\left(a + c \right) = a \times \left(1 + \frac{c}{a} \right)

\log_b (a-c) = \log_b a + \log_b \left(1 - \frac{c}{a}\right)

|because

|\left(a - c \right) = a \times \left(1 - \frac{c}{a} \right)

Note that the subtraction identity is not defined if a=c, since the logarithm of zero is not defined. Also note that, when programming, a and c may have to be switched on the right hand side of the equations if 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) without underflow (when x is small).

More generally:

\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^{\frac{\log(\log(x))}{\log(x)}} = \log(x)

or more universally:

x^{\frac{\log(a)}{\log(x)}} = a

= Other/resulting identities =

\frac{1}{\frac{1}{\log_x(a)} + \frac{1}{\log_y(a)}} = \log_{xy}(a)

\frac{1}{\frac{1}{\log_x(a)}-\frac{1}{\log_y(a)}} = \log_{\frac{x}{y}}(a)

Inequalities

Based on,{{citation

| last = Topsøe | first = Flemming

| editor1-last = Cho | editor1-first = Yeol Je

| editor2-last = Kim | editor2-first = Jong Kyu

| editor3-last = Dragomir | editor3-first = Sever S.

| contribution = Some bounds for the logarithmic function

| contribution-url = https://rgmia.org/papers/v7n2/pade.pdf

| isbn = 978-1-59454-874-1

| location = New York

| mr = 2349596

| pages = 137–151

| publisher = Nova Science Publishers

| title = Inequality theory and applications, Vol. 4: Papers from the 8th International Conference on Nonlinear Functional Analysis and Applications held at Gyeongsang National University, Chinju and Kyungnam University, Masan, August 9–13, 2004

| year = 2007}}

:\frac{x}{1+x} \leq \ln(1+x)

\leq \frac{x(6+x)}{6+4x}

\leq x \mbox{ for all } {-1} < x

:\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} < x \le 0

\end{align}

All are accurate around x=0, but not for large numbers.

Tropical identities

The following identity relates log semiring to the min-plus semiring.\lim_{T \rightarrow 0} -T\log(e^{-\frac{s}{T}} + e^{-\frac{t}{T}}) = \mathrm{min}\{s,t\}

Calculus identities

= [[Limit of a function|Limits]] =

:\lim_{x\to 0^+}\log_a(x)=-\infty\quad \mbox{if } a > 1

:\lim_{x\to 0^+}\log_a(x)=\infty\quad \mbox{if } 0 < a < 1

:\lim_{x\to\infty}\log_a(x)=\infty\quad \mbox{if } a > 1

:\lim_{x\to\infty}\log_a(x)=-\infty\quad \mbox{if } 0 < a < 1

:\lim_{x\to \infty}x^b\log_a(x)=\infty\quad \mbox{if } b > 0

:\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".

= [[Derivative]]s of logarithmic functions =

:{d \over dx} \ln x = {1 \over x }, x > 0

:{d \over dx} \ln |x| = {1 \over x }, x \neq 0

:{d \over dx} \log_a x = {1 \over x \ln a}, x > 0, a > 0, \text{ and } a\neq 1

= Integral definition =

:\ln x = \int_1^x \frac {1}{t}\ dt

To modify the limits of integration to run from x to 1, we change the order of integration, which changes the sign of the integral:

:-\int_1^x \frac{1}{t} \, dt = \int_x^1 \frac{1}{t} \, dt

Therefore:

:\ln \frac{1}{x} = \int_x^1 \frac{1}{t} \, dt

= [[Riemann Sum]] =

:\ln(n + 1) =

:\lim_{k \to \infty} \sum_{i=1}^{k} \frac{1}{x_i} \Delta x =

:\lim_{k \to \infty} \sum_{i=1}^{k} \frac{1}{1 + \frac{i-1}{k}n} \cdot \frac{n}{k} =

:\lim_{k \to \infty} \sum_{x=1}^{k \cdot n} \frac{1}{1 + \frac{x}{k}} \cdot \frac{1}{k} =

:\lim_{k \to \infty} \sum_{x=1}^{k \cdot n} \frac{1}{k + x} = \lim_{k \to \infty} \sum_{x=k+1}^{k \cdot n + k} \frac{1}{x} = \lim_{k \to \infty} \sum_{x=k+1}^{k (n + 1)} \frac{1}{x}

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

= Series representation =

The natural logarithm \ln(1 + x) has a well-known Taylor series{{cite web

| last = Weisstein

| first = Eric W.

| title = Mercator Series

| website = MathWorld--A Wolfram Web Resource

| url = https://mathworld.wolfram.com/MercatorSeries.html

| access-date = 2024-04-24

}} expansion that converges for x in the open-closed interval {{open-closed|−1, 1}}:

\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, the series is conditionally convergent, and for all other values, it is absolutely convergent. For x > 1 or x \leq -1, the series does not converge to \ln(1 + x). In these cases, different representationsTo extend the utility of the Mercator series beyond its conventional bounds one can calculate \ln(1 + x) for x = -\frac{n}{n+1} and n \geq 0 and then negate the result, \ln\left(\frac{1}{n+1}\right), to derive \ln(n + 1). For example, setting x = -\frac{1}{2} yields \ln 2 = \sum_{n=1}^{\infty} \frac{1}{n 2^n}. or methods must be used to evaluate the logarithm.

= Harmonic number difference =

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.{{cite book

| last1 = Flajolet

| first1 = Philippe

| last2 = Sedgewick

| first2 = Robert

| title = Analytic Combinatorics

| year = 2009

| publisher = Cambridge University Press

| isbn = 978-0521898065

| page = 389

}} See page 117, and VI.8 definition of shifted harmonic numbers on page 389

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{{cite arXiv

|last=Deveci

|first=Sinan

|title=On a Double Series Representation of the Natural Logarithm, the Asymptotic Behavior of Hölder Means, and an Elementary Estimate for the Prime Counting Function

|year=2022

|eprint=2211.10751

|class=math.NT

}} See Theorem 5.2. on pages 22 - 23

:\lim_{{k \to \infty}} (H_{{k(n+1)}} - H_k) = \ln(n+1)

which characterizes the behavior of harmonic numbers as they grow large. This approximation (which precisely equals \ln(n+1) in the limit) reflects how summation over increasing segments of the harmonic series exhibits integral properties, giving insight into the interplay between discrete and continuous analysis. It also illustrates how understanding the behavior of sums and series at large scales can lead to insightful conclusions about their properties. Here H_k denotes the k-th harmonic number, defined as

:H_k = \sum_{{j=1}}^k \frac{1}{j}

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.{{cite book

| last1 = Graham

| first1 = Ronald L.

| last2 = Knuth

| first2 = Donald E.

| last3 = Patashnik

| first3 = Oren

| title = Concrete Mathematics: A Foundation for Computer Science

| year = 1994

| publisher = Addison-Wesley

| isbn = 0-201-55802-5

| page = 429

}}

{{cite web

| url = http://mathworld.wolfram.com/HarmonicNumber.html

| title = Harmonic Number

| publisher = Wolfram MathWorld

| access-date = 2024-04-24

}} See formula 13.

As k tends towards infinity, the difference between the harmonic numbers H_{k(n+1)} and H_k converges to a non-zero value. This persistent non-zero difference, \ln(n+1), precludes the possibility of the harmonic series approaching a finite limit, thus providing a clear mathematical articulation of its divergence.{{cite report

| last1 = Kifowit

| first1 = Steven J.

| title = More Proofs of Divergence of the Harmonic Series

| publisher = Prairie State College

| year = 2019

| url = https://stevekifowit.com/pubs/harm2.pdf

| access-date = 2024-04-24

}} See Proofs 23 and 24 for details on the relationship between harmonic numbers and logarithmic functions.

{{cite journal

| last1 = Bell

| first1 = Jordan

| last2 = Blåsjö

| first2 = Viktor

| title = Pietro Mengoli's 1650 Proof That the Harmonic Series Diverges

| journal = Mathematics Magazine

| volume = 91

| issue = 5

| year = 2018

| pages = 341–347

| doi = 10.1080/0025570X.2018.1506656

| jstor = 48665556

| hdl = 1874/407528

| url = https://www.jstor.org/stable/48665556

| access-date = 2024-04-24

| hdl-access = free

}}

The technique of approximating sums by integrals (specifically using the integral test or by direct integral approximation) is fundamental in deriving such results. This specific identity can be a consequence of these approximations, considering:

:\sum_{{j=k+1}}^{k(n+1)} \frac{1}{j} \approx \int_k^{k(n+1)} \frac{dx}{x}

== Harmonic limit derivation ==

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 to k(n+1):

:H_{{k(n+1)}} - H_k = \sum_{{j=k+1}}^{k(n+1)} \frac{1}{j}

This can be estimated using the integral test for convergence, or more directly by comparing it to the integral of 1/x from k to k(n+1):

:\lim_{{k \to \infty}} \sum_{{j=k+1}}^{k(n+1)} \frac{1}{j} = \int_k^{k(n+1)} \frac{dx}{x} = \ln(k(n+1)) - \ln(k) = \ln\left(\frac{k(n+1)}{k}\right) = \ln(n+1)

As the window's lower bound begins at k+1 and the upper bound extends to k(n+1), both of which tend toward infinity as k \to \infty, the summation window encompasses an increasingly vast portion of the smallest possible terms of the harmonic series (those with astronomically large denominators), creating a discrete sum that stretches towards infinity, which mirrors how continuous integrals accumulate value across an infinitesimally fine partitioning of the domain. In the limit, the interval is effectively from 1 to n+1 where the onset k implies this minimally discrete region.

= Double series formula =

The harmonic number difference formula for \ln(m) is an extension of the classic, alternating identity of \ln(2):

:\ln(2) = \lim_{k \to \infty} \sum_{n=1}^{k} \left( \frac{1}{2n-1} - \frac{1}{2n} \right)

which can be generalized as the double series over the residues of m:

:\ln(m) = \sum_{x \in \langle m \rangle \cap \mathbb{N}} \sum_{r \in \mathbb{Z}_m \cap \mathbb{N}} \left( \frac{1}{x-r} - \frac{1}{x} \right) = \sum_{x \in \langle m \rangle \cap \mathbb{N}} \sum_{r \in \mathbb{Z}_m \cap \mathbb{N}} \frac{r}{x(x-r)}

where \langle m \rangle is the principle ideal generated by m. Subtracting \textstyle \frac{1}{x} from each term \textstyle \frac{1}{x-r} (i.e., balancing each term with the modulus) reduces the magnitude of each term's contribution, ensuring convergence by controlling the series' tendency toward divergence as m increases. For example:

:\ln(4) = \lim_{k \to \infty} \sum_{n=1}^{k} \left( \frac{1}{4n-3} - \frac{1}{4n} \right) + \left( \frac{1}{4n-2} - \frac{1}{4n} \right) + \left( \frac{1}{4n-1} - \frac{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 ensures that adjustments are uniformly applied across all possible offsets within each block of m terms. This uniform distribution of the "correction" across different intervals defined by x-r functions similarly to telescoping over a very large sequence. It helps to flatten out the discrepancies that might otherwise lead to divergent behavior in a straightforward harmonic series. Note that the structure of the summands of this formula matches those of the interpolated harmonic number H_x when both the domain and range are negated (i.e., -H_{-x}). However, the interpretation and roles of the variables differ.

== Deveci's Proof ==

A fundamental feature of the proof is the accumulation of the subtrahends \frac{1}{x} into a unit fraction, that is, \frac{m}{x} = \frac{1}{n} for m \mid x, thus m = \omega + 1 rather than m = |\mathbb{Z}_{m} \cap \mathbb{N}|, where the extrema of \mathbb{Z}_{m} \cap \mathbb{N} are [0, \omega] if \mathbb{N} = \mathbb{N}_{0} and [1, \omega] otherwise, with the minimum of 0 being implicit in the latter case due to the structural requirements of the proof. Since the cardinality of \mathbb{Z}_{m} \cap \mathbb{N} depends on the selection of one of two possible minima, the integral \textstyle \int \frac{1}{t} dt, as a set-theoretic procedure, is a function of the maximum \omega (which remains consistent across both interpretations) plus 1, not the cardinality (which is ambiguous{{Cite arXiv |eprint=1102.0418 |first=Peter |last=Harremoës |title=Is Zero a Natural Number? |year=2011|class=math.HO }} A synopsis on the nature of 0 which frames the choice of minimum as the dichotomy between ordinals and cardinals.{{Cite journal |last=Barton |first=N. |year=2020 |title=Absence perception and the philosophy of zero |journal=Synthese |volume=197 |issue=9 |pages=3823–3850 |doi=10.1007/s11229-019-02220-x |pmc=7437648 |pmid=32848285}} See section 3.1 due to varying definitions of the minimum). Whereas the harmonic number difference computes the integral in a global sliding window, the double series, in parallel, computes the sum in a local sliding window—a shifting m-tuple—over the harmonic series, advancing the window by m positions to select the next m-tuple, and offsetting each element of each tuple by \frac{1}{m} relative to the window's absolute position. The sum \sum_{n=1}^{k} \sum \frac{1}{x - r} corresponds to H_{km} which scales H_{m} without bound. The sum \sum_{n=1}^{k} -\frac{1}{n} corresponds to the prefix H_{k} trimmed from the series to establish the window's moving lower bound k+1, and \ln(m) is the limit of the sliding window (the scaled, truncatedThe k+1 shift is characteristic of the right Riemann sum employed to prevent the integral from degenerating into the harmonic series, thereby averting divergence. Here, -\frac{1}{n} functions analogously, serving to regulate the series. The successor operation m = \omega + 1 signals the implicit inclusion of the modulus m (the region omitted from \mathbb{N}_{1}). The importance of this, from an axiomatic perspective, becomes evident when the residues of m are formulated as e^{\ln(\omega + 1)}, where \omega + 1 is bootstrapped by \omega = 0 to produce the residues of modulus m = \omega = \omega_{0} + 1 = 1. Consequently, \omega represents a limiting value in this context. series):

\begin{align}

\sum_{n=1}^k \sum_{r=1}^{\omega} \left( \frac{1}{mn - r} - \frac{1}{mn} \right)

&= \sum_{n=1}^k \sum_{r=0}^{\omega} \left( \frac{1}{mn - r} - \frac{1}{mn} \right) \\

&= \sum_{n=1}^k \left( -\frac{1}{n} + \sum_{r=0}^{\omega} \frac{1}{mn - r} \right) \\

&= -H_k + \sum_{n=1}^k \sum_{r=0}^{\omega} \frac{1}{mn - r} \\

&= -H_k + \sum_{n=1}^k \sum_{r=0}^{\omega} \frac{1}{(n-1)m + m - r} \\

&= -H_k + \sum_{n=1}^k \sum_{j=1}^m \frac{1}{(n-1)m + j} \\

&= -H_k + \sum_{n=1}^k \left( H_{nm} - H_{m(n-1)} \right) \\

&= -H_k + H_{mk}

\end{align}

\lim_{k \to \infty} H_{km} - H_k = \sum_{x \in \langle m \rangle \cap \mathbb{N}} \sum_{r \in \mathbb{Z}_m \cap \mathbb{N}} \left( \frac{1}{x-r} - \frac{1}{x} \right) = \ln(\omega + 1) = \ln(m)

= [[Integral]]s of logarithmic functions =

:\int \ln x \, dx = x \ln x - x + C = x(\ln x - 1) + C

:\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^{\left [n \right]} = x^{n}(\log(x) - H_n)

where H_n is the nth harmonic number:

:x^{\left [ 0 \right ]} = \log x

:x^{\left [ 1 \right ]} = x \log(x) - x

:x^{\left [ 2 \right ]} = x^2 \log(x) - \begin{matrix} \frac{3}{2} \end{matrix}x^2

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

Then

:\frac{d}{dx}\, x^{\left[ n \right]} = nx^{\left[ n-1 \right]}

:\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 {{math|1=logb(a) + logb(c) = logb(ac)}}, where a, b, and c are arbitrary constants. Suppose that one wants to approximate the 44th Mersenne prime, {{math|232,582,657 −1}}. To get the base-10 logarithm, we would multiply 32,582,657 by {{math|log10(2)}}, getting {{math|1=9,808,357.09543 = 9,808,357 + 0.09543}}. We can then get {{math|1=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.

  • {{math|ln(r)}} is the standard natural logarithm of the real number {{mvar|r}}.
  • {{math|Arg(z)}} is the principal value of the arg function; its value is restricted to {{open-closed|−π, π}}. It can be computed using {{math|1=Arg(x + iy) = atan2(y, x)}}.
  • {{math|Log(z)}} is the principal value of the complex logarithm function and has imaginary part in the range {{open-closed|−π, π}}.
  • \operatorname{Log}(z) = \ln(|z|) + i \operatorname{Arg}(z)
  • e^{\operatorname{Log}(z)} = z

The multiple valued version of {{math|log(z)}} is a set, but it is easier to write it without braces and using it in formulas follows obvious rules.

  • {{math|log(z)}} is the set of complex numbers v which satisfy {{math|1=ev = z}}
  • {{math|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)

:\log(z) = \operatorname{Log}(z) + 2 \pi i k

:e^{\log(z)} = z

= Constants =

Principal value forms:

:\operatorname{Log}(1) = 0

:\operatorname{Log}(e) = 1

Multiple value forms, for any k an integer:

:\log(1) = 0 + 2 \pi i k

:\log(e) = 1 + 2 \pi i k

= Summation =

Principal value forms:

:\operatorname{Log}(z_1) + \operatorname{Log}(z_2) = \operatorname{Log}(z_1 z_2) \pmod {2 \pi i}

:\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){{Cite book|last=Abramowitz|first=Milton|url=https://www.worldcat.org/oclc/429082|title=Handbook of mathematical functions, with formulas, graphs, and mathematical tables|date=1965|publisher=Dover Publications|others=Irene A. Stegun|isbn=0-486-61272-4|location=New York|oclc=429082}}

:\operatorname{Log}(z_1) - \operatorname{Log}(z_2) = \operatorname{Log}(z_1 / z_2) \pmod {2 \pi i}

:\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)

Multiple value forms:

:\log(z_1) + \log(z_2) = \log(z_1 z_2)

:\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 \operatorname{Log}(z_1)}

:\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)}

Where {{math|k1}}, {{math|k2}} are any integers:

:\log{\left({z_1}^{z_2}\right)} = z_2 \log(z_1) + 2 \pi i k_2

:\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

Asymptotic identities

= [[Pronic_number|Pronic numbers]] =

As a consequence of the harmonic number difference, the natural logarithm is asymptotically approximated by a finite series difference, representing a truncation of the integral at k = n:

:H_{{2T[n]}} - H_n \sim \ln(n+1)

where T[n] is the {{mvar|n}}th triangular number, and 2T[n] is the sum of the Pronic_number#As_figurate_numbers. Since the {{mvar|n}}th pronic number is asymptotically equivalent to the {{mvar|n}}th perfect square, it follows that:

:H_{{n^2}} - H_n \sim \ln(n+1)

= [[Prime number theorem]] =

The prime number theorem provides the following asymptotic equivalence:

:\frac{n}{\pi(n)} \sim \ln n

where \pi(n) is the prime counting function. This relationship is equal to:{{rp|2}}

:\frac{n}{H(1, 2, \ldots, x_n)} \sim \ln n

where H(x_1, x_2, \ldots, x_n) is the harmonic mean of x_1, x_2, \ldots, x_n. This is derived from the fact that the difference between the nth harmonic number and \ln n asymptotically approaches a small constant, resulting in H_{{n^2}} - H_n \sim H_n. This behavior can also be derived from the properties of logarithms: \ln n is half of \ln n^2, and this "first half" is the natural log of the root of n^2, which corresponds roughly to the first \textstyle \frac{1}{n}th of the sum H_{n^2}, or H_n. The asymptotic equivalence of the first \textstyle \frac{1}{n}th of H_{n^2} to the latter \textstyle \frac{n-1}{n}th of the series is expressed as follows:

:\frac{H_n}{H_{n^2}} \sim \frac{\ln \sqrt{n}}{\ln n} = \frac{1}{2}

which generalizes to:

:\frac{H_n}{H_{n^k}} \sim \frac{\ln \sqrt[k]{n}}{\ln n} = \frac{1}{k}

:k H_n \sim H_{n^k}

and:

:k H_n - H_n \sim (k - 1) \ln(n+1)

:H_{{n^k}} - H_n \sim (k - 1) \ln(n+1)

:k H_n - H_{{n^k}} \sim (k - 1) \gamma

for fixed k. The correspondence sets H_n as a unit magnitude that partitions H_{n^k} across powers, where each interval \textstyle \frac{1}{n} to \textstyle \frac{1}{n^2}, \textstyle \frac{1}{n^2} to \textstyle \frac{1}{n^3}, etc., corresponds to one H_n unit, illustrating that H_{n^k} forms a divergent series as k \to \infty.

= Real Arguments =

These approximations extend to the real-valued domain through the interpolated harmonic number. For example, where x \in \mathbb{R}:

:H_{{x^2}} - H_x \sim \ln x

= [[Stirling number|Stirling numbers]] =

The natural logarithm is asymptotically related to the harmonic numbers by the Stirling numbers{{cite arXiv

| title = New series identities with Cauchy, Stirling, and harmonic numbers, and Laguerre polynomials

| author = Khristo N. Boyadzhiev

| year = 2022

| eprint = 1911.00186

| pages = 2, 6

| class = math.NT

}} and the Gregory coefficients.{{cite book

| last = Comtet

| first = Louis

| title = Advanced Combinatorics

| publisher = Kluwer

| year = 1974

}} By representing H_n in terms of Stirling numbers of the first kind, the harmonic number difference is alternatively expressed as follows, for fixed k:

:\frac{s(n^k+1, 2)}{(n^k)!} - \frac{s(n+1, 2)}{n!} \sim (k-1) \ln(n+1)

See also

  • {{annotated link|List of formulae involving π}}
  • {{annotated link|List of integrals of logarithmic functions}}
  • {{annotated link|List of mathematical identities}}
  • {{annotated link|Lists of mathematics topics}}
  • {{annotated link|List of trigonometric identities}}

References

{{reflist}}