Logarithm laws turn multiplication into addition, division into subtraction, and positive-base powers into scalar multiples. These transformations work because a logarithm records an exponent.

Their conditions are part of the mathematics. A shortened expression can be defined on more inputs than the logarithms from which it was formed. This lesson derives the laws and keeps the original real domain visible during expansion and condensation.

On this page

Fix a valid base and positive arguments

For real logarithms, the base satisfies b>0b>0 and b≠1b\ne1. The argument must be strictly positive. The definition is

logbx=u⇔bu=x.\log_b x=u\quad\Longleftrightarrow\quad b^u=x.

A base between zero and one is valid, although its logarithm is decreasing. Base one is not valid because 1u1^u cannot distinguish exponents. In this page ln\ln means base ee, and log10\log_{10} is written with its base whenever a decimal logarithm is intended.

The inverse relations are

blogbx=x(x>0),logb(bu)=u(u∈ℝ).b^{\log_b x}=x\quad(x>0),\qquad\log_b(b^u)=u\quad(u\in\mathbb R).

These do not give a real logarithm of zero or a negative number. Complex logarithms have branch issues and are outside these real-variable rules.

Derive the product and quotient laws

Let u=logbMu=\log_b M and v=logbNv=\log_b N, with M,N>0M,N>0. Then M=buM=b^u and N=bvN=b^v. The exponent laws give

MN=bu+v,MN=bu−v.MN=b^{u+v},\qquad\frac MN=b^{u-v}.

Applying the inverse function yields

logb(MN)=logbM+logbN,\log_b(MN)=\log_b M+\log_b N,
logb(MN)=logbM−logbN.\log_b\left(\frac MN\right)=\log_b M-\log_b N.

For example,

log248−log23=log2(48/3)=log216=4.\log_2 48-\log_2 3=\log_2(48/3)=\log_2 16=4.

No decimal approximations are necessary. Both logarithms on the left are defined, and the quotient law preserves their value.

The positivity requirement is not redundant. The number (−2)(−3)=6(-2)(-3)=6 has a real logarithm, but neither ln(−2)\ln(-2) nor ln(−3)\ln(-3) does. Thus ln(MN)\ln(MN) can have a larger real domain than lnM+lnN\ln M+\ln N. An identity derived under M,N>0M,N>0 does not justify adding other cases silently.

Derive the power law and use absolute values when needed

For M>0M>0 and real rr, write M=buM=b^u. Then Mr=burM^r=b^{ur} and

logb(Mr)=rlogbM.\log_b(M^r)=r\log_b M.

For instance, log3(92)=2log39=4\log_3(9^2)=2\log_3 9=4. The rule follows from exponent structure, not from moving a printed exponent by convention.

For a variable that might be negative, extra care is required. The expression ln(x2)\ln(x^2) is defined whenever x≠0x\ne0. Since x2=|x|2x^2=|x|^2,

ln(x2)=2ln|x|,x≠0.\ln(x^2)=2\ln|x|,\qquad x\ne0.

Writing 2lnx2\ln x would preserve the value only on x>0x>0 and would lose every negative input from the original domain. Likewise, for a positive integer mm,

ln(x2m)=2mln|x|(x≠0).\ln(x^{2m})=2m\ln|x|\quad(x\ne0).

The OpenStax logarithmic-properties chapter gives the standard laws. The domain comparisons here explain how to use them when the original factors do not all have a positive sign.

Expand a compound expression with its full domain

Consider

ln(x2yz3).\ln\left(\frac{x^2\sqrt y}{z^3}\right).

For a real square root and a positive logarithm argument, the original domain requires x≠0x\ne0, y>0y>0 and z>0z>0. If y=0y=0 or x=0x=0, the argument is zero; if z<0z<0, it is negative; if z=0z=0, the quotient is undefined.

On that domain,

ln(x2yz3)=2ln|x|+12lny−3lnz.\ln\left(\frac{x^2\sqrt y}{z^3}\right)=2\ln|x|+\frac12\ln y-3\ln z.

Check a permitted negative value of xx: with x=−2x=-2, y=9y=9, z=1z=1, the original argument is 12 and the expansion is 2ln2+ln3=ln122\ln2+\ln3=\ln12. The absolute value is necessary for the expanded expression to remain defined.

This example also shows why domain analysis should come before the formal expansion. A denominator’s odd power and a square root constrain signs differently.

Condense without enlarging the original domain

For

3log2x−12log2(x−1),3\log_2 x-\frac12\log_2(x-1),

the original domain is x>1x>1. The power and quotient laws give

log2(x3x−1),x>1.\log_2\left(\frac{x^3}{\sqrt{x-1}}\right),\qquad x>1.

The retained condition makes the equivalence explicit. In other examples, the condensed argument may be positive on additional intervals, even though the separate logarithms are undefined there.

For example, ln(x−1)+ln(x+1)\ln(x-1)+\ln(x+1) has domain x>1x>1, whereas ln(x2−1)\ln(x^2-1) also exists for x<−1x<-1. Condensing an equation built from the two original logarithms does not authorise those extra negative inputs. Solving Logarithmic Equations applies this distinction to extraneous roots.

Derive change of base

Let u=logbxu=\log_b x, so bu=xb^u=x. For another valid base aa,

ulogab=logax.u\log_a b=\log_a x.

Since b≠1b\ne1, the denominator is nonzero, giving

logbx=logaxlogab=lnxlnb.\log_b x=\frac{\log_a x}{\log_a b}=\frac{\ln x}{\ln b}.

This allows a calculator with a natural-logarithm button to evaluate any valid positive base. Keep the argument above the base logarithm: lnb/lnx\ln b/\ln x is generally a different quantity.

When x>0x>0 and x≠1x\ne1, reversing the base and argument gives

logbxlogxb=1.\log_b x\,\log_x b=1.

For example, log28=3\log_2 8=3 and log82=1/3\log_8 2=1/3. At x=1x=1, the second logarithm would have the invalid base one, so the product relation does not apply.

Identify operations for which no corresponding law exists

There is no general sum law ln(M+N)=lnM+lnN\ln(M+N)=\ln M+\ln N. The right side equals ln(MN)\ln(MN) when M,N>0M,N>0, not the logarithm of their sum. For M=1M=1 and N=2N=2, these arguments are 3 and 2, so the proposed equality fails.

Likewise, ln(M−N)\ln(M-N) cannot generally be split into a difference of logarithms. That difference represents ln(M/N)\ln(M/N). A useful strategy is to factor a sum or difference first, then apply a law only to the resulting valid product or quotient.

The square of a logarithm, (lnx)2(\ln x)^2, is also different from ln(x2)\ln(x^2). At x=ex=e, the first equals 1 and the second equals 2. Parentheses determine which operation is being performed.

Practice questions

  1. Simplify log248−log23\log_2 48-\log_2 3 exactly.
  2. Expand ln(x2)\ln(x^2) on its full real domain.
  3. Condense 3log2x−12log2(x−1)3\log_2 x-\frac12\log_2(x-1) and retain the original domain.
Check your answers
  1. The quotient law gives log216=4\log_2 16=4. Both original arguments are positive.
  2. The result is 2ln|x|2\ln|x| for x≠0x\ne0. The expression 2lnx2\ln x alone would incorrectly exclude negative xx.
  3. The result is log2(x3/x−1)\log_2\bigl(x^3/\sqrt{x-1}\bigr) for x>1x>1. Positivity of both original logarithm arguments determines that domain.

Related topics

Use Solving Exponential Equations to bring an unknown exponent into an equation. Solving Logarithmic Equations develops domain-sensitive solutions and inequalities.

Sources and further reading