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:

logb(1)=0 because b0=1
logb(b)=1 because b1=b

Explanations

By definition, we know that:

log\color b(y)=xb\color x=y,

where b0 and b1.

Setting x=0, we can see that: b\color x=yb\color (0)=y1=yy=1. So, substituting these values into the formula, we see that: log\color b(y)=xlog\color b(1)=0 , which gets us the first property.

Setting x=1, we can see that: b\color x=yb\color (1)=yb=yy=b. So, substituting these values into the formula, we see that: log\color b(y)=xlog\color 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.

blogb(x)=x because antilogb(logb(x))=x
logb(bx)=x because logb(antilogb(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 and x may not be referring to the same number)

log\color b(y)=xb\color x=y

Looking at the equation b\color x=y, and substituting the value for x of log\color b(y)=x, we get the following equation: b\color x=yb\color logb(y)=yb\color log\color b(y)=y , which gets us the first equation. Another more rough way to think about it is that b\color something=y, and that that "something" is log\color b(y).

Looking at the equation log\color b(y)=x , and substituting the value for y of b\color x=y, we get the following equation: log\color b(y)=xlog\color b(bx)=xlog\color b(b\color x)=x , which gets us the second equation. Another more rough way to think about it is that log\color b(something)=x, and that that something "something" is b\color 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.[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).

logb(xy)=logb(x)+logb(y) because bcbd=bc+d
logb(xy)=logb(x)logb(y) because bcbd=bcd
logb(xd)=dlogb(x) because (bc)d=bcd
logb(xy)=logb(x)y because xy=x1/y
xlogb(y)=ylogb(x) because xlogb(y)=blogb(x)logb(y)=(blogb(y))logb(x)=ylogb(x)
clogb(x)+dlogb(y)=logb(xcyd) because logb(xcyd)=logb(xc)+logb(yd)

Where b, x, and y are positive real numbers and b1, 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=blogb(x)blogb(y)=blogb(x)+logb(y)logb(xy)=logb(blogb(x)+logb(y))=logb(x)+logb(y)

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

xy=(blogb(x))y=bylogb(x)logb(xy)=ylogb(x)

The law relating to quotients then follows:

logb(xy)=logb(xy1)=logb(x)+logb(y1)=logb(x)logb(y)
logb(1y)=logb(y1)=logb(y)

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

logb(xy)=logb(x1y)=1ylogb(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+,b1,x,y,+,logb(xy)=logb(x)+logb(y)

Derivation:

Let b+, where b1, and let x,y+. We want to relate the expressions logb(x) and logb(y). This can be done more easily by rewriting in terms of exponentials, whose properties we already know. Additionally, since we are going to refer to logb(x) and logb(y) quite often, we will give them some variable names to make working with them easier: Let m=logb(x), and let n=logb(y).

Rewriting these as exponentials, we see that

m=logb(x)bm=x,n=logb(y)bn=y.

From here, we can relate bm (i.e. x) and bn (i.e. y) using exponent laws as

xy=(bm)(bn)=bmbn=bm+n

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

logb(xy)=logb(bm+n)

The right side may be simplified using one of the logarithm properties from before: we know that logb(bm+n)=m+n, giving

logb(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.

logb(xy)=logb(x)+logb(y)

This completes the derivation.

Logarithm of a quotient

To state the logarithm of a quotient law formally:

b+,b1,x,y,+,logb(xy)=logb(x)logb(y)

Derivation:

Let b+, where b1, and let x,y+.

We want to relate the expressions logb(x) and logb(y). This can be done more easily by rewriting in terms of exponentials, whose properties we already know. Additionally, since we are going to refer to logb(x) and logb(y) quite often, we will give them some variable names to make working with them easier: Let m=logb(x), and let n=logb(y).

Rewriting these as exponentials, we see that:

m=logb(x)bm=x,n=logb(y)bn=y.

From here, we can relate bm (i.e. x) and bn (i.e. y) using exponent laws as

xy=(bm)(bn)=bmbn=bmn

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

logb(xy)=logb(bmn)

The right side may be simplified using one of the logarithm properties from before: we know that logb(bmn)=mn, giving

logb(xy)=mn

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.

logb(xy)=logb(x)logb(y)

This completes the derivation.

Logarithm of a power

To state the logarithm of a power law formally,

b+,b1,x+,r,logb(xr)=rlogb(x)

Derivation:

Let b+, where b1, let x+, and let r. For this derivation, we want to simplify the expression logb(xr). To do this, we begin with the simpler expression logb(x). Since we will be using logb(x) often, we will define it as a new variable: Let m=logb(x).

To more easily manipulate the expression, we rewrite it as an exponential. By definition, m=logb(x)bm=x, so we have

bm=x

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

(bm)r=(x)rbmr=xr

where we used the exponent law (bm)r=bmr.

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

logb(bmr)=logb(xr)

The left side of the equality can be simplified using a logarithm law, which states that logb(bmr)=mr.

mr=logb(xr)

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

(logb(x))r=logb(xr)rlogb(x)=logb(xr)logb(xr)=rlogb(x)

This completes the derivation.

Changing the base

To state the change of base logarithm formula formally: a,b+,a,b1,x+,logb(x)=loga(x)loga(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+, where a,b1 Let x+. 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] 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 logb(x) quite frequently, we define it as a new variable: Let m=logb(x).

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

Applying loga to both sides of the equality, loga(bm)=loga(x)

Now, using the logarithm of a power property, which states that loga(bm)=mloga(b), mloga(b)=loga(x)

Isolating m, we get the following: m=loga(x)loga(b)

Resubstituting m=logb(x) back into the equation, logb(x)=loga(x)loga(b)

This completes the proof that logb(x)=loga(x)loga(b).

This formula has several consequences:

logba=1logab

logbna=logban

blogad=dlogab

logba=logb(1a)=log1/ba


logb1a1logbnan=logbπ(1)a1logbπ(n)an,

where π is any permutation of the subscripts 1, ..., n. For example logbwlogaxlogdclogdz=logdwlogbxlogaclogdz.

Summation/subtraction

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

logb(a+c)=logba+logb(1+ca) because (a+c)=a×(1+ca)
logb(ac)=logba+logb(1ca) because (ac)=a×(1ca)

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 ca to avoid losing the "1 +" due to rounding errors. Many programming languages have a specific log1p(x) function that calculates loge(1+x) without underflow (when x is small).

More generally: logbi=0Nai=logba0+logb(1+i=1Naia0)=logba0+logb(1+i=1Nb(logbailogba0))

Exponents

A useful identity involving exponents: xlog(log(x))log(x)=log(x) or more universally: xlog(a)log(x)=a

Other/resulting identities

11logx(a)+1logy(a)=logxy(a) 11logx(a)1logy(a)=logxy(a)

Inequalities

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

x1+xln(1+x)x(6+x)6+4xx for all 1<x
2x2+x3273+2xx1+x+x2/12ln(1+x)x1+xx22+x1+x for 0x, reverse for 1<x0

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

Calculus identities

limx0+loga(x)=if a>1
limx0+loga(x)=if 0<a<1
limxloga(x)=if a>1
limxloga(x)=if 0<a<1
limx0+xbloga(x)=0if b>0
limxloga(x)xb=0if b>0

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

Derivatives of logarithmic functions

ddxlnx=1x,x>0
ddxln|x|=1x,x0
ddxlogax=1xlna,x>0,a>0, and a1

Integral definition

lnx=1x1t dt

Integrals of logarithmic functions

lnxdx=xlnxx+C=x(lnx1)+C
logaxdx=xlogaxxlna+C=x(lnx1)lna+C

To remember higher integrals, it is convenient to define

x[n]=xn(log(x)Hn)

where Hn is the nth harmonic number:

x[0]=logx
x[1]=xlog(x)x
x[2]=x2log(x)32x2
x[3]=x3log(x)116x3

Then

ddxx[n]=nx[n1]
x[n]dx=x[n+1]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|)+iArg(z)
  • eLog(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|)+iarg(z)
log(z)=Log(z)+2πik
elog(z)=z

Constants

Principal value forms:

Log(1)=0
Log(e)=1

Multiple value forms, for any k an integer:

log(1)=0+2πik
log(e)=1+2πik

Summation

Principal value forms:

Log(z1)+Log(z2)=Log(z1z2)(mod2πi)
Log(z1)+Log(z2)=Log(z1z2)(π<Arg(z1)+Arg(z2)π; e.g., Rez10 and Rez2>0)[7]
Log(z1)Log(z2)=Log(z1/z2)(mod2πi)
Log(z1)Log(z2)=Log(z1/z2)(π<Arg(z1)Arg(z2)π; e.g., Rez10 and Rez2>0)[7]

Multiple value forms:

log(z1)+log(z2)=log(z1z2)
log(z1)log(z2)=log(z1/z2)

Powers

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

Principal value form:

z1z2=ez2Log(z1)
Log(z1z2)=z2Log(z1)(mod2πi)

Multiple value forms:

z1z2=ez2log(z1)

Where k1, k2 are any integers:

log(z1z2)=z2log(z1)+2πik2
log(z1z2)=z2Log(z1)+z22πik1+2πik2

See also

References

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