Introduction to Logarithms
Learning goals
- Read as the exponent turning into
- Treat the logarithm as the exponential's inverse
- Apply the product, quotient and power laws
- Distinguish common from natural
- Solve for an exponent by taking logs of both sides
- Sketch the graph as reflected across
A name for the missing exponent
Look again at . The value falls short and overshoots, so the exponent we want lies between and . In the exponential functions lesson you saw that is one-to-one: strictly increasing, so it hits each positive output for exactly one input. That single fact guarantees there is one and only one real number with . The number is real, it is unique, and until now it has had no symbol. We give it one.
Fix a base with and , and take a positive number . The logarithm of to base , written , is the exponent you put on to produce . Said as an equation,
The two equations carry the exact same information, read in opposite directions. The right-hand form is the exponential form; the left-hand form is the logarithmic form. One starts from the exponent and reports the result ; the other starts from the result and reports the exponent . This is the sentence to carry through the whole lesson: a logarithm is an exponent. Whenever you read , say to yourself “the exponent that turns into ,” and the symbol stops being mysterious.
So the answer to our opening puzzle finally has a name. The unique solution of is , a number between and that we will pin down to once we have the tools.
Reading the same fact both ways is a skill worth drilling, because every rule that follows is just one of these two forms in disguise:
| Exponential form | Logarithmic form |
|---|---|
Reading a logarithm straight from the definition
To evaluate a logarithm by hand, do not reach for a formula. Translate it into the question the definition asks: the base to what power gives the input? For friendly numbers you can answer that question on sight.
Worked example 1 Read five logarithms off the definition
Each one asks for an exponent. Find the power the base needs.
asks “two to what power is ?” Since ,
asks “ten to what power is ?” Since ,
asks “seven to what power is ?” Any allowed base to the zero power is , so
asks “three to what power is ?” A base to the first power is itself, so
asks “two to what power is ?” A reciprocal needs a negative exponent, and , so
Two patterns are worth keeping from this: for every base (since ), and (since ). And when the base is bigger than , the log of a number smaller than comes out negative, since landing below then takes a negative exponent.
Check your understanding
What is ?
A logarithm is an exponent, so ask: two to what power is ? A reciprocal needs a negative exponent.
The log of a reciprocal is negative, not a fraction and not .
The logarithm undoes the exponential
The definition was built to make reverse , so putting the two together in either order returns you to where you started. These are the inverse-composition statements from the inverse functions lesson, written for and :
Read each one in words. In , the exponent is by definition “the exponent that turns into .” So raising to that exponent turns into , and you land on . In , the input is a power of whose exponent is , and the logarithm reports that exponent, which is . The exponential and the logarithm are a matched pair of undo buttons.
This inverse relationship also settles a question the definition left hanging: which numbers may you take the logarithm of? A logarithm only ever returns an exponent that the exponential could have used, so its input must be a number the exponential can actually produce. From the exponential functions lesson, is always positive: its range is . There is no real power of a positive base that equals or a negative number. So and the logarithm of any negative number are undefined, and the domain of is the positive numbers alone,
For a base , as the input shrinks toward , the exponent needed to reach it runs off toward . That runaway is why the graph of such a logarithm later dives down along the vertical axis. You can take the logarithm of a tiny positive number, but never of zero, and never of a negative.
Common logs and natural logs
Two bases come up so often that they get their own shorthand.
The common logarithm has base . Because we write numbers in base ten, powers of ten are everywhere, and this log is written with no base at all: means . So and . On a calculator it is the button marked .
The natural logarithm has base , the number that surfaced in the compound interest lesson as the ceiling of continuous growth. It is written , so means . Thus and . On a calculator it is the button marked . The base is called “natural” because it is the base that arises on its own in problems of continuous growth and decay. In those problems it makes the formulas simplest.
Everything proved in this lesson holds for every allowed base, including these two. When a statement is written with or , it is just the general rule with or .
The laws of logarithms
Because a logarithm is an exponent, the rules for combining logarithms are really the rules for combining exponents, wearing a disguise. Each of the three laws below turns a harder operation on the inputs into an easier operation on the logarithms. Throughout, fix a base and two positive numbers and , and name their logarithms
which in exponential form say and . Every proof starts from those two equations and applies a single exponent rule you already know.
Why #
Multiply and by multiplying their exponential forms, and use the product rule for exponents, , from the exponential functions lesson:
Now read the outer equation back through the definition of a logarithm. It says the exponent that turns into is , and that exponent is exactly what means. Therefore
Multiplying the two inputs added their logarithms, because underneath, the exponents added.
Why #
Divide instead of multiply, and use the quotient rule for exponents, :
Read back through the definition: the exponent that turns into is , which is what means. So
Dividing the inputs subtracted their logarithms.
Why #
Raise to a power using its exponential form , and apply the power-of-a-power rule, :
Read back through the definition: the exponent that turns into is , so
Raising an input to a power multiplied its logarithm by that power. A power on the input becomes a plain coefficient out front.
Check each law once on numbers you can verify. With base , the product law gives , and indeed . The power law gives , and indeed .
Step back and notice the pattern across all three. A logarithm converts multiplication into addition, division into subtraction, and a power into a product. That trade, hard operation for easy one, is not a curiosity; it is the reason logarithms were invented centuries before anyone cared that they were inverse functions. Multiplying two twelve-digit numbers by hand is brutal, but adding their logarithms and looking up the reverse is quick. The figure below shows the idea in miniature.
Worked example 2 Combine known logarithms with the laws
Suppose you are told that and for some base . Find without knowing .
The trick is to write using only s and s, because those are the logarithms you were handed. Factor it:
Now take of both sides and let the laws do the work. The product law splits the factors into a sum, and the power law pulls the exponent down in front:
Substitute the given values:
Two small logarithms and a bit of factoring produced a third, with no base ever named. That is the laws turning multiplication and powers into addition.
Check your understanding
Use a logarithm law to evaluate .
A difference of two logarithms with the same base is the logarithm of the quotient, by the quotient law.
The last step uses . Subtracting logs is division of the inputs, not subtraction of the inputs, so it is not .
Solving for an exponent at last
Now the payoff the whole chapter was building toward. To solve an equation with the unknown stuck in the exponent, such as , take the logarithm of both sides. Then let the power law bring that exponent down to the ground, where you can solve for it.
Worked example 3 Solve the opening puzzle, then a doubling time
First, . Take the common logarithm of both sides. The two sides are equal, so their logs are equal:
The power law turns the left side into , and because . So
That is , and it lands between and exactly as the opening argument promised.
Now the deferred question from compound interest: how long to double? Money at compounded annually grows by the factor each year, so after years the balance is . Doubling means the balance reaches , that is,
The unknown sits in the exponent, so take the log of both sides and use the power law:
Divide to free :
At compounded annually, the money doubles in a little over years, a question the compound interest lesson could set up but not finish. The logarithm finished it.
You may take the logarithm in any base you like, as long as it is the same base on both sides. Using base on gives in one step. Calculators, however, carry only the (base ) and (base ) buttons, so it is handy to use one of those. That same observation gives a way to compute a logarithm in any base from the buttons you have. Solving by taking the common log of both sides gives , so . Since , this is the change-of-base relationship,
which lets you find, say, on any calculator.
Check your understanding
Which expression gives the exact solution of ?
Take the log of both sides, then use the power law to bring the exponent down.
The answer is a quotient of two logarithms, not a difference of logs and not .
The graph of a logarithm
Since is the inverse of , its graph is not something new to plot point by point. By the graphs of inverse functions lesson, the graph of an inverse is the mirror image of the original across the line . Reflect the exponential curve across that diagonal and you have the logarithm.
The reflection swaps the coordinates of every point, so it turns each feature of the exponential into its mirror feature. Line them up:
- The exponential passes through , so the logarithm passes through . Indeed . The exponential also passes through , so the logarithm passes through , matching .
- The exponential has the horizontal asymptote ; reflected, the logarithm has the vertical asymptote . The curve dives down the -axis but never touches it.
- The exponential has domain all real numbers and range . Swapping the two, the logarithm has domain and range all real numbers. You can only take the log of a positive number, but the output can be any real number at all.
- The exponential with base is increasing, and its reflection is increasing too, so rises from left to right, slowly but without bound.
Reflect the exponential, and read the logarithm off it
y = 2ˣ. y = log₂ x. Base 2 is greater than 1, so both curves rise. Reflecting across y = x sends (1, 2) on the exponential to (2, 1) on the logarithm. The exponential never reaches y = 0 and the logarithm never reaches x = 0, which is that same asymptote reflected.
Three settings of that base are worth visiting deliberately. Base draws the curve the next worked example describes, so you can check your answer against the picture. Base is the case the bullets above do not cover. A base below makes the exponential fall, and reflecting a falling curve gives a falling curve, so the logarithm decreases instead of increasing. Everything else survives unchanged, because the reflection does not care which way the original ran. Even with a base below , the logarithm still passes through , still has the vertical asymptote , and still accepts only positive inputs.
Base is the setting where the logarithm vanishes from the figure entirely, and that is the definition being enforced rather than a fault in the drawing. Every power of is , so is the flat line . It sends every input to a single height, so no rule can undo it, and there is nothing to reflect. That is precisely what the condition in the definition was written to exclude.
Worked example 4 Describe the graph of
State the domain, range, and asymptote, and plot three points.
Because the base is , this is an increasing logarithm with the standard features. Its domain is (you cannot take the log of zero or a negative), its range is all real numbers, and it has the vertical asymptote .
For points, pick inputs that are powers of , since their logs are whole numbers. Reading each off the definition,
So the curve passes through , , and . To find where the curve reaches height , ask which input has , that is, , giving the point . Plot these and draw a curve that hugs the vertical axis on the left, crosses the horizontal axis at , and rises slowly to the right. It is the exact mirror of across .