Logarithmic Arithmetic

Logarithmic Arithmetic

Required Prerequisites- Exponential Arithmetic

Today, the logarithm is taught mostly in context of subjects like compound interest, decay rates, sound pressures, and earthquake intensities. Though useful, these subjects do not give the logarithm the credit it is due. From 1624 (when Henry Briggs published Arithmetica Logarithmica) until 1972 (when Hewlett-Packard release the first scientific pocket calculator), the logarithm was the primary means by which most of the world performed arithmetic. Logarithms were used to design airplanes, create the atomic bomb, send men to the moon, and so much more. If not for the discovery of logarithms, we would not be enjoying any of the modern technological marvels we have today.

Multiplication and Division are Hard!

Subtraction and addition by hand are relatively easy, but division and multiplication are hard. Even simple calculations like 267 or 641.857.31 require an incredible amount of mental gymnastics to compute using manual methods. To make matters worse, the amount of time required for division is not fixed. The result of 267 is irrational, with infinitely many decimals. Technically, the calculation will never be done!

If only multiplication and division could be simpler... as we will see shortly, with the power of logarithms, they can be!

The Logarithm Definition

To derive the logarithm, we will be using exponential arithmetic extensively, I recommend reviewing it.

Exponential Arithmetic
Exponential arithmetic sits just beyond basic arithmetic but is vital in many engineering applications.

During exponentiation, we multiply a base number b by itself multiple times p to obtain a new number n:

n=bp

In a very simple example, b=2 and p=3 so that:

23=222=8

Consider the relationship n=bp and suppose we have the base number b, but instead of knowing p, we have the new number n and need to solve for p. For example, let n=4 and b=2:

2p=4

What is the value for p that makes this equation true? Obviously, p=2:

22=4

Often, this isn't such an easy problem. If n=1.5 and b=3, what is p?

3p=1.5

This problem of finding the power p that makes n=bp true is perfectly reasonable but difficult to write down nicely with our current symbols; we can't write an equation with p by itself on one side.

Consider the area of a square. The area A of a square with side length L is given by:

L2=A

This equation has an input and output, each on separate sides of the equality sign:

(Linput)2=Aoutput

The input of the equation is on the left. The output on the right. This equation is neat and concise, but in the problem of solving for the power in an exponential, it is not so easy to separate the inputs n, b, and output p:

n=bp

The base-b logarithm is by definition, the mathematical operation that when performed on an exponential bp, returns the power of the exponential:

logb(bp)=p

For example, consider the exponential 34. Taking the base-3 logarithm of 34, we obtain:

log3(34)=4

If we take the base-b logarithm of both sides of the equation n=bp, we obtain:

logb(n)=logb(bp)

From the fundamental definition, logb(bp)=p, which then gives:

logb(n)=p

We now have an equation with the inputs b, n on one side and the output p on the other:

logb(n)inputs=poutputs

Taking the base-b logarithm of both sides of n=bp has transformed it!

n=bp logb logb(n)=p

This process, left to right, is the logarithm transformation.

Consider the situation where we take the base number b and raise it to each side of the equation logb(n)=p:

blogb(n)=bp

Since n=bp, we can substitute bp with n to obtain:

blogb(n)=n

This equation, obtained by exponentiating b to each side of logb(n)=p is the inverse logarithm:

logb(n)=p b^ n=bp

We now have the fundamental definition for the logarithm transformation and how to reverse it:

n=bp logb||b^ logb(n)=p

When b=2 and n=4, the base-2 logarithm transformation gives:

4=2p log2 log2(4)=p

The solution for this equation is p=2. Its exponential and logarithm forms are given by:

4=22 log2 log2(4)=2

Our First Logarithm Table

Suppose that for the base 3, we create an exponential table that contains the inputs p and outputs n for n=3p:

Table 1: Base-3 exponential table

To convert the exponential table to a logarithm table, we use the logarithm transformation equation to relabel the table's columns so that n is the input and p is the output:

n=3p log3 log3(n)=p

Table 2: Base-3 logarithm table

Since the contents of the exponential and logarithmic tables are identical, proper labeling of the columns permit the same table to be used for both. The table is most useful for us with n on the left.

Table 3: Base-3 exponential/logarithm table

Each row in the p column is the base-3 logarithm of the n column, log3(n) Each row of the n column is 3 raised to the power p column, bp.

Using the base-3 table, log3(243)=5, log3(27)=3, and 36=729.

Easy Multiplication using Logarithms

Using logarithms, we can multiply two exponential numbers n1 and n2 with shared base b:

n1=bp1, n2=bp2

Taking the base-b logarithm of each side of these equations, we obtain:

logb(n1)=p1, logb(n2)=p2

If we multiply together n1 and n2 and use the product of exponentials rule we obtain:

n1n2=bp1bp2=bp1+p2

Using the logarithm definition, the base-b logarithm of both sides of this equation is:

logb(n1n2)=logb(bp1+p2)=p1+p2

Since logb(n1)=p1 and logb(n2)=p2, we substitute to obtain:

logb(n1n2)=logb(n1)+logb(n2)

This fundamental logarithm property is called the product rule.

A practical use of this property can be demonstrated with an example. We desire to calculate 9243. From the base-3 table, we observe that:

log3(9)=2, log3(243)=5

Using the product rule property, we find:

log3(9243)=log3(9)+log3(243)=2+5=7

log3(9243)=7

Now, the base 3 can be exponentiated to the power of each side:

3log3(9243)=9243=37

Using the base-3 table, 37=2187. Therefore:

9243=2187

The problem of performing multiplication has been reduced to using a table and addition!

Easy Division using Logarithms

Using logarithms, we can divide two exponential numbers n1 and n2 with shared base b:

n1=bp1, n2=bp2

Taking the base-b logarithm of each side of these equations, we obtain:

logb(n1)=p1, logb(n2)=p2

When dividing n1 by n2, we obtain:

n1n2=n1n21=bp1bp2=bp1p2

Using the logarithm definition, the base-b logarithm of both sides of this equation is:

logb(n1n2)=logb(bp1p2)=p1p2

Since logb(n1)=p1 and logb(n2)=p2, we substitute to obtain:

logb(n1n2)=logb(n1)logb(n2)

This fundamental logarithm property is called the quotient rule.

A practical use of this property can be demonstrated with an example. We desire to calculate 7299. From the base-3 table, we observe that:

log3(729)=6, log3(9)=2

Using the quotient rule property, we find:

log3(7299)=log3(729)log3(9)=62=4

log3(7299)=4

Now, the base 3 can be exponentiated to the power of each side:

