HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
Logarithms, Exponentials and a First Look at Differentiation
  1. 1Exponential and logarithmic functions
  2. 2Laws of logarithms and equations
  3. 3A first look at differentiation
  1. Mathematics
  2. /Logarithms, Exponentials and a First Look at Differentiation
  3. /Laws of logarithms and equations

Course 21.3·Lesson 2 of 3

Laws of logarithms and equations

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
Logarithms, Exponentials and a First Look at Differentiation
  1. 1Exponential and logarithmic functions
  2. 2Laws of logarithms and equations
  3. 3A first look at differentiation

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>0a > 0a>0 with a≠1a \ne 1a=1, and for x>0x > 0x>0, y>0y > 0y>0:

  • log⁡ax+log⁡ay=log⁡a(xy)\log_a x + \log_a y = \log_a(xy)loga​x+loga​y=loga​(xy)
  • log⁡ax−log⁡ay=log⁡a(xy)\log_a x - \log_a y = \log_a\left(\dfrac{x}{y}\right)loga​x−loga​y=loga​(yx​)
  • log⁡a(xk)=klog⁡ax\log_a(x^k) = k\log_a xloga​(xk)=kloga​x

Two special values follow: log⁡a1=0\log_a 1 = 0loga​1=0 and log⁡aa=1\log_a a = 1loga​a=1. Also log⁡a(1x)=−log⁡ax\log_a\left(\dfrac{1}{x}\right) = -\log_a xloga​(x1​)=−loga​x.

Examples.

  • lg⁡8+lg⁡125=lg⁡1000=3\lg 8 + \lg 125 = \lg 1000 = 3lg8+lg125=lg1000=3.
  • 2ln⁡3−ln⁡6=ln⁡9−ln⁡6=ln⁡96=ln⁡1.52\ln 3 - \ln 6 = \ln 9 - \ln 6 = \ln\dfrac{9}{6} = \ln 1.52ln3−ln6=ln9−ln6=ln69​=ln1.5.
  • To write 2+3lg⁡x−lg⁡y2 + 3\lg x - \lg y2+3lgx−lgy as one logarithm, use 2=lg⁡1002 = \lg 1002=lg100. Then the expression is lg⁡100+lg⁡x3−lg⁡y=lg⁡100x3y\lg 100 + \lg x^3 - \lg y = \lg\dfrac{100x^3}{y}lg100+lgx3−lgy=lgy100x3​.

Warning. There is no law for log⁡a(x+y)\log_a(x + y)loga​(x+y). In particular ln⁡(x+y)\ln(x + y)ln(x+y) is not ln⁡x+ln⁡y\ln x + \ln ylnx+lny.

Change of base

Sometimes a calculator or an equation uses a different base. The change-of-base law is

log⁡ab=log⁡cblog⁡ca.\displaystyle \log_a b = \frac{\log_c b}{\log_c a}.loga​b=logc​alogc​b​.

Choose ccc to suit you. Using c=ec = ec=e gives log⁡ab=ln⁡bln⁡a\log_a b = \dfrac{\ln b}{\ln a}loga​b=lnalnb​. Using c=bc = bc=b gives log⁡ab=1log⁡ba\log_a b = \dfrac{1}{\log_b a}loga​b=logb​a1​.

  • log⁡432=ln⁡32ln⁡4=5ln⁡22ln⁡2=52\log_4 32 = \dfrac{\ln 32}{\ln 4} = \dfrac{5\ln 2}{2\ln 2} = \dfrac{5}{2}log4​32=ln4ln32​=2ln25ln2​=25​.
  • 1log⁡7e=log⁡e7=ln⁡7\dfrac{1}{\log_7 e} = \log_e 7 = \ln 7log7​e1​=loge​7=ln7.

Solving ax=ba^x = bax=b

When the unknown is in the power, take logarithms of both sides, then use log⁡(ax)=xlog⁡a\log(a^x) = x\log alog(ax)=xloga.

ax=b⟹xln⁡a=ln⁡b⟹x=ln⁡bln⁡a.\displaystyle a^x = b \quad\Longrightarrow\quad x\ln a = \ln b \quad\Longrightarrow\quad x = \frac{\ln b}{\ln a}.ax=b⟹xlna=lnb⟹x=lnalnb​.

For 3x=203^x = 203x=20: x=ln⁡20ln⁡3≈2.727x = \dfrac{\ln 20}{\ln 3} \approx 2.727x=ln3ln20​≈2.727. Check: 32.727≈203^{2.727} \approx 2032.727≈20.

For 52x−1=405^{2x - 1} = 4052x−1=40: 2x−1=ln⁡40ln⁡5≈2.2922x - 1 = \dfrac{\ln 40}{\ln 5} \approx 2.2922x−1=ln5ln40​≈2.292, so 2x≈3.2922x \approx 3.2922x≈3.292 and x≈1.646x \approx 1.646x≈1.646.

When the unknown is in two powers, as in 2x+1=3x2^{x + 1} = 3^x2x+1=3x, take logarithms of both sides, collect the xxx terms, and factorise: (x+1)ln⁡2=xln⁡3(x + 1)\ln 2 = x\ln 3(x+1)ln2=xln3, so ln⁡2=x(ln⁡3−ln⁡2)\ln 2 = x(\ln 3 - \ln 2)ln2=x(ln3−ln2) and x=ln⁡2ln⁡3−ln⁡2≈1.710x = \dfrac{\ln 2}{\ln 3 - \ln 2} \approx 1.710x=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 log⁡2(x+1)+log⁡2(x−1)=3\log_2(x + 1) + \log_2(x - 1) = 3log2​(x+1)+log2​(x−1)=3:

  1. Combine: log⁡2[(x+1)(x−1)]=3\log_2\big[(x + 1)(x - 1)\big] = 3log2​[(x+1)(x−1)]=3.
  2. Remove the logarithm: (x+1)(x−1)=23=8(x + 1)(x - 1) = 2^3 = 8(x+1)(x−1)=23=8, so x2−1=8x^2 - 1 = 8x2−1=8 and x2=9x^2 = 9x2=9.
  3. Check: x=3x = 3x=3 works. x=−3x = -3x=−3 makes x−1=−4x - 1 = -4x−1=−4, which is negative, so it is rejected.

The only solution is x=3x = 3x=3.

Equations that hide a quadratic

You met substitutions in the second course. The same method works with exe^xex and ln⁡x\ln xlnx.

  • A quadratic in exe^xex. For e2x−7ex+12=0e^{2x} - 7e^x + 12 = 0e2x−7ex+12=0, let u=exu = e^xu=ex. Then u2−7u+12=0u^2 - 7u + 12 = 0u2−7u+12=0, so u=3u = 3u=3 or u=4u = 4u=4. Hence x=ln⁡3x = \ln 3x=ln3 or x=ln⁡4x = \ln 4x=ln4.
  • With e−xe^{-x}e−x. For ex+10e−x=7e^x + 10e^{-x} = 7ex+10e−x=7, let u=exu = e^xu=ex, so e−x=1ue^{-x} = \dfrac{1}{u}e−x=u1​. Multiply by uuu: u2+10=7uu^2 + 10 = 7uu2+10=7u, so u=2u = 2u=2 or u=5u = 5u=5. Hence x=ln⁡2x = \ln 2x=ln2 or x=ln⁡5x = \ln 5x=ln5.
  • A quadratic in ln⁡x\ln xlnx. For (ln⁡x)2−ln⁡x−2=0(\ln x)^2 - \ln x - 2 = 0(lnx)2−lnx−2=0, let u=ln⁡xu = \ln xu=lnx. Then (u−2)(u+1)=0(u - 2)(u + 1) = 0(u−2)(u+1)=0, so ln⁡x=2\ln x = 2lnx=2 or ln⁡x=−1\ln x = -1lnx=−1. Hence x=e2x = e^2x=e2 or x=e−1x = e^{-1}x=e−1.

Since exe^xex is always positive, a negative value of u=exu = e^xu=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=203^x = 203x=20.

Read it first. Then run it. Do the two sides of each law agree?

1. Change x, y = 8.0, 125.0 to x, y = 4.0, 25.0. What is lg 4 + lg 25?

2. Change 3 ** x, the check line, to solve 7 ** x = 50 instead.

Common mistakes

  • Writing ln⁡(x+y)=ln⁡x+ln⁡y\ln(x + y) = \ln x + \ln yln(x+y)=lnx+lny. The law is for ln⁡(xy)\ln(xy)ln(xy).
  • Writing ln⁡xln⁡y=ln⁡x−ln⁡y\dfrac{\ln x}{\ln y} = \ln x - \ln ylnylnx​=lnx−lny. The law for a difference is ln⁡x−ln⁡y=ln⁡xy\ln x - \ln y = \ln\dfrac{x}{y}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=ba^x = bax=b write xln⁡a=ln⁡bx\ln a = \ln bxlna=lnb and then divide.
  • Keeping a negative uuu when u=exu = e^xu=ex.

Remember these

  • log⁡ax+log⁡ay=log⁡a(xy)\log_a x + \log_a y = \log_a(xy)loga​x+loga​y=loga​(xy). log⁡ax−log⁡ay=log⁡a(xy)\log_a x - \log_a y = \log_a\left(\dfrac{x}{y}\right)loga​x−loga​y=loga​(yx​). log⁡a(xk)=klog⁡ax\log_a(x^k) = k\log_a xloga​(xk)=kloga​x.
  • Change of base: log⁡ab=ln⁡bln⁡a\log_a b = \dfrac{\ln b}{\ln a}loga​b=lnalnb​ and log⁡ab=1log⁡ba\log_a b = \dfrac{1}{\log_b a}loga​b=logb​a1​.
  • ax=ba^x = bax=b gives x=ln⁡bln⁡ax = \dfrac{\ln b}{\ln a}x=lnalnb​.
  • Check every answer of a logarithmic equation, and reject a negative exe^xex.

Check yourself

Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.

  1. Evaluate lg⁡4+lg⁡25\lg 4 + \lg 25lg4+lg25.
  1. Write 2ln⁡x−ln⁡32\ln x - \ln 32lnx−ln3 as a single logarithm.
  1. Solve 2x=502^x = 502x=50. Give xxx to 333 decimal places.
  1. Find log⁡927\log_9 27log9​27.
  1. Solve log⁡5x+log⁡5(x−4)=1\log_5 x + \log_5(x - 4) = 1log5​x+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.
No payment. You can leave at any time.

Problems (4)

A sum and a difference of base ten logarithms are to be squeezed into one logarithm…Easy · High School (9–10) · by StemPy Lab
Two quantities grow by repeated multiplication, and the unknown is the number of stages…Medium · High School (9–10) · by StemPy Lab
A logarithm to an awkward base is rewritten with a more convenient base…Medium · High School (9–10) · by StemPy Lab
Next: lesson 3A first look at differentiation
← Logarithms, Exponentials and a First Look at Differentiation
← Exponential and logarithmic functionsA first look at differentiation →

Discussion (0)

Log in to join the discussion.

Loading…

1 Python program
5 questions to check yourself

This lesson is free to read. Enroll free to keep your place and take the tests.

A pupil combines two logarithms and reaches a quadratic, but one of its roots may break the rules…Hard · High School (9–10) · by StemPy Lab

Python Labs (1)

Powers, logarithms and a change of basePython Lab · by StemPy Lab