AP Precalculus · Topic 2.12 · Reading guide, about 6 min

Log rules and rewriting log expressions

Learn the product, quotient and power rules for logs, change of base, and how they reshape log graphs.

In one minute

A logarithm answers the question "what exponent do I need?" Because exponents turn multiplication into addition, logarithms turn products into sums. The log rules write that fact down, and they let you expand a messy log into simple pieces or squeeze many logs into one.

You will use these rules to simplify expressions, to compute logs your calculator has no key for, and to explain why some changes to a log graph look the same as others. Every rule is just an exponent rule in disguise, so if you remember the exponent rules from 2.4 you can rebuild any log rule on the spot.

Key terms

Product property
log⁡b(MN)=log⁡bM+log⁡bN\log_b(MN)=\log_b M+\log_b N for M,N>0M,N>0. A log of a product is the sum of the logs.
Quotient property
log⁡bMN=log⁡bM−log⁡bN\log_b\frac{M}{N}=\log_b M-\log_b N for M,N>0M,N>0. A log of a quotient is the difference of the logs.
Power property
log⁡b(Mp)=plog⁡bM\log_b(M^p)=p\log_b M for M>0M>0. An exponent inside the log comes out front as a multiplier.
Change of base
log⁡bM=log⁡cMlog⁡cb\log_b M=\frac{\log_c M}{\log_c b} for any valid new base cc. It lets a calculator with only log and ln keys handle any base.
Expanding
Rewriting one log of a complicated expression as a sum, difference and multiples of simple logs.
Condensing
Rewriting a combination of several logs, all with the same base, as one single log.
Log of one
log⁡b1=0\log_b 1=0 for every base, because b0=1b^0=1.
Log of the base
log⁡bb=1\log_b b=1 and log⁡b(bk)=k\log_b(b^k)=k, because the log undoes the exponential.
Horizontal dilation
Multiplying the input of a function by a constant, as in f(kx)f(kx), which stretches or compresses the graph left and right.

Where the rules come from

Let log⁡bM=m\log_b M=m and log⁡bN=n\log_b N=n. In exponential form this says M=bmM=b^m and N=bnN=b^n. Multiply: MN=bm⋅bn=bm+nMN=b^m\cdot b^n=b^{m+n}. Reading that back as a log gives log⁡b(MN)=m+n\log_b(MN)=m+n, which is the product property. The quotient property comes the same way from bm/bn=bm−nb^m/b^n=b^{m-n}.

For the power property, start with M=bmM=b^m and raise both sides to the power pp. You get Mp=(bm)p=bmpM^p=(b^m)^p=b^{mp}, so log⁡b(Mp)=mp=plog⁡bM\log_b(M^p)=mp=p\log_b M. This one is the most useful, because it pulls an unknown exponent down to ground level where you can work with it.

Two special values come along for free. Since b0=1b^0=1, we get log⁡b1=0\log_b 1=0. Since b1=bb^1=b, we get log⁡bb=1\log_b b=1. Notice what the rules do not say: there is no simple rule for log⁡b(M+N)\log_b(M+N), and log⁡b(MN)\log_b(MN) is not (log⁡bM)(log⁡bN)(\log_b M)(\log_b N).

The three core rules side by side
RuleBeforeAfterExample
Productlog⁡b(MN)\log_b(MN)log⁡bM+log⁡bN\log_b M+\log_b Nlog⁡212=log⁡23+log⁡24\log_2 12=\log_2 3+\log_2 4
Quotientlog⁡bMN\log_b\frac{M}{N}log⁡bM−log⁡bN\log_b M-\log_b Nlog⁡50=log⁡500−log⁡10\log 50=\log 500-\log 10
Powerlog⁡b(Mp)\log_b(M^p)plog⁡bMp\log_b Mln⁡(x5)=5ln⁡x\ln(x^5)=5\ln x
Change of baselog⁡bM\log_b Mln⁡Mln⁡b\frac{\ln M}{\ln b}log⁡540=ln⁡40ln⁡5\log_5 40=\frac{\ln 40}{\ln 5}

Expanding and condensing

To expand, work from the outside in. A root is a fractional power, so y=y1/2\sqrt{y}=y^{1/2} and the power property turns it into a multiplier of 12\tfrac12. Numbers that are exact powers of the base simplify completely, since log⁡28=3\log_2 8=3.

Worked example. Expand log⁡28x3y\log_2\dfrac{8x^3}{\sqrt{y}} for x,y>0x,y>0. Step 1, the quotient property gives log⁡2(8x3)−log⁡2(y)\log_2(8x^3)-\log_2(\sqrt{y}). Step 2, the product property splits the first term: log⁡28+log⁡2(x3)−log⁡2(y1/2)\log_2 8+\log_2(x^3)-\log_2(y^{1/2}). Step 3, the power property and log⁡28=3\log_2 8=3 give 3+3log⁡2x−12log⁡2y3+3\log_2 x-\tfrac12\log_2 y. As a check, take x=2x=2 and y=16y=16. The original is log⁡2644=log⁡216=4\log_2\frac{64}{4}=\log_2 16=4. The expansion gives 3+3(1)−12(4)=43+3(1)-\tfrac12(4)=4. They match.

