Exponentials & Logarithms

Expanding Logarithms: Rules, Worked Examples and Checks

To expand a logarithm, use three rules: log⁡b(MN)=log⁡bM+log⁡bN\log_b(MN)=\log_b M+\log_b N, log⁡bMN=log⁡bM−log⁡bN\log_b\frac{M}{N}=\log_b M-\log_b N and log⁡b(Mp)=plog⁡bM\log_b(M^p)=p\log_b M. Every product becomes a sum, every quotient becomes a difference, and every exponent slides out front as a multiplier.

log⁡bMpN=plog⁡bM−log⁡bN\log_b\frac{M^p}{N}=p\log_b M-\log_b N

Those are the core logarithm rules used in a fixed order. The skill is not the rules themselves. It is knowing the order, spotting what cannot be expanded, and catching the sign and domain slips that cost the most points.

Why do the rules for expanding logarithms work?

One idea explains all three rules: a logarithm is an exponent. If log⁡bM=m\log_b M=m and log⁡bN=n\log_b N=n, then M=bmM=b^m and N=bnN=b^n. (If that translation feels shaky, what a logarithm is covers it from scratch.) Multiply the two numbers and the exponent rules take over:

MN=bm⋅bn=bm+n⟹log⁡b(MN)=m+nMN=b^m\cdot b^n=b^{m+n}\quad\Longrightarrow\quad \log_b(MN)=m+n

Dividing gives bmbn=bm−n\frac{b^m}{b^n}=b^{m-n}, so the quotient becomes a difference. Raising to a power gives Mp=(bm)p=bmpM^p=(b^m)^p=b^{mp}, so the log becomes p⋅mp\cdot m. Each rule is an exponent law read backward. A full write-up of each one is in the proofs of the logarithm properties.

This also explains the limit of the method. Exponent laws say what happens to bm⋅bnb^m\cdot b^n and bm÷bnb^m\div b^n, but nothing simple happens to bm+bnb^m+b^n. So logs can see through multiplication, division and powers, and they cannot see through addition or subtraction inside the argument.

How do you expand logarithms step by step?

Work from the outside in, in this order:

  1. Split any quotient into a difference (top minus bottom).
  2. Split every product into a sum.
  3. Move each exponent, including roots written as fractions, to the front as a multiplier.
  4. Evaluate any log that comes out as a clean number.
What "fully expanded" means

Each log holds one irreducible piece: a single variable, or a sum that cannot be factored. No log contains a product, a quotient or an exponent on the whole argument, and every numeric log such as log⁡28\log_2 8 has been evaluated.

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

log⁡28x3y=log⁡2(8x3)−log⁡2y\log_2\frac{8x^3}{y}=\log_2(8x^3)-\log_2 y

=log⁡28+log⁡2x3−log⁡2y=\log_2 8+\log_2 x^3-\log_2 y

=3+3log⁡2x−log⁡2y=3+3\log_2 x-\log_2 y

The constant became 33 because 23=82^3=8. Many students leave log⁡28\log_2 8 in the answer and lose the mark, so always ask whether a numeric piece is a power of the base.

Here is a mental shortcut that skips the three-stage writing. A factor in the numerator gets a plus sign, a factor in the denominator gets a minus sign, and each factor’s own exponent becomes its coefficient. Read the fraction left to right, and the expansion writes itself.

Quick check

Expand log⁡416xy3\log_4\dfrac{16x}{y^3}.

How do you expand logs with roots and negative exponents?

A root is a fractional exponent, so xn=x1/n\sqrt[n]{x}=x^{1/n} and the power rule handles it. That gives log⁡bx=12log⁡bx\log_b\sqrt{x}=\frac12\log_b x. A negative exponent works the same way: log⁡bx−3=−3log⁡bx\log_b x^{-3}=-3\log_b x. This agrees with the quotient rule, because log⁡b1x3=log⁡b1−log⁡bx3=−3log⁡bx\log_b\frac{1}{x^3}=\log_b 1-\log_b x^3=-3\log_b x, and log⁡b1=0\log_b 1=0 for every base.

Example 2. Expand ln⁡e3xy4\ln\dfrac{e^3\sqrt{x}}{y^4}, with x,y>0x,y>0.

ln⁡e3xy4=ln⁡(e3x)−ln⁡y4\ln\frac{e^3\sqrt{x}}{y^4}=\ln\left(e^3\sqrt{x}\right)-\ln y^4

=ln⁡e3+ln⁡x1/2−ln⁡y4=\ln e^3+\ln x^{1/2}-\ln y^4

=3+12ln⁡x−4ln⁡y=3+\tfrac12\ln x-4\ln y

