Skip to content
Gioi Toan
Start learning
A parabola on coordinate axes with a smiling ball rolling along it

Notes on Lesson 2: Logarithm calculations (Maths 11 Chan troi sang tao, Chapter VI)

Lesson summary

Given two positive real numbers aa, bb with a≠1a \ne 1.

Logarithm of a quotient: log⁡aMN=log⁡aM−log⁡aN\log_a \frac{M}{N} = \log_a M - \log_a N.

So log⁡28\log_2 8 reads as "2 to what power equals 8", the answer is 3.

This content is not yet available in English. It is shown below in the original Vietnamese.

  • Nhận biết được lôgarit cơ số a, lôgarit thập phân, tự nhiên
  • Giải thích được tính chất của phép tính lôgarit

In Chemistry, you have met solutions with different pH levels: sour lemon juice has a pH of about 2, while pure water has a pH of 7. Behind that pH number is an inverse operation of the power: knowing the base and the result, find the exponent. That operation is called a logarithm. Today's lesson will help you understand what a logarithm is, know how to calculate and transform it, and from there read pH and many other quantities in real life.

Practise similar problems

Key ideas: what do you need to know?

The concept of logarithm

  • Given two positive real numbers aa, bb with a≠1a \ne 1. The real number α\alpha satisfying aα=ba^{\alpha} = b is called the logarithm base aa of bb and is denoted log⁡ab\log_a b.
  • Definition formula: α=log⁡ab⇔aα=b\alpha = \log_a b \Leftrightarrow a^{\alpha} = b.
  • Example: log⁡28=3\log_2 8 = 3 because 23=82^3 = 8; log⁡319=−2\log_3 \frac{1}{9} = -2 because 3−2=193^{-2} = \frac{1}{9}.
  • Note: There is no logarithm of a negative number or of 0; the base must be positive and different from 1.
  • From the definition, with a>0,a≠1a > 0, a \ne 1, b>0b > 0 and α\alpha arbitrary, we have: log⁡a1=0\log_a 1 = 0; log⁡aa=1\log_a a = 1; log⁡aaα=α\log_a a^{\alpha} = \alpha; alog⁡ab=ba^{\log_a b} = b.

In plain words: A power asks: given the base and the exponent, what is the result? A logarithm asks the reverse: given the base and the result, what is the exponent? So log⁡28\log_2 8 reads as "2 to what power equals 8", the answer is 3. Just ask yourself that question and you get it right away. The four small properties above are just that question with a few special cases: aa to what power equals 1, the exponent is 0; to what power equals aa itself, the exponent is 1.

Phrase by phrase
logarithm base aa of bb
The exponent α\alpha such that aα=ba^{\alpha} = b.Example: log⁡525=2\log_5 25 = 2 because 52=255^2 = 25.
α=log⁡ab⇔aα=b\alpha = \log_a b \Leftrightarrow a^{\alpha} = b
Two ways of writing the same idea, you can switch back and forth.Example: log⁡416=2⇔42=16\log_4 16 = 2 \Leftrightarrow 4^2 = 16.
there is no logarithm of a negative number or of 0
Because a power with a positive base is always positive, never equal to 0 or a negative number.Example: log⁡2(−8)\log_2(-8) and log⁡20\log_2 0 are both undefined.
alog⁡ab=ba^{\log_a b} = b
Raising bb as an exponent of its own base brings you back to bb.Example: 2log⁡27=72^{\log_2 7} = 7.

Common mistakesTaking the logarithm of 0 or of a negative number, or using base 1 or a negative base. The base must be positive and different from 1, and the input must be positive.

TipRead log⁡ab\log_a b as the question "aa to what power equals bb"; once you can answer it, you have the result.

