Math glossary

Log Rules: Product, Quotient, Power, and Change of Base

Learn the log rules, why they work, and how to expand, condense, and solve logarithmic expressions with six examples and domain checks.

TL;DR

Log rules turn multiplication inside a logarithm into addition, division into subtraction, and powers into multipliers. Use the same base throughout, and check that every original logarithm has a positive argument before accepting an answer.

Key Points

  • A real logarithm requires a positive argument and a positive base other than 1.
  • Only multiplication, division, and powers inside a logarithm trigger the three main rules.
  • The natural logarithm uses base e and follows the same rules as other valid bases.
  • Combining logarithms can hide a restriction from the original expression, so check the original domain.

What is a logarithm?

A logarithm answers an exponent question. If b>0b>0, b≠1b\ne1, and x>0x>0, then logbx=y\log_b x=y means that raising bb to the power yy gives xx.

logbx=y⟺by=x.\log_b x=y \iff b^y=x.

For example, log28=3\log_2 8=3 because 23=82^3=8. The number 88 is the argument, and 22 is the base. The base and argument have different restrictions. NIST’s Digital Library of Mathematical Functions describes the natural logarithm and how it gives logarithms in other bases. If the subscript is absent, check your course’s convention. A scientific calculator typically uses log\log for base 10 and ln\ln for base ee.

Graph of base-two logarithms at one, two, four, and eight showing that doubling the input adds one
On the graph of log2x\log_2 x, each doubling of the argument raises the output by 1. This illustrates the product rule with one factor equal to 2.

Which log rules should you use?

Choose the rule by looking at the outermost operation inside a single argument. Use the same base b>0b>0, b≠1b\ne1, and positive arguments uu and vv in the table. The change-of-base rule also requires c>0c>0 and c≠1c\ne1.

Rule Formula When it helps
Product logb(uv)=logbu+logbv\log_b(uv)=\log_b u+\log_b v Expand factors or combine two added logarithms.
Quotient logb(u/v)=logbu−logbv\log_b(u/v)=\log_b u-\log_b v Separate a numerator and denominator or combine a difference.
Power logb(uk)=klogbu\log_b(u^k)=k\log_b u Bring a real exponent kk outside or move a coefficient inside.
Change of base logbu=logculogcb\log_b u=\frac{\log_c u}{\log_c b} Evaluate an unfamiliar base with natural or common logs.
Log of one logb1=0\log_b 1=0 Any valid base raised to zero equals 1.
Log of its own base logbb=1\log_b b=1 Any valid base raised to the first power equals itself.
Reciprocal logb(1/u)=−logbu\log_b(1/u)=-\log_b u Take the logarithm of a reciprocal using the power −1-1.
Inverse properties logb(bt)=t\log_b(b^t)=t, blogbu=ub^{\log_b u}=u Undo an exponential or logarithm in the same base.

OpenStax’s logarithmic properties chapter uses the product, quotient, power, and change-of-base rules to evaluate, expand, and condense expressions. A quick decision check is to mark the sign between terms in the argument. A multiplication sign can split into two added logarithms. A plus sign inside a logarithm stays inside unless you can first simplify or factor the expression.

Why do the log rules work?

Let p=logbup=\log_b u and q=logbvq=\log_b v. Then u=bpu=b^p and v=bqv=b^q. Multiplying powers of the same base adds their exponents, so

uv=bpbq=bp+q⟹logb(uv)=p+q=logbu+logbv.uv=b^p b^q=b^{p+q} \quad\Longrightarrow\quad \log_b(uv)=p+q=\log_b u+\log_b v.

For the quotient, the exponent law bp/bq=bp−qb^p/b^q=b^{p-q} accounts for subtraction. For the power rule, (bp)k=bpk(b^p)^k=b^{pk} makes kk a multiplier. The guide to math operations and inverses can help you see why reversing exponentiation preserves these relationships.

To derive change of base, start with y=logbuy=\log_b u, so by=ub^y=u. Taking logc\log_c gives ylogcb=logcuy\log_c b=\log_c u. Divide by logcb\log_c b, which is nonzero because b≠1b\ne1. Either ln\ln or log10\log_{10} gives the same ratio, provided the numerator and denominator use the same base.

How do you expand or condense logarithms?

To expand, split a product or quotient, then bring each power down as a coefficient. To condense, put coefficients back into powers, then combine additions as products and subtractions as quotients. University of Maryland practice problems use both directions. Write any domain restrictions beside the expression before starting.

Starting point Useful first action
log3((5x2)/y)\log_3\big((5x^2)/y\big), with x,y>0x,y>0 Use the quotient rule to separate 5x25x^2 from yy.
2lnx−ln72\ln x-\ln 7, with x>0x>0 Move the 2 inside as an exponent on xx.
log2(1+x)\log_2(1+x), with x>−1x>-1 Keep 1+x1+x together. There is no general rule for log of a sum.

An especially useful check is ln(x2)=2ln|x|\ln(x^2)=2\ln|x| for x≠0x\ne0, since x2=|x|2x^2=|x|^2. Writing 2lnx2\ln x would lose the negative inputs where the original ln(x2)\ln(x^2) is defined. A similar restriction applies when you condense a difference.

logb(x−1)−logb(x+1)=logb(x−1x+1)\log_b(x-1)-\log_b(x+1) =\log_b\left(\frac{x-1}{x+1}\right)

Keep the original condition x>1x>1, even though the quotient on the right is also positive for x<−1x<-1.

When do the natural logarithm rules matter in practice?

The base of ln\ln is Euler’s number ee. The same three operations apply. In particular, ln(et)=t\ln(e^t)=t for every real tt and elnx=xe^{\ln x}=x for x>0x>0.

For a continuous growth model A(t)=PertA(t)=Pe^{rt} with P>0P>0, the product rule and inverse property give

lnA(t)=lnP+rt.\ln A(t)=\ln P+rt.

A plot of lnA(t)\ln A(t) against tt has slope rr when this model holds. The same algebra explains why people take logarithms to solve for time or estimate a constant proportional rate. The types of functions guide compares exponential rules with their logarithmic inverses.

If you are using logarithms in calculus, the natural logarithm has derivative 1/x1/x on x>0x>0. Changing the base gives (d/dx)logbx=1/(xlnb)(d/dx)\log_b x=1/(x\ln b). For integration, ∫lnxdx=xlnx−x+C\int\ln x\,dx=x\ln x-x+C on the positive domain. Differentiate the right side using the product rule to check it. OpenStax’s chapter on exponential and logarithmic derivatives develops the derivative formulas.

Examples of Log Rules

Example 1

Evaluate log510+log5(5/2)\log_5 10+\log_5(5/2) without a calculator.

  1. The two logarithms share base 5, so combine using the product rule.
  2. Multiply 10·(5/2)=2510\cdot(5/2)=25.
  3. Then log525=2\log_5 25=2 because 52=255^2=25.

Example 2

Expand ln(7x4/y3)\ln(7x^4/y^3), assuming x,y>0x,y>0.

  1. Separate the ratio into ln(7x4)−ln(y3)\ln(7x^4)-\ln(y^3).
  2. Split ln(7x4)\ln(7x^4) into ln7+ln(x4)\ln7+\ln(x^4).
  3. Apply the power rule. The result is ln7+4lnx−3lny\ln7+4\ln x-3\ln y.

Example 3

Condense 3log4x−12log4y3\log_4 x-\frac12\log_4 y, assuming x,y>0x,y>0.

  1. Move the coefficients into the arguments as powers, giving log4(x3)−log4(y1/2)\log_4(x^3)-\log_4(y^{1/2}).
  2. Use the quotient rule.
  3. The result is log4(x3/y)\log_4\big(x^3/\sqrt y\big), with the original conditions on xx and yy.

Example 4

Approximate log720\log_7 20 on a calculator with a natural-log key.

  1. Apply change of base to get (ln20)/(ln7)(\ln 20)/(\ln 7).
  2. Evaluate the ratio and round to four decimal places to get 1.53951.5395.
  3. Check the range. Since 71=77^1=7 and 72=497^2=49, the exact logarithm lies between 1 and 2.

Example 5

Solve log2(x−1)+log2(x−3)=3\log_2(x-1)+\log_2(x-3)=3.

  1. Require x−1>0x-1>0 and x−3>0x-3>0, so x>3x>3. OpenStax’s logarithmic equations chapter uses this domain check to exclude extraneous roots.
  2. Condense the left side and convert from logarithmic form to exponential form. This gives (x−1)(x−3)=23=8(x-1)(x-3)=2^3=8.
  3. Rearrange to x2−4x−5=0x^2-4x-5=0, or (x−5)(x+1)=0(x-5)(x+1)=0.
  4. The algebra gives 5 and −1-1. Only 55 lies in the original domain. Substituting gives log24+log22=2+1=3\log_2 4+\log_2 2=2+1=3.

