Logarithms (or logs) were invented back in 1614 by John Napier to save astronomers time when calculating. His goal was to turn long multiplications into simple additions, centuries before we all had a calculator in our pocket, but logarithms are still useful in many fields.
Logarithms all start with a key definition, and really this is the only bit we need to memorise, as everything that follows is just a different way of seeing what we already know.
Building New Knowledge
The Crucial Definition
Definition: A logarithm always represents an index: the index we raise some base number to, to equal a target number. We say “log base a of b equals c”.
logab=c⟺ac=b
Not all numbers work in this definition. Which logs can’t we resolve?
Key Example:
log28=3⟺23=8
Consider: What do log416 and log331 equal?
Answerslog416=2⟺42=16log331=−1⟺3−1=31How I remember it
If, when you see a log, you’re struggling to think of it in index form, I read the log form in a known order, a, b, c. Then I know that when I convert it into index form, I just switch b and c. So I remember: “log base a of b equals c means a to the power of c equals b.”
The basea stays on the bottom in both forms; only the targetb and the indexc switch. We also call the bottom number the base in both an index (5.1.1) and a log, which reminds us they’re the same number.
Which numbers have Logs?
Consider: What question are the logs below asking? Which of them have real number answers?
log2(−8)=?
log20.001=?
log21000000=?
log20=?
Answers
They are all asking which index you need to raise the base 2 to in order to hit the target
log2(−8) doesn’t exist: 2 to any index is positive.
log20.001≈−9.97, because 2−10=10241≈0.00098 is just under 0.001. A tiny target needs a large negative index.
log21000000≈19.93, because 220=1048576 is just over a million.
log20 doesn’t exist either: the more negative the index, the closer 2 to that index gets to 0, but it never reaches it.
What if the base is 1?
1 to any index is 1, so log110 has no answer, and log11 could be any number at all. Hence log base 1 is not of interest to us.
What about a negative base?
With base −2, the answers flip between positive and negative: (−2)2=4, but (−2)3=−8. So log−24=2 works, but log−28 has no answer.
Many fractional indices fail too: (−2)21=−2 isn’t a real number (5.1.9).
So the graph of y=(−2)x isn’t a smooth curve at all. It’s separate points, jumping between y=2x and y=−2x:
So we only ever use a positive base (other than 1). Then every positive target has exactly one log, the graph is a smooth curve, and every law we build next works.
Conclusion: Hence, our full definition, of a log needs these conditions:
logab=c⟺ac=bfor a>0,a=1,b>0
Note: If no base is written, log means base 10, so log100=2⟺102=100.
Now using our new definition, we can convert between logs and indices and see what happens to our previous rules.
First, we know some identities about indices, which give us some easy first results for logs.
Log of the Base
We know any number to the power of 1 is itself, which has an analogous version in logs.
Annotations:
(1) Name two logs, where x,y>0 and m,n∈R.
(2) Log form to index form by definition, 6.1.1.
(3) If Add the indices, 5.1.4.
(4) Line (3) gives us an expression that matches one side of our log definition xy=am+n as xy and m+n are just new numbers. Hence, we can convert Index form to log form by definition, 6.1.1, which applies as xy>0 and m+n∈R.
(5) Convert m and n back into our starting definitions from (1).
Conclusion:
loga(xy)=logax+logayfor a>0,a=1,x,y>0
How to remember this
I always remember that a log represents an index. So when I see two logs added together, I think: we’ve got two indices added together. Where have I seen that? Oh, when two indices of the same base are multiplied.
Historical Use
This law is why logs were invented. To multiply two big numbers, an astronomer looked up both their logs in a printed table, added the logs, then looked up which number had that new total as its log. One addition and three look-ups replaced a long and tedious multiplication.
Consider: What is log2(1024×4096)?
Answer
log21024+log24096=10+12=22
In index form: 1024×4096=210×212=222
Division Law
Key Example: Compare log2(432) with log232−log24:
log2(432)log232−log24=log28=3=5−2=3
General Proof: The same steps as the Multiplication Law, but dividing:
(1) Name two logs, where x,y>0 and m,n∈R.
(2) Log form to index form by definition, 6.1.1.
(3) Subtract the indices, 5.1.5.
(4) Index form to log form by definition, 6.1.1, which applies as yx>0 and m−n∈R.
(5) Convert m and n back into our starting definitions from (1).
Conclusion:
loga(yx)=logax−logayfor a>0,a=1,x,y>0
Consider: What is log2(2564096)?
Answer
log24096−log2256=12−8=4.
In index form: 2564096=28212=24
Power Law
Key Example: Compare log2(43) with 3log24:
log2(43)3log24=log264=6=3×2=6
General Proof: This time there’s only one log to name:
(1) Name a log, where x>0 and m,k∈R.
(2) Log form to index form by definition, 6.1.1.
(3) Multiply the indices, 5.1.8.
(4) Index form to log form by definition, 6.1.1, which applies as xk>0 and mk∈R.
(5) Convert m back into our starting definition from (1).
Conclusion:
loga(xk)=klogaxfor a>0,a=1,x>0,k∈R
Consider: What is log2(3210)?
Answer
log2(3210)=10log232=10×5=50
In index form: 3210=(25)10=250
Change of Base
Key Example: Compare log84 with log28log24:
log84log28log24=32, because 832=(38)2=22=4=32
Note: What is happening here? 8=23, so 2=831 and 4=22=832 by 5.1.8. In base 2, the indices of 4 and 8 are 2 and 3, and the index in base 8 is the first divided by the second.
General Proof: We name two logs, one in each base, and use the second to write a as a power of b:
(1) Name two logs, where x>0, b>0, b=1 and m,p∈R.
(2) Log form to index form by definition, 6.1.1.
(3) Multiply the indices, 5.1.8.
(4) Index form to log form by definition, 6.1.1, which applies as x>0 and pm∈R.
(5) Convert m and p back into our starting definitions from (1).
(6) Divide by logba, which isn’t 0 as a=1, 6.1.3.
Conclusion:
logax=logbalogbxfor a,b>0,a,b=1,x>0
Consider: What is log927?
Answer
log39log327=23
In index form: 923=(32)23=33=27
Taking Logs of Both Sides
If two positive numbers are equal, their logs (in the same base) are equal, because a log gives exactly one answer. It works backwards too: equal logs come from equal numbers.
Key Example: From xy=am+n, take loga of both sides:
loga(xy)=loga(am+n)=m+n
The last step reads off the index, as in the Consider above.
Conclusion:
p=q⟺logap=logaqfor p,q>0
Notes:
You can’t take logs if either side could be 0 or negative.
Take the log of the whole side, never term by term: p=q+r gives logap=loga(q+r), not logaq+logar.
Other Examples to Deepen Understanding
The Multiplication Law's Key Example again
With the Power Law, we can work out both sides of the Key Example (6.1.4) by writing 8 and 4 as powers of 2:
(1) Multiplication Law, 6.1.4.
(2) Take logay from both sides.
Change of Base by taking logs of both sideslogaxamlogb(am)mlogbamlogax=m=x=logbx=logbx=logbalogbx=logbalogbx(1)(2)(3)(4)(5)(6)
(1) Name a log.
(2) Log form to index form by definition, 6.1.1.
(3) Take logb of both sides, 6.1.8.
(4) Power Law, 6.1.6.
(5) Divide by logba, which isn’t 0 as a=1, 6.1.3.
(6) Convert m back into our starting definition from (1).
Logs that cancel like fractions
Change of Base (6.1.7) lets us chain logs together, and the middle base cancels:
logab×logbc=logab×logablogac=logac
It looks like ab×bc=ac. With c=a, we get logab×logba=logaa=1, so swapping the base and the target flips the log: log28=3 and log82=31.
Logs count repeated multiplication
log2x counts how many times we double, starting from 1, to reach x: log28=3, because 1→2→4→8 is three doublings. To reach 8×4=32, we double three times to reach 8, then twice more to multiply by 4: 3+2=5 doublings. That’s the Multiplication Law. A negative log counts halvings instead: log241=−2.
How many digits?
Any number from 1000 to 9999 has a base-10 log from 3 up to (but not including) 4. So a whole number’s digit count is the whole-number part of its log, plus one.
With the Power Law (6.1.6), we can count the digits of 2100 without working it out: log(2100)=100log2≈30.1, so 2100 has 31 digits.
Logs and indices undo each other
Taking loga undoes raising a to an index, and raising a to an index undoes taking loga:
loga(ak)=kandalogax=x
The second says: raise a to the index that turns a into x, and you get x. For example, 2log25=5.
Summary
This is everything you need to make sure you know (and ideally understand).
Every law in the summary is a tool you might need. Just be careful with:
the log of a negative number or 0, which isn’t defined;
a log with no base written, like logx: in an exam question, it means the same base throughout; on a calculator, it means base 10.
Combining Logs
Questions often ask us to write an expression as a single log, or to split one log into several. Use the Power Law first, to move any number in front into a power, then the Multiplication and Division Laws.
Key Example 1: Write 2log36−log34 as a single logarithm, and simplify.
Key Example 2: Given that p=log5x, express log5(25x3) in terms of p.
log5(25x3)=log525+log5(x3)=2+3log5x=2+3p
Note: We split the product with the 6.1.4, then brought the power down with the 6.1.6.
Key Question 1: Given that q=log3x, express log3(x29) in terms of q.
Worked solutionlog3(x29)=log39−log3(x2)=2−2log3x=2−2q
Key Question 2: Given that a=log2x and b=log2(x+8), express in terms of a and/or b:
(a) log2x
(b) log2(x2+8x)
(c) log2(8+x64), giving your answer in simplest form. (June 2023, Paper 1, Q6)
Worked solution
(a) Write the root as a power, then use the Power Law:
Note: First, gather the logs on one side and the numbers on the other.
Key Question 1: Solve log5(2x+3)−log5(x−1)=1.
Worked solutionlog5(x−12x+3)⇒x−12x+32x+38x=1=51=5x−5=3x=38
Key Question 2: Using the laws of logarithms, solve the equation log3(12y+5)−log3(1−3y)=2. (November 2021, Paper 2, Q3)
Worked solutionlog3(1−3y12y+5)⇒1−3y12y+512y+539yy=2=32=9−27y=4=394
Log Equations that Become Quadratics
Sometimes combining the logs leaves a quadratic. Solve it as usual, then check every answer: the log of a negative number or 0 isn’t defined, so some roots won’t be solutions.
Key Example 1: Solve log3x+log3(x+6)=3.
log3(x(x+6))⇒x2+6xx2+6x−27(x+9)(x−3)=3=33=0=0
So x=3 or x=−9. But log3(−9) isn’t defined, so the only solution is x=3.
Key Example 2: Solve 2log2x=log2(x+6).
log2(x2)⇒x2x2−x−6(x−3)(x+2)=log2(x+6)=x+6=0=0
So x=3 or x=−2. But log2(−2) isn’t defined, so the only solution is x=3.
Note: The second line uses 6.1.8 backwards: equal logs in the same base come from equal numbers.
Key Question 1: Solve log2(x+4)+log2x=5.
Worked solutionlog2(x(x+4))⇒x2+4xx2+4x−32(x+8)(x−4)=5=25=0=0
So x=4 or x=−8. But log2(−8) isn’t defined, so the only solution is x=4.
Key Question 2: Given that
log2(x+3)+log2(x+10)=2+2log2x
(a) show that 3x2−13x−30=0
(b) (i) write down the roots of the equation 3x2−13x−30=0
(ii) hence state which of the roots in part (b)(i) is not a solution of the equation above, giving a reason for your answer. (June 2023, Paper 2, Q3)
Worked solution
(a) Write the 2 as log24, then combine each side into a single log:
(ii) x=−35 is not a solution, because log2x isn’t defined for a negative x.
Solving Exponential Equations
In 5.3.4, we could only solve equations like 4x=8x−1 when both sides were powers of the same number. Logs finish the job: now we can solve 2x=5.
Key Example 1: Solve 2x=5, giving your answer to 3 significant figures.
2x⇒x=5=log25=log102log105=2.32(3 s.f.)
Note: The second line is the definition (6.1.1), and the third is 6.1.7, for calculators without a loga button.
Key Example 2: Solve 23x−1=3, giving your answer in exact form.
23x−1⇒3x−1x=3=log23=31+log23
Note: “Exact” means leave the log in the answer, rather than a rounded decimal.
Key Question 1: Solve 52x+1=12, giving your answer to 3 significant figures.
Worked solution52x+1⇒2x+12xx=12=log512=log105log1012=1.5439…=0.5439…=0.272(3 s.f.)
Key Question 2: The curve with equation y=3×2x meets the curve with equation y=15−2x+1 at the point P. Find, using algebra, the exact x coordinate of P. (October 2020, Paper 2, Q5)
Worked solution
At P the two y values are equal. Write 2x+1 as 2×2x, using 5.1.4: