AP Precalculus · Topic 2.11 · Reading guide, about 4 min

Graphs and features of logarithmic functions

Describe the domain, range, asymptote, concavity and end behavior of log graphs and transform them.

In one minute

When a>0a>0 and b>1b>1, the graph of f(x)=alog⁡b(x)f(x)=a\log_b(x) rises steeply near its vertical asymptote and then flattens, climbing slowly forever (other signs and bases flip it). It is the mirror image of an exponential graph.

You need to describe the graph in words and in limit notation, and to read how shifts and stretches move the asymptote, domain and key points.

Key terms

Logarithmic function
A function of the form f(x)=alog⁡b(x)f(x)=a\log_b(x) with b>0b>0, b≠1b\ne1, and a≠0a\ne0.
Vertical asymptote
The line x=0x=0 for the basic log. The graph gets arbitrarily close to it but never touches.
Domain
All inputs allowed. For the basic log it is x>0x>0, since the argument must be positive.
Range
All outputs reached. The basic log reaches every real number.
Concavity
For a>0a>0 and b>1b>1 the graph is concave down: it rises, but ever more slowly.
End behavior
What the output does as the input approaches an extreme, written with limits, such as lim⁡x→∞f(x)=∞\lim_{x\to\infty}f(x)=\infty.
Transformed log
A log graph moved or stretched, such as log⁡b(x−h)+k\log_b(x-h)+k, with asymptote x=hx=h.

The basic graph

Take f(x)=log⁡2(x)f(x)=\log_2(x). Its points are (12,−1)\left(\tfrac12,-1\right), (1,0)(1,0), (2,1)(2,1), (4,2)(4,2) and (8,3)(8,3). Doubling the input adds 1 to the output, so the graph climbs by the same amount over inputs that keep doubling. That is why it flattens out on an ordinary axis.

The domain is x>0x>0 and the range is all real numbers. The graph is always increasing when b>1b>1, passes through (1,0)(1,0) because log⁡b(1)=0\log_b(1)=0, and is concave down. When 0<b<10< b<1 the graph is always decreasing and concave up. A negative aa flips the graph over the xx-axis, so it falls for b>1b>1.

To sketch quickly, mark the vertical asymptote first, then plot the point where the argument equals 1 (the output there is 0 before any vertical shift) and the point where the argument equals the base (the output there is 1 before any stretch or vertical shift). Join them with a smooth curve that bends downward when b>1b>1 and a>0a>0, and let the curve hug the asymptote. Two or three labeled points are enough to describe the shape.

Features of a log function f(x) = a log_b(x) with a > 0
Featureb > 10 < b < 1
BehaviorIncreasingDecreasing
ConcavityDownUp
Limit as x approaches 0 from the rightNegative infinityPositive infinity
Limit as x approaches infinityPositive infinityNegative infinity
Domain and rangex > 0; all realsx > 0; all reals

End behavior in limit notation

For f(x)=log⁡2(x)f(x)=\log_2(x), as the input shrinks toward zero from the right, the output heads to negative infinity: lim⁡x→0+f(x)=−∞\lim_{x\to0^+}f(x)=-\infty. As the input grows without bound, the output grows without bound too, though slowly: lim⁡x→∞f(x)=∞\lim_{x\to\infty}f(x)=\infty.

Notice the one-sided limit. A log is only defined for positive inputs, so the approach to the asymptote is only from the right of the asymptote. Compare with the exponential, which levels off at a horizontal asymptote; the log never levels off, but its growth slows.

For a decreasing log such as log⁡1/2(x)\log_{1/2}(x), the limits flip: the output heads to positive infinity as x→0+x\to0^+ and to negative infinity as x→∞x\to\infty. A negative aa with b>1b>1 gives the same flip. Always decide the direction first, then write both limits to match it.

Transformations and a worked example

The general form is g(x)=alog⁡b(x−h)+kg(x)=a\log_b(x-h)+k. The value hh moves the vertical asymptote to x=hx=h and shifts the domain to x>hx>h. The value kk moves the graph up or down but leaves the asymptote alone. The value aa stretches vertically, and its sign controls reflection.

Worked example. Let g(x)=2log⁡3(x−1)+4g(x)=2\log_3(x-1)+4. The asymptote is x=1x=1 and the domain is x>1x>1. Because log⁡3(3)=1\log_3(3)=1, we get g(4)=2(1)+4=6g(4)=2(1)+4=6. Because log⁡3(9)=2\log_3(9)=2, we get g(10)=2(2)+4=8g(10)=2(2)+4=8. Because log⁡3(1)=0\log_3(1)=0, we get g(2)=4g(2)=4. So the graph passes through (2,4)(2,4), (4,6)(4,6) and (10,8)(10,8), rising through them from left to right, and it is concave down. As x→1+x\to1^+, g(x)→−∞g(x)\to-\infty, and as x→∞x\to\infty, g(x)→∞g(x)\to\infty.

A second example without a vertical stretch: for h(x)=log⁡2(x+3)−1h(x)=\log_2(x+3)-1, the asymptote is x=−3x=-3, and since log⁡2(1)=0\log_2(1)=0, the point (−2,−1)(-2,-1) lies on the graph. Setting log⁡2(x+3)=1\log_2(x+3)=1 gives x+3=2x+3=2, so the xx-intercept is (−1,0)(-1,0).

How it connects

  • Back to 2.10: every feature here is the swapped partner of an exponential feature.
  • Back to 2.9: the domain restriction comes from the fact that the argument of a log must be positive.
  • Back to 1.12: the shifts and stretches follow the same transformation rules as any function.
  • Forward to 2.12: a horizontal dilation of a log graph equals a vertical shift.

Common mistakes

  • Drawing a horizontal asymptote. A log has a vertical one. Its range has no upper or lower bound.
  • Thinking the graph levels off. It keeps rising forever when b>1b>1, only more slowly.
  • **Moving the asymptote with kk.** Only the inside shift hh moves the vertical asymptote; kk moves the graph up or down.
  • Forgetting the domain after a shift. For log⁡b(x−h)\log_b(x-h), the domain is x>hx>h, not x>0x>0.

How it shows up on the exam

  • Identifying the asymptote, domain or key points of a transformed log from its equation or its graph.
  • Writing end behavior with limit notation, including the one-sided limit at the asymptote.
  • Deciding concavity and whether the graph is increasing or decreasing from the base and the sign of aa.

Check yourself

  1. What are the domain and vertical asymptote of log⁡5(x+2)\log_5(x+2)?
  2. Is −3log⁡2(x)-3\log_2(x) increasing or decreasing, and what is its concavity?
  3. How does the output of log⁡2(x)\log_2(x) change when the input goes from 4 to 16?
  4. Write the limit statements for f(x)=log⁡(x)f(x)=\log(x) at both ends of its domain.

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.