A logarithm answers the question "what exponent?": logb(x)=y means by=x. So log2(32)=5 because 25=32. The rules turn products into sums, quotients into differences and powers into multipliers. Solve an exponential equation by taking a log of both sides. Solve a log equation by rewriting it in exponential form, then check that every log input is positive.
Updated
On this page
The key idea
Logs and exponents are inverses. Every log statement is an exponent statement read backwards:
logb(x)=y⟺by=x(b>0,b=1,x>0)
The same fact in both forms
Exponential form
Log form
25=32
log2(32)=5
10−2=0.01
log(0.01)=−2
e0=1
ln(1)=0
log with no base means base 10, and ln means base e≈2.718. The three rules come straight from the exponent rules:
Quotient rule: a difference of logs is the log of a quotient.
log3(5x2)−log3(x+1)=log3(x+15x2)
Answerlog3(x+15x2)
Example 3: solve an exponential equation
Problem Solve 52x−1=40. Round to three decimal places.
40 is not a power of 5, so take the log of both sides and use the power rule to bring the exponent down.
(2x−1)log(5)=log(40)
Divide both sides by log5.
2x−1=log(5)log(40)
Add 1 and divide by 2.
x=21(1+log(5)log(40))
On a calculator, log5log40≈2.292, so x≈23.292.
Answerx≈1.646
Example 4 (test-hard): a log equation with an extraneous answer
Problem Solve log2(x)+log2(x−2)=3.
Product rule: combine into one log.
log2(x(x−2))=3
Rewrite in exponential form: 23=8.
x(x−2)=8
Expand and set to zero.
x2−2x−8=0
Factor.
(x−4)(x+2)=0
So x=4 or x=−2. But log2(−2) is not defined, so −2 is extraneous. Check 4: log24+log22=2+1=3.
Answerx=4
Common mistakes
Splitting a log of a sum.log(a+b) is not loga+logb. Fix: the product rule is for log(ab) only.
Canceling logs in a fraction.log5log40 is not log8. Fix: divide the two log values; only log40−log5 equals log8.
Moving a coefficient the wrong way.2log3x=log3(x2), not log3(2x). Fix: the number in front becomes an exponent on the input.
Keeping answers that make a log input negative or zero. Fix: after solving, put each answer into every log in the original equation.
Mixing up the base and the answer.log232=5 means 25=32, not 52 or 322. Fix: say "2 to what power is 32?"
Quick methods
Practice
5 practice questions
What is log2(641)?
−6
6
−32
61
Show answer
Answer: −6
26=64, so 2−6=641 and the log is −6. A fraction less than 1 always gives a negative log when the base is more than 1.
Which expression is equal to log(x)+log(5)−log(2) for x>0?
log(25x)
log(5x−2)
log(x+3)
log(10x)
Show answer
Answer: log(25x)
Adding logs multiplies the inputs and subtracting divides: log(2x⋅5). log(5x−2) treats subtracting logs as subtracting inputs, and log(10x) multiplies by 2 instead of dividing.
Solve 3x=20. Round to the nearest hundredth.
0.37
1.30
2.73
6.67
Show answer
Answer: 2.73
x=log3log20≈0.4771.301≈2.73. 0.37 divides the logs upside down, 1.30 is just log20, and 6.67 is 20÷3. Check: 32.73≈20.
Solve log3(x+1)=4.
11
63
80
82
Show answer
Answer: 80
Exponential form: x+1=34=81, so x=80. 63 uses 43 instead of 34, and 11 uses 3⋅4.
Solve log5(x)+log5(x−4)=1.
Show answer
Answer: 5
Combine: log5(x(x−4))=1, so x2−4x=5, which factors as (x−5)(x+1)=0. x=−1 makes log5(x) undefined, so only x=5 works.
Frequently asked questions
What is the difference between log and ln?
Both are logarithms with different bases. log with no base written usually means base 10, the common log. ln is base e, about 2.718, the natural log. They follow the same rules, and either one works for change of base.
Why can't you take the log of a negative number?
A log asks what power of a positive base gives the input. A positive base raised to any real power is always positive, so no real exponent gives 0 or a negative number. That is why answers that make a log input zero or negative get thrown out.
How do I use the change of base formula?
Divide the log of the input by the log of the base, using the same kind of log on top and bottom: log2(10)=log2log10≈3.32. Check by raising: 23.32 is about 10.
Is log(a + b) equal to log a + log b?
No. The product rule says log(ab)=loga+logb. There is no rule that splits a log of a sum, so leave log(a+b) as it is. For example, log(10+10)=log20≈1.30, but log10+log10=2.