To condense, run the steps backward. First move every multiplier into an exponent, then combine sums into products and differences into quotients. For example, 2log⁡3x+log⁡35−log⁡3y2\log_3 x+\log_3 5-\log_3 y becomes log⁡35x2y\log_3\dfrac{5x^2}{y}. All logs must share one base before you can combine them.

Change of base

A calculator usually has a key for base 10 and a key for base ee, but you may need log⁡540\log_5 40. Ask for the exponent tt with 5t=405^t=40. Take the natural log of both sides: tln⁡5=ln⁡40t\ln 5=\ln 40, so t=ln⁡40ln⁡5t=\dfrac{\ln 40}{\ln 5}. That is the change-of-base formula, and it works with any base on top and bottom as long as both logs use the same one.

Numerically, ln⁡40≈3.6889\ln 40\approx 3.6889 and ln⁡5≈1.6094\ln 5\approx 1.6094, so log⁡540≈2.292\log_5 40\approx 2.292. Sanity check: 52=255^2=25 and 53=1255^3=125, and 40 sits a little above 25, so an answer a bit over 2 makes sense. Always do this kind of bracketing check.

What the rules do to graphs

Take f(x)=log⁡2xf(x)=\log_2 x. Now look at g(x)=log⁡2(4x)g(x)=\log_2(4x). The input is multiplied by 4, which is a horizontal dilation by a factor of 14\tfrac14. But the product property says log⁡2(4x)=log⁡24+log⁡2x=2+log⁡2x\log_2(4x)=\log_2 4+\log_2 x=2+\log_2 x, which is ff moved up 2 units. So a horizontal dilation of a log function is the same as a vertical translation. The graph of gg passes through (1,2)(1,2) instead of (1,0)(1,0), and gg is just ff shifted up.

Now h(x)=log⁡2(x3)h(x)=\log_2(x^3). A power inside the log becomes a multiplier outside: h(x)=3log⁡2xh(x)=3\log_2 x. So a power inside is a vertical dilation by that factor. The graph of hh is ff stretched vertically by 3, still with the vertical asymptote x=0x=0.

These facts explain why you cannot always tell, from a graph alone, which transformation was used. When you are asked to rewrite a log function in a different form, the rules above are the tool.

How it connects

  • Back to 2.4: the three log rules mirror the product, power and quotient rules for exponents, because a log is an exponent.
  • Back to 2.9: the definition log⁡bc=a\log_b c=a means ba=cb^a=c is what you use to prove each rule.
  • Back to 2.11: the transformations of log graphs there now have algebraic partners, for example a horizontal dilation equals a vertical shift.
  • Forward to 2.13: you need these rules to combine logs and solve log equations, and change of base to give decimal answers.
  • Forward to 2.15: taking the log of both sides of y=abxy=ab^x uses the product and power rules.

Common mistakes

  • Splitting a log of a sum. log⁡(x+y)\log(x+y) is not log⁡x+log⁡y\log x+\log y. The product rule needs a product inside the log. Leave sums inside alone.
  • Applying the power rule to the wrong piece. log⁡(x3)=3log⁡x\log(x^3)=3\log x, but (log⁡x)3(\log x)^3 is not 3log⁡x3\log x. The exponent must be on the input of the log.
  • Mixing bases when condensing. log⁡2x+log⁡3y\log_2 x+\log_3 y cannot be combined into one log. Convert to a common base first, or leave it.
  • Flipping change of base. log⁡bM=ln⁡M/ln⁡b\log_b M=\ln M/\ln b, with the base on the bottom. Flipping it gives the reciprocal, ln⁡b/ln⁡M\ln b/\ln M, which is a different number: ln⁡5/ln⁡40≈0.436\ln 5/\ln 40\approx0.436, not log⁡540≈2.292\log_5 40\approx2.292. A bracketing check catches this.

How it shows up on the exam

  • Multiple-choice items ask which expression is equivalent to a given log expression, so you must choose the correct expansion or condensed form.
  • Some items describe a log function in two forms and ask you to recognize a vertical shift or dilation hiding inside a changed input.
  • A few items ask for a value like log⁡540\log_5 40 and expect you to use change of base with a graphing or scientific calculator.

Check yourself

  1. Why does the product property for logs follow from bm⋅bn=bm+nb^m\cdot b^n=b^{m+n}?
  2. How would you rewrite log⁡3x29y\log_3\frac{x^2}{9y} as a sum and difference of simple logs?
  3. Why is log⁡2(8x)\log_2(8x) a vertical shift of log⁡2x\log_2 x, and by how much?
  4. What is the first estimate you would make to check an answer for log⁡7100\log_7 100?

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