This site is a work in progress. New lessons are added regularly. Contact us

Properties of Logarithms

Learning goals

  • Read every rule as an exponent law run backwards
  • Apply the product, quotient and power rules with their domains
  • Change base with logbM=logaMlogab\log_b M = \tfrac{\log_a M}{\log_a b}
  • Expand by splitting quotients, then products, then exponents
  • Condense by sending coefficients up as exponents first
  • Use log10\log_{10} to count the digits of a huge power

The mirror behind every rule

Everything here rests on the definition you already have. For a base bb with b>0b > 0 and b1b \ne 1, and for M>0M > 0,

logbM=xmeans exactlybx=M.\log_b M = x \quad\text{means exactly}\quad b^x = M.

A logarithm is an exponent. It is the exponent you must put on bb to reach MM. Two consequences follow immediately and get used constantly: blogbM=Mb^{\log_b M} = M for every M>0M > 0, and logb(bx)=x\log_b (b^x) = x for every real xx. Those two say that raising bb to a power and taking a base-bb logarithm are inverse operations, each undoing the other.

Now recall the exponent laws, which hold for every real exponent whenever the base is positive:

bxby=bx+y,bxby=bxy,(bx)p=bxp.b^x \cdot b^y = b^{x+y}, \qquad \frac{b^x}{b^y} = b^{x-y}, \qquad \left(b^x\right)^p = b^{xp}.

Each of the three logarithm rules is one of these laws, read backwards. That gives us a single proof strategy, and we will use it three times without variation:

  1. Name the logarithms. Put x=logbMx = \log_b M and y=logbNy = \log_b N.
  2. Translate to exponents. The definition says bx=Mb^x = M and by=Nb^y = N.
  3. Apply the matching exponent law to combine them.
  4. Translate back by taking logb\log_b of both sides.

Because the exponent laws sit on one side of the mirror and the logarithm rules on the other, the correspondence is exact:

Exponent lawLogarithm rule it becomes
bxby=bx+yb^x \cdot b^y = b^{x+y}logb(MN)=logbM+logbN\log_b(MN) = \log_b M + \log_b N
bxby=bxy\dfrac{b^x}{b^y} = b^{x-y}logb ⁣(MN)=logbMlogbN\log_b\!\left(\dfrac{M}{N}\right) = \log_b M - \log_b N
(bx)p=bxp\left(b^x\right)^p = b^{xp}logb ⁣(Mp)=plogbM\log_b\!\left(M^p\right) = p \log_b M

Multiplication on the inside becomes addition on the outside, division becomes subtraction, and an exponent becomes a multiplier. One level of difficulty is stripped away every time.

The product rule

For b>0b > 0 with b1b \ne 1, and for M>0M > 0 and N>0N > 0:

logb(MN)=logbM+logbN.\log_b(MN) = \log_b M + \log_b N.

The product rule#

Let x=logbMx = \log_b M and y=logbNy = \log_b N. Both of these logarithms exist precisely because MM and NN are positive, and by the definition of a logarithm the two statements say exactly that bx=Mb^x = M and by=Nb^y = N.

Multiply those two equations together. The left sides give MNMN and the right sides give bxbyb^x \cdot b^y, so MN=bxbyMN = b^x \cdot b^y. The exponent law for a product of powers with the same base collapses the right side into a single power, bxby=bx+yb^x \cdot b^y = b^{x+y}, and therefore

MN=bx+y.MN = b^{\,x+y}.

Read that last line back through the definition of a logarithm. It says that the exponent you must put on bb to reach MNMN is x+yx + y, which is to say logb(MN)=x+y\log_b(MN) = x + y. (The left side is legitimate: MM and NN are positive, so MNMN is positive too.) Substituting back what xx and yy stood for,

logb(MN)=logbM+logbN.\log_b(MN) = \log_b M + \log_b N.

The condition M>0M > 0 and N>0N > 0 is not decorative, and it is stronger than requiring the product to be positive. Take M=N=2M = N = -2. Their product is 44, so the left side logb4\log_b 4 is a perfectly good number, but logb(2)\log_b(-2) does not exist, so the right side is not merely wrong, it is meaningless. The rule needs each factor positive, not just their product. When both factors happen to be negative you can still get somewhere, because MN=MNMN = |M| \cdot |N| and both absolute values are positive: logb(MN)=logbM+logbN\log_b(MN) = \log_b |M| + \log_b |N|.

Here is what the product rule looks like as a picture. Mark the numbers 11 through 1010 on a ruler, but place each number nn at a distance proportional to log10n\log_{10} n from the left end instead of at its own value. On that ruler, distances are logarithms, so adding two logarithms means laying two distances end to end.

Adding lengths on a logarithmic scaleA number line whose ticks 1 through 10 are placed at distances proportional to the base-10 logarithm. The distance for log 2 followed by the distance for log 3 reaches the tick at 6, showing that log 2 plus log 3 equals log 6.log 6log 2log 312345678910
On a logarithmic scale the distance from 1 to a number n is proportional to log 10 of n. Laying the distance for 2 and the distance for 3 end to end lands exactly on 6, because log 2 + log 3 = log 6. Sliding one such scale along another is how a slide rule multiplies.

The second bar is the distance from 11 to 33, but it has been shifted so it starts at 22. It ends at 66. Multiplying by 33 always moves you the same distance to the right on this scale, no matter where you start, and that fixed distance is log103\log_{10} 3. A slide rule is exactly two of these scales, and sliding one against the other adds the distances for you.

The quotient rule

For b>0b > 0 with b1b \ne 1, and for M>0M > 0 and N>0N > 0:

logb ⁣(MN)=logbMlogbN.\log_b\!\left(\frac{M}{N}\right) = \log_b M - \log_b N.

The quotient rule#

The proof is the product rule with one symbol changed. Set x=logbMx = \log_b M and y=logbNy = \log_b N, which exist because MM and NN are positive, and translate them into bx=Mb^x = M and by=Nb^y = N.

This time divide the two equations instead of multiplying them:

MN=bxby=bxy,\frac{M}{N} = \frac{b^x}{b^y} = b^{\,x-y},

where the second equality is the exponent law for a quotient of powers with the same base. Note that N0N \ne 0, since N>0N > 0, so the division is legal, and M/NM/N is positive, so its logarithm exists.

Reading M/N=bxyM/N = b^{x-y} back through the definition of a logarithm gives logb(M/N)=xy\log_b(M/N) = x - y, and substituting back for xx and yy finishes it:

logb ⁣(MN)=logbMlogbN.\log_b\!\left(\frac{M}{N}\right) = \log_b M - \log_b N.

One special case is worth keeping in your head. Put M=1M = 1 and use logb1=0\log_b 1 = 0:

logb ⁣(1N)=logb1logbN=logbN.\log_b\!\left(\frac{1}{N}\right) = \log_b 1 - \log_b N = -\log_b N.

Taking a reciprocal on the inside flips the sign on the outside. That single fact converts every division into a subtraction and every “one over” into a minus sign.

Check your understanding

Which single logarithm is equal to log745log79\log_7 45 - \log_7 9?

Answer choices

The power rule

For b>0b > 0 with b1b \ne 1, for M>0M > 0, and for any real number pp:

logb ⁣(Mp)=plogbM.\log_b\!\left(M^p\right) = p \log_b M.

The power rule#

Let x=logbMx = \log_b M, which exists because M>0M > 0, and translate it: bx=Mb^x = M.

Raise both sides to the power pp. Equal numbers raised to the same power stay equal, so Mp=(bx)pM^p = \left(b^x\right)^p. The exponent law for a power of a power says (bx)p=bxp\left(b^x\right)^p = b^{xp}, and it holds for every real exponent because the base bb is positive. Hence

Mp=bpx.M^p = b^{\,px}.

Since bb is positive, bpxb^{px} is positive, so MpM^p is positive and its logarithm exists. Reading the line back through the definition gives logb ⁣(Mp)=px\log_b\!\left(M^p\right) = px, and substituting x=logbMx = \log_b M gives the rule:

logb ⁣(Mp)=plogbM.\log_b\!\left(M^p\right) = p \log_b M.

Notice what the power rule does: an exponent trapped inside a logarithm walks out to the front as a plain multiplier. That is the property that made logarithms indispensable, because it turns the brutal operation of raising to a power into ordinary multiplication.

The domain condition here is the one students lose. The rule requires M>0M > 0. Consider the familiar-looking claim

logb ⁣(x2)=2logbx.\log_b\!\left(x^2\right) = 2 \log_b x.