3log3(7299=7299=34

Using the base-3 table, 34=81. Therefore:

7299=81

The problem of performing division has been reduced to using a table and subtraction!

Easy Exponentiation and Roots Using Logarithms

Recall the logarithm transformation:

n=bp logb logb(n)=p


Raising both sides of n=bp to a power q, we obtain:

nq=(bp)q

Using the power of power rule, we obtain:

nq=bpq

Taking the base-b logarithm of both sides, we obtain:

logb(nq)=logb(bpq)

logb(nq)=pq  [1]


Multiplying both sides of logb(n)=p by q, we obtain:

qlogb(n)=pq [2]


Since pq=pq, statements [1] and [2] are equal, and we obtain:

logb(nq)=qlogb(n)

This fundamental logarithm property is called the power rule.

A practical use of this property can be demonstrated with an example. We desire to calculate 72913. Using the power rule:

log3(72913)=13log3(729)

From the base-3 table:

log3(729)=6

Therefore:

13log3(729)=13(6)=2

Exponentiating 3 to both sides:

3log3(72913)=72913=32

Using the base-3 table, 32=9:

72913=9

Incredibly, the problem of finding a cubed root has been reduced to using a table and division!

Logarithms of Negative Numbers

Suppose we have a base number b=2, raised to a power p, set equal to a new number n=4:

2p=4

Unfortunately, this equation has no solution. This means that the logarithm log2(4) also has no real solution. Accordingly, the base-b logarithm for any negative number n is undefined.

logb(n)=undefined

Though the logarithm of a negative number is undefined, the inverse logarithm remains valid when applied to the logarithm of a negative number:

blogb(n)=n

This fundamental logarithm property is called the round-trip rule.

The round-trip rule states that as long as we don't try to calculate the value of the logarithm of a negative number, negative numbers can still be taken "round-trip" through the logarithm transformation:

n logb logb(n) b^ blogb(n)=n

As an example, we can take the number 4 round-trip through the base-2 logarithm transformation:

4 log2 log2(4) 2^ 2log2(4)=4

Any negative number n is equal to 1 times n:

n=1n

Taking the base-b logarithm of the right side and using the product rule:

logb(1n)=logb(1)+logb(n)

Exponentiating the base b to both sides, we obtain:

blogb(1n)=blogb(1)+logb(n)

Exponentiation rules permit the exponent to be split:

blogb(1n)=(blogb(1))(blogb(n))

Simplifying, we obtain:

1n=1n

As has been shown, both 1 and n make it round-trip though the logarithm transformation unmodified. Consider when a negative number n is multiplied by another number m:

nm=1nm

Taking the logarithm of both sides:

logb(nm)=logb(1)+logb(n)+logb(m)

Exponentiating the base b to both sides, we obtain:

blogb(nm)=blogb(1)+logb(n)+logb(m)

blogb(nm)=(blogb(1))(blogb(1)+logb(n)+logb(m))

Simplifying, we obtain:

nm=blogb(1)+logb(n)+logb(m)

nm=(blogb(1))(blogb(n))(blogb(m))

nm=1nm

When performing multiplication or division, negative signs are preserved and can be propagated without needing to track the negative sign through the round-trip process.

We can also use logarithms to calculate the value of exponentiated negative numbers, though we've not yet arrived at a point where doing so is very useful. First, the negative number should be separated into positive and base-(1) exponentiated numbers:

5=51

After separation, the positive root can be calculated as normal using logarithm rules and tables, 5=2.236. Substituting:

5=51=2.2361

1 is a complex number, which we explored briefly in the article on quadratic functions.

A Clarification on the Existence of Logarithms for Negative Numbers

This is an advanced note. Unless you are a devout mathematics enthusiast, you can likely ignore this clarification.

To say that the logarithm of a negative number is undefined is not entirely correct. If the result of the logarithm is required to be a real number, then the logarithm of a negative number is indeed undefined. However, if we permit the result of a logarithm to be a complex number, then the logarithm of a negative number does exist.

Though the logarithm of a negative number technically does exist, the round-trip rule means it's not typically needed for conventional arithmetic. Because calculating logarithms of negative numbers is a more complex topic, it will be left for a future discussion.

The Base-10 Logarithm Table

Earlier, we created and used a base-3 logarithm table for a number of examples, but there isn't really anything special about the base-3 logarithm. As we will see shortly, the base-10 logarithm actually has a property that makes it excellent for arithmetic. Below is a simple base-10 table:

Table 4: Base-10 exponential/logarithm table

Consider we want to multiply two numbers, 6432.34 and 56.712. We just need a table with log10(6432.34) and log10(56.712)... except our table sucks. We clearly need a bigger one!

While calculating the base-10 logarithms of powers of 10 is easy, doing so for arbitrary numbers is very difficult. Even calculating log10(2) is an exhaustive exercise. To most people, calculating a giant table of logarithms would seem like an insane task, but English mathematician Henry Briggs saw this challenge as an opportunity to change the world. Briggs, assisted by a group of human computers, published base-10 logarithm tables for the integers 120,000 and 90,000100,000 in Arithmetica Logarithmica in 1624.

The work was grueling, but the result was worth it. Briggs' initiated an acceleration in mathematics that today has gifted us with technology beyond his wildest imaginations.

If you'd like to download a PDF version of Arithmetic Logarithmica, the link is available below, source scans courtesy of https://archive.org/.

Scientific Notation

The aforementioned beneficial property of the base-10 logarithm is that it works very well with numbers in integer scientific notation. Integer scientific notation is when a number n is expressed as an integer m (without any trailing zeros) multiplied by 10 to a power p:

n=m10p

Below are some examples of decimal numbers expressed in integer scientific notation:

7823.2938=78232938104

0.8293=8293104

1,838,270,000,000=183827107

By converting a decimal number to integer scientific notation format, a logarithm table only needs to contain the logarithm value for integers.

Example of Multiplication with Base-10 Logarithm Table

We want to multiply two numbers, 6432.34 and 56.712. We begin by converting them to four digit scientific notation:

6432.346432100and56.7125671102

Multiplying them together in scientific notation, we obtain:

(6432100)(5671102)=64325671102

Using the logarithm product rule:

log10(64325671102)=log10(6432)+log10(5671)+log10(102)

log10(64325671102)=log10(6432)+log10(5671)2

Using Briggs' logarithm table (figure 3):

log10(6432)=3.80834

log10(5671)=3.75365

log10(6432)+log10(5671)2=3.80834+3.753652=5.56199

log10(643256.71)=5.56199

Raising 10 to each side, we obtain:

10log10(643256.71)=105.56199

643256.71=105.56199

When calculating exponentials, Briggs' table provides the most digits of precision for exponentials between 3 and 4 (and all exponentials need to be less than 4). We need to reduce the non-integer exponent by multiplying by a base-10 exponential pair:

643256.71=105.56199102102

643256.71=103.56199102

Using the base-10 table (figure 3):

103.56199=3648

Therefore:

3648102=364800

6432.3456.712=364800

Note that the actual full and correct answer is 6432.3456.712=364790.866

Even with all of our rounding, our calculation (which we calculated using only a large table and a single addition) had an error of <0.003%. Incredible.

Example of Division with Base-10 Logarithm Table

Now consider the case where we desire to divide 56.712 by 2.31. We begin by converting them to four digit scientific notation:

56.7125671102and2.31=231102

Taking their quotient, we obtain:

5671102231102=5671231

Using the logarithm quotient rule:

log10(5671231)=log10(5671)log10(231)

Using Briggs' logarithm table (figure 4):

log10(5671)=3.75365

log10(231)=2.36361

log10(5671)log10(231)=3.753652.36361=1.39004

log10(5671231)=1.39004

Raising 10 to each side, we obtain:

10log10(5671231)=101.39004

5671231=101.39004

When calculating exponentials, Briggs' table provides the most digits of precision for exponentials between 3 and 4 (and all exponentials need to be less than 4). We need to increase the non-integer exponent by multiplying by a base-10 exponential pair:

5671231=101.39004102102

5671231=103.39004102

Using the base-10 table (figure 4):

103.39004=2455

Therefore:

5671231=2455102=24.55

56.7122.31=24.55

Note that the actual full and correct answer is 56.7122.31=24.55064935

Even with all of our rounding, our calculation (which we calculated using only a large table and a single subtraction) has an error of <0.003%. Pretty good.