Expanding logarithms: the three log rules, and one trap

6 min readupdated 20 November 2026

Short answer To expand a logarithm, split the log of a product, a quotient or a power into simpler logs.

  1. Product: log⁡b(xy)=log⁡bx+log⁡by\log_b(xy) = \log_b x + \log_b y
  2. Quotient: log⁡bxy=log⁡bx−log⁡by\log_b \frac{x}{y} = \log_b x - \log_b y
  3. Power: log⁡bxn=nlog⁡bx\log_b x^n = n\log_b x

There is no rule for a sum: log⁡(a+b)\log(a + b) is not log⁡a+log⁡b\log a + \log b.

The laws of logarithms usually arrive as three new formulas to memorise. They are not new at all. They are the exponent laws you already know, read from the other side, and once you see that, expanding a logarithm becomes mechanical and the one popular rule that does not exist becomes obvious.

What a logarithm is

log⁡bx\log_b x is the exponent that turns bb into xx:

log⁡bx=y  ⟺  by=xb>0, b≠1, x>0\log_b x = y \iff b^y = x \qquad b > 0,\ b \ne 1,\ x > 0

So log⁡28=3\log_2 8 = 3, because 23=82^3 = 8. In base 2 there is even a picture: log⁡2x\log_2 x counts how many times you double 1 to reach xx. Going 1, 2, 4, 8 takes three doublings, so log⁡28=3\log_2 8 = 3. A logarithm written with no base at all means base 10.

The product rule

log⁡b(xy)=log⁡bx+log⁡by\log_b(xy) = \log_b x + \log_b y

Why it works. Write x=bmx = b^m and y=bny = b^n, so that m=log⁡bxm = \log_b x and n=log⁡byn = \log_b y. Multiplying powers of the same base adds the exponents:

xy=bm⋅bn=bm+nsolog⁡b(xy)=m+n=log⁡bx+log⁡byxy = b^m \cdot b^n = b^{m+n} \qquad\text{so}\qquad \log_b(xy) = m + n = \log_b x + \log_b y

With numbers: log⁡2(8⋅4)=log⁡232=5\log_2(8 \cdot 4) = \log_2 32 = 5, and log⁡28+log⁡24=3+2=5\log_2 8 + \log_2 4 = 3 + 2 = 5. In the doubling picture, getting to 8⋅48 \cdot 4 means doubling 1 three times to reach 8, then twice more.

This is exactly how people multiplied before calculators. On a logarithmic scale the distance from 1 to xx is log⁡x\log x, so laying two distances end to end multiplies the numbers. That is a slide rule.

Two base-2 logarithmic scales. On the upper one, the length from 1 to 8 is log base 2 of 8, which is 3. The lower scale is slid so that its 1 stands under 8; the length from its 1 to its 4 adds 2 more steps, and the line through its 4 reads 32 on the upper scale. 1248 163264 1248 log2 8 = 3 log2 4 = 2
Two logarithmic scales, one slid along the other, so that two lengths add up.

The quotient rule

log⁡bxy=log⁡bx−log⁡by\log_b \frac{x}{y} = \log_b x - \log_b y

Why it works. Dividing powers of the same base subtracts the exponents:

xy=bmbn=bm−nsolog⁡bxy=m−n=log⁡bx−log⁡by\frac{x}{y} = \frac{b^m}{b^n} = b^{m-n} \qquad\text{so}\qquad \log_b \frac{x}{y} = m - n = \log_b x - \log_b y

With numbers: log⁡2324=log⁡28=3\log_2 \frac{32}{4} = \log_2 8 = 3, and log⁡232−log⁡24=5−2=3\log_2 32 - \log_2 4 = 5 - 2 = 3. Dividing by 4 undoes two doublings.

The power rule

log⁡bxn=nlog⁡bx\log_b x^n = n\log_b x

Why it works. A power of a power multiplies the exponents:

xn=(bm)n=bmnsolog⁡bxn=mn=nlog⁡bxx^n = \left(b^m\right)^n = b^{mn} \qquad\text{so}\qquad \log_b x^n = mn = n\log_b x

With numbers: log⁡282=log⁡264=6\log_2 8^2 = \log_2 64 = 6, and 2log⁡28=2⋅3=62\log_2 8 = 2 \cdot 3 = 6. The square of 8 is the same three doublings, done twice.

Careful The power has to sit on the argument. log⁡bx2=2log⁡bx\log_b x^2 = 2\log_b x, but (log⁡bx)2(\log_b x)^2 means log⁡bx⋅log⁡bx\log_b x \cdot \log_b x, and nothing comes out in front.

Expanding a logarithm, step by step

The order that never goes wrong: split the quotient first, then the products, then bring the powers down.

Example 1. Expand log⁡28x3y\log_2 \dfrac{8x^3}{y}, for x,y>0x, y > 0.

log⁡28x3y=log⁡2(8x3)−log⁡2y=log⁡28+log⁡2x3−log⁡2y=3+3log⁡2x−log⁡2y\begin{aligned} \log_2 \frac{8x^3}{y} &= \log_2\left(8x^3\right) - \log_2 y \\ &= \log_2 8 + \log_2 x^3 - \log_2 y \\ &= 3 + 3\log_2 x - \log_2 y \end{aligned}

