Introduction to Logarithms Advanced. This lesson goes beyond core Algebra I. You can skip it.
Progress can't be saved in this browser, so this lesson's status can't be set.
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
In Exponential Functions, we accepted the extension of to a curve with no gaps. As moves from to , the output moves from to , so it must pass through . Thus has a solution. The curve is also one-to-one: it never repeats an output, so the solution is unique. Existence and uniqueness are different facts. Together they let us reverse the exponential and ask for the exponent belonging to each positive output.
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,
These are two ways to record the same fact. The exponential form starts with an exponent and gives a result. The logarithmic form starts with that result and reports the exponent. Read as the exponent that turns into .
For our opening puzzle, the unique solution of is , a number between and that we will approximate as once we have the tools.
The rules later in this lesson are proved by switching between these two forms, so practice reading the same fact both ways:
| 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 allowed 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.
Here the base is and the input is below , so the answer is negative: .
The logarithm undoes the exponential
The exponential and its logarithm undo each other. For with :
Read each one in words. In , the exponent is by definition “the exponent that turns into .” So raising to that exponent gives . In , the input is a power of whose exponent is , and the logarithm reports that exponent, which is .
These undoing identities say that the logarithm and exponential are inverse functions, as in Inverse Functions Advanced. This lesson goes beyond core Algebra I. You can skip it..
Check your understanding
What is ?
The logarithm undoes the exponential: for every . Here and , so the two undo each other and only the exponent is left.
There is no need to compute first; the identity reports the exponent directly.
The inputs to a logarithm must be outputs that the exponential can produce. Since takes exactly the positive values, the logarithm has domain . No real exponent on a positive base produces zero or a negative number, so their real logarithms are undefined.
For a base , as the input shrinks toward , the exponent needed to reach it runs off toward . So the graph of such a logarithm, which you will see later, dives down along the vertical axis. You can take the logarithm of a tiny positive number, but not of zero or of a negative number.
Check your understanding
Which of these is undefined?
The domain of a logarithm is : a positive base raised to any real power always stays positive, so it can never equal a negative number or zero, and has no answer.
The other three all have positive inputs, so each has a real answer: , , and . A negative output is fine; a negative input is not.
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 limiting one-year factor at a rate. 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 .
Check your understanding
Which statement correctly tells and apart?
The common logarithm has no base written because it means base ; the natural logarithm means base . The two bases are different, so except at special inputs like , and give different outputs for the same : for instance but .
The laws of logarithms
The logarithm laws follow from exponent rules. First check three examples with base :
- Product: , and .
- Quotient: , and .
- Power: , and .
Multiplication became addition, division became subtraction, and a power became multiplication. The figure shows the repeated-doubling pattern. Then we prove all three laws for any allowed base.
Throughout, take with , positive numbers , and any real power . Name the logarithms
which in exponential form say and . Every proof starts from those two equations and applies a single exponent rule you already know.
Why #
First write two numbers as powers of :
Reading back as logarithms gives . The two input logarithms are and , so multiplying their inputs added those exponents. The same steps work for any allowed base and positive inputs, using their logarithms as exponents.
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
Why #
For numbers first,
Reading back gives : dividing the inputs subtracted their exponents. The same exponent subtraction works for any allowed base and positive inputs.
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
Why #
Start with and cube both sides:
Reading back gives : cubing the input multiplied its logarithm by . The same power-of-a-power rule works for any allowed base, positive input, and real power .
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
These laws explain why logarithm tables were useful before calculators. To multiply two positive numbers, people could look up their logarithms, add, then look up the number with that resulting log. The next example uses that same idea with supplied values.
Worked example 2 Combine known logarithms with the laws
Suppose a calculator once showed you the rounded values and , for some base you no longer remember. Find without ever learning what is.
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 use the laws. The product law splits the factors into a sum, and the power law pulls the exponent down in front:
Substitute the rounded values:
Check your understanding
Use a logarithm law to evaluate .
A sum of two logarithms with the same base is the logarithm of the product, by the product law.
The answer is the exponent , not the product itself: the product law tells you how to combine the logarithms, and you still finish by evaluating , not by stopping at .
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
To solve , take logarithms of both positive sides. The power law turns the unknown exponent into a coefficient, where ordinary division can isolate 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 , as the opening section showed it must.
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 :
Solving the equation gives a real number, , even though interest is only credited once a year. So the balance has not yet doubled after year ; the first completed year at or above double is year . The real solution describes the exponential curve between year ends.
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. Most 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,
The denominator is nonzero because gives . This 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 . For a base , 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.
Try three base settings:
- : the increasing logarithm matches the next example.
- : the exponential decreases, so its reflected logarithm decreases too. As its input approaches zero from the right, the log rises without bound. It still passes through , accepts only positive inputs, and has vertical asymptote .
- : the logarithm disappears. Every power of is , so the exponential is the horizontal line . Its reflection is the vertical line , which assigns many outputs to one input and fails the vertical-line test. It cannot be an inverse function. This explains the restriction .
Worked example 4 Describe the graph of
State the domain, range, and asymptote, then plot points on the curve, including one you find by working backward from a target height.
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 .
Check your understanding
The graph of passes through . Which point must be on the reflected graph ?
Reflecting across swaps the coordinates of every point on the curve. The exponential's point becomes the logarithm's point , matching . You can sketch the logarithm by reflecting points like this one.