Lesson 2: Logarithmic Functions
Estimated time: 35-40 minutes
Learning Objectives
By the end of this lesson, you will be able to:
- Understand logarithms as the inverse of exponential functions
- Convert between exponential and logarithmic forms
- Evaluate logarithms with various bases including common and natural logarithms
- Apply the fundamental properties of logarithms
- Graph logarithmic functions and identify key features
- Use the change of base formula to evaluate logarithms with any base
Introduction: What is a Logarithm?
In the previous lesson, we learned about exponential functions like f(x) = 2x. These functions answer the question: "What is 2 raised to the power of x?" But what if we want to reverse the question?
If 2x = 8, what is x? We need a way to "undo" the exponential operation. This is where logarithms come in.
Logarithm: A logarithm is the inverse operation of exponentiation. It answers the question: "To what power must we raise the base to get a certain number?"
y = logb(x) if and only if by = x
where b > 0, b ≠ 1, and x > 0
In the expression logb(x):
- b is called the base
- x is called the argument
- y (the result) is the exponent or logarithm
Reading Logarithmic Notation
log2(8) = 3 is read as: "log base 2 of 8 equals 3"
This means: "2 raised to the 3rd power equals 8" or 23 = 8
Important Restrictions:
- The base b must be positive and not equal to 1 (b > 0, b ≠ 1)
- The argument x must be positive (x > 0)
- You cannot take the logarithm of zero or a negative number
Section 1: Evaluating Logarithms
The key to evaluating logarithms is to convert between exponential and logarithmic forms. Remember:
Exponential ↔ Logarithmic Conversion
by = x ⟺ logb(x) = y
Example 1: Converting Exponential to Logarithmic Form
Convert each exponential equation to logarithmic form:
a) 23 = 8
Solution:
- Base: b = 2
- Exponent: y = 3
- Result: x = 8
Logarithmic form: log2(8) = 3
b) 52 = 25
Solution:
Logarithmic form: log5(25) = 2
c) 10-2 = 0.01
Solution:
Logarithmic form: log10(0.01) = -2
d) 30 = 1
Solution:
Logarithmic form: log3(1) = 0
Example 2: Converting Logarithmic to Exponential Form
Convert each logarithmic equation to exponential form:
a) log4(16) = 2
Solution:
This means "4 to what power equals 16?" The answer is 2.
Exponential form: 42 = 16
b) log5(125) = 3
Solution:
Exponential form: 53 = 125
c) log7(1) = 0
Solution:
Exponential form: 70 = 1
d) log2(1/8) = -3
Solution:
Exponential form: 2-3 = 1/8
Example 3: Evaluating Logarithms
Evaluate each logarithm:
a) log2(8)
Solution:
Ask: "2 to what power equals 8?"
Since 23 = 8, we have log2(8) = 3
b) log3(27)
Solution:
Ask: "3 to what power equals 27?"
Since 33 = 27, we have log3(27) = 3
c) log5(1/25)
Solution:
Ask: "5 to what power equals 1/25?"
Since 5-2 = 1/25, we have log5(1/25) = -2
d) log10(1000)
Solution:
Ask: "10 to what power equals 1000?"
Since 103 = 1000, we have log10(1000) = 3
Special Logarithm Values
For any base b > 0, b ≠ 1:
- logb(1) = 0 because b0 = 1
- logb(b) = 1 because b1 = b
- logb(bn) = n for any real number n
Example 4: Using Special Logarithm Values
Evaluate each logarithm:
a) log7(1)
Solution: Using the property logb(1) = 0
log7(1) = 0
b) log9(9)
Solution: Using the property logb(b) = 1
log9(9) = 1
c) log4(45)
Solution: Using the property logb(bn) = n
log4(45) = 5
Example 5: Solving for x in Logarithmic Equations
Solve for x: logx(16) = 2
Solution:
Step 1: Convert to exponential form
logx(16) = 2 means x2 = 16
Step 2: Solve for x
x2 = 16
x = ±4
Step 3: Check restrictions
The base must be positive and not equal to 1, so x > 0
x = 4 (we reject x = -4)
Section 2: Common and Natural Logarithms
Two logarithm bases are so important that they have special notation:
Common Logarithm: Base 10 logarithm
log10(x) = log(x)
When no base is written, the base is assumed to be 10.
Natural Logarithm: Base e logarithm (e ≈ 2.71828...)
loge(x) = ln(x)
The natural logarithm uses the special notation "ln" instead of "log".
Why These Logarithms Are Special
- Common logarithm (base 10): Used in pH calculations, decibels, Richter scale, and many scientific measurements
- Natural logarithm (base e): Appears naturally in calculus, continuous growth/decay, and many mathematical formulas
Example 6: Evaluating Common Logarithms
a) log(1000)
Solution:
This means log10(1000)
Ask: "10 to what power equals 1000?"
Since 103 = 1000, we have log(1000) = 3
b) log(100)
Solution:
Since 102 = 100, we have log(100) = 2
c) log(0.01)
Solution:
Since 10-2 = 0.01, we have log(0.01) = -2
d) log(1)
Solution:
Since 100 = 1, we have log(1) = 0
Example 7: Evaluating Natural Logarithms
a) ln(e)
Solution:
This means loge(e)
Using the property logb(b) = 1
ln(e) = 1
b) ln(e3)
Solution:
Using the property logb(bn) = n
ln(e3) = 3
c) ln(1)
Solution:
Using the property logb(1) = 0
ln(1) = 0
d) ln(1/e)
Solution:
Since 1/e = e-1
ln(1/e) = ln(e-1) = -1
Example 8: Using a Calculator for Logarithms
Most calculators cannot directly compute logarithms with arbitrary bases, but they can compute common (log) and natural (ln) logarithms.
a) log(50)
Solution:
Using a calculator: log(50) ≈ 1.699
b) ln(20)
Solution:
Using a calculator: ln(20) ≈ 2.996
c) log(0.5)
Solution:
Using a calculator: log(0.5) ≈ -0.301
Section 3: Properties of Logarithms
Logarithms have several important properties that make them powerful tools for solving problems. These properties follow directly from the laws of exponents.
Fundamental Logarithm Properties
For b > 0, b ≠ 1, and M, N > 0:
1. Product Rule: logb(M · N) = logb(M) + logb(N)
2. Quotient Rule: logb(M / N) = logb(M) - logb(N)
3. Power Rule: logb(Mp) = p · logb(M)
Why These Properties Work
Product Rule: If bx = M and by = N, then M · N = bx · by = bx+y
Therefore, logb(M · N) = x + y = logb(M) + logb(N)
Quotient Rule: If bx = M and by = N, then M / N = bx / by = bx-y
Therefore, logb(M / N) = x - y = logb(M) - logb(N)
Power Rule: If bx = M, then Mp = (bx)p = bxp
Therefore, logb(Mp) = xp = p · logb(M)
Example 9: Using the Product Rule to Expand
a) log2(8x)
Solution:
log2(8x) = log2(8) + log2(x)
Since log2(8) = 3:
log2(8x) = 3 + log2(x)
b) ln(5xy)
Solution:
ln(5xy) = ln(5) + ln(x) + ln(y)
ln(5xy) = ln(5) + ln(x) + ln(y)
Example 10: Using the Quotient Rule to Expand
a) log(x/100)
Solution:
log(x/100) = log(x) - log(100)
Since log(100) = 2:
log(x/100) = log(x) - 2
b) ln(x/y)
Solution:
ln(x/y) = ln(x) - ln(y)
Example 11: Using the Power Rule
a) log3(x5)
Solution:
log3(x5) = 5 · log3(x)
b) ln(√x)
Solution:
Since √x = x1/2:
ln(√x) = ln(x1/2) = (1/2) · ln(x)
ln(√x) = (1/2)ln(x)
c) log2(1/x3)
Solution:
Since 1/x3 = x-3:
log2(1/x3) = log2(x-3) = -3 · log2(x)
log2(1/x3) = -3log2(x)
Example 12: Expanding Complex Logarithmic Expressions
a) log2(8x3)
Solution:
Step 1: Apply product rule
log2(8x3) = log2(8) + log2(x3)
Step 2: Apply power rule to second term
= log2(8) + 3log2(x)
Step 3: Simplify log2(8)
Since log2(8) = 3:
log2(8x3) = 3 + 3log2(x)
b) ln(x2/y)
Solution:
Step 1: Apply quotient rule
ln(x2/y) = ln(x2) - ln(y)
Step 2: Apply power rule to first term
ln(x2/y) = 2ln(x) - ln(y)
Example 13: Condensing Logarithmic Expressions
Write as a single logarithm:
a) log(x) + 2log(y)
Solution:
Step 1: Apply power rule to second term
log(x) + 2log(y) = log(x) + log(y2)
Step 2: Apply product rule
log(x) + 2log(y) = log(xy2)
b) 3ln(x) - ln(y) + ln(z)
Solution:
Step 1: Apply power rule
3ln(x) - ln(y) + ln(z) = ln(x3) - ln(y) + ln(z)
Step 2: Apply product rule to first and third terms
= ln(x3z) - ln(y)
Step 3: Apply quotient rule
3ln(x) - ln(y) + ln(z) = ln(x3z/y)
Example 14: Using Properties to Evaluate
a) log2(4) + log2(8)
Solution:
Step 1: Apply product rule
log2(4) + log2(8) = log2(4 · 8) = log2(32)
Step 2: Evaluate
Since 25 = 32:
log2(4) + log2(8) = 5
b) log5(125) - log5(5)
Solution:
Step 1: Apply quotient rule
log5(125) - log5(5) = log5(125/5) = log5(25)
Step 2: Evaluate
Since 52 = 25:
log5(125) - log5(5) = 2
Common Mistakes to Avoid:
- log(M + N) ≠ log(M) + log(N) (There is no sum/difference property for addition/subtraction inside the log)
- log(M - N) ≠ log(M) - log(N)
- log(M/N) ≠ log(M) / log(N)
- The properties only work when the operations are INSIDE the logarithm
Section 4: Graphs of Logarithmic Functions
Since logarithmic functions are inverses of exponential functions, their graphs are reflections of exponential graphs across the line y = x.
Basic Logarithmic Function: f(x) = logb(x) where b > 1
Key Features:
- Domain: (0, ∞) - only positive x-values
- Range: (-∞, ∞) - all real numbers
- x-intercept: (1, 0)
- Vertical asymptote: x = 0 (the y-axis)
- Passes through (b, 1)
- Increasing if b > 1, decreasing if 0 < b < 1
Example 15: Graphing f(x) = log2(x)
Solution:
Step 1: Identify key points
| x | log2(x) | Point |
|---|---|---|
| 1/4 | -2 | (1/4, -2) |
| 1/2 | -1 | (1/2, -1) |
| 1 | 0 | (1, 0) |
| 2 | 1 | (2, 1) |
| 4 | 2 | (4, 2) |
| 8 | 3 | (8, 3) |
Step 2: Identify features
- Vertical asymptote: x = 0
- x-intercept: (1, 0)
- Function increases slowly as x increases
- Function decreases rapidly as x approaches 0 from the right
Example 16: Graphing f(x) = ln(x)
Solution:
Step 1: Identify key points
| x | ln(x) | Point | Approximation |
|---|---|---|---|
| 0.5 | ln(0.5) | (0.5, -0.693) | ≈ -0.693 |
| 1 | ln(1) | (1, 0) | 0 |
| e ≈ 2.718 | ln(e) | (e, 1) | 1 |
| 3 | ln(3) | (3, 1.099) | ≈ 1.099 |
| 5 | ln(5) | (5, 1.609) | ≈ 1.609 |
Step 2: Features are similar to log2(x)
- Vertical asymptote: x = 0
- x-intercept: (1, 0)
- Passes through (e, 1)
Relationship Between Exponential and Logarithmic Graphs
The graphs of f(x) = bx and g(x) = logb(x) are reflections of each other across the line y = x.
If (a, b) is on the exponential graph, then (b, a) is on the logarithmic graph.
Example 17: Graphing f(x) = log(x) + 2 (Vertical Shift)
Solution:
Step 1: Start with the basic graph of log(x)
Step 2: Apply transformation
The "+2" shifts the entire graph UP by 2 units
Step 3: Identify new key points
- Original point (1, 0) becomes (1, 2)
- Original point (10, 1) becomes (10, 3)
- Original point (100, 2) becomes (100, 4)
Step 4: Features
- Vertical asymptote: still x = 0 (unchanged)
- x-intercept: Solve log(x) + 2 = 0 → log(x) = -2 → x = 0.01
- y-intercept: None (x = 0 not in domain)
Example 18: Graphing f(x) = log(x - 3) (Horizontal Shift)
Solution:
Step 1: Start with the basic graph of log(x)
Step 2: Apply transformation
The "-3" inside shifts the entire graph RIGHT by 3 units
Step 3: Identify new key points
- Original point (1, 0) becomes (4, 0)
- Original point (10, 1) becomes (13, 1)
- Original point (100, 2) becomes (103, 2)
Step 4: Features
- Vertical asymptote: x = 3 (shifted right by 3)
- Domain: (3, ∞)
- x-intercept: (4, 0)
Example 19: Determining the Equation from a Graph
A logarithmic function has a vertical asymptote at x = 0, passes through (5, 1), and has the general form f(x) = logb(x). Find b.
Solution:
Step 1: Use the point (5, 1)
Since the function passes through (5, 1):
f(5) = 1
logb(5) = 1
Step 2: Convert to exponential form
b1 = 5
b = 5
Answer: f(x) = log5(x)
Section 5: Change of Base Formula
Calculators typically only have buttons for log (base 10) and ln (base e). To evaluate logarithms with other bases, we use the change of base formula.
Change of Base Formula
For any positive numbers a, b, and x (where a ≠ 1 and b ≠ 1):
logb(x) = loga(x) / loga(b)
Most commonly, we use a = 10 or a = e:
logb(x) = log(x) / log(b) = ln(x) / ln(b)
Why the Change of Base Formula Works
Let y = logb(x), which means by = x
Taking loga of both sides:
loga(by) = loga(x)
Using the power rule:
y · loga(b) = loga(x)
Solving for y:
y = loga(x) / loga(b)
Example 20: Using Change of Base to Evaluate log5(20)
Solution using base 10:
Step 1: Apply change of base formula
log5(20) = log(20) / log(5)
Step 2: Use calculator
log(20) ≈ 1.301
log(5) ≈ 0.699
Step 3: Divide
log5(20) ≈ 1.301 / 0.699 ≈ 1.861
Solution using base e:
log5(20) = ln(20) / ln(5)
≈ 2.996 / 1.609
≈ 1.861 (same result)
Example 21: Evaluating log2(50) Using a Calculator
Solution:
Step 1: Apply change of base formula
log2(50) = log(50) / log(2)
Step 2: Use calculator
log(50) ≈ 1.699
log(2) ≈ 0.301
Step 3: Divide
log2(50) ≈ 1.699 / 0.301 ≈ 5.644
Example 22: Comparing Logarithms with Different Bases
Which is larger: log3(50) or log7(50)?
Solution:
Step 1: Evaluate log3(50)
log3(50) = log(50) / log(3) ≈ 1.699 / 0.477 ≈ 3.561
Step 2: Evaluate log7(50)
log7(50) = log(50) / log(7) ≈ 1.699 / 0.845 ≈ 2.011
Step 3: Compare
log3(50) > log7(50)
Intuition: A smaller base requires a larger exponent to reach the same value.
Example 23: Solving for x Using Change of Base
Solve for x: log3(x) = 2.5
Method 1: Convert to exponential form
log3(x) = 2.5 means 32.5 = x
Using a calculator: 32.5 = 35/2 = √(35) = √243
x ≈ 15.59
Method 2: Using change of base
log3(x) = 2.5
log(x) / log(3) = 2.5
log(x) = 2.5 · log(3)
log(x) ≈ 2.5 · 0.477 ≈ 1.193
x = 101.193
x ≈ 15.59
Check Your Understanding
1. Convert to logarithmic form: 34 = 81
Answer: log3(81) = 4
Explanation: The base is 3, the exponent is 4, and the result is 81.
2. Convert to exponential form: log6(216) = 3
Answer: 63 = 216
Explanation: The logarithm tells us that 6 to the 3rd power equals 216.
3. Evaluate: log4(64)
Answer: 3
Solution: Ask "4 to what power equals 64?" Since 43 = 64, log4(64) = 3
4. Evaluate: ln(e7)
Answer: 7
Explanation: Using the property logb(bn) = n, we have ln(e7) = 7
5. Expand using logarithm properties: log5(25x2)
Solution:
log5(25x2) = log5(25) + log5(x2)
= log5(25) + 2log5(x)
= 2 + 2log5(x) (since log5(25) = 2)
Answer: 2 + 2log5(x)
6. Condense to a single logarithm: 4log(x) - 2log(y)
Solution:
4log(x) - 2log(y) = log(x4) - log(y2)
= log(x4/y2)
Answer: log(x4/y2)
7. What is the domain of f(x) = log(x - 5)?
Answer: (5, ∞)
Explanation: The argument of a logarithm must be positive, so x - 5 > 0, which means x > 5
8. What is the vertical asymptote of f(x) = ln(x + 3)?
Answer: x = -3
Explanation: The vertical asymptote occurs where the argument equals zero. x + 3 = 0 when x = -3
9. Use the change of base formula to evaluate log4(30). Round to three decimal places.
Solution:
log4(30) = log(30) / log(4)
≈ 1.477 / 0.602
Answer: ≈ 2.453
10. True or False: log(x + y) = log(x) + log(y)
Answer: FALSE
Explanation: This is a common mistake. The product rule states log(xy) = log(x) + log(y), not log(x + y). There is no property for the logarithm of a sum.
Key Takeaways
- A logarithm is the inverse of an exponential function: y = logb(x) if and only if by = x
- The domain of a logarithmic function is (0, ∞) and the range is (-∞, ∞)
- Special values: logb(1) = 0, logb(b) = 1, and logb(bn) = n
- Common logarithm uses base 10: log(x) = log10(x)
- Natural logarithm uses base e: ln(x) = loge(x)
- Product rule: logb(MN) = logb(M) + logb(N)
- Quotient rule: logb(M/N) = logb(M) - logb(N)
- Power rule: logb(Mp) = p · logb(M)
- Logarithmic graphs have a vertical asymptote at x = 0 and pass through (1, 0)
- Change of base formula: logb(x) = log(x) / log(b) = ln(x) / ln(b)