Example 2. Expand log⁡x2yz3\log \dfrac{x^2\sqrt{y}}{z^3}, for x,y,z>0x, y, z > 0. A square root is the power 12\frac12, so y=y1/2\sqrt{y} = y^{1/2}.

log⁡x2yz3=log⁡x2+log⁡y1/2−log⁡z3=2log⁡x+12log⁡y−3log⁡z\begin{aligned} \log \frac{x^2\sqrt{y}}{z^3} &= \log x^2 + \log y^{1/2} - \log z^3 \\ &= 2\log x + \frac{1}{2}\log y - 3\log z \end{aligned}

Everything in the numerator comes out with a plus sign, everything in the denominator with a minus sign, and every exponent becomes a coefficient.

Why “for x,y>0x, y > 0” A logarithm only exists for a positive argument. For a negative xx, log⁡x2\log x^2 still exists but 2log⁡x2\log x does not; the correct expansion is then log⁡x2=2log⁡∣x∣\log x^2 = 2\log|x|.

Condensing: the same rules backwards

Run the rules in the other direction and a sum of logs becomes one log, often a number you can write down:

2log⁡5+log⁡4=log⁡52+log⁡4=log⁡(25⋅4)=log⁡100=22\log 5 + \log 4 = \log 5^2 + \log 4 = \log(25 \cdot 4) = \log 100 = 2

Neither log⁡5\log 5 nor log⁡4\log 4 is a nice number on its own. Combined, they are exactly 2, which is the whole point of the laws.

The rule that doesn’t exist: log(a + b)

It looks so natural that almost everyone writes it at some point: log⁡(a+b)=log⁡a+log⁡b\log(a + b) = \log a + \log b. It is false. Test it on the slide rule: log⁡2(8+4)=log⁡212≈3.58\log_2(8 + 4) = \log_2 12 \approx 3.58, while log⁡28+log⁡24=5\log_2 8 + \log_2 4 = 5, and 5 belongs to 32, not to 12.

A base-2 logarithmic scale. The length from 1 to 12 is about 3.58 steps. The length 3 plus 2, which is 5 steps, ends at 32, far beyond 12. 1248 163264 12 log2 12 ≈ 3.58 3 + 2 = 5 ends at 32
A logarithmic scale with the true place of a sum and the place the false rule would give.

Logarithms turn multiplication into addition. They do nothing simple to addition itself, and there is no formula that splits log⁡(a+b)\log(a + b). Two cousins of the same mistake turn up just as often:

  • log⁡(a−b)\log(a - b) is not log⁡a−log⁡b\log a - \log b.
  • log⁡alog⁡b\dfrac{\log a}{\log b} is not log⁡ab\log \dfrac{a}{b}. The left side is a real formula, but a different one: it is the change of base, log⁡alog⁡b=log⁡ba\dfrac{\log a}{\log b} = \log_b a.

How to catch it in an exam. Plug in the smallest numbers you can. With a=b=1a = b = 1: log⁡(1+1)=log⁡2≈0.30\log(1 + 1) = \log 2 \approx 0.30, while log⁡1+log⁡1=0\log 1 + \log 1 = 0. One line of arithmetic, and the false rule is gone.

In short

A product becomes a sum, a quotient becomes a difference, a power becomes a coefficient. Expand by splitting the quotient, then the products, then bringing the powers down. And when a sum sits inside a logarithm, leave it alone.

Frequently asked questions

What are the rules for expanding logarithms?

Three rules. The log of a product is the sum of the logs, log⁡b(xy)=log⁡bx+log⁡by\log_b(xy) = \log_b x + \log_b y. The log of a quotient is the difference, log⁡bxy=log⁡bx−log⁡by\log_b\frac{x}{y} = \log_b x - \log_b y. The log of a power brings the exponent down in front, log⁡bxn=nlog⁡bx\log_b x^n = n\log_b x.

Do the same rules work for ln?

Yes. ln⁡\ln is the logarithm with base ee, and every rule holds for it, for example ln⁡(x2y)=2ln⁡x+ln⁡y\ln(x^2 y) = 2\ln x + \ln y for positive xx and yy.

Can you expand log(a + b)?

No. There is no rule for the logarithm of a sum: log⁡(a+b)\log(a + b) stays as it is. It is not log⁡a+log⁡b\log a + \log b, which is the logarithm of the product abab.

How do you expand the log of a square root?

Write the root as a power with exponent 12\frac12, then use the power rule: log⁡x=log⁡x1/2=12log⁡x\log\sqrt{x} = \log x^{1/2} = \frac{1}{2}\log x.

What is the difference between expanding and condensing?

They are the same rules in opposite directions. Expanding splits one logarithm into several simple ones; condensing combines several into one.

  • expanding logarithms
  • laws of logarithms
  • log rules

← All lessons

Free download

The trigonometry formula sheet

Every trigonometry formula on nine printable pages: exact values, the reduction rules, every identity, and a full-page unit circle chart. No sign-up, just the PDF.

Download the PDF