Lecture Notes 3.3 Logarithms
Lecture Notes 3.3 Logarithms
1. log2 (8) = x
Solution. The exponential form is 2x = 8. Since 23 = 8 the answer is x = 3 .
2. log2 (247 ) = x
Solution. The exponential form is 2x = 247 . So x = 47 .
1
3. log2 ( ) = x
2
1 1
Solution. The exponential form is 2x = . Since 2−1 = the answer is x = −1 .
2 2
1
4. log2 ( ) = x
8
1 1
Solution. The exponential form is 2x = . Since 2−3 = the answer is x = −3 .
8 8
√
5. log2 ( 3 2) = x
Solution. The exponential form is 2x = 21/3 . So x = 1/3 .
120
The graph of the inverse function y = log2 x is obtained by reflecting the graph of y = 2x across the
line y = x.
Figure 5. The graphs of y = 2x and y = log2 x (in blue) with the line of reflection, y = x (in green)
We agreed earlier that the exponential function f (x) = bx has domain (−∞, ∞) and range (0, ∞).
Since g(x) = logb x is the inverse function of f (x) the domain of the log function will be the range
of the exponential function, and vice versa. So the domain of g(x) = logb x is (0, ∞) and the range is
(−∞, ∞).
The most useful base for logarithms is e. We will abbreviate loge (x) by ln(x) and speak of the “natural
logarithm”.
Sometimes, for historical reasons, we may use base 10. It is customary to speak then of the “common
logarithm” and abbreviate log10 (x) by log(x), dropping the subscript. However (warning!), in higher
mathematics and engineering applications, log(x) means base e and is equivalent to ln(x).
In these notes we will use log(x) to mean log10 (x).
121
One more abbreviation – often in computer science, because computers store data in binary (in bits
of zeroes and ones), one uses base 2. There is now an attempt to write log2 (x) as lb(x) and speak of the
“binary” logarithm.
In summary, here are our abbreviations:
1. ln x means the logarithm base e,
2. log x means the logarithm base 10 and
3. lb x means the logarithm base 2.
1. log(1000) = x
Solution. The exponential form is 10x = 1000. Since 103 = 1000 the answer is x = 3 .
1
2. ln( )=x
e3
Solution. The exponential form is ex = e−3 so the answer is −3 .
1
3. lb( √ ) = x
2
1 √ 1
Solution. The exponential form is 2x = √ . Since 21/2 = 2 then 2−1/2 = √ and so the answer
2 2
is x = −1/2 .
M
logb ( ) = logb M − logb N (11)
N
122
A third important property of exponents: when we raise a term like bx to a power, we multiply exponents.
Each of these three properties is merely a restatement, in the language of logarithms, of a property of
exponents.
y = logb x.
Rewrite this in exponential form:
by = x.
and take the log of both sides of the equation. If we want to work in base c then let us apply logc () to
both sides of our equation.
logc (by ) = logc (x).
Now we use the exponet property (equation 13, pulling the exponent y outside the logarithm:
Solve for y:
logc x
y= .
logc b
What we have discovered is that y has been rewritten. So y, which was originally equal to logb x is now
logc x
logb x = (14)
logc b
Example. Suppose we want to compute log2 (17) but our calculator only allows us to use the natural
logarithm ln. Then, by the change of base equation (equation 14), we can write
ln 17
log2 (17) = ≈ 4.087463.
ln 2
123
Note that (g ◦ f )(x) = g(f (x)) = g(bx ) = logb (bx ). So, since the log function and the exponential
function are inverse functions, this must be equal to just x and so we have
This equation is really fairly easy to understand. If we translate “logb (x)” as “the exponent on b that
give x” then we should translate logb (bx ) as “the exponent on b which gives bx .” Obviously this should
be x since x is the exponent one places on b to get bx . (If that doesn’t make sense, read through it one
more time slowly....)
Since (f ◦ g)(x) = x we also have x = (f ◦ g)(x) = f (g(x)) = f (logb x) = blogb x . So
blogb x = x. (17)
This is almost as easy to understand as equation 16. It says that if we place on b “the exponent you put
on b to get x” (logb x) then we should just get x!
We will explore these properties more in the next section.
Once we understand the logarithm as the inverse of the exponential function, we are prepared to find
the inverse of many functions involving the logarithm. Here are some examples.
Some worked examples on inverse functions Find the inverse function of f (x).
2
1. f (x) = ex .
2
−5
2. f (x) = ex .
3. f (x) = 5 + ex .
4. f (x) = log2 (x + 2) + 2.
Solutions
2 2
1. To find the inverse of f (x) = ex set y = ex and then swap inputs and outputs so that
2
x = ey .
ln x = y 2
2 2
−5
2. To find the inverse of y = ex we swap letters so that x = ey =5
, take natural logs of both sides
ln x = y 2 − 5,
124
3. To find the inverse of y = 5 + ex we swap variables, subtract 5 from both sides and then take the
natural log to get ln(x − 5) = y. So
f −1 (x) = ln(x − 5) .
y = log2 (x + 2) + 2,
change variables (to indicate that we are swapping inputs and outputs)
x = log2 (y + 2) + 2,
2x−2 = y + 2.
f −1 (x) = 2x−2 − 2
In the free textbook, Precalculus, An Investigation of Functions, by Lippman and Rassmussen (Edition
1.3, available at www.opentextbookstore.com) the logarithms are covered in section 4.3.
In the textbook by Ratti & McWaters, Precalculus, A Unit Circle Approach, 2nd ed., c. 2014 this
material appears in section 3.2. In the textbook by Stewart, Precalculus, Mathematics for Calculus, 6th
ed., c. 2012 (here at Amazon.com) this material appears in in section 4.3.
There are lots of online resources on exponential functions. Here are some I recommend.
1. Dr. Paul’s online math notes on logarithms.
2. Videos on logarithms from Khan Academy,
Homework.
As class homework, please complete Worksheet 3.3, Exponential Functions available through
the class webpage.
125