Dove's LibraryDove's Library

2.11 - Logarithmic Functions

Overview

A logarithmic function in general form is f(x)=alog⁡bxf(x) = a\log_b x, where b>0b > 0, b≠1b \neq 1, and a≠0a \neq 0. Because logs are the inverses of exponentials, their graphs have the same kinds of features as exponential graphs, just reflected over the line y=xy = x. This topic is about reading those features: domain and range, where the function increases or decreases, concavity, extrema, and the vertical asymptote. The AP exam asks you to describe them from an equation, a graph, or a table.

Domain and range

The domain of a logarithmic function in general form is all real numbers greater than zero, x>0x > 0. The range is all real numbers.
  • Why the domain is x>0x > 0: log⁡bx\log_b x asks "what power of bb gives xx?" A positive base raised to any power is always positive, so there's no answer when xx is zero or negative. For example, log⁡2(−8)\log_2(-8) is undefined because no power of 2 equals −8-8.
  • Why the range is all real numbers: every real number can be an exponent, so every real number shows up as an output. log⁡2x=10\log_2 x = 10 when x=210=1024x = 2^{10} = 1024, and log⁡2x=−10\log_2 x = -10 when x=2−10≈0.001x = 2^{-10} \approx 0.001.
This is the domain and range of y=bxy = b^x, swapped (Topic 2.10). That always happens with inverse functions: the inputs of one are the outputs of the other.
Feature
g(x)=bxg(x) = b^x
f(x)=log⁡bxf(x) = \log_b x
Domain
all real numbers
x>0x > 0
Range
y>0y > 0
all real numbers
Asymptote
horizontal, y=0y = 0
vertical, x=0x = 0
Points on every graph
(0,1)(0, 1) and (1,b)(1, b)
(1,0)(1, 0) and (b,1)(b, 1)
For the general form f(x)=alog⁡bxf(x) = a\log_b x, the graph always passes through (1,0)(1, 0), because log⁡b1=0\log_b 1 = 0, and through (b,a)(b, a), because log⁡bb=1\log_b b = 1.
Shifted inputs shift the domain. For h(x)=log⁡3(x−5)h(x) = \log_3(x - 5), the input of the log must be positive: x−5>0x - 5 > 0, so the domain is x>5x > 5. Set whatever is inside the log greater than zero and solve.

Always increasing or always decreasing

Because logarithmic functions are inverses of exponential functions, they act like exponentials in one big way: a logarithmic function is either always increasing or always decreasing. It never turns around.
  • If b>1b > 1, then log⁡bx\log_b x is increasing. Bigger inputs need bigger exponents: log⁡24=2\log_2 4 = 2 and log⁡28=3\log_2 8 = 3.
  • If 0<b<10 < b < 1, then log⁡bx\log_b x is decreasing. With base 12\frac{1}{2}, bigger inputs need more negative exponents: log⁡1/24=−2\log_{1/2} 4 = -2 and log⁡1/28=−3\log_{1/2} 8 = -3.
  • If a<0a < 0, the graph is reflected over the xx-axis, which turns increasing into decreasing (and the other way around).

Concavity