The 33 appears because the natural logarithm has base ee, so ln⁡e3=3ln⁡e=3\ln e^3=3\ln e=3. This is the whole reason Euler’s number ee makes natural logs tidy: ln⁡e=1\ln e=1 removes the constant’s log entirely.

The trap here is the double negative. When a negative exponent sits in a denominator, the quotient rule subtracts and the power rule contributes a negative coefficient, so the two signs cancel and the term comes out positive.

Try this: Expand log⁡3x39y−2\log_3\dfrac{\sqrt[3]{x}}{9y^{-2}}. Then test it with x=27x=27 and y=3y=3: both the original and your expansion should equal 11.

Can you expand the log of a sum or a difference?

Bar comparison showing log(10+10) is about 1.301 while log 10 plus log 10 equals 2
With x = y = 10 in base 10, log(x + y) is about 1.301, but log x + log y is 2, so the tempting split is wrong.

No. There is no rule for log⁡(x+y)\log(x+y), and the tempting answer log⁡x+log⁡y\log x+\log y is wrong. A quick test with x=y=10x=y=10 in base 1010 shows it: log⁡(10+10)=log⁡20≈1.301\log(10+10)=\log 20\approx1.301, but log⁡10+log⁡10=2\log 10+\log 10=2.

The workaround is to factor. A sum or difference inside a log can be expanded only if it first becomes a product. Differences of squares, trinomials and common factors all qualify. If a quadratic does not factor by inspection, the discriminant tells you whether it ever will: when b2−4ac<0b^2-4ac<0 there is no real factorization, so the log stays whole. The quadratic formula practice problems are good for building that instinct.

Example 3. Expand log⁡2x2−4x+1\log_2\dfrac{x^2-4}{\sqrt{x+1}}, with x>2x>2.

log⁡2(x−2)(x+2)(x+1)1/2=log⁡2[(x−2)(x+2)]−log⁡2(x+1)1/2\log_2\frac{(x-2)(x+2)}{(x+1)^{1/2}}=\log_2\left[(x-2)(x+2)\right]-\log_2(x+1)^{1/2}

=log⁡2(x−2)+log⁡2(x+2)−12log⁡2(x+1)=\log_2(x-2)+\log_2(x+2)-\tfrac12\log_2(x+1)

Notice that x−2x-2, x+2x+2 and x+1x+1 each stay inside their own log. They are sums and cannot be split further.

A related slip is confusing a power of a log with a log of a power. (log⁡x)2(\log x)^2 is not 2log⁡x2\log x. At x=1000x=1000 in base 1010, (log⁡1000)2=9(\log 1000)^2=9, while 2log⁡1000=62\log 1000=6. The power rule only applies when the exponent is on the argument, not on the log itself.

Quick check

Expand ln⁡x2−1x\ln\dfrac{x^2-1}{x} for x>1x>1.

Does expanding a logarithm change its domain?

Graph of ln(x²) with two branches versus 2 ln x with only the right branch
The graph of ln(x²) has a mirrored left branch, but 2 ln x exists only for positive x, so the two are different functions.

Sometimes, and this is the gap most lessons skip. The expression ln⁡(x2)\ln(x^2) is defined for every x≠0x\neq0, including negative numbers. The expansion 2ln⁡x2\ln x is defined only for x>0x>0. The two are not the same function.

Even powers need absolute value

For an even exponent, the safe expansion is ln⁡x2=2ln⁡∣x∣\ln x^{2}=2\ln|x|. Check with x=−3x=-3: ln⁡9=2ln⁡3\ln 9=2\ln 3, which is true, while 2ln⁡(−3)2\ln(-3) does not exist.

Products and quotients have the same issue. With x=−2x=-2 and y=−3y=-3, log⁡(xy)=log⁡6\log(xy)=\log 6 is fine, but log⁡x+log⁡y\log x+\log y is undefined. This is why textbooks say “assume all variables are positive” before an expansion problem. When no such statement is given, the safest habit is to note the domain of the original expression and compare it with the domain of the result.

The graphs show the difference clearly. The graph of y=ln⁡(x2)y=\ln(x^2) has two branches, mirrored across the yy-axis, while y=2ln⁡xy=2\ln x has only the right branch. If you want to see the shape of a log function and its domain boundary, graphing logarithmic functions builds it up from the vertical asymptote.

How do you check an expanded logarithm?

Substitute numbers that make everything clean, and compare both sides. For Example 1 in base 22, choose x=4x=4 and y=2y=2:

log⁡28⋅432=log⁡2256=8\log_2\frac{8\cdot4^3}{2}=\log_2 256=8

3+3log⁡24−log⁡22=3+6−1=83+3\log_2 4-\log_2 2=3+6-1=8

Both sides give 88. If the sign on log⁡2y\log_2 y had been wrong, the right side would be 1010, and the mismatch would flag it immediately.

