Sub topic 3
Switching Between Exponential and Logarithmic Form
Assume you know integer and fractional exponents, basic algebra, function notation, and how to use a calculator or basic Python. This chapter focuses on translating between two equivalent ways to write the same relationship.
The definition of a logarithm
A logarithm is an exponent. The statement
\[ \log_b(x)=y \]
means exactly the same thing as
\[ b^y=x. \]
Read \(\log_b(x)\) as “the logarithm of \(x\) with base \(b\).” The base is the number being raised to a power. The argument is the number inside the parentheses.
For example:
\[ \log_2(8)=3 \]
because
\[ 2^3=8. \]
The logarithmic form asks, “What exponent on 2 produces 8?” The exponential form gives the answer directly.
Converting in both directions
To convert exponential form to logarithmic form:
- Identify the base.
- Identify the exponent.
- Identify the result.
- Put them into the pattern \(\log_{\text{base}}(\text{result})=\text{exponent}\).
For example:
\[ 5^3=125 \]
becomes
\[ \log_5(125)=3. \]
To convert logarithmic form to exponential form, use the same three values in reverse positions:
\[ \log_7(49)=2 \]
becomes
\[ 7^2=49. \]
| Exponential form | Logarithmic form |
|---|---|
| \(3^4=81\) | \(\log_3(81)=4\) |
| \(10^2=100\) | \(\log_{10}(100)=2\) |
| \(2^{-3}=\frac18\) | \(\log_2\left(\frac18\right)=-3\) |
The base stays the base. The exponent becomes the value of the logarithm. The result becomes the argument.
Logarithms and exponentials are inverses
Exponential and logarithmic functions undo each other. This is the same relationship as addition and subtraction or multiplication and division.
\[ \log_b(b^x)=x \]
because the logarithm asks for the exponent that was used. In the other direction,
\[ b^{\log_b(x)}=x. \]
For example:
\[ \log_3(3^5)=5 \]
and
\[ 3^{\log_3(20)}=20. \]
The inverse relationship only applies when the base is valid:
\[ b>0,\qquad b\ne1. \]
A logarithm also requires a positive argument:
\[ x>0. \]
Thus, \(\log2(0)\) and \(\log2(-4)\) are not real-number expressions.
import math
# Convert log base 3 of 20 to a decimal approximation.
value = math.log(20) / math.log(3)
print(round(value, 3)) # 2.727
# Check the equivalent exponential statement.
print(math.isclose(3 ** value, 20.0)) # TrueSpecial values
The definition immediately gives two useful facts:
\[ \log_b(1)=0 \]
because \(b^0=1\), and
\[ \log_b(b)=1 \]
because \(b^1=b\).
For example:
\[ \log5(1)=0,\qquad \log5(5)=1. \]
These facts work for every valid base.
A reliable checking method
When you are unsure about a conversion, rewrite the logarithm using the definition:
\[ \log_b(x)=y \quad\Longleftrightarrow\quad b^y=x. \]
For instance, \(\log4(64)=3\) is correct because \(4^3=64\). However, \(\log4(64)=2\) is false because \(4^2=16\).
Exercise
Convert 6^(-2) = 1/36 to logarithmic form, and explain why log₆(1/36) cannot equal 2.
Show answer
The logarithmic form is log₆(1/36) = -2. Since 6^2 = 36 rather than 1/36, the exponent must be -2.