Ma · Mathematics

Can You Split the Logarithm of a Sum?

Published By the 9to5Science editorial team

At a glance

  1. 1. Check the operation

    A logarithm turns a product into a sum, not a sum into separate logarithms.

  2. 2. Use the product rule

    Combine log_b(x) + log_b(y) as log_b(xy), when x and y are positive.

  3. 3. Keep sums intact

    For log_b(x + y), evaluate the sum first unless a separate algebraic method applies.

A logarithm does not distribute over addition. In general, log⁡b(x+y)\log_b(x+y) is not equal to log⁡b(x)+log⁡b(y)\log_b(x)+\log_b(y). The rule that produces a sum of logarithms applies to a product: log⁡b(xy)=log⁡b(x)+log⁡b(y)\log_b(xy)=\log_b(x)+\log_b(y).

This distinction matters when simplifying expressions, solving equations, or working with a sum written in sigma notation. The safe default is to leave a logarithm of a sum intact unless you can transform the expression using a valid identity.

The logarithm rules

For a real logarithm with base bb, assume b>0b>0 and b≠1b\ne1. Its input must also be positive. The main product and quotient rules are

log⁡b(xy)=log⁡b(x)+log⁡b(y),log⁡b(xy)=log⁡b(x)−log⁡b(y),log⁡b(xr)=rlog⁡b(x),\begin{aligned} \log_b(xy)&=\log_b(x)+\log_b(y),\\ \log_b\left(\frac{x}{y}\right)&=\log_b(x)-\log_b(y),\\ \log_b(x^r)&=r\log_b(x), \end{aligned}

where the inputs to the logarithms are positive. None of these rules says that a sum inside a logarithm can be separated.

The quickest way to remember the product rule is to use the definition of a logarithm. If p=log⁡b(x)p=\log_b(x) and q=log⁡b(y)q=\log_b(y), then x=bpx=b^p and y=bqy=b^q. Thus xy=bp+qxy=b^{p+q}, so log⁡b(xy)=p+q\log_b(xy)=p+q. There is no corresponding exponent rule that turns x+yx+y into an expression involving p+qp+q.

A numerical check

Take base 10 and let x=y=10x=y=10. If you incorrectly split the logarithm of their sum, you would get

log⁡10(10+10)=log⁡10(10)+log⁡10(10)=2.\log_{10}(10+10)=\log_{10}(10)+\log_{10}(10)=2.

But the left side is actually

log⁡10(20)≈1.3010,\log_{10}(20)\approx 1.3010,

not 2. The number 2 is instead the value of log⁡10(10⋅10)\log_{10}(10\cdot10):

log⁡10(100)=2.\log_{10}(100)=2.

This illustrates the distinction: adding logarithms corresponds to multiplying their inputs. As another quick check, if x=y=1x=y=1, then log⁡10(x+y)=log⁡10(2)\log_{10}(x+y)=\log_{10}(2), while log⁡10(x)+log⁡10(y)=0+0=0\log_{10}(x)+\log_{10}(y)=0+0=0.

What to do with a logarithm of a sum

If the expression is simply log⁡b(x+y)\log_b(x+y), first check that x+y>0x+y>0. If the inputs are numbers, add them and then evaluate the logarithm. If they are variables or complicated expressions, there may be no simpler form.

Sometimes factoring is useful. For positive xx and yy, you can factor out xx inside the logarithm:

log⁡b(x+y)=log⁡b(x(1+yx))=log⁡b(x)+log⁡b(1+yx).\log_b(x+y)=\log_b\left(x\left(1+\frac{y}{x}\right)\right) =\log_b(x)+\log_b\left(1+\frac{y}{x}\right).

This is valid because x+y=x(1+y/x)x+y=x(1+y/x) and both logarithm inputs are positive. It is not a rule for splitting addition: the second term still contains a sum. This form can be helpful when one term is much larger than the other, or when you want to factor an expression.

For example, with x=8x=8 and y=2y=2, base 2 gives

log⁡2(8+2)=log⁡2(8(1+28))=log⁡2(8)+log⁡2(54)=3+log⁡2(54)≈3.3219.\begin{aligned} \log_2(8+2) &=\log_2\left(8\left(1+\frac{2}{8}\right)\right)\\ &=\log_2(8)+\log_2\left(\frac54\right)\\ &=3+\log_2\left(\frac54\right)\\ &\approx 3.3219. \end{aligned}

That matches log⁡2(10)≈3.3219\log_2(10)\approx3.3219. It does not equal log⁡2(8)+log⁡2(2)=4\log_2(8)+\log_2(2)=4, which is log⁡2(8⋅2)\log_2(8\cdot2).

Sums with many terms

The same principle applies to log⁡b(a1+a2+⋯+an)\log_b(a_1+a_2+\cdots+a_n). You cannot turn it into ∑i=1nlog⁡b(ai)\sum_{i=1}^n\log_b(a_i) in general. For instance, log⁡10(1+9)=1\log_{10}(1+9)=1, whereas log⁡10(1)+log⁡10(9)=log⁡10(9)≈0.9542\log_{10}(1)+\log_{10}(9)=\log_{10}(9)\approx0.9542.

By contrast, a logarithm of a product can become a sum:

log⁡b(∏i=1nai)=∑i=1nlog⁡b(ai),\log_b\left(\prod_{i=1}^n a_i\right)=\sum_{i=1}^n\log_b(a_i),

provided every aia_i is positive. The product inside the logarithm is essential.

Common mistakes

  • Splitting addition: log⁡b(x+y)≠log⁡b(x)+log⁡b(y)\log_b(x+y)\ne\log_b(x)+\log_b(y) in general. Use the product rule only when the inputs are multiplied.
  • Combining the wrong way: log⁡b(x)+log⁡b(y)=log⁡b(xy)\log_b(x)+\log_b(y)=\log_b(xy), not log⁡b(x+y)\log_b(x+y).
  • Ignoring the domain: For real logarithms, the argument must be positive. Even if one of xx or yy is negative, log⁡b(x+y)\log_b(x+y) may be defined when their sum is positive; however, the separate logarithms log⁡b(x)\log_b(x) and log⁡b(y)\log_b(y) may not be.
  • Assuming a useful simplification must exist: A logarithm of a sum often has to stay as written. A valid factorization may help, but it does not create a general addition rule.

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.