Logarithm Function- Properties, Graphs, and Applications
What Is a Logarithm?
A logarithm answers a simple question: what exponent produces a given number?
If 23 = 8, then log2(8) = 3. That's it. The logarithm tells you the power you need when the base is fixed.
Mathematicians write it as logb(x) = y, which means by = x. The base is b, the result is x, and y is the exponent you're solving for.
Types of Logarithms
Common Logarithm (log)
Base 10. When you see log(x) without a subscript, assume base 10. Useful for decibel scales and scientific notation.
Natural Logarithm (ln)
Base e (approximately 2.718). Written as ln(x). Shows up constantly in calculus, growth models, and probability. You can't simplify e into a rational number, so natural logs are unavoidable in advanced math.
Binary Logarithm (log2)
Base 2. Used in computer science for algorithm analysis and data storage calculations.
Core Properties of Logarithms
These rules let you manipulate logs algebraically. Commit these to memory—they appear in every logarithm problem you'll encounter.
- Product Rule: logb(xy) = logb(x) + logb(y)
- Quotient Rule: logb(x/y) = logb(x) − logb(y)
- Power Rule: logb(xn) = n · logb(x)
- Change of Base: logb(x) = logk(x) / logk(b) for any positive base k
- Zero Property: logb(1) = 0 (because b0 = 1)
- Identity Property: logb(b) = 1
Why the Change of Base Formula Matters
Calculators only give you log10 and ln. If you need log2(50), convert it: log2(50) = ln(50)/ln(2). Both ln values are calculator-accessible.
Graphing Logarithmic Functions
The graph of y = logb(x) has distinct features you need to recognize.
Key Characteristics
- Domain: x > 0 only. You cannot take a log of zero or a negative number.
- Range: All real numbers (−∞, ∞)
- Y-intercept: None. The graph never crosses the y-axis.
- X-intercept: (1, 0). Every log function passes through this point.
- Vertical Asymptote: x = 0. The graph approaches but never touches the y-axis.
How the Base Affects the Shape
When b > 1, the function increases as x increases. When 0 < b < 1, the function decreases as x increases—the graph flips horizontally.
📈 For b > 1: steeper curve as b increases
📉 For 0 < b < 1: curve falls and approaches the asymptote from above
Inverse Relationship with Exponentials
Log and exponential functions are inverses. The graph of y = logb(x) is a reflection of y = bx across the line y = x. If you understand exponentials, logs make intuitive sense.
Logarithm Function Comparison
| Property | y = log2(x) | y = ln(x) | y = log(x) |
|---|---|---|---|
| Base | 2 | e ≈ 2.718 | 10 |
| X-intercept | (1, 0) | (1, 0) | (1, 0) |
| Vertical Asymptote | x = 0 | x = 0 | x = 0 |
| Rate of increase | Fast | Moderate | Slow |
| Common use | Computer science | Calculus, statistics | Science, engineering |
Real-World Applications
Logs aren't abstract exercises. They measure things that grow or shrink exponentially.
Richter Scale
Each whole number increase represents 10 times more ground motion. An earthquake measuring 6.0 has 10× the amplitude of a 5.0 earthquake. The formula: M = log10(A/A0).
pH Scale
pH = −log10[H+]. Neutral water has pH 7. Battery acid (pH 1) has 1,000,000× more hydrogen ions than neutral water.
Compound Interest
Money growing continuously follows A = Pert. To find how long it takes to double, solve 2 = ert, which gives t = ln(2)/r. This is why natural logs appear in finance.
Sound Measurement (Decibels)
dB = 10 × log10(I/I0). A 70 dB sound is 10× more intense than 60 dB. Your ears perceive this logarithmically, which is why decibels use logs.
Algorithm Analysis
Binary search runs in O(log2n) time. If you have 1 billion items, binary search takes at most log2(109) ≈ 30 comparisons. Without logs, you'd need 1 billion comparisons in a linear search.
Solving Logarithmic Equations
Here's how to actually work with logs in practice.
Example 1: Basic Evaluation
Solve log3(81) = ?
Ask: 3 to what power gives 81?
34 = 81
Answer: 4
Example 2: Converting Between Forms
Rewrite 25 = 32 as a logarithm.
log2(32) = 5. The base becomes the base of the log, the result becomes the argument, and the exponent becomes the answer.
Example 3: Using Log Properties
Simplify log2(8) + log2(4).
Option A (product rule): log2(8 × 4) = log2(32) = 5
Option B (evaluate separately): log2(8) = 3, log2(4) = 2. Sum = 5
Example 4: Solving for x
Solve 2x = 17.
Take log of both sides: log(2x) = log(17)
Apply power rule: x · log(2) = log(17)
Solve: x = log(17)/log(2)
x ≈ 4.09
Example 5: Change of Base
Calculate log5(100) using a standard calculator.
log5(100) = ln(100)/ln(5)
= 4.605/1.609
≈ 2.86
Common Mistakes to Avoid
- log(x + y) ≠ log(x) + log(y). This is wrong. Only products split into sums.
- log(x)/log(y) ≠ logx(y). You need to swap: logx(y) = log(y)/log(x).
- Domain restrictions are real. If your solution gives log(−3), it's invalid. Check your work.
- Confusing ln and log10. In higher math, log usually means ln. In science and engineering, it often means base 10. Check context.
When to Use Logarithms
Reach for logs when you're dealing with exponential relationships and need to:
- Isolate an exponent in an equation
- Compress large ranges (like earthquake magnitudes or sound levels)
- Transform multiplicative relationships into additive ones
- Find doubling times or half-lives
Logs turn multiplication into addition, powers into multiplication, and exponentials into linear functions. That's the real value—they make complicated growth manageable.