Skip to main content

Logarithmic Functions

Many functions and operations in mathematics have ways to inverse themselves. For example, subtraction is an inverse of addition, division is an inverse of multiplication, and square root functions are an inverse of quadratic functions. Exponential functions can also be inverted and that is through logarithmic functions.

Logarithms

A logarithm of base bb where b>0b > 0 and b1b \neq 1 of xx where x>0x > 0 is denoted as logb(x)\log_b(x) which is equivalent to by=xb^y = x. When we read logb(x)\log_b(x), we stated "the logarithm base bb of xx" or "log base bb of xx".

Since, by=xb^y = x and logb(x)=y\log_b(x) = y are inverses, we can infer that the logarithm yy is the exponent to which bb must be raised to get xx. Also due to the fact that we switch the xx and yy values, the domain and range of the exponential function are switched for the logarithmic function. This means the domain of the logarithmic function is (0,)(0, \infty) and the range is (,)(-\infty, \infty).

Exponential and Logarithmic Graph
Fig. 1 - Exponential and Logarithmic Graph
note

Exponential functions are one-to-one functions which allows us to have inverse functions. This also means that logarithmic functions are one-to-one functions.

Converting Forms

Given an equation in logarithmic form logb(x)=y\log_b(x) = y, we can convert it to exponential form by first examining the equation and identifying the values of bb, yy, and xx. We can then substitute these values into by=xb^y = x to get our converted form.

Example\underline{Example}

Write the equation log5(25)=2\log_5 (25) = 2 in exponential form.

Using the equation, we can identify that b=5b = 5, x=25x = 25, and y=2y = 2.

Substituting these values into by=xb^y = x gives a solution of 52=255^2 = 25.

The process of converting forms from exponential functions to logarithmic functions is similar to our process above. Given an equation in exponential form by=xb^y = x, we can convert it to logarithmic form by first examining the equation and identifying the values of bb, yy, and xx. We can then substitute these values into logb(x)=y\log_b(x) = y to get our converted form.

Example\underline{Example}

Write the equation 23=82^3 = 8 in exponential form.

Using the equation, we can identify that b=2b = 2, y=3y = 3, and x=8x = 8.

Substituting these values into logb(x)=y\log_b(x) = y gives a solution of log2(8)=3\log_2(8) = 3.

Evaluation

Given a logarithm of the form y=logb(x)y = \log_b(x), we can evaluate it mentally. Firstly, we rewrite the argument xx as a power of bb which gives us by=xb^y = x. After this we use previous knowledge of powers of bb to identify yy by asking: "What exponent should bb be raised in order to get xx?".

Example\underline{Example}

Evaluate y=log2(132)y = \log_2(\frac{1}{32}).

Firstly, rewriting this in exponential form, we get 2y=1322^y = \frac{1}{32}. Next, we ask, "To what exponent must 22 be raised in order to get 132\frac{1}{32}?".

We know that 25=322^5 = 32, but we need to reciprocal of this. We can use the property of exponents where ba=1bab^{-a} = \frac{1}{b^a} to get 25=125=1322^{-5} = \frac{1}{2^5} = \frac{1}{32}.

Therefore, log2(132)=5\log_2(\frac{1}{32}) = -5.

Common Logarithms

A common logarithm is a logarithm with base 1010 which we can also write as log(x)\log(x) instead of log10(x)\log_{10}(x). Whenever the base is omitted from the logarithmic function, we are refering to the common logarithm. The common logarithm still follows the same rules as other logarithms meaning for x>0x > 0, y=log(x)y = \log(x) is equivalent to 10y=x10^y = x and the logarithm yy is the exponent to which 1010 must be raised to get xx. Finally, we read log(x)\log(x) as, "the logarithm with base 1010 of xx" or "log base 1010 of xx".

Natural Logarithms

A natural logarithm is a logarithm with base ee which we can also write as ln(x)\ln(x) instead of loge(x)\log_e(x). The natural logarithm still follows the same rules as other logarithms meaning for x>0x > 0, y=ln(x)y = \ln(x) is equivalent to ey=xe^y = x and the logarithm yy is the exponent to which ee must be raised to get xx. Finally, we read ln(x)\ln(x) as, "the logarithm with base ee of xx" or "the natural logarithm of xx".

note

Since the functions y=exy = e^x and y=ln(x)y = \ln(x) are inverse functions, ln(ex)=x\ln(e^x) = x for all xx and eln(x)=xe^{\ln(x)} = x for x>0x > 0.