Introduction to Logarithms: Meaning, Rules, and Examples
Learn what a logarithm means, convert between exponential and log form, and find the domain, graph, and value with six examples.
TL;DR
A logarithm tells you which exponent produces a number. The equation means . For real logarithms, the base must be positive and different from 1, and the input must be positive.
Key Points
- The base is the number raised to a power. The logarithm gives the power.
- A logarithm can be negative or fractional even though its input is positive.
- Common logarithms use base 10, and natural logarithms use base .
- Exponential and logarithmic functions of the same base undo each other.
- For a base greater than 1, the logarithm increases as the input increases.
What is a logarithm?
An exponent tells you what a base raised to a power equals. A logarithm answers the reverse question. Since , the base-3 logarithm of 81 equals 4. Read as “log base 3 of 81 is 4.”
The three pieces stay the same when you rewrite the equation. The base remains the base, the input becomes the exponential result, and the logarithm value becomes the exponent. To practice the conversion, circle the exponent and underline the exponential result before rewriting the equation. OpenStax, Logarithmic Functions
| Exponential form | Logarithmic form | How to read it |
|---|---|---|
| A power of 3 takes 4 to 64 | ||
| A power of takes 10 to 0.01 | ||
| A square root takes 9 to 3 |
What are the domain, range, and graph of a logarithm?
Use a real base with . Every real power of this base is positive. The input to must therefore satisfy . The output can be any real number because those outputs are the exponents of .
If the base were 1, every power would equal 1, so there would be no unique exponent to recover. Negative bases do not give a single real exponential function on all real exponents. For example, the exponent would ask for a real square root of a negative value.
The logarithm and the corresponding exponential are inverse functions. Reflect one graph across to get the other. The log graph passes through and because and . It has a vertical asymptote at . It rises when and falls when . OpenStax, Evaluate and Graph Logarithmic Functions
When do you use common and natural logarithms?
A common logarithm has base 10. Many calculators label it . A natural logarithm, marked , uses Euler’s number , approximately 2.71828. Natural logarithms undo in continuously growing or decaying models. Computer science often uses base 2. Since without a base can depend on the field, check the convention in the problem.
For a calculator without a button for the desired base, use the change-of-base rule. The numerator and denominator must use the same base.
The log table guide explains how to estimate base-10 logs without an electronic calculator. OpenStax, Exponential and Logarithmic Functions
Which log rules follow from exponent rules?
Multiplying two powers of the same base adds their exponents. That is why for positive . Dividing subtracts their exponents, so . Raising a positive input to a power multiplies the exponent, giving .
For instance, . Verify with . The log rules guide shows how to expand longer expressions and check that every original log input is allowed. OpenStax, Logarithmic Properties
Worked Logarithm Examples
Example 1
Rewrite as a logarithm.
- The base is 5 and the exponential result is 125.
- The exponent 3 becomes the log value.
- The equation is .
Example 2
Evaluate .
- Ask which power of 2 equals .
- Since , its reciprocal is .
- The logarithm is .
Example 3
Find .
- A power of takes the square root.
- The positive square root of 25 is 5.
- Therefore .
Example 4
Evaluate .
- Rewrite 27 as .
- Raising to takes the reciprocal of its cube and produces 27.
- The value is . For this base, inputs greater than 1 have negative logarithms.
Example 5
Solve .
- The domain requires , so .
- Rewrite as .
- Add 2 to get . It meets the domain condition.
Example 6
Starting with 12 cultures in a model, a population doubles every two hours. How long until the model reaches 96?
- After hours the model is .
- Divide by 12 to get . Taking a base-2 log gives .
- Thus hours. Three doublings take six hours and turn 12 into 96.
Mistakes That Change a Logarithm Answer
Mistake 1: Swapping the base and input
asks for a power of 2 and equals 3. asks for a power of 8 and equals .
Mistake 2: Rejecting a negative logarithm value
The input must be positive. The output has no such restriction. For example, .
Mistake 3: Splitting a sum inside a logarithm
The addition rule comes from multiplying powers. For example, is about 3.32, whereas is 4.
Try It Yourself
- Evaluate .
- Rewrite using exponential form.
- Solve .
Answers and Reasoning
- because .
- since uses base .
- , so . The log input is positive.
Frequently Asked Questions
Why is the logarithm of 1 always zero?
Every allowed base raised to zero equals 1. Therefore .
Can you take a real logarithm of zero?
No. No real exponent makes an allowed base equal to zero. For , the graph drops without bound as positive approaches zero, but the function is undefined at zero.
How do you estimate without a calculator?
Since and , the log is between 4 and 5. For a midpoint check, , so 20 gives a value below 4.5. Change of base gives approximately 4.32.
Conclusion
- Rewrite a logarithm as an exponential equation to identify its unknown.
- Check the base and positivity of the input before solving.
- Verify the result by raising the base to the recovered exponent.