Example 6

Solve 6e0.4t=156e^{0.4t}=15.

  1. Divide both sides by 6 to get e0.4t=2.5e^{0.4t}=2.5.
  2. Take the natural logarithm on both sides. Then 0.4t=ln2.50.4t=\ln 2.5.
  3. Divide by 0.40.4. The result is t=52ln2.5≈2.2907t=\frac52\ln 2.5\approx2.2907.

What mistakes are common with log rules?

Mistake 1: Splitting a sum into two logs

For base 2, log2(2+2)=log24=2\log_2(2+2)=\log_2 4=2. That particular sum coincidentally equals log22+log22\log_2 2+\log_2 2, which can make a bad rule look plausible. Try a different input. log2(4+4)=log28=3\log_2(4+4)=\log_2 8=3, while log24+log24=4\log_2 4+\log_2 4=4. The product rule applies to a product, so it gives log2(4·4)=4\log_2(4\cdot4)=4.

Mistake 2: Combining mixed bases

You cannot combine log28+log416\log_2 8+\log_4 16 by putting the product 8·168\cdot16 into just one of those bases. Evaluate the terms separately, giving 3+2=53+2=5, or use change of base before attempting a same-base identity.

Mistake 3: Discarding the original domain

A product of two negative numbers can be positive while the logarithm of either factor is undefined over the reals. In Example 5 the input −1-1 makes (x−1)(x−3)=8(x-1)(x-3)=8, but each original logarithm receives a negative argument. Check the original equation before writing the answer set.

Try It Yourself

  1. Evaluate log318−log32\log_3 18-\log_3 2 exactly.
  2. Expand log5(x2/4)\log_5(x^2/4) on its full real domain.
  3. Solve log3(x+1)=2\log_3(x+1)=2.

Answers and Reasoning

  1. The quotient is 18/2=918/2=9. Thus log39=2\log_3 9=2.
  2. The original argument is positive for x≠0x\ne0. The result is 2log5|x|−log542\log_5|x|-\log_5 4, with x≠0x\ne0.
  3. The domain requires x>−1x>-1. The equation gives x+1=32=9x+1=3^2=9, so x=8x=8 is valid.

Questions About Log Rules

What is the difference between ln\ln and log\log?

ln\ln always means a logarithm to base ee. The notation log\log without a subscript depends on the context. On most scientific calculators it means base 10. Some higher-math texts use it for the natural logarithm.

Is the logarithm of 0 defined?

Over the reals, a logarithm needs a positive argument. No positive base raised to a finite real exponent equals zero, so logb0\log_b 0 is undefined. The identity logb1=0\log_b 1=0 says something different. Its argument is 1 and its output is 0.

Can a logarithm have a negative answer?

Yes. For example, log2(1/8)=−3\log_2(1/8)=-3 since 2−3=1/82^{-3}=1/8. The argument is positive even though the output is negative. With a base greater than 1, arguments between 0 and 1 give negative outputs.

Can the base be between 0 and 1?

Yes. For instance, log1/28=−3\log_{1/2} 8=-3, since (1/2)−3=8(1/2)^{-3}=8. The same algebraic rules apply, but the graph of log1/2x\log_{1/2} x decreases as xx increases.

Conclusion

  • Use the product, quotient, and power rules to track the operation inside the logarithm.
  • Use change of base when a calculator lacks the desired base.
  • Keep the original argument restrictions and substitute every candidate answer back into the starting equation.

Read More

Research Behind This Article

  1. NIST, Digital Library of Mathematical Functions, Logarithm, Exponential and Power Definitions. DLMF
  2. OpenStax, Algebra and Trigonometry 2e: Logarithmic Properties. OpenStax
  3. University of Maryland, MATH 115: Logarithm Practice and Worked Solutions. University of Maryland
  4. OpenStax, Calculus Volume 1: Derivatives of Exponential and Logarithmic Functions. OpenStax
  5. OpenStax, Algebra and Trigonometry 2e: Exponential and Logarithmic Equations. OpenStax