Two habits make this check reliable. First, avoid x=1x=1 or y=1y=1, because log⁡1=0\log 1=0 hides power and coefficient errors. Second, test with two different pairs of values, since a single pair can match by accident. The check takes under a minute, and it catches exactly the errors that matter: wrong signs, dropped coefficients and forgotten constants.

Quick check

A student expands log⁡2x3y\log_2\dfrac{x^3}{y} as 3log⁡2x+log⁡2y3\log_2 x+\log_2 y. Test x=2x=2, y=2y=2. Is the result right?

Expanding, condensing and change of base: what differs?

Expanding and condensing logarithms are the same three rules run in opposite directions. Expand when you need to see the pieces, for example to read off coefficients or evaluate constants. Condense when you need a single log, which is usually step one in solving logarithmic equations.

The change of base formula is the one most often mistaken for an expansion rule. It says log⁡bx=ln⁡xln⁡b\log_b x=\frac{\ln x}{\ln b}, which is a quotient of two logs, not the log of a quotient. So log⁡xlog⁡y\frac{\log x}{\log y} does not equal log⁡x−log⁡y\log x-\log y. It equals log⁡yx\log_y x. The change of base formula is also what you use when an expansion leaves a stubborn constant such as log⁡25\log_2 5:

log⁡25=ln⁡5ln⁡2≈2.3219\log_2 5=\frac{\ln 5}{\ln 2}\approx2.3219

A good test for any rule: if the log of something is being split, it must be a product, quotient or power inside the argument. If two logs are being divided, no expansion rule applies.

Where are expanded logarithms used in real problems?

Sound intensity is measured in decibels with L=10log⁡10II0L=10\log_{10}\frac{I}{I_0}. Double the intensity and the product rule applies: 10log⁡102II0=10log⁡102+10log⁡10II010\log_{10}\frac{2I}{I_0}=10\log_{10}2+10\log_{10}\frac{I}{I_0}. Since 10log⁡102≈3.0110\log_{10}2\approx3.01, every doubling adds about 33 decibels, whatever the starting level.

The same expansion straightens out exponential data. Take the log of y=a⋅bxy=a\cdot b^x and expand it:

log⁡y=log⁡a+xlog⁡b\log y=\log a+x\log b

This is a line in xx, with slope log⁡b\log b and intercept log⁡a\log a (compare slope-intercept form). That is why exponential growth looks straight on a semi-log plot, and why fitting a line to log⁡y\log y recovers both constants. It is also exactly what happens in solving exponential equations with logarithms, where the exponent comes down so the unknown can be isolated.

Calculus uses the idea too. Logarithmic differentiation expands the log of a messy product of powers into a sum, so each piece can be differentiated separately.

Practice problems

0 of 5 solved

  1. Expand log⁡2(5x)\log_2(5x).

  2. Expand log⁡x3y\log\dfrac{x^3}{y}.

  3. Expand log⁡3(27x2)\log_3(27x^2).

  4. Expand log⁡5x325y\log_5\sqrt{\dfrac{x^3}{25y}}.

  5. Expand log⁡2(x−1)3x+38x2\log_2\dfrac{(x-1)^3\sqrt{x+3}}{8x^2} for x>1x>1.

Common questions

What are the three rules for expanding logarithms?

The product rule turns log⁡b(MN)\log_b(MN) into log⁡bM+log⁡bN\log_b M+\log_b N. The quotient rule turns log⁡bMN\log_b\frac{M}{N} into log⁡bM−log⁡bN\log_b M-\log_b N. The power rule turns log⁡bMp\log_b M^p into plog⁡bMp\log_b M.

Can you expand log⁡(x+y)\log(x+y)?

No. There is no rule for the log of a sum or a difference, and log⁡(x+y)\log(x+y) is not log⁡x+log⁡y\log x+\log y. The only way forward is to factor the inside, because a product can be expanded.

How do you expand the log of a square root?

Rewrite the root as a power of 12\frac12, then use the power rule. For example, log⁡x=log⁡x1/2=12log⁡x\log\sqrt{x}=\log x^{1/2}=\frac12\log x. A cube root uses 13\frac13 in the same way.

In what order should you apply the rules?

Split the quotient first, then the products, then bring the powers down. If the whole expression sits inside a root or a power, deal with that outer exponent first.

Is expanding logarithms the same as simplifying them?

No. Expanding splits one log into several simple ones. Condensing does the reverse and combines several logs into one. Which one counts as simpler depends on what the next step needs.

Why is log⁡(x2)\log(x^2) not always equal to 2log⁡x2\log x?

log⁡(x2)\log(x^2) is defined for every nonzero xx, but 2log⁡x2\log x needs x>0x>0. For negative xx the correct expansion is 2log⁡∣x∣2\log|x|.

Up next