AP Precalculus · Unit 2 · Topic 2.12

    2.12 Logarithmic Function Manipulation

    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

    The laws of logarithms come from the laws of exponents: log⁡b(xy)=log⁡bx+log⁡by\log_b(xy) = \log_b x + \log_b y, log⁡bxy=log⁡bx−log⁡by\log_b \frac{x}{y} = \log_b x - \log_b y and log⁡b(xn)=nlog⁡bx\log_b(x^n) = n\log_b x, for positive xx, yy. The change-of-base formula log⁡bx=ln⁡xln⁡b\log_b x = \frac{\ln x}{\ln b} evaluates any log on a calculator. On graphs, the product law shows that a horizontal dilation of a log function is a vertical translation, and the power law shows that a power inside is a vertical dilation.

    What you need to know

    • Expand and condense logarithmic expressions with the product, quotient and power laws.
    • Use the change-of-base formula to evaluate and rewrite logarithms.
    • Explain that a horizontal dilation of a logarithmic function is equivalent to a vertical translation.
    • Avoid common errors such as log⁡(x+y)=log⁡x+log⁡y\log(x + y) = \log x + \log y.

    The three laws

    Logs are exponents, so the exponent rules become log rules. Since bm⋅bn=bm+nb^m \cdot b^n = b^{m + n}, the log of a product is the sum of the logs.

    Laws of logarithms (x, y > 0)
    LawRuleExample
    Productlog⁡b(xy)=log⁡bx+log⁡by\log_b(xy) = \log_b x + \log_b ylog⁡224=log⁡28+log⁡23=3+log⁡23\log_2 24 = \log_2 8 + \log_2 3 = 3 + \log_2 3
    Quotientlog⁡bxy=log⁡bx−log⁡by\log_b \frac{x}{y} = \log_b x - \log_b ylog⁡354−log⁡32=log⁡327=3\log_3 54 - \log_3 2 = \log_3 27 = 3
    Powerlog⁡b(xn)=nlog⁡bx\log_b(x^n) = n\log_b xlog⁡105=5\log 10^5 = 5, ln⁡x=12ln⁡x\ln \sqrt{x} = \frac{1}{2}\ln x

    Expanding: log⁡x2yz=2log⁡x+log⁡y−log⁡z\log \frac{x^2 y}{z} = 2\log x + \log y - \log z. Condensing: 2ln⁡x−ln⁡(x+1)=ln⁡x2−ln⁡(x+1)=ln⁡x2x+12\ln x - \ln(x + 1) = \ln x^2 - \ln(x + 1) = \ln \frac{x^2}{x + 1}.

    Change of base

    To find log⁡540\log_5 40, let y=log⁡540y = \log_5 40, so 5y=405^y = 40. Taking the natural log of both sides and using the power law: yln⁡5=ln⁡40y \ln 5 = \ln 40. So

    log⁡540=ln⁡40ln⁡5≈2.292\log_5 40 = \frac{\ln 40}{\ln 5} \approx 2.292

    Any base works for the top and bottom, as long as it is the same: log⁡40log⁡5\frac{\log 40}{\log 5} gives the same value. Check that it is sensible: 52=255^2 = 25 and 53=1255^3 = 125, so the answer should be between 2 and 3.

    What the laws mean for graphs

    The product law gives log⁡2(8x)=log⁡28+log⁡2x=3+log⁡2x\log_2(8x) = \log_2 8 + \log_2 x = 3 + \log_2 x. So compressing the graph of log⁡2x\log_2 x horizontally by a factor of 18\frac{1}{8} is exactly the same as shifting it up 3. Every horizontal dilation of a logarithmic function is a vertical translation.

    The power law gives log⁡b(xk)=klog⁡bx\log_b(x^k) = k\log_b x, a vertical dilation by kk, for x>0x > 0. And change of base shows that all log functions are vertical dilations of each other: log⁡8x=13log⁡2x\log_8 x = \frac{1}{3}\log_2 x, because log⁡28=3\log_2 8 = 3.

    Worked example. Rewrite f(x)=log⁡3(27x2)f(x) = \log_3(27x^2) for x>0x > 0 in a form that shows its transformations. Product law: log⁡327+log⁡3x2\log_3 27 + \log_3 x^2. Then log⁡327=3\log_3 27 = 3 and, by the power law, log⁡3x2=2log⁡3x\log_3 x^2 = 2\log_3 x. So f(x)=3+2log⁡3xf(x) = 3 + 2\log_3 x: the graph of log⁡3x\log_3 x stretched vertically by a factor of 2 and shifted up 3. Its zero comes from 2log⁡3x=−32\log_3 x = -3, so x=3−3/2≈0.192x = 3^{-3/2} \approx 0.192.

    Key terms

    Product law
    log⁡b(xy)=log⁡bx+log⁡by\log_b(xy) = \log_b x + \log_b y.
    Quotient law
    log⁡bxy=log⁡bx−log⁡by\log_b \frac{x}{y} = \log_b x - \log_b y.
    Power law
    log⁡b(xn)=nlog⁡bx\log_b(x^n) = n\log_b x.
    Change of base
    log⁡bx=log⁡axlog⁡ab\log_b x = \frac{\log_a x}{\log_a b} for any allowed base a, usually e or 10.

    Common mistakes

    • log⁡(x+3)=log⁡x+log⁡3\log(x + 3) = \log x + \log 3.

      There is no sum rule; log⁡(3x)=log⁡3+log⁡x\log(3x) = \log 3 + \log x.

    • (log⁡x)2=2log⁡x(\log x)^2 = 2\log x.

      The power law needs the power inside: log⁡(x2)=2log⁡x\log(x^2) = 2\log x.

    • Change of base upside down: ln⁡5ln⁡40\frac{\ln 5}{\ln 40}.

      The argument goes on top: ln⁡40ln⁡5\frac{\ln 40}{\ln 5}.

    How this topic is tested

    • Name the law you use in a symbolic FRQ step.
    • Condense to a single log before solving a log equation.
    • Estimate a log between two integers to check a calculator answer.

    Practice questions

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

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

      Which is equivalent to log⁡25+log⁡212−log⁡215\log_2 5 + \log_2 12 - \log_2 15?

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

      Which expression equals ln⁡e3x2\ln \frac{e^3}{x^2} for x > 0?

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

      Which gives log⁡730\log_7 30?

    4. Question 4 · MP 2 · Multiple Representations

      The graph of y=log⁡3(9x)y = \log_3(9x) is the graph of y=log⁡3xy = \log_3 x after which transformation?

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

      If log⁡b2=p\log_b 2 = p and log⁡b5=q\log_b 5 = q, what is log⁡b40\log_b 40?

    Free-response practice

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

    Symbolic Manipulations (short) · 3 points

    Answer without a calculator.

    1. (a) Rewrite 2ln⁡x−ln⁡(x+1)2\ln x - \ln(x + 1) as a single natural logarithm, for x > 0.
    2. (b) Show that log⁡2(8x)=3+log⁡2x\log_2(8x) = 3 + \log_2 x for x > 0, and describe what this means about the two graphs.

    Connected topics

    Frequently asked questions

    Why is the domain important when using the laws?

    log⁡(x2)=2log⁡x\log(x^2) = 2\log x only for x > 0. The left side is defined for x ≠ 0, the right side only for x > 0, so rewriting can change the domain.

    Which base should I use for change of base?

    Either ln or log; calculators have both. The answer is the same.

    Do I need to prove the laws?

    No, but knowing they come from the exponent rules helps you remember which goes with which.

    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.