James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AA HL › Topic 1: Number & algebra › Exponents & logarithms

Exponents & logarithms

What a logarithm is, the laws you use to combine and split logarithms, and how to solve exponential and logarithmic equations, with and without a calculator.

SL 1.51.7SL + HL extensionPaper 1Paper 2≈ 75 min to work through
Before you start: laws of indices. Shaky on these? See Before you start SL › Indices and surds.

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Use the laws of exponents, including rational exponentsSL 1.7
  • Understand that logax=y means ay=xSL 1.5
  • Know that lnx=logex and logx=log10xSL 1.5
  • Use the laws of logarithms, including change of baseSL 1.7
  • Solve exponential equations by matching bases or by taking logarithmsSL 1.7
  • Solve logarithmic equations and reject invalid solutionsSL 1.7

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

A logarithm is the reverse of a power. If 25=32, then log232=5: the logarithm tells you what power you need. Logarithms let you solve equations where the unknown is in the exponent, such as 3x=20.

2.1 Exponents and matching bases

The laws of indices from Before you start SL hold for all rational exponents. If both sides of an equation can be written as powers of the same base, set the exponents equal.

This works because a power function with a fixed base never gives the same output twice: if 2a=2b, then a must equal b. So once the bases match, you can ignore them and compare the powers.

Worked example 1Paper 1
Solve 4x+1=8x.
Write both sides as powers of 2: (22)x+1=(23)x.
22x+2=23x, so 2x+2=3x.
x=2

2.2 What a logarithm is

A logarithm answers the question "what power?"

You already know the operation that undoes squaring (square root) and the one that undoes adding (subtracting). The logarithm undoes "raise the base to a power". For example, 103=1000, so log101000=3: "10 to the power what gives 1000?"

Definition In formula booklet
logax=y⟺ay=x

The base a>0, a≠1, and you can only take the logarithm of a positive number.

  • logx means log10x, and lnx means logex, where e≈2.718.
  • Useful facts: logaa=1, loga1=0, alogax=x and logaax=x.
Worked example 2Paper 1
Evaluate (a) log232 (b) log319 (c) log42.
(a) 25=32, so log232=5.
(b) 3−2=19, so log319=−2.
(c) 412=2, so log42=12.

2.3 Laws of logarithms

Logarithms are powers, so the laws of logarithms come straight from the laws of indices. Multiplying numbers means adding their powers, so the log of a product is the sum of the logs. Dividing means subtracting powers, and raising to a power means multiplying the power.

Why does this work?

Let logax=p and logay=q, so x=ap and y=aq. Then xy=ap×aq=ap+q, so logaxy=p+q=logax+logay. The other laws can be shown in the same way.

There is no law for log(x+y). A very common mistake is to write log(x+y)=logx+logy, which is false.

Laws In formula booklet
logaxy=logax+logaylogaxy=logax−logaylogaxm=mlogaxlogba=logcalogcb(change of base)
Worked example 3Paper 1
Write 2log3+log4−log6 as a single logarithm.
2log3=log32=log9
log9+log4−log6=log9×46
=log6

2.4 Solving exponential equations with logarithms

When the bases cannot be matched, take logarithms of both sides and use logxm=mlogx to bring the power down.

Any base will do, but ln is the usual choice because it is on every calculator and appears throughout calculus.

Worked example 4Paper 1
Solve 5x=3x+1, giving an exact answer and an answer to 3 significant figures.
Take ln of both sides: xln5=(x+1)ln3.
Collect the x terms: xln5−xln3=ln3, so x(ln5−ln3)=ln3.
x=ln3ln5−ln3=2.15 (3 s.f.)
On Paper 1, leave the exact form unless asked for a decimal.
On your TI-Nspire Calculator tricks →

ln is ctrl ex, and log (base 10) is ctrl 10x. For other bases, use change of base: log320 is ln(20)/ln(3).

Solving an equation: menu → 3: Algebra → 1: Numerical Solve, e.g. nSolve(5^x=3^(x+1),x) gives 2.15. Or graph both sides and use menu → 6: Analyze Graph → Intersection.

2.5 Logarithmic equations

Combine the logarithms into one, convert to exponential form, solve, then check every solution: the logarithm of a negative number or of zero is undefined.

Why do solutions need checking? When you combine logarithms and then remove them, you can create extra solutions that do not work in the original equation. In the original, every expression inside a logarithm must be positive.

Worked example 5 (faded)Paper 1
Solve log2(x+3)+log2(x−3)=4.
Combine: log2((x+3)(x−3))=4, so x2−9= 16  ← you work this out
x2=25, so x=5 or x=−5.
x=−5 gives log2(−2), which is undefined. So x= 5  ← you work this out

3Explore it

Change the base a. The graphs of y=ax and y=logax are reflections of each other in the line y=x. Try a base between 0 and 1.

y=axy=logaxy=x

★HL extension

Extra depth for HL: harder worked examples and HL-standard exam questions.

HL equations with exponents and logarithms often need a substitution or a change of base before the standard methods work, and some have solutions that must be rejected.

Logarithms with different bases

When an equation mixes bases, change everything to one base using logbx=logaxlogab. A useful special case is loga2x=12logax, and another is logba=1logab.

Worked example H1Paper 1
Solve log3x−2logx3=1.
Let y=log3x. Then logx3=1y, so y−2y=1.
logx3=log33log3x=1y.
y2−y−2=0⇒(y−2)(y+1)=0⇒y=2 or y=−1.
x=32=9 or x=3−1=13. Both are valid (x>0, x≠1).

Hidden quadratics and rejected solutions

Equations such as 4x+2x−6=0 are quadratics in disguise: 4x=(2x)2. Substitute y=2x, solve the quadratic, then remember that 2x>0 for every real x. Any negative value of y gives no solution.

Worked example H2Paper 1
Solve 4x+2x−6=0.
Let y=2x: y2+y−6=0⇒(y+3)(y−2)=0.
y=−3 is impossible because 2x>0. So 2x=2 and x=1.
State why you reject the negative root: it earns a reasoning mark.
Why reject negative values?

The function y=ax (with a>0) only takes positive values: its graph lies entirely above the x-axis. So an equation ax=k has exactly one solution when k>0 and none when k≤0. This single fact explains every rejected root in these questions.

HL exam-style questions

Question 1Paper 1[6 marks]

Solve the equation log2x+log4x=6.

log4x=log2xlog24=12log2xM1 A1
32log2x=6A1
log2x=4A1
x=16A1
valid as x>0R1
Question 2Paper 1[7 marks]

  • (a)Solve 9x−4×3x+3=0.[4]
  • (b)Show that logab×logba=1 for a,b>0, a,b≠1.[3]
(a)
let y=3x: y2−4y+3=0M1
(y−1)(y−3)=0A1
x=0A1
x=1A1
(b)
logab=lnblna and logba=lnalnbM1 A1
product =1AG A1

4Common mistakes & exam tips

Common mistakes

  • log(x+y)≠logx+logy.
  • logxlogy≠logxy: the left side is change of base, not a law of subtraction.
  • (logx)2≠2logx.
  • Not rejecting solutions that make a logarithm undefined.
  • Trying to solve ex=0 or 2x=−4: they have no solution.

Exam tips

  • Paper 1 often wants exact answers such as ln3ln5−ln3. Do not convert to decimals unless asked.
  • If you see 22x and 2x in the same equation, substitute y=2x to get a quadratic.
  • When you reject a solution, say why (e.g. "log2(−2) is undefined"). This is often the R1 mark.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Evaluate log5125.
53=125, so 3.
FluencyP2
Write ln12−ln3+2ln2 as a single logarithm.
ln12×43=ln16
FluencyP3
Solve e3x=10.
3x=ln10, so x=ln103=0.768 (3 s.f.)
FluencyP4
Given that loga2=p and loga3=q, write loga18 in terms of p and q.
18=2×32, so loga18=p+2q.
Problem solvingP5
Solve 22x−6×2x+8=0.
Let y=2x: y2−6y+8=0, so y=2 or y=4. Then x=1 or x=2.
Problem solvingP6
Solve lnx+ln(x+2)=ln15.
x(x+2)=15⇒x2+2x−15=0⇒x=3 or x=−5. Reject −5 (ln(−5) is undefined), so x=3.

6Exam-style questions

Original questions in the style of the IB exam, with full markschemes. Give yourself about 1 minute per mark.

Question 1Paper 1[6 marks]

  • (a)Write down the value of log216.[1]
  • (b)Hence, or otherwise, solve log2x+log2(x−6)=4.[5]
(a)
4A1
(b)
log2(x(x−6))=4M1
x2−6x=16A1
(x−8)(x+2)=0 (or formula)M1
x=8A1
x=−2 rejected because log2(−2) is undefinedR1
Question 2Paper 1[5 marks]

Solve 9x−4×3x+3=0.

9x=(3x)2; let y=3xM1
y2−4y+3=0A1
y=1 or y=3A1
x=0, x=1A1 A1
Question 3Paper 2[6 marks]

The number of bacteria in a sample is modelled by P=200e0.35t, where t is the time in hours.

  • (a)Write down the initial number of bacteria.[1]
  • (b)Find the number of bacteria after 5 hours.[2]
  • (c)Find the time taken for the number of bacteria to reach 10 000.[3]
(a)
200A1
(b)
200e0.35×5M1
1150 (1150.92…)A1
(c)
200e0.35t=10000M1
e0.35t=50⇒t=ln500.35 (or GDC)M1
11.2 hoursA1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you're scoring well above, try real IB questions. Your school or teacher will have these papers.

PaperQuestionFocusDifficulty
May 2025 · TZ3 · Paper 1Q1Express logarithms in terms of given log values★☆☆
Nov 2025 · TZ3 · Paper 1Q4Solve an equation mixing logarithms of different bases★☆☆
May 2025 · TZ1 · Paper 1Q8Prove by induction that n exceeds log base 2 of n★★☆
May 2022 · TZ1 · Paper 1Q10Log series as geometric then arithmetic, finding terms and sums★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake