Our journey begins in the late 1500s and early 1600s.
Mathematicians of the era faced a key challenge, one with which I'm sure all of us are familiar: multiplication is harder than addition.
What do I mean by harder?
Well, consider adding two multiple-digit numbers: 243 and 142.
The standard algorithm is to line these numbers up and add their pairs of digits individually from right to left.
243+142385243+142385243+142385243+142385
243+142385243+142385243+142385243+142385
Additions can get a bit more difficult if we need to carry a 1, but overall this process is pretty straightforward.
Multiplication, on the other hand, involves more steps.
Let's take 243 and 142 once again and multiply them.
Again we start by lining up the numbers.
But now we need to multiply the top number by every digit in the bottom number.
And we have to shift the results as we go along, then add everything together at the end.
Phew!
That was a lot of work.
It's nothing new or difficult, just rather tedious.
But more than that, we have lots of opportunities for making mistakes.
Keeping track of all of the digits and carries and shifts by hand requires a good deal of discipline and attention to detail.
Wouldn't it be great if we didn't have to do all of this?
Well, that's where logarithms are going to help us!
Logarithms first were created as a tool to avoid multiplications.
As the centuries have gone on we've learned that logarithms have a myriad of other mathematical properties.
But this is where we'll start: simple addition and multiplication.
To begin, we'll reexamine some of the arithmetic we learned in elementary school—doing so will help us motivate the definition of a logarithm.
Let's think back to our early educations.
First we learned about counting, then about addition and subtraction, and then about multiplication, where we were introducted to evaluating expressions such as 3⋅5.3⋅5.
Now if your first instinct is to yell out 15,15, then congratulations—you memorized your times tables when you were a child!
If you're anything like me, then you had to learn the products of single-digit number pairs.
But what if we didn't have this table?
How would we know what to do when faced with a multiplication problem?
Well, we probalby learned that multiplication is a repeated addition.
If we're given 3⋅5,3⋅5, we can write
3⋅5=5 times3+3+3+3+3=15.
3⋅5=5 times3+3+3+3+3=15.
We add 33 to itself 55 times, and our answer is the total sum of 15.15.
The multiplication consists of three components: a number,number, a count,count, and a total.total.
To be a bit more general, we can write
The countcount tells us how many times to add the numbernumber to itself in order to get the total.total.
As we take math classes, we're asked to solve multiplication problems.
These problems present us with two of the three components and endeavor us with discerning the third.
In elementary school, we're given the numbernumber and the count,count, and we have to find the total.total.
A question might be written as follows, where we have to fill in the box:
6⋅4=24y|.
6⋅4=24y|.
Our answer is the product 24:24:
6⋅4=24y|.
6⋅4=24y|.
Later on in our education, we're asked another type of question.
Instead of the numbernumber and the count,count, we're given the numbernumber and the total.total.
We have to find the countcount and write it in the box:
6⋅4y|6⋅4y|=24,=24.
6⋅4y|6⋅4y|=24,=24.
Or, instead of a box, the question may use a variable:
6n=24.
6n=24.
Here we're asked to solve for n.n.
Which is just answering the question, how many times do we add 66 to get 24?24?
Of course we could figure this out by dividing both sides by 6:6:
6n66nn=24,=624,=4.
6n66nn=24,=624,=4.
But let's think about how to solve this type of problem if we didn't know an algorithm for division.
We could figure out the answer just by counting!
We add 66 to itself until we get to 24,24, then count the number of 66's we need:
6=6,6+6=12,6+6+6=18,4 times6+6+6+6=24.
6=6,6+6=12,6+6+6=18,4 times6+6+6+6=24.
Our answer is n=4.n=4.
The algorithms we learn for long division and for finding and cancelling out common factors are definitely useful.
But it's important to remember that they're tools we use for finding the count.count.
And if we wanted to, we could just do the counting ourselves.
As we advance further in school, following up after repeated additions, we have repeated multiplications.
And we represent these repetitions using exponents.
For example,
35=5 times3⋅3⋅3⋅3⋅3=243.
35=5 times3⋅3⋅3⋅3⋅3=243.
Now we probably don't have 3535 memorized like we do our multiplication tables.
But we can just multiply by 33 repeatedly to get the answer.
We have the same three components as before: a number,number, a count,count, and a total.total.
In general we can write
Here we use a ∗ instead of a ⋅ to denote multiplication, to avoid confusion with the center dots.
In this context we call the numbernumber the base, the countcount the exponent, and the totaltotal the product:
baseexponent=product.
baseexponent=product.
When you see the word exponent, think about the word expose.
The term refers to the written appearance of the number as being exposed up and to the right, rather than to any particular mathematical property.
Just like with multiplication, math problems involving exponentiation give use two pieces of information and task us with finding the third.
We start, once again, by being given a numbernumber and a countcount and being asked to find the total:total:
63=243y|.
63=243y|.
And again, we can multiply 66 by itself 33 times to obtain the answer:
63=3 times6⋅6⋅6=243y|.
63=3 times6⋅6⋅6=243y|.
Now comes the more interesting question.
Suppose, as we did previous with multiplication problems, that we're given a numbernumber and a total.total.
How do we solve for the count?count?
Here we don't have the division algorithm to aide us like we did with our earlier analogous situation.
But we still can resort to counting.
Suppose we want to solve
2n=32.
2n=32.
We can do so by multiplying 22 by itself until we reach 3232 while counting the number of multiplications:
Thus our answer is n=5.n=5.
And just like we use the name division refer to the process of finding the countcount when working with repeated addition, we need a name for the concept of finding the countcount when working with repeated multiplication.
And for that, it's time to introduce logarithms.
Definition 1 (Logarithm). Let x and b be positive real numbers with b not equal to 1.
If n is a number such that b multiplied by itself n times equals x—that is, such that bn=x—we write
logbx=n.
This notation is read the base b logarithm of x equals n, or more simply as log base b of x is n.
Here b is called the base of the logarithm, and x is called the argument of the logarithm.
We'll discuss more advanced properties and techniques for computing logarithms later.
But for now let's just concentrate on what this definition is telling us.
When we have an exponential equation such as
25=32,
25=32,
we have another notation for writing it:
log232=5.
log232=5.
This equation is read, the base 22 logarithm of 3232 equals 5.5.
It tells us that if we multiply 22 by itself 55 times, we get 32.32.
Now for some logarithm examples.
If we're given an equation and asked to find what the exponent is, we can do what we did previous: multiply the base by itself until we reach the product, then count the number of times we multiplied.
log264.log264.
To calculate this logarithm, write out products of 2 until we reach 64.
In our definition of logbx, we impose restrictions on the numbers b and x.
We require that both of these are positive, and further that b is not equal to 1.
What do these conditions mean, and why are they important?
We define the base b logarithm of x only when the the following conditions hold:
For example, what happens if b or x is zero?
Well, log20 is not defined, since there is no power of 2 such that 2n=0.
Multiplying 2 by itself just gives bigger and bigger positive numbers, we can't multiply by 2 and get zero.
Similarly, since 0⋅0=0, there is no n such that 0n=2.
Multiplying repeatedly by zero keeps yielding zero.
Hence log02 is not defined either.
You'll find that we don't gain any utility from attempting to include other cases in our definition of logarithms, anyway.
In a more advanced course we could study how complex numbers relate to logarithms.
But for now, and for general-purpose usage of logarithms with real numbers, these restrictions suffice.