← Skill tree MathScape MATH162

Logarithmic Functions

Reference: Stewart 6.3  •  Chapter: 6  •  Section: 3

Navigation: Wiki Home > Skills > Logarithmic Functions

Undoing Exponentials

Suppose you know that $2^x = 8$. What is $x$? You can see that $x = 3$ because $2^3 = 8$. But what if you know that $2^x = 10$? What power of 2 gives you 10?

This is exactly the question that logarithms answer. The logarithm is the operation that "undoes" exponentiation: it tells you what exponent was used.

The key insight: If $b^y = x$, then $y$ is called "the logarithm base $b$ of $x$," written $\log_b x = y$.

In other words: The logarithm is the exponent.

Prerequisite Map

This skillLogarithmic Functions
Leads tono further branch yet

Before You Start

Self-check: Can you answer these questions? If not, review the linked prerequisites first.

Question If you struggle...
What does $f^{-1}$ mean? How is it related to $f$? Review inverse functions
Explain why $f(x) = b^x$ (with $b > 1$) passes the horizontal line test Review one-to-one functions
Evaluate $3^4$, $2^{-3}$, and $25^{1/2}$ Review exponent rules
If $f(f^{-1}(x)) = x$, what does this tell you? This is the cancellation property of inverses
Refresh: Inverse Functions

If $f$ is one-to-one, its inverse function $f^{-1}$ satisfies:

The graph of $f^{-1}$ is the reflection of the graph of $f$ about the line $y = x$.

Refresh: Why Exponentials Have Inverses

For $b > 0$ and $b \neq 1$, the function $f(x) = b^x$ is either:

Either way, it passes the horizontal line test, so it is one-to-one and therefore has an inverse function.

Quick Reference

Property Value
Concept Inverse Functions
Course MATH162
Section Stewart 6.3
Difficulty Foundational
Time ~25 minutes

Key Concepts

The Definition of Logarithm

If $b > 0$ and $b \neq 1$, the logarithm base $b$ of $x$ is defined by:

$$\boxed{\log_b x = y \quad \Longleftrightarrow \quad b^y = x}$$

In words: $\log_b x$ is the exponent to which $b$ must be raised to get $x$.

Example: $\log_3 81 = 4$ because $3^4 = 81$.

Why the Restrictions?

Restriction Reason
$b > 0$ Negative bases create complex number issues (what is $(-2)^{1/2}$?)
$b \neq 1$ If $b = 1$, then $1^y = 1$ for all $y$; the function isn't one-to-one
$x > 0$ Since $b^y > 0$ for all $y$, logarithms can only output positive numbers

The Logarithm as an Inverse Function

The logarithmic function $f(x) = \log_b x$ is the inverse of the exponential function $g(x) = b^x$.

This gives us the cancellation equations:

$$\boxed{\log_b(b^x) = x \quad \text{for every } x \in \mathbb{R}}$$

$$\boxed{b^{\log_b x} = x \quad \text{for every } x > 0}$$

Think of it this way:

Domain and Range

Function Domain Range
$f(x) = b^x$ $\mathbb{R}$ (all real numbers) $(0, \infty)$
$f^{-1}(x) = \log_b x$ $(0, \infty)$ $\mathbb{R}$ (all real numbers)

Notice how the domain and range swap. This always happens with inverse functions.

    y                              y
    |     y = b^x                  |     y = log_b(x)
    |       /                      |           ___
    |      /                       |       ___/
    |     /                        |   ___/
    +----/------→ x                +--/----------→ x
    |  /                           | |
    | /                            | (vertical asymptote
    |/                             |  at x = 0)

Limits (Behavior at Boundaries)

For $b > 1$:

$$\lim_{x \to \infty} \log_b x = \infty \qquad \text{(grows without bound, but slowly)}$$

$$\lim_{x \to 0^+} \log_b x = -\infty \qquad \text{(vertical asymptote at } x = 0\text{)}$$

Physical interpretation: If $b = 10$, then $\log_{10}(1{,}000{,}000) = 6$. To get a logarithm of just 6, the input had to be a million. Logarithms grow very slowly.

Evaluating Logarithms

Strategy: Ask yourself "What power of the base gives me the argument?"

Examples:

Expression Question Answer Because
$\log_3 81$ $3^{?} = 81$ $4$ $3^4 = 81$
$\log_{25} 5$ $25^{?} = 5$ $\frac{1}{2}$ $25^{1/2} = \sqrt{25} = 5$
$\log_{10} 0.001$ $10^{?} = 0.001$ $-3$ $10^{-3} = \frac{1}{1000} = 0.001$
$\log_2 1$ $2^{?} = 1$ $0$ $2^0 = 1$
$\log_b b$ $b^{?} = b$ $1$ $b^1 = b$

Special Values (Memorize These)

For any valid base $b$:

$$\log_b 1 = 0 \qquad \text{(because } b^0 = 1\text{)}$$

$$\log_b b = 1 \qquad \text{(because } b^1 = b\text{)}$$

The Graph of $y = \log_b x$

Key features (for $b > 1$):

The graph is the reflection of $y = b^x$ about the line $y = x$.

Common Pitfalls

Mistake Why It's Wrong Correction
$\log_b 0 = 0$ There is no power of $b$ that equals 0 $\log_b 0$ is undefined
$\log_b(-5)$ exists $b^y$ is always positive Log of negative numbers is undefined
Confusing $\log_b x$ with $\frac{\log x}{b}$ Notation issue $\log_b x$ means "log base $b$ of $x$"
$\log_b(x + y) = \log_b x + \log_b y$ Logs don't distribute over addition This is wrong; see Laws of Logarithms

Practice Problems

Level 1 Direct Evaluation

Evaluate each logarithm.

(a) $\log_2 32$ (b) $\log_5 125$ (c) $\log_4 2$

Thought Process

For each one, ask: "The base raised to what power gives me the argument?"

(a) $2^? = 32$. Since $32 = 2 \cdot 16 = 2 \cdot 2^4 = 2^5$, the answer is 5.

(b) $5^? = 125$. Since $125 = 5 \cdot 25 = 5 \cdot 5^2 = 5^3$, the answer is 3.

(c) $4^? = 2$. We need a power of 4 that equals 2. Since $4 = 2^2$, we have $4^{1/2} = 2$. The answer is $\frac{1}{2}$.

Show Answer

(a) $\log_2 32 = \boxed{5}$ because $2^5 = 32$.

(b) $\log_5 125 = \boxed{3}$ because $5^3 = 125$.

(c) $\log_4 2 = \boxed{\frac{1}{2}}$ because $4^{1/2} = \sqrt{4} = 2$.

Level 2 Negative and Fractional Logarithms

Evaluate each logarithm.

(a) $\log_3 \frac{1}{27}$ (b) $\log_{16} 8$ (c) $\log_{100} 10$

Thought Process

(a) When the argument is a fraction, expect a negative exponent. We need $3^? = \frac{1}{27}$. Since $27 = 3^3$, we have $\frac{1}{27} = 3^{-3}$.

(b) Both 16 and 8 are powers of 2, which helps. Write $16 = 2^4$ and $8 = 2^3$. We need $(2^4)^? = 2^3$, so $2^{4?} = 2^3$, giving $? = \frac{3}{4}$.

(c) $100 = 10^2$, so $(10^2)^? = 10$ means $10^{2?} = 10^1$, so $? = \frac{1}{2}$.

Show Answer

(a) $\log_3 \frac{1}{27} = \boxed{-3}$ because $3^{-3} = \frac{1}{27}$.

(b) $\log_{16} 8 = \boxed{\frac{3}{4}}$

Verification: $16^{3/4} = (2^4)^{3/4} = 2^3 = 8$ ✓

(c) $\log_{100} 10 = \boxed{\frac{1}{2}}$ because $100^{1/2} = \sqrt{100} = 10$.

Level 3 Using Cancellation Equations

Simplify each expression.

(a) $\log_7(7^{12})$ (b) $5^{\log_5 19}$ (c) $\log_2(2^x \cdot 2^{3x})$

Thought Process

(a) This is the first cancellation equation $\log_b(b^x) = x$ with $b = 7$ and $x = 12$.

(b) This is the second cancellation equation $b^{\log_b x} = x$ with $b = 5$ and $x = 19$.

(c) First simplify the argument using exponent rules: $2^x \cdot 2^{3x} = 2^{x + 3x} = 2^{4x}$. Then apply the cancellation equation.

Show Answer

(a) $\log_7(7^{12}) = \boxed{12}$ by the cancellation equation.

(b) $5^{\log_5 19} = \boxed{19}$ by the cancellation equation.

(c) First simplify: $2^x \cdot 2^{3x} = 2^{4x}$

Then: $\log_2(2^{4x}) = \boxed{4x}$

Level 4 Solving Exponential Equations

If $\log_8 x = \frac{2}{3}$, find $x$.

Thought Process

We can solve this two ways:

Method 1: Use the definition. $\log_8 x = \frac{2}{3}$ means $8^{2/3} = x$.

Method 2: Apply the exponential function to both sides. If $\log_8 x = \frac{2}{3}$, then $8^{\log_8 x} = 8^{2/3}$, so $x = 8^{2/3}$.

Either way, we need to compute $8^{2/3}$.

Show Answer

From the definition: $\log_8 x = \frac{2}{3}$ means $8^{2/3} = x$.

Now compute $8^{2/3}$: $$8^{2/3} = (8^{1/3})^2 = (\sqrt[3]{8})^2 = 2^2 = \boxed{4}$$

Verification: $\log_8 4 = \frac{2}{3}$ because $8^{2/3} = 4$ ✓

Level 5 Conceptual Understanding

(a) Explain why $\log_b(b^x) = x$ for all real $x$, but $b^{\log_b x} = x$ only for $x > 0$.

(b) Without a calculator, determine which is larger: $\log_2 10$ or $\log_3 10$. Justify your answer.

Thought Process

(a) Think about domains. For $\log_b(b^x)$: the input to $\log_b$ is $b^x$, which is always positive, so there's no domain restriction; any real $x$ works.

For $b^{\log_b x}$: the input to $\log_b$ is $x$ itself. Since $\log_b$ only accepts positive inputs, we need $x > 0$.

(b) What does each logarithm represent?

  • $\log_2 10$ is the power to which 2 must be raised to get 10
  • $\log_3 10$ is the power to which 3 must be raised to get 10

Since 3 is larger than 2, it takes a smaller power of 3 to reach 10 than it takes of 2. So $\log_3 10 < \log_2 10$.

Show Answer

(a) The asymmetry comes from the domains:

  • In $\log_b(b^x)$: The argument of $\log_b$ is $b^x$. Since $b^x > 0$ for all real $x$, the expression is defined for all real $x$.
  • In $b^{\log_b x}$: The argument of $\log_b$ is $x$ itself. Since $\log_b$ requires a positive argument, we need $x > 0$.

The logarithm function "inherits" its domain restriction from being the inverse of an exponential whose range is $(0, \infty)$.

(b) $\log_2 10 > \log_3 10$

Reasoning: We have $2^3 = 8 < 10 < 16 = 2^4$, so $3 < \log_2 10 < 4$.

We have $3^2 = 9 < 10 < 27 = 3^3$, so $2 < \log_3 10 < 3$.

Since $\log_2 10 > 3$ and $\log_3 10 < 3$, we conclude $\boxed{\log_2 10 > \log_3 10}$.

General principle: For $x > 1$, the function $b \mapsto \log_b x$ is decreasing. A larger base means a smaller logarithm.

Mastery Checklist

Mental Model

The Logarithm as a "Power Finder":

Think of $\log_b$ as asking a question: "What power?"

The exponential $b^x$ takes a power and produces a number. The logarithm $\log_b x$ takes a number and produces a power.

They undo each other.


Connections

Looking back:

Looking ahead:

Real-world applications:


Previous Up Next
Exponential Functions Skills Index The Natural Logarithm

Last updated: 2026-01-23