A logarithm answers “what exponent?”: logbx=y means by=x. Logarithms turn products into sums, quotients into differences and powers into multiples, which is why rewriting an exponential equation in logarithmic form, or taking the logarithm of both sides, solves it.
A colony of bacteria doubles every hour. Starting from 1 cell, there are 23=8 cells after 3 hours and 25=32after 5. Turn the question around. How many hours until there are 64 cells? Count the doublings, 2,4,8,16,32,64. There are six. That count is the logarithm base 2 of 64, written log264=6.
Most targets are not on the list. 1000 cells falls between 29=512 and 210=1024, so the answer is a little under 10 hours. The logarithm gives it exactly, log21000≈9.966 hours.
26=64⟺log264=6
Hours and cells for a colony that doubles every hour
Hours t
Cells 2t
0
1
1
2
2
4
3
8
4
16
5
32
6
64
9
512
10
1024
The rule
A logarithm is an exponent
Take a base b with b>0 and b=1.logbx is the exponent you put on b to get x. The two statements in the display say the same thing in two notations. log381=4 because 34=81, and log100.01=−2 because 10−2=0.01.
The input x must be positive, because every power of a positive base is positive. Two bases have names of their own. lnx is the natural logarithm, with base e≈2.71828, and logx with no base written is the common logarithm, with base 10.
logbx=y⟺by=x(x>0)
The three rules and change of base
Here M and N are positive numbers and r is any real number. The log of a product is the sum of the logs, the log of a quotient is the difference, and the log of a power is the exponent times the log. For example log232=log24+log28, which says 5=2+3.
A calculator has keys for ln and log. For any other base, divide two logarithms of one base. log21000=ln1000/ln2≈6.9078/0.6931≈9.966.
Let logbM=m and logbN=n. By the definition, M=bm and N=bn. Then MN=bm⋅bn=bm+n, and reading that back through the definition gives logb(MN)=m+n. The product rule for logarithms is the product rule for exponents written the other way round. The quotient and power rules come the same way from xa/xb=xa−b and (xa)r=xar.
Change of base follows from the power rule. If y=logbM, then by=M. Take ln of both sides to get ylnb=lnM, then divide by lnb.
The definition also says that logb and the power bx undo each other. logb(bx)=x for every x, and blogbx=x for every x>0. The logarithm is the inverse function of the exponential.
by=M⟹ylnb=lnM⟹y=lnblnM
by=M⟹ylnb=lnM⟹y=lnblnM
The method
Solving an exponential equation
Isolate the power first. The unknown sits in an exponent, and a logarithm brings an exponent down. The table works through 3⋅5x=60, the first worked example below.
When both sides are powers of one base, no logarithm is needed. 2x+1=32=25 gives x+1=5, so x=4, because equal powers of one base have equal exponents.
The steps on 3⋅5x=60
Step
What to do
For 3⋅5x=60
1
Isolate the power
5x=20
2
Rewrite in logarithmic form, or take ln of both sides
x=log520
3
Use change of base for a decimal
x=ln20/ln5
4
Round once, at the end
x≈1.861
5
Check by raising the base to the answer
51.861≈20
Solving a logarithmic equation
Combine the logarithms into one with the rules, rewrite it in exponential form and solve. Then put every candidate into the original equation. Combining can widen the domain, so a candidate may make some logarithm’s input zero or negative. That candidate is rejected.
For log3(x+6)=2, the exponential form is x+6=32=9, so x=3. The check gives log39=2.
log3(x+6)=2⟺x+6=32
Where it breaks
Where it breaks
There is no rule for the log of a sum. ln(2+3)=ln5≈1.609, while ln2+ln3=ln6≈1.792. The product rule needs a product inside.
A logarithm of 0 or of a negative number is not a real number. log2(−4) would be the power of 2 that gives −4, and every power of 2 is positive. The rules assume positive inputs too. ln(x2)=2lnx holds only for x>0, since ln(x2) is defined at x=−3 and 2ln(−3) is not.
The base must be positive and not 1. Every power of 1 is 1, so log15 would have no answer.
ln(2x) is not 2lnx.ln(2x)=ln2+lnx, while 2lnx=ln(x2). At x=5 they are ln10≈2.303 and ln25≈3.219.
Check your answer
Check your answer
A logarithm is an exponent, so undo it to test your answer.
Raise the base to your answer. If x=log520≈1.861, then 51.861 should be about 20, and it is 19.99.
Trap the answer between whole powers. 51=5 and 52=25 sit on either side of 20, so x lies between 1 and 2,nearer 2.
Put each candidate of a logarithmic equation into the original. A logarithm of 0 or of a negative number rejects the candidate.
To have Chalk check the work, write the equation on the first row of a Math box and each step on its own row, the exact answer before the rounded one. A wrong answer reads ✗ with a message such as “x = 4 doesn’t satisfy row 1.” When combining logarithms widens the domain, that row reads ⇒ with “Every solution of the line above satisfies this line. It also has x = −3, which the line above excludes.” A ⇒ is a warning to check the candidates, not a mistake.
Chalk does not yet catch every wrong value under a logarithm set equal to a decimal. Under logh=−2.4, the wrong h=102.4 reads ✗ “h ≈ 251.189 doesn’t satisfy row 1.”, but h=10−2.5 still reads ?. Raise 10 to your answer there, as the first check does.
log10A is 2 more than log10B. How many times larger is A than B?
100 times. The quotient rule turns the difference into one logarithm, log10(A/B)=2, and a logarithm is an exponent, so A/B=102. Answering “twice as large” or “2 more” reads the logarithm as the quantity itself. A step of 1 in a base-10 logarithm is a factor of 10 in the number.
Logarithmic scales, and why e
Decibels, earthquake magnitudes and pH are all logarithms. On the pH and magnitude scales a step of 1 is a factor of 10 in the quantity measured, which is how one pH scale holds hydrogen-ion concentrations from about 1 down to 10−14 mol/L. The decibel scale is ten times a logarithm, so a factor of 10 in sound intensity adds 10 dB.
The natural logarithm earns its place in calculus. Its graph crosses the x-axis at (1,0) with slope exactly 1, and its derivative is 1/x. Every other logarithm is a constant multiple of it, logbx=lnx/lnb, so ln is the one to learn well.
Common mistakes
Splitting the log of a sum. ln(x+y) is not lnx+lny. The product rule turns ln(xy) into a sum, and there is no rule for a sum inside, as ln5≈1.609 against ln2+ln3≈1.792 shows.
Confusing ln(2x) with 2lnx.ln(2x)=ln2+lnx by the product rule, while 2lnx=ln(x2) by the power rule. At x=5 they are about 2.303 and 3.219.
Dividing inside the logarithm. ln20/ln5 is about 1.861, not ln4≈1.386, because change of base divides the two logarithms, not their inputs.
Keeping a candidate that makes a logarithm’s input negative. In log2(x+1)+log2(x−1)=3,x=−3 solves the combined equation but needs log2(−2), so only x=3 is a solution.
Cancelling “ln” as if it were a number. From 2x=7, taking ln gives xln2=ln7, so x=ln7/ln2≈2.807. Writing x=7/2 cancels a function, which no rule allows.
Rounding too early. ln20≈3 and ln5≈1.6 give 3/1.6=1.875, not 1.861. Keep the calculator’s full values until the last step and round once.
Key terms
Logarithm
The exponent you need on a base to get a number: logbx=y means by=x. The base must be positive and not 1, and in the real numbers x must be positive.
Natural logarithm
The logarithm with base e, written lnx. It undoes ex:ln(ex)=x for every x, and elnx=x for x>0.
Common logarithm
The logarithm with base 10, written logx, so log1000=3. In this app log means base 10 and ln means base e, and the input must be positive.
Change of base
The identity logbx=lnx/lnb, which computes a logarithm in any base from natural logarithms. Any other base a works the same way: logbx=logax/logab.
Exponential function
A function with the variable in the exponent, such as bx with a fixed base b>0,b=1. Each step of 1 in x multiplies the output by b. The natural exponential ex has base e≈2.718.
Work through an example
Solve 3⋅5x=60, exactly and to three decimal places.