Properties of logarithms

  • With a>0,a≠1a > 0, a \ne 1, M>0,N>0M > 0, N > 0, we have:
  • Logarithm of a product: log⁡a(MN)=log⁡aM+log⁡aN\log_a(MN) = \log_a M + \log_a N.
  • Logarithm of a quotient: log⁡aMN=log⁡aM−log⁡aN\log_a \frac{M}{N} = \log_a M - \log_a N.
  • Logarithm of a power: log⁡aMα=αlog⁡aM\log_a M^{\alpha} = \alpha \log_a M with α∈R\alpha \in \mathbb{R}.
  • In particular: log⁡a1N=−log⁡aN\log_a \frac{1}{N} = -\log_a N; log⁡aMn=1nlog⁡aM\log_a \sqrt[n]{M} = \frac{1}{n} \log_a M with n∈N∗n \in \mathbb{N}^*.
  • Example: log⁡212=log⁡2(4⋅3)=2+log⁡23\log_2 12 = \log_2(4 \cdot 3) = 2 + \log_2 3; log⁡345=log⁡35+2\log_3 45 = \log_3 5 + 2.

In plain words: These three rules say something very natural: a logarithm turns multiplication into addition, division into subtraction, and a power into multiplication. Why? Because a logarithm is exactly the exponent, and when you multiply two powers with the same base the exponents add: am⋅an=am+na^m \cdot a^n = a^{m+n}. Similarly, dividing two powers with the same base subtracts the exponents, and a power of a power multiplies the exponents. Remember the phrase "multiplication becomes addition, division becomes subtraction, power becomes multiplication" and you will use it the right way. The reverse direction is also useful: when you meet the sum of two logarithms with the same base, combine them into the logarithm of a product.

Phrase by phrase
Logarithm of a product
The logarithm of a product equals the sum of the logarithms.Example: log⁡2(5⋅8)=log⁡25+3\log_2(5 \cdot 8) = \log_2 5 + 3.
Logarithm of a quotient
The logarithm of a quotient equals the difference of the logarithms.Example: log⁡395=2−log⁡35\log_3 \frac{9}{5} = 2 - \log_3 5.
Logarithm of a power
The exponent multiplies out in front of the logarithm.Example: log⁡285=5log⁡28=15\log_2 8^5 = 5 \log_2 8 = 15.
log⁡aMα=αlog⁡aM\log_a M^{\alpha} = \alpha \log_a M
Only used when M>0M > 0. If you meet M2M^2 with M≠0M \ne 0 then log⁡aM2=2log⁡a∣M∣\log_a M^2 = 2\log_a |M|; with M<0M < 0 there is no general formula for an arbitrary exponent.Example: log⁡2x4=4log⁡2x\log_2 x^4 = 4\log_2 x with x>0x > 0; and log⁡2x2=2log⁡2∣x∣\log_2 x^2 = 2\log_2 |x| with x≠0x \ne 0.

TipRemember the three rules with the saying "multiplication becomes addition, division becomes subtraction, power becomes multiplication".

Change of base formula

  • Given positive numbers a,b,Na, b, N with a≠1,b≠1a \ne 1, b \ne 1, we have:

log⁡aN=log⁡bNlog⁡ba.\log_a N = \frac{\log_b N}{\log_b a}.

  • In particular:
  • log⁡aN=1log⁡Na\log_a N = \frac{1}{\log_N a} with N≠1N \ne 1.
  • log⁡aαN=1αlog⁡aN\log_{a^{\alpha}} N = \frac{1}{\alpha} \log_a N with α≠0\alpha \ne 0.
  • Example: log⁡47=log⁡27log⁡24=log⁡272\log_4 7 = \frac{\log_2 7}{\log_2 4} = \frac{\log_2 7}{2}.

In plain words: A calculator only has the log⁡\log button (base 10) and the ln⁡\ln button (base ee), with no button for base 2 or base 5. The change of base formula is the way to "translate" a logarithm with an unfamiliar base into a familiar base. Just remember: the new logarithm equals the logarithm of NN divided by the logarithm of the old base, both written in the new base. When you need to compare or simplify two logarithms with different bases, the first step is to bring them to the same base.

