AP Precalculus · Unit 2 · Topic 2.11

    2.11 Logarithmic Functions

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    In short

    A logarithmic function f(x)=alog⁡bxf(x) = a\log_b x (with a≠0a \ne 0, b>0b > 0, b≠1b \ne 1) has domain x>0x > 0, range all real numbers and a vertical asymptote x=0x = 0. With a>0a > 0 and b>1b > 1 it is increasing and concave down, 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, though it grows very slowly. It has no horizontal asymptote and no extrema.

    What you need to know

    • State the domain, range and vertical asymptote of a logarithmic function.
    • Describe whether a logarithmic function is increasing or decreasing, and its concavity.
    • Describe end behaviour with limits, including from the right at the asymptote.
    • Find the domain and asymptote of a transformed logarithmic function.

    Features of log functions

    • Domain x>0x > 0; range all real numbers.
    • Zero at x=1x = 1, because log⁡b1=0\log_b 1 = 0; and log⁡bb=1\log_b b = 1.
    • Vertical asymptote x=0x = 0: for b>1b > 1, lim⁡x→0+log⁡bx=−∞\lim_{x \to 0^+} \log_b x = -\infty.
    • End behaviour: for b>1b > 1, lim⁡x→∞log⁡bx=∞\lim_{x \to \infty} \log_b x = \infty, with no horizontal asymptote.
    • For b>1b > 1, increasing and concave down: each doubling of x adds the same amount, so the graph rises more and more slowly.

    Logarithmic growth is very slow. log⁡x\log x only reaches 6 at x=1,000,000x = 1{,}000{,}000. That is the opposite of exponential growth, and it is why logs model things such as perceived loudness, which barely changes when the physical intensity doubles.

    Transformations

    g(x)=log⁡2(x−1)+2g(x) = \log_2(x - 1) + 2 is log⁡2x\log_2 x shifted right 1 and up 2. The shift right moves the asymptote to x=1x = 1 and the domain to x>1x > 1: the argument x−1x - 1 must be positive. The point (1,0)(1, 0) of log⁡2x\log_2 x moves to (2,2)(2, 2), and (2,1)(2, 1) moves to (3,3)(3, 3).

    Shifting right 1 moves the asymptote from x = 0 to x = 1; shifting up 2 moves every point up.

    The zero of gg comes from solving log⁡2(x−1)=−2\log_2(x - 1) = -2: x−1=2−2=14x - 1 = 2^{-2} = \frac{1}{4}, so x=54x = \frac{5}{4}. Near the asymptote, lim⁡x→1+g(x)=−∞\lim_{x \to 1^+} g(x) = -\infty.

    Comparing log and exponential growth. Put log⁡2x\log_2 x beside 2x2^x and xx. At x=16x = 16, 2x=65,5362^x = 65{,}536, the line y=xy = x gives 16, and log⁡2x\log_2 x gives only 4. The exponential races away, the line climbs steadily, and the logarithm crawls. Yet the logarithm still increases without bound: log⁡2x=100\log_2 x = 100 when x=2100x = 2^{100}, an enormous but finite number. That combination, unbounded but extremely slow, is what makes logarithms good models for quantities such as perceived loudness or the number of digits in a number.

    Key terms

    Logarithmic function
    f(x)=alog⁡bxf(x) = a\log_b x, the inverse family of exponential functions.
    Vertical asymptote of a log
    x = 0 for log⁡bx\log_b x; x = h for log⁡b(x−h)\log_b(x - h).
    One-sided limit at the asymptote
    lim⁡x→0+log⁡bx=−∞\lim_{x \to 0^+} \log_b x = -\infty for b > 1.
    Logarithmic growth
    Increase without bound, but more and more slowly; concave down for a > 0, b > 1.

    Common mistakes

    • Giving a log function a horizontal asymptote.

      Logs increase without bound; the asymptote is vertical.

    • Writing the domain of log⁡(x+4)\log(x + 4) as x > 4.

      x + 4 > 0 gives x > −4.

    • Using a two-sided limit at the asymptote.

      Approach from the side in the domain: x→0+x \to 0^+.

    How this topic is tested

    • Find the domain by setting the argument > 0.
    • Write the asymptote behaviour as a one-sided limit.
    • Justify concavity: 'the output increases by equal amounts over intervals where x doubles, so the rate of change decreases'.

    Practice questions

    Original AP-style multiple-choice questions. Pick an answer to see the explanation.

    1. Question 1 · MP 1 · Procedural and Symbolic Fluency

      What is the domain of f(x)=log⁡5(2x−6)f(x) = \log_5(2x - 6)?

    2. Question 2 · MP 2 · Multiple Representations

      What is the vertical asymptote of g(x)=ln⁡(x+2)−5g(x) = \ln(x + 2) - 5?

    3. Question 3 · MP 3 · Communication and Reasoning

      Which describes f(x)=log⁡4xf(x) = \log_4 x?

    4. Question 4 · MP 1 · Procedural and Symbolic Fluency

      What is lim⁡x→0+log⁡0.5x\lim_{x \to 0^+} \log_{0.5} x?

    5. Question 5 · MP 1 · Procedural and Symbolic Fluency

      Where is the zero of h(x)=log⁡3x+2h(x) = \log_3 x + 2?

    Free-response practice

    Write your answer first, then mark it against the scoring guide.

    Function Concepts (short) · 3 points

    Let g(x)=log⁡2(x−1)+2g(x) = \log_2(x - 1) + 2.

    1. (a) Find the domain of gg and the equation of its vertical asymptote.
    2. (b) Find the zero of gg.
    3. (c) Write lim⁡x→1+g(x)\lim_{x \to 1^+} g(x) and lim⁡x→∞g(x)\lim_{x \to \infty} g(x).

    Connected topics

    Frequently asked questions

    Does \(\log x\) ever level off?

    No. It grows without bound, just extremely slowly: there is no horizontal asymptote.

    How do I graph \(\log_3 x\) without a calculator?

    Plot (1/3, −1), (1, 0), (3, 1) and (9, 2), draw the asymptote x = 0, and join them with a concave-down curve.

    What is the range of \(\log_b(x - h) + k\)?

    All real numbers. Vertical shifts and horizontal shifts never change that.

    How this shows up on the exam42 multiple-choice questions (29 without a calculator) and 4 free-response questions of 6 points. See what each one asks you to do.Full-length AP Precalculus practice examsUnit 2 is one of the 3 units on the exam. Two timed exams in the 2027 format (42 MCQ + 4 FRQ, calculator and no-calculator parts), with explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    Free Unit 2 cheat sheet

    Every topic in Unit 2: Exponential and Logarithmic Functions on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Precalculus practice material is ready. No spam, and we'll delete it if you ask.

    Free Unit 2 practice test: 75 questions with explanations

    All topics in Unit 2: Exponential and Logarithmic Functions

    1. 2.1 Change in Arithmetic and Geometric Sequences
    2. 2.2 Change in Linear and Exponential Functions
    3. 2.3 Exponential Functions
    4. 2.4 Exponential Function Manipulation
    5. 2.5 Exponential Function Context and Data Modeling
    6. 2.6 Competing Function Model Validation
    7. 2.7 Composition of Functions
    8. 2.8 Inverse Functions
    9. 2.9 Logarithmic Expressions
    10. 2.10 Inverses of Exponential Functions
    11. 2.11 Logarithmic Functions
    12. 2.12 Logarithmic Function Manipulation
    13. 2.13 Exponential and Logarithmic Equations and Inequalities
    14. 2.14 Logarithmic Function Context and Data Modeling
    15. 2.15 Semi-log Plots

    Other units in AP Precalculus

    AP® is a trademark registered by College Board, which is not affiliated with, and does not endorse, this website.