This is true for every x>0x > 0, and it is false for every x<0x < 0, for a reason that is easy to miss: when xx is negative, x2x^2 is still positive. The left side is therefore a perfectly good number, but logbx\log_b x does not exist for a negative xx, so the right side is not a number at all. At x=0x = 0 neither side exists. So the equation holds exactly when x>0x > 0, no more and no less.

The repair is an absolute value. For any x0x \ne 0 we have x2=x2x^2 = |x|^2 with x>0|x| > 0, so the power rule applies to x|x| and gives the identity that is true for every nonzero xx:

logb ⁣(x2)=2logbx.\log_b\!\left(x^2\right) = 2 \log_b |x|.

Check it on x=3x = -3: the left side is logb9\log_b 9, and the right side is 2logb3=logb92\log_b 3 = \log_b 9. They agree, and neither one asks you to take the logarithm of a negative number.

Check your understanding

For which values of xx is the statement log5 ⁣(x2)=2log5x\log_5\!\left(x^2\right) = 2\log_5 x true?

Answer choices

Expanding and condensing

Two skills come out of the three rules, and they are the same skill run in opposite directions.

Expanding takes one logarithm of a complicated expression and breaks it into a sum and difference of simpler logarithms. Work from the outside in: split the top and bottom of a fraction first (quotient rule). Then split the products (product rule), and then bring exponents down to the front (power rule). Roots are exponents in disguise, so y=y1/2\sqrt{y} = y^{1/2} before you start.

Condensing runs the film backwards, and the order matters just as much. First send every coefficient back up as an exponent (power rule), because the product and quotient rules only combine logarithms with a coefficient of 11. Then add up the logarithms into a single numerator and subtract the rest into a single denominator.

Throughout, assume every variable inside a logarithm is positive. Textbooks say this so often that they stop saying it out loud, but you now know why they must.

Worked example 1 Evaluate log26+log223\log_2 6 + \log_2 \tfrac{2}{3} without a calculator

Neither logarithm is a whole number on its own, so evaluating them separately is hopeless. Combine them first with the product rule.

log26+log223=log2 ⁣(623)=log24.\log_2 6 + \log_2 \frac{2}{3} = \log_2\!\left(6 \cdot \frac{2}{3}\right) = \log_2 4.

Now the question is what exponent turns 22 into 44, and the answer is 22, since 22=42^2 = 4:

log26+log223=2.\log_2 6 + \log_2 \frac{2}{3} = 2.

The ugly numbers were never the point. The rule let them cancel before we ever had to face them.

Worked example 2 Expand log5 ⁣(25x3y)\log_5\!\left(\dfrac{25x^3}{\sqrt{y}}\right) for x,y>0x, y > 0

Start with the fraction, using the quotient rule to split numerator from denominator:

log5 ⁣(25x3y)=log5 ⁣(25x3)log5y.\log_5\!\left(\frac{25x^3}{\sqrt{y}}\right) = \log_5\!\left(25x^3\right) - \log_5 \sqrt{y}.

The numerator is a product, so the product rule splits it again, and the denominator is a root, which is the power y1/2y^{1/2}:

=log525+log5 ⁣(x3)log5 ⁣(y1/2).= \log_5 25 + \log_5\!\left(x^3\right) - \log_5\!\left(y^{1/2}\right).

Now the power rule brings both exponents to the front, and log525=2\log_5 25 = 2 because 52=255^2 = 25:

log5 ⁣(25x3y)=2+3log5x12log5y.\log_5\!\left(\frac{25x^3}{\sqrt{y}}\right) = 2 + 3\log_5 x - \frac{1}{2}\log_5 y.

Every logarithm left in the answer is as simple as it can be, which is what “expand” asks for.

Worked example 3 Condense 12logbx+3logby2logbz\tfrac{1}{2}\log_b x + 3\log_b y - 2\log_b z into one logarithm

The product and quotient rules cannot touch a logarithm that has a coefficient in front of it, so clear the coefficients first by running the power rule backwards:

12logbx+3logby2logbz=logb ⁣(x1/2)+logb ⁣(y3)logb ⁣(z2).\frac{1}{2}\log_b x + 3\log_b y - 2\log_b z = \log_b\!\left(x^{1/2}\right) + \log_b\!\left(y^3\right) - \log_b\!\left(z^2\right).

The two logarithms being added combine into a product, and the one being subtracted goes into the denominator:

=logb ⁣(x1/2y3z2)=logb ⁣(y3xz2).= \log_b\!\left(\frac{x^{1/2} \cdot y^3}{z^2}\right) = \log_b\!\left(\frac{y^3\sqrt{x}}{z^2}\right).

A single logarithm, as requested. Reversing the steps expands it back to where we started, which is a good way to check your work.

Worked example 4 How a log table multiplies, using log1020.3010\log_{10} 2 \approx 0.3010 and log1030.4771\log_{10} 3 \approx 0.4771

Those two entries are enough to compute the logarithm of any number built from 22s and 33s. That is exactly how a four-figure table was used for three centuries.

Take log1012\log_{10} 12. Factor the inside first: 12=22312 = 2^2 \cdot 3. Now the product rule splits the factors and the power rule brings the exponent down:

log1012=2log102+log1032(0.3010)+0.4771=1.0791.\log_{10} 12 = 2\log_{10} 2 + \log_{10} 3 \approx 2(0.3010) + 0.4771 = 1.0791.

Take log101.5\log_{10} 1.5. Write it as a quotient, 1.5=321.5 = \tfrac{3}{2}, and subtract:

log101.5=log103log1020.47710.3010=0.1761.\log_{10} 1.5 = \log_{10} 3 - \log_{10} 2 \approx 0.4771 - 0.3010 = 0.1761.

Two table lookups and an addition replaced a multiplication; two lookups and a subtraction replaced a division.

Change of base

Every logarithm in the lesson so far has had a friendly base. Real questions are not so polite: a population that triples, an interest rate, a half-life, all produce logarithms in bases nobody has tabulated. Worse, a calculator offers you only a couple of bases, not the one you happen to need.

The fix is the change-of-base formula. For b,a>0b, a > 0 with b1b \ne 1 and a1a \ne 1, and for M>0M > 0:

logbM=logaMlogab.\log_b M = \frac{\log_a M}{\log_a b}.

Any base you can compute in will do for aa. The formula converts the base you want into the base you have.

The division by logab\log_a b is always legal, because logab=0\log_a b = 0 would mean a0=ba^0 = b, that is b=1b = 1, and b=1b = 1 was excluded as a base from the start. The formula itself is three lines of the power rule applied to bx=Mb^x = M. The derivation is worked through in full in where the change-of-base formula comes from, at the bottom of this lesson.

One special case is worth knowing: swapping the base and the argument inverts the value, so log28=3\log_2 8 = 3 sits alongside log82=13\log_8 2 = \tfrac{1}{3}. It falls straight out of the formula. The one line of algebra is in why swapping the base and the argument inverts the value, at the bottom of this lesson.

Worked example 5 Evaluate log832\log_8 32 exactly, and log350\log_3 50 to three decimal places

For log832\log_8 32, notice that both 88 and 3232 are powers of 22, so change to base 22, where both logarithms are exact:

log832=log232log28=53.\log_8 32 = \frac{\log_2 32}{\log_2 8} = \frac{5}{3}.

Check it against the definition: 85/3=(23)5/3=25=328^{5/3} = \left(2^3\right)^{5/3} = 2^5 = 32. Correct.

For log350\log_3 50 there is no such luck, so change to base 1010, which is what a calculator’s log key gives you:

log350=log1050log1031.69900.47713.561.\log_3 50 = \frac{\log_{10} 50}{\log_{10} 3} \approx \frac{1.6990}{0.4771} \approx 3.561.

A quick sanity check keeps you honest: 33=273^3 = 27 and 34=813^4 = 81, and 5050 sits between them, so the answer had to land between 33 and 44.

Check your understanding

Rewrite log690\log_6 90 using base-10 logarithms.

Answer choices

What the rules buy you

The power rule does something no amount of arithmetic can: it measures a number too large to write down. How many digits does 2402^{40} have? Multiplying it out is possible but tedious, and for 240002^{4000} it would be hopeless. Logarithms answer the question in one line.

The idea is that a positive integer NN has dd digits exactly when 10d1N<10d10^{d-1} \le N < 10^d. (A three-digit number runs from 100100 to 999999, which is 102N<10310^2 \le N < 10^3.) So the digit count is read off from where log10N\log_{10} N falls between consecutive whole numbers.

Worked example 6 How many digits does 2402^{40} have? Use log1020.30103\log_{10} 2 \approx 0.30103

Take the base-10 logarithm and let the power rule pull the exponent down:

log10 ⁣(240)=40log10240(0.30103)=12.0412.\log_{10}\!\left(2^{40}\right) = 40 \log_{10} 2 \approx 40(0.30103) = 12.0412.

That value sits between 1212 and 1313. Because 10t10^t grows as tt grows, this pins the number itself:

1012<240<1013.10^{12} < 2^{40} < 10^{13}.

A number that is at least 101210^{12} but below 101310^{13} has exactly 1313 digits. So 2402^{40} has 1313 digits, and indeed 240=1,099,511,627,7762^{40} = 1{,}099{,}511{,}627{,}776.

The same line handles 240002^{4000}, where 4000(0.30103)=1204.124000(0.30103) = 1204.12 tells you the answer has 12051205 digits, without writing a single one of them.

That is the shape of every application in the next lessons. Whenever an unknown is stuck in an exponent, take a logarithm and the power rule drags it down to where ordinary algebra can reach it.

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Free Response Questions (FRQ)

Longer questions in parts, to be worked out on paper. Progressive hints, the answer on its own so you can check yourself and try again, then the full worked solution, plus a rubric to mark your own work against.

Free response Work it out on paper 5 questions Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

Go deeper (optional)

You can skip this and keep going. Read it if you want to know more.

Where the change-of-base formula comes from

The lesson states the formula and uses it; this is the derivation, which rests on nothing but the definition and the power rule you already have.

The change-of-base formula#

Let x=logbMx = \log_b M, which exists because M>0M > 0, and translate it with the definition: bx=Mb^x = M.

Two equal positive numbers have equal logarithms in any valid base, so we may apply loga\log_a to both sides of bx=Mb^x = M:

loga ⁣(bx)=logaM.\log_a\!\left(b^x\right) = \log_a M.

The power rule applies to the left side, since b>0b > 0, and pulls the exponent to the front: xlogab=logaMx \log_a b = \log_a M.

To solve for xx we want to divide by logab\log_a b, which is only legal if that number is not zero. It is not zero, and here is why: logab=0\log_a b = 0 would mean a0=ba^0 = b, that is b=1b = 1, and b=1b = 1 was excluded as a base from the start. So the division is safe, and

x=logaMlogab,x = \frac{\log_a M}{\log_a b},

which, since x=logbMx = \log_b M, is the formula.

Why swapping the base and the argument inverts the value

The change-of-base formula lets you pick any legal base for aa. Nothing stops you picking MM itself, the very number you are taking the logarithm of, provided M>0M > 0 and M1M \ne 1 so that MM is a legal base. Since logMM=1\log_M M = 1, the numerator collapses:

logbM=logMMlogMb=1logMb.\log_b M = \frac{\log_M M}{\log_M b} = \frac{1}{\log_M b}.

So logbM\log_b M and logMb\log_M b are reciprocals of each other. Read it as a statement about exponents and it is almost obvious: if it takes the power 33 to get from 22 to 88, it must take the power 13\tfrac{1}{3} to get from 88 back to 22, because 81/3=28^{1/3} = 2. The identity is the same fact, written in logarithms.

A bit of history (Optional)

This lesson handed you log1020.3010\log_{10} 2 \approx 0.3010 and invited you to use it. Somebody had to compute that number first, and there was nowhere to look it up.

Henry Briggs, an English professor of geometry, set himself the whole table. He would calculate the base-10 logarithm of thirty thousand numbers, to fourteen decimal places. The result appeared in 1624. He had no calculator and no base-10 table to lean on. He had a single rule with any real leverage in it, and it is the power rule of this lesson.

Watch what he does with it, beginning from the one value he already knows, log1010=1\log_{10} 10 = 1. Taking a square root halves a logarithm, so the square root of 1010 delivers a second entry immediately. The square root of that delivers a third. He continues for fifty-four rounds, each root halving the logarithm and dragging the number itself closer to 11. From that ladder of roots, recombined by the product rule, every remaining entry in the table could be assembled.

The arithmetic occupied him for years, all of it on paper, to more decimal places than your calculator will show you. His choice of base is the reason a bare log key still means base 1010 today. And his numbers are the ones you have been quoting: the 0.30100.3010 and the 0.47710.4771 are Briggs’s.