What we learn here:

Definition, Domain, and Range of Logarithms

In the previous section, we learned that for b>0, bx is always a positive number. Except for b=1, the function y=bx is either increasing or decreasing, and thus is one-to-one. Therefore, for any given y>0, there is one and only one value of x that satisfies bx=y (Figure 1). This value of x is called the “logarithm of y to (or in or with) the base b” or simply “log, base b, of y” and we write
(a)x=logby. Thus, by definition
(b)x=logbyy=bx(b>0,b1).

For example,
log216=424=16log100.001=3103=0.001.

(a) y=bx (b>1) (b) y=bx (0<b<1)

Figure 1: Exponential functions are one-to-one; there exists exactly one value of x satisfying bx=y for a given y>0.

Equation (a) defines x as a function of y:
(c)x=f(y)=logby where b is a fixed positive number different from 1. Because we must have y>0, the domain of this function is (0,), and because x can be any real number, the range of this function is (,).

In Equation (c), x and y are two variables simply denoting the input and output of the function. So we can simply show the input by x (instead of y) and the output by y (instead of x) as we usually do, and write the logarithmic function as
y=logbx,x>0.

Equation (b) implies that the logarithmic function and exponential function are the inverse of each other. If we substitute bx for y in x=logby, we obtain
x=logbbx. This equation holds for all x. If we substitute logby for x in y=bx, then we obtain
y=blogby. This equation holds for all y>0. The cancelation property of inverse functions (Theorem 1 of Section 2.16) read


logbbx=xfor all xblogbx=xfor x>0

As the logarithmic function logbx and the exponential function bx are inverse functions, the domain of each of them is the range of the other and vice versa.


Let f(x)=logbx and g(x)=bx then
Dom(f)=Rng(g)=(0,)Rng(f)=Dom(g)=(,)

The best way to remember the above relations is through remembering the graphs of these functions. We learned how the exponential function looks like. Therefore, by its reflection in the line y=x, we can easily sketch the graph of the logarithmic functions (Figure 2).

(a) b>1 (b) 0<b<1

Figure 2: Graphs of y=bx and y=logbx are reflections of one another in the line y=x. The graph of an exponential function passes through (0,1) and that of a logarithmic function passes through (1,0).

  •  Because b0=1, we have logb1=0. Therefore, the graph of y=logbx passes through (1,0) as we can see in Figure 2.

Important Properties of Logarithms

Logarithmic functions have very important properties that make them very useful:

Theorem 1 (Algebraic Properties of Logarithms): Let b>1,b1,x>0,y>0 and r be any real number
(1) the log of a product is the sum of the logs of the factors
(d)logb(xy)=logbx+logby. (2) the log brings the exponent down to the front of the log
(e)logbxr=rlogbx. (3) the log of a quotient is the log of the numerator minus the log of the denominator
(f)logb(yx)=logbylogbx.

These properties can be deduced from the properties of the exponential functions.
(1) Let
logbx=α,logby=β which means
x=bα,y=bβ. Therefore
logb(xy)=logb(bαbβ)(replacing x=bα and y=bβ)=logb(bα+β)(because bαbβ=bα+β)=α+β(because logbbu=u)=logbx+logby

(2) If r is a positive integer, then this is a direct result of Property 1. For example, suppose r=2, then
logbx2=logb(xx)=logbx+logbx( Using Property 1)=2logbx
To prove (2) in general, let
logbx=α then
x=bαxr=(bα)r=brα Therefore
logbxr=logb(brα)=rα(because logbbu=u)=rlogbx(α=logbx)
(3) Because we can write
yx=yx1, it follows from Properties 1 and 2 that
logb(yx)=logb(yx1)=logby+logx1(Using Property 1)=logbylogx.(Using Propery 2. Here r=1)

 

Common and Natural Logarithms

Theoretically, any positive number, except 1, may be used as the base of a system of logarithms. Practically there are only two numbers so used: the base-10 logarithm and the base-e logarithm where e=2.718281828 is Euler’s number. The base-10 logarithm is more “common” in algebraic settings, trigonometry, and in special kinds of graphs where one or two axes are plotted on logarithmic scales, but as we will see the base-e logarithm is more important in calculus.

The 10-base logarithm is called the common logarithm and the base-e logarithm is called the natural logarithm.

The common and natural logarithms are so common that they have their own shortened notations:

log10x    is written as   logx    (by omitting the base)

logex  is written as lnx

In many computing packages such as MATLAB, Mathematica, and in many computer languages such as Python, C++, and Fortran, “log” simply means the natural logarithm or “ln.” But in calculus “log” often denotes the base-10 logarithm.

  • Because in computer science, we work with binary numbers, the base-2
    logarithms are very common.

Change of Base Formula

Many calculators have special keys for the natural and common logarithms (Figure 3), and now the question is: how to calculate the logarithms with base other than 10 or e. For example, let it be required to find log7373. If
log7373=α then, by definition it means
7α=373. By Property 2, we have
αln7=ln373, or
α=ln373ln7=5.9215781.945910=3.043089.

In general

Theorem 2 (Change of base formula): For any positive number b (b1), we have
logbx=lnxlnb.

Figure 3: The logarithm keys (LOG for base-10 and LN for base-e) on a typical scientific calculator