A logarithmic function is also either always concave down or always concave up. In the most common case, a>0a > 0 and b>1b > 1, the graph is increasing and concave down: it keeps rising, but more and more slowly.
You can see this with average rates of change over equal-length intervals. For f(x)=log⁡2xf(x) = \log_2 x:
Interval
Average rate of change of log⁡2x\log_2 x
[1,2][1, 2]
11
[2,3][2, 3]
≈0.585\approx 0.585
[3,4][3, 4]
≈0.415\approx 0.415
[4,5][4, 5]
≈0.322\approx 0.322
The rate of change keeps shrinking, so the graph is concave down. Here are all four cases:
aa and bb
Increasing or decreasing
Concavity
a>0a > 0, b>1b > 1 (like log⁡2x\log_2 x)
increasing
concave down
a>0a > 0, 0<b<10 < b < 1 (like log⁡1/2x\log_{1/2} x)
decreasing
concave up
a<0a < 0, b>1b > 1 (like −log⁡2x-\log_2 x)
decreasing
concave up
a<0a < 0, 0<b<10 < b < 1 (like −log⁡1/2x-\log_{1/2} x)
increasing
concave down
2.11 - Logarithmic Functions
Notice the pattern: an increasing log is always concave down, and a decreasing log is always concave up. (In fact log⁡1/2x\log_{1/2} x and −log⁡2x-\log_2 x are the same function. You'll see why with the change of base property in Topic 2.12.)

No extrema and no points of inflection

Since a logarithmic function is always increasing or always decreasing, it has no maximum or minimum on its whole domain. The only way to get extrema is to restrict it to a closed interval [p,q][p, q]. Then the extrema are at the endpoints: an increasing log has its minimum at x=px = p and its maximum at x=qx = q, and a decreasing log is the reverse.
Since the concavity never changes, the graph has no points of inflection.

Vertical asymptote and end behavior

With its limited domain, a logarithmic function in general form has a vertical asymptote at x=0x = 0 (the yy-axis). As xx gets close to 0 from the right, the outputs grow without bound in one direction, and as xx grows, the outputs grow without bound in the other direction. For f(x)=log⁡2xf(x) = \log_2 x:
lim⁡x→0+log⁡2x=−∞andlim⁡x→∞log⁡2x=∞\lim_{x \to 0^+} \log_2 x = -\infty \qquad \text{and} \qquad \lim_{x \to \infty} \log_2 x = \infty
We only use x→0+x \to 0^+ (from the right) because the function doesn't exist to the left of 0.
The second limit surprises a lot of students. Log graphs look like they flatten out, but they never level off, so there's no horizontal asymptote. They just grow very slowly. For example, log⁡x\log x (base 10) only reaches 6 at x=1,000,000x = 1{,}000{,}000, but it keeps going: any height you pick is reached by some input.
Case
lim⁡x→0+f(x)\lim_{x \to 0^+} f(x)
lim⁡x→∞f(x)\lim_{x \to \infty} f(x)
increasing (a>0a > 0, b>1b > 1 or a<0a < 0, 0<b<10 < b < 1)
−∞-\infty
∞\infty
decreasing (a>0a > 0, 0<b<10 < b < 1 or a<0a < 0, b>1b > 1)
∞\infty
−∞-\infty
Shifted asymptotes: y=log⁡b(x−c)y = \log_b(x - c) has its vertical asymptote at x=cx = c, where the inside of the log equals zero.

Horizontal shifts hide the input pattern

Remember from Topic 2.10 that logs turn multiplication into addition. For a log in general form, when the outputs go up by equal steps, the inputs get multiplied by the same number each time. The input values are proportional over equal-length output intervals. For f(x)=log⁡2xf(x) = \log_2 x:
xx
1
2
4
8
16
f(x)=log⁡2xf(x) = \log_2 x
0
1
2
3
4
Each output step of 1 multiplies the input by 2. A horizontal shift breaks this pattern. Take g(x)=f(x+3)=log⁡2(x+3)g(x) = f(x + 3) = \log_2(x + 3):
xx
−2-2
−1-1
1
5
13
g(x)=log⁡2(x+3)g(x) = \log_2(x + 3)
0
1
2
3
4
The outputs still go up by 1 each time, but the inputs have no common ratio: −1−2=0.5\frac{-1}{-2} = 0.5, 1−1=−1\frac{1}{-1} = -1, and 51=5\frac{5}{1} = 5. So an additive transformation g(x)=f(x+k)g(x) = f(x + k) with k≠0k \neq 0 does not have proportional inputs over equal-length output intervals.
It also works in reverse, and that's the useful part on the exam: if adding the same constant to every input makes the inputs proportional over equal-length output intervals, the function is logarithmic. Here, adding 3 to each input gives 1, 2, 4, 8, 16, with a common ratio of 2. So the table comes from a log function shifted 3 units left.
Quick tell: look at the differences between inputs. Here they are 1, 2, 4, 8, which have a common ratio. That's a sign a shifted log pattern is hiding in the table.

Examples

Example 1: Key features from an equation

Describe the domain, range, increasing or decreasing behavior, concavity, and end behavior of f(x)=−4log⁡5xf(x) = -4\log_5 x.
  • Domain and range: domain x>0x > 0, range all real numbers.
  • Increasing or decreasing: b=5>1b = 5 > 1, so log⁡5x\log_5 x increases. But a=−4<0a = -4 < 0 reflects it over the xx-axis, so ff is decreasing.
  • Concavity: a decreasing log is concave up.
  • End behavior: vertical asymptote at x=0x = 0, with lim⁡x→0+f(x)=∞\lim_{x \to 0^+} f(x) = \infty and lim⁡x→∞f(x)=−∞\lim_{x \to \infty} f(x) = -\infty.
  • Points: f(1)=0f(1) = 0 and f(5)=−4log⁡55=−4f(5) = -4\log_5 5 = -4, so the graph passes through (1,0)(1, 0) and (5,−4)(5, -4).
Answer: ff is defined for x>0x > 0, takes on every real output, and is decreasing and concave up everywhere. It shoots up toward ∞\infty near the yy-axis and falls without bound as x→∞x \to \infty.

Example 2: A shifted log hiding in a table (AP-style)

Could this table come from a logarithmic function? If so, find one.
xx
−4-4
−3-3
−1-1
3
11
yy
1
2
3
4
5
Step 1: Check the inputs for a common ratio. The outputs go up by 1 each time, so check the inputs: −3−4=0.75\frac{-3}{-4} = 0.75 but −1−3≈0.33\frac{-1}{-3} \approx 0.33. No common ratio, so the inputs aren't proportional yet.
Step 2: Look for a hidden shift. The differences between inputs are 1, 2, 4, 8, which double each time. That suggests the inputs become proportional after adding some constant cc. If x+cx + c doubles from one column to the next, then
−3+c=2(−4+c)⇒−3+c=−8+2c⇒c=5-3 + c = 2(-4 + c) \quad\Rightarrow\quad -3 + c = -8 + 2c \quad\Rightarrow\quad c = 5
Step 3: Check. Adding 5 to each input gives 1, 2, 4, 8, 16, with a common ratio of 2. So the outputs go up by 1 each time x+5x + 5 doubles, which is a log⁡2\log_2 pattern:
y=log⁡2(x+5)+1y = \log_2(x + 5) + 1
Test it: x=−4x = -4 gives log⁡21+1=1\log_2 1 + 1 = 1, and x=11x = 11 gives log⁡216+1=5\log_2 16 + 1 = 5. Every column checks.
Answer: yes. The inputs are proportional over equal-length output intervals once 5 is added to each one, so the data fits the logarithmic function y=log⁡2(x+5)+1y = \log_2(x + 5) + 1.

Example 3: Extrema on a closed interval (AP-style)

Let k(x)=−2log⁡3(x−1)+5k(x) = -2\log_3(x - 1) + 5.
  1. Find the domain and the vertical asymptote.
  1. Is kk increasing or decreasing? What is its concavity?
  1. Find the maximum and minimum values of kk on the interval [2,10][2, 10].
  1. Describe the end behavior of kk using limits.
2.11 - Logarithmic Functions
Part 1: the input of the log must be positive: x−1>0x - 1 > 0, so the domain is x>1x > 1. The vertical asymptote is x=1x = 1.
Part 2: the base is 3>13 > 1 and a=−2<0a = -2 < 0, so kk is decreasing and concave up. The shift right 1 and up 5 don't change either of these.
Part 3: since kk is decreasing, the maximum is at the left endpoint and the minimum is at the right endpoint:
k(2)=−2log⁡31+5=−2(0)+5=5k(2) = -2\log_3 1 + 5 = -2(0) + 5 = 5k(10)=−2log⁡39+5=−2(2)+5=1k(10) = -2\log_3 9 + 5 = -2(2) + 5 = 1
Part 4: near the asymptote the outputs blow up, and they fall without bound to the right:
lim⁡x→1+k(x)=∞andlim⁡x→∞k(x)=−∞\lim_{x \to 1^+} k(x) = \infty \qquad \text{and} \qquad \lim_{x \to \infty} k(x) = -\infty
Answer: on [2,10][2, 10], the maximum value of kk is 5 (at x=2x = 2) and the minimum value is 1 (at x=10x = 10). On its whole domain x>1x > 1, kk has no maximum or minimum.

Common mistakes

  • Plugging in zero or a negative number. log⁡b0\log_b 0 and log⁡b(−3)\log_b(-3) don't exist. For a shifted log, set the inside greater than zero to find the domain.
  • Thinking the graph levels off. Log functions grow slowly, but lim⁡x→∞log⁡bx\lim_{x \to \infty} \log_b x is infinite. There is no horizontal asymptote.
  • Giving a log an extremum on its whole domain. It only has a max or min on a closed interval, and those are at the endpoints.
  • Forgetting that a<0a < 0 flips both behaviors. A negative aa changes increasing to decreasing and concave down to concave up.
  • Writing lim⁡x→0\lim_{x \to 0} instead of lim⁡x→0+\lim_{x \to 0^+}. The function only exists to the right of the asymptote.
  • Giving up on a table too fast. If the inputs aren't proportional, try adding a constant to every input before deciding the data isn't logarithmic.

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.