The laws of logarithms turn products into sums and powers into multiples. You use them to write a sum of logarithms as one logarithm, change the base, and solve equations with powers. You also solve equations that contain logarithms or exponentials.
about 25 min1 simulation1 practice question
Lesson 2 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
The laws of logarithms
Logarithms turn multiplication into addition. That is why they were invented, long before calculators. For any base a>0 with a=1, and for x>0, y>0:
logax+logay=loga(xy)
logax−logay=loga(yx)
loga(xk)=klogax
Two special values follow: loga1=0 and logaa=1. Also loga(x1)=−logax.
Examples.
lg8+lg125=lg1000=3.
2ln3−ln6=ln9−ln6=ln69=ln1.5.
To write 2+3lgx−lgy as one logarithm, use 2=lg100. Then the expression is lg100+lgx3−lgy=lgy100x3.
Warning. There is no law for loga(x+y). In particular ln(x+y) is notlnx+lny.
Change of base
Sometimes a calculator or an equation uses a different base. The change-of-base law is
logab=logcalogcb.
Choose c to suit you. Using c=e gives logab=lnalnb. Using c=b gives logab=logba1.
log432=ln4ln32=2ln25ln2=25.
log7e1=loge7=ln7.
Solving ax=b
When the unknown is in the power, take logarithms of both sides, then use log(ax)=xloga.
ax=b⟹xlna=lnb⟹x=lnalnb.
For 3x=20: x=ln3ln20≈2.727. Check: 32.727≈20.
For 52x−1=40: 2x−1=ln5ln40≈2.292, so 2x≈3.292 and x≈1.646.
When the unknown is in two powers, as in 2x+1=3x, take logarithms of both sides, collect the x terms, and factorise: (x+1)ln2=xln3, so ln2=x(ln3−ln2) and x=ln3−ln2ln2≈1.710.
Equations with logarithms
To solve an equation with logarithms, combine them into one logarithm and remove it. Then check each answer in the original equation, because a logarithm needs a positive number inside.
For log2(x+1)+log2(x−1)=3:
Combine: log2[(x+1)(x−1)]=3.
Remove the logarithm: (x+1)(x−1)=23=8, so x2−1=8 and x2=9.
Check: x=3 works. x=−3 makes x−1=−4, which is negative, so it is rejected.
The only solution is x=3.
Equations that hide a quadratic
You met substitutions in the second course. The same method works with ex and lnx.
A quadratic in ex. For e2x−7ex+12=0, let u=ex. Then u2−7u+12=0, so u=3 or u=4. Hence x=ln3 or x=ln4.
With e−x. For ex+10e−x=7, let u=ex, so e−x=u1. Multiply by u: u2+10=7u, so u=2 or u=5. Hence x=ln2 or x=ln5.
A quadratic in lnx. For (lnx)2−lnx−2=0, let u=lnx. Then (u−2)(u+1)=0, so lnx=2 or lnx=−1. Hence x=e2 or x=e−1.
Since ex is always positive, a negative value of u=ex is rejected.
Practise with new numbers
Try it in Python
The program checks the three laws of logarithms on numbers, uses the change of base, and solves 3x=20.
Common mistakes
Writing ln(x+y)=lnx+lny. The law is for ln(xy).
Writing lnylnx=lnx−lny. The law for a difference is lnx−lny=lnyx.
Forgetting to check a logarithmic equation. A negative number inside a logarithm is not allowed.
Dropping the power too early. In ax=b write xlna=lnb and then divide.
Change of base: logab=lnalnb and logab=logba1.
ax=b gives x=lnalnb.
Check every answer of a logarithmic equation, and reject a negative ex.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
Evaluate lg4+lg25.
Write 2lnx−ln3 as a single logarithm.
Solve 2x=50. Give x to 3 decimal places.
Find log927.
Solve log5x+log5(x−4)=1.
References
Cambridge International, IGCSE Additional Mathematics 0606 syllabus (2025, 2026 and 2027), unit 6 Logarithmic and exponential functions.
OpenStax, Precalculus 2e, chapter 4 Exponential and Logarithmic Functions, the sections on logarithmic properties and on exponential and logarithmic equations.
Enroll free in Logarithms, Exponentials and a First Look at Differentiation
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.