Logarithmic Function — Definition, Formula & Examples
A logarithmic function is the inverse of an exponential function — it answers the question "what exponent do I need?" For example, because .
The logarithmic function with base (where and ) is defined as , where if and only if . Its domain is and its range is .
Key Formula
Where:
- = Base of the logarithm (b > 0, b ≠ 1)
- = Argument (input); must be positive
- = Output — the exponent that b must be raised to in order to equal x
How It Works
To evaluate , ask yourself: " raised to what power gives ?" The graph of passes through for every base, because . When , the function increases slowly and has a vertical asymptote at . When , the function is decreasing instead. You can convert between logarithmic and exponential form freely: is the same statement as .
Worked Example
Problem: Evaluate .
Rewrite as an exponential question: Ask: 5 raised to what power equals 125?
Find the exponent: Since , the exponent is 3.
State the result: Therefore the logarithm equals 3.
Answer:
Why It Matters
Logarithmic functions appear whenever you solve exponential equations — for instance, finding how long an investment takes to double or how many half-lives a radioactive sample has undergone. They also form the basis of the Richter scale, the decibel scale, and the pH scale in chemistry.
Common Mistakes
Mistake: Trying to take the logarithm of zero or a negative number.
Correction: The domain of is only. Expressions like or are undefined in the real numbers.
