01 / 21
log

Logarithmic
Functions

Master the inverse of exponentials: understand how \(\log_b x\) works, graph transformations, key properties, and real-world applications.

AP Precalculus

What Is a Logarithm?

A logarithm answers the question: "To what exponent must I raise a base to get a certain number?" If \( b^y = x \), then we write \( \log_b x = y \).

\( \log_2 8 = 3 \)
because \( 2^3 = 8 \)
\( \log_{10} 100 = 2 \)
because \( 10^2 = 100 \)
\( \log_5 1 = 0 \)
because \( 5^0 = 1 \)

Logarithms as Inverses

The function \( f(x) = \log_b x \) is the inverse of \( g(x) = b^x \). This means their graphs are reflections of each other across the line \( y = x \).

y = x x y 0 1 2 3 4 1 2 \( y = 2^x \) \( y = \log_2 x \)

Domain, Range & Key Features

The graph of \( y = \log_b x \) (with \( b > 1 \)) has a distinctive shape. Understanding its features is essential for graphing and solving equations.

Domain
\( (0, \infty) \): only positive inputs
Range
\( (-\infty, \infty) \): all real outputs
x-intercept
\( (1, 0) \) always, since \( \log_b 1 = 0 \)
Vertical Asymptote
\( x = 0 \) (the y-axis)
Behavior
Increasing if \( b > 1 \), decreasing if \( 0 < b < 1 \)

Three Log Notations You Must Know

AP Precalculus uses three specific logarithmic functions. Each has a different base but follows the same rules.

\( \log x \)
Common log: base 10. Used in pH, decibels, Richter scale.
\( \ln x \)
Natural log: base \( e \approx 2.718 \). Used in calculus, growth models.
\( \log_b x \)
General log: any valid base \( b \). Flexible for any context.

Properties of Logarithms

These three properties let you expand, condense, and simplify logarithmic expressions. They arise directly from exponent rules.

1
Product Rule: \( \log_b(MN) = \log_b M + \log_b N \)
2
Quotient Rule: \( \log_b\!\left(\frac{M}{N}\right) = \log_b M - \log_b N \)
3
Power Rule: \( \log_b(M^k) = k \cdot \log_b M \)

The Change of Base Formula

Your calculator only has \(\log\) and \(\ln\) buttons. The change of base formula lets you evaluate any logarithm with either one.

Example
\( \log_3 20 = \dfrac{\log 20}{\log 3} \approx \dfrac{1.301}{0.477} \approx 2.727 \)
Why it works
Let \( y = \log_b x \). Then \( b^y = x \). Taking \(\log\) of both sides: \( y\log b = \log x \).

Exponential vs Logarithmic

\( y = b^x \) \( y = \log_b x \)
Domain \( (-\infty, \infty) \) \( (0, \infty) \)
Range \( (0, \infty) \) \( (-\infty, \infty) \)
Asymptote Horizontal: \( y = 0 \) Vertical: \( x = 0 \)
Key Point \( (0, 1) \) \( (1, 0) \)
Passes Through \( (1, b) \) \( (b, 1) \)
Growth Rapid increase Slow increase

How to Graph a Log Function

1
Identify the base \( b \) and any transformations: shifts, stretches, reflections.
2
Find the vertical asymptote. For \( \log_b(x - h) + k \), the asymptote is \( x = h \).
3
Plot key points. Start with the parent: \( (1, 0) \), \( (b, 1) \), \( (1/b, -1) \). Apply transformations to each.
4
Sketch the curve passing through the transformed points, approaching the asymptote.
5
Label domain and range based on the asymptote and transformation direction.

Example: Evaluate \( \log_4 64 \)

We need to find the exponent \( y \) such that \( 4^y = 64 \).

1
Rewrite in exponential form: \( 4^y = 64 \)
2
Express both as powers of 2: \( (2^2)^y = 2^6 \), so \( 2^{2y} = 2^6 \)
3
Set exponents equal: \( 2y = 6 \), therefore \( y = 3 \)

Example: Expand \( \log_3\!\left(\dfrac{x^2 y}{z^5}\right) \)

1
Quotient Rule: \( \log_3(x^2 y) - \log_3(z^5) \)
2
Product Rule: \( \log_3(x^2) + \log_3(y) - \log_3(z^5) \)
3
Power Rule: \( 2\log_3 x + \log_3 y - 5\log_3 z \)

Example: Solve \( \log_2(3x - 1) = 5 \)

1
Convert to exponential form: \( 2^5 = 3x - 1 \)
2
Simplify: \( 32 = 3x - 1 \)
3
Solve: \( 3x = 33 \), so \( x = 11 \)
4
Check domain: \( 3(11) - 1 = 32 > 0 \) ✓

Graph of \( y = \ln x \)

x y 0 1 2 3 4 5 0 1 -1 (1, 0) (e, 1) x = 0 \( y = \ln x \)

Transformations of \( y = \log_b x \)

The general form \( y = a\log_b(x - h) + k \) involves four transformation parameters.

\( h \): Horizontal Shift
Moves graph left/right. Asymptote becomes \( x = h \).
\( k \): Vertical Shift
Moves graph up/down. Does not change asymptote.
\( a \): Vertical Stretch
Stretches if \( |a| > 1 \), compresses if \( |a| < 1 \). Reflects if \( a < 0 \).

Common Mistakes to Avoid

✕ Log of a Sum
\( \log(a + b) \neq \log a + \log b \). The product rule applies to \( \log(ab) \), not \( \log(a + b) \).
✕ Log Subtraction
\( \log a - \log b \neq \log(a - b) \). Use quotient rule: \( \log a - \log b = \log\!\left(\frac{a}{b}\right) \).
✕ Forgetting Domain
The argument must be positive. Always check that solutions don't make the argument zero or negative.

Summary of Log Properties

Property Rule Example
Product \( \log_b(MN) = \log_b M + \log_b N \) \( \log(6) = \log(2) + \log(3) \)
Quotient \( \log_b\!\left(\frac{M}{N}\right) = \log_b M - \log_b N \) \( \log\!\left(\frac{5}{2}\right) = \log 5 - \log 2 \)
Power \( \log_b(M^k) = k\log_b M \) \( \log(x^3) = 3\log x \)
Change of Base \( \log_b x = \frac{\log x}{\log b} \) \( \log_7 50 = \frac{\ln 50}{\ln 7} \)
Inverse \( b^{\log_b x} = x \) and \( \log_b(b^x) = x \) \( 10^{\log 5} = 5 \)

Question 1 of 5

Evaluate \( \log_3 81 \).

Question 2 of 5

Which expression equals \( \log_5(x^3 y) \)?

Question 3 of 5

What is the domain of \( f(x) = \log_2(x - 4) \)?

Question 4 of 5

Solve: \( \log(x) + \log(x - 3) = 1 \)

Question 5 of 5

Which graph represents \( y = -\ln(x - 2) \)?