Phrase by phrase
change of base
Write a logarithm in a different base without changing its value.Example: log⁡85=log⁡253\log_8 5 = \frac{\log_2 5}{3}.
log⁡aN=1log⁡Na\log_a N = \frac{1}{\log_N a}
Two logarithms are reciprocals of each other when you swap the base and the input.Example: log⁡25=1log⁡52\log_2 5 = \frac{1}{\log_5 2}.
log⁡aαN=1αlog⁡aN\log_{a^{\alpha}} N = \frac{1}{\alpha} \log_a N
When the base is a power, bring the exponent out front as a reciprocal.Example: log⁡235=13log⁡25\log_{2^3} 5 = \frac{1}{3} \log_2 5.
0<a≠10 < a \ne 1, 0<b≠10 < b \ne 1
Both bases must be positive and different from 1 for the formula to work.Example: Cannot change to base −2-2 or base 1.

Common mistakesThinking that log⁡aMα=αlog⁡aM\log_a M^{\alpha} = \alpha \log_a M can be used even when M<0M < 0. The formula only works when M>0M > 0. For example with α=2\alpha = 2, M≠0M \ne 0 then log⁡aM2=2log⁡a∣M∣\log_a M^2 = 2\log_a |M|; there is no general formula when M<0M < 0.

TipChange of base: the new logarithm equals the logarithm of the input divided by the logarithm of the base, both written in the new base.

Common logarithm and natural logarithm

  • Common logarithm is the logarithm with base 10 of a positive number bb, written log⁡b\log b or lg⁡b\lg b. So log⁡b=log⁡10b\log b = \log_{10} b.
  • Natural logarithm is the logarithm with base ee of a positive number bb, written ln⁡b\ln b. So ln⁡b=log⁡eb\ln b = \log_e b.
  • The number ee is an irrational number, approximately 2,718281828…2,718281828\ldots, defined by the limit e=lim⁡x→+∞(1+1x)xe = \lim\limits_{x \to +\infty} \left(1 + \frac{1}{x}\right)^x.
  • For example: log⁡1000=3\log 1000 = 3; ln⁡1=0\ln 1 = 0; ln⁡e=1\ln e = 1.

In plain words: These two kinds of logarithm differ only in their base, so all the rules above still apply as before. They have their own names because they appear often in real life: base 10 goes with the way people write numbers and with pH, earthquake strength; base ee goes with growth, compound interest, radioactivity. When a problem writes log⁡b\log b without giving a base, you know right away it means base 10; writing ln⁡b\ln b means base ee.

Phrase by phrase
Common logarithm
Logarithm with base 10, written log⁡b\log b or lg⁡b\lg b.Example: log⁡10000=4\log 10000 = 4.
Natural logarithm
Logarithm with base ee, written ln⁡b\ln b.Example: ln⁡e2=2\ln e^2 = 2.
The number ee
An irrational number approximately 2.71828, used as the base of the natural logarithm.Example: e≈2,7183e \approx 2,7183.

Worked examples

Example 1

Calculate: a) log⁡216\log_2 16; b) log⁡3127\log_3 \frac{1}{27}; c) log⁡51\log_5 1; d) log⁡77\log_7 7.

Show the solution to example 1

Step 1: a) Ask “2 to what power gives 16”. Since 24=162^4 = 16, log⁡216=4\log_2 16 = 4.
Step 2: b) Write 127=3−3\frac{1}{27} = 3^{-3}, so log⁡3127=−3\log_3 \frac{1}{27} = -3.
Why: Use log⁡aaα=α\log_a a^{\alpha} = \alpha, just bring the input to a power of the base.
Step 3: c) 55 to what power gives 1, that is 0, so log⁡51=0\log_5 1 = 0.
Step 4: d) 77 to what power gives 7, that is 1, so log⁡77=1\log_7 7 = 1.
Results: a) 4; b) −3-3; c) 0; d) 1.

Common mistakesCalculating log⁡28\log_2 8 as 4 because of confusing 2⋅4=82 \cdot 4 = 8. Correctly, ask “2 to what power gives 8”, the answer is 3.

Example 2

Calculate: a) log⁡240−log⁡25\log_2 40 - \log_2 5; b) log⁡36+log⁡332\log_3 6 + \log_3 \frac{3}{2}; c) log⁡51254\log_5 125^4.

Show the solution to example 2

Step 1: a) Use the quotient rule: log⁡240−log⁡25=log⁡2405=log⁡28=3\log_2 40 - \log_2 5 = \log_2 \frac{40}{5} = \log_2 8 = 3.
Why: Combining the difference into the logarithm of a quotient makes the input simpler, giving a neat power of 2.
Step 2: b) Use the product rule: log⁡36+log⁡332=log⁡3(6⋅32)=log⁡39=2\log_3 6 + \log_3 \frac{3}{2} = \log_3\left(6 \cdot \frac{3}{2}\right) = \log_3 9 = 2.
Step 3: c) Use the power rule: log⁡51254=4log⁡5125=4⋅3=12\log_5 125^4 = 4\log_5 125 = 4 \cdot 3 = 12.
Results: a) 3; b) 2; c) 12.

Common mistakesWriting log⁡a(M+N)=log⁡aM+log⁡aN\log_a(M + N) = \log_a M + \log_a N. Wrong: the addition rule only holds for the logarithm of a product, not for a sum.

Example 3

Given log⁡23=a\log_2 3 = a. Calculate in terms of aa: a) log⁡212\log_2 12; b) log⁡298\log_2 \frac{9}{8}; c) log⁡26\log_2 6.

Show the solution to example 3

Step 1: a) 12=4⋅312 = 4 \cdot 3, so log⁡212=log⁡24+log⁡23=2+a\log_2 12 = \log_2 4 + \log_2 3 = 2 + a.
Step 2: b) 98=3223\frac{9}{8} = \frac{3^2}{2^3}, so log⁡298=log⁡232−log⁡223=2a−3\log_2 \frac{9}{8} = \log_2 3^2 - \log_2 2^3 = 2a - 3.
Why: Both numerator and denominator are brought to powers of 2 and 3, two numbers whose logarithms are known.
Step 3: c) 6=2⋅36 = 2 \cdot 3, so log⁡26=log⁡22+log⁡23=1+a\log_2 6 = \log_2 2 + \log_2 3 = 1 + a.
Results: a) 2+a2 + a; b) 2a−32a - 3; c) 1+a1 + a.

Example 4

Calculate with a calculator, round to the hundredths place: a) log⁡320\log_3 20; b) log⁡50,7\log_5 0,7; c) ln⁡25\ln 25.

Show the solution to example 4

Step 1: a) Change of base: log⁡320=log⁡20log⁡3\log_3 20 = \frac{\log 20}{\log 3}. Pressing the calculator gives 2,7268...2,7268..., round to 2,732,73.
Why: The calculator has no base 3 button, so use log⁡aN=log⁡Nlog⁡a\log_a N = \frac{\log N}{\log a}, the numerator is the input 20, the denominator is the base 3.
Step 2: b) log⁡50,7=log⁡0,7log⁡5\log_5 0,7 = \frac{\log 0,7}{\log 5}. Pressing the calculator gives −0,2216...-0,2216..., round to −0,22-0,22.
Step 3: c) Press the ln⁡\ln button directly, then 25, giving 3,2188...3,2188..., round to 3,223,22.
Results: a) 2,732,73; b) −0,22-0,22; c) 3,223,22.

Common mistakesPressing the change-of-base keys in the wrong order: calculating log⁡3log⁡20\frac{\log 3}{\log 20} instead of log⁡20log⁡3\frac{\log 20}{\log 3}. The numerator is always the input, the denominator is the base.

Example 5

Simplify A=log⁡224−log⁡23+log⁡22A = \log_2 24 - \log_2 3 + \log_2 2 and B=log⁡32⋅log⁡227B = \log_3 2 \cdot \log_2 27.

Show the solution to example 5

Step 1: For AA, combine the first two logarithms: log⁡224−log⁡23=log⁡2243=log⁡28=3\log_2 24 - \log_2 3 = \log_2 \frac{24}{3} = \log_2 8 = 3.
Step 2: A=3+log⁡22=3+1=4A = 3 + \log_2 2 = 3 + 1 = 4.
Step 3: For BB, change log⁡227\log_2 27 to base 3: log⁡227=log⁡327log⁡32=3log⁡32\log_2 27 = \frac{\log_3 27}{\log_3 2} = \frac{3}{\log_3 2}.
Why: Change the base so both factors have base 3, then log⁡32\log_3 2 in the numerator and denominator cancel.
Step 4: B=log⁡32⋅3log⁡32=3B = \log_3 2 \cdot \frac{3}{\log_3 2} = 3.
Results: A=4A = 4; B=3B = 3.

Example 6

The pHpH of a solution is calculated by pH=−log⁡[H+]pH = -\log[H^+], where [H+][H^+] is the hydrogen ion concentration (mol/litre).
a) Lemon juice has [H+]=10−2[H^+] = 10^{-2} mol/litre, calculate pHpH.
b) A solution has pHpH equal to 4.5. Calculate [H+][H^+] (round to 10−510^{-5} mol/litre).

Show the solution to example 6

Step 1: a) pH=−log⁡10−2=−(−2)=2pH = -\log 10^{-2} = -(-2) = 2.
Why: log⁡10−2=−2\log 10^{-2} = -2 by the property log⁡aaα=α\log_a a^{\alpha} = \alpha with base 10.
Step 2: b) From pH=−log⁡[H+]pH = -\log[H^+] we get log⁡[H+]=−4,5\log[H^+] = -4,5, that is [H+]=10−4,5[H^+] = 10^{-4,5}.
Step 3: Press the calculator 10−4,5≈3,1623⋅10−510^{-4,5} \approx 3,1623 \cdot 10^{-5}, round to 3⋅10−53 \cdot 10^{-5} mol/litre.
Results: a) pH=2pH = 2; b) [H+]≈3⋅10−5[H^+] \approx 3 \cdot 10^{-5} mol/litre.

Terms

Logarithm base aa of bb
The exponent α\alpha such that aα=ba^{\alpha} = b, written log⁡ab\log_a b.Example: log⁡232=5\log_2 32 = 5.
Base of the logarithm
The number aa sits at the foot of the word log; it must be positive and different from 1.Example: In log⁡39\log_3 9, the base is 3.
Input
The number bb right after the word log must be positive.Example: In log⁡39\log_3 9, the input is 9.
Logarithm of a product
log⁡a(MN)=log⁡aM+log⁡aN\log_a(MN) = \log_a M + \log_a N.Example: log⁡26=log⁡22+log⁡23\log_2 6 = \log_2 2 + \log_2 3.
Logarithm of a quotient
log⁡aMN=log⁡aM−log⁡aN\log_a \frac{M}{N} = \log_a M - \log_a N.Example: log⁡285=3−log⁡25\log_2 \frac{8}{5} = 3 - \log_2 5.
Logarithm of a power
log⁡aMα=αlog⁡aM\log_a M^{\alpha} = \alpha \log_a M.Example: log⁡392=2log⁡39=4\log_3 9^2 = 2 \log_3 9 = 4.
Change of base formula
log⁡aN=log⁡bNlog⁡ba\log_a N = \frac{\log_b N}{\log_b a}.Example: log⁡47=log⁡272\log_4 7 = \frac{\log_2 7}{2}.
Common logarithm
Logarithm with base 10, written log⁡b\log b or lg⁡b\lg b.Example: log⁡100=2\log 100 = 2.
Natural logarithm
Logarithm with base ee, written ln⁡b\ln b.Example: ln⁡e=1\ln e = 1.