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 Canh Dieu, Chapter VI)

Lesson summary

Let aa be a positive real number different from 1 and bb a positive real number.

Common logarithm is the logarithm base 10 of a positive number bb, denoted log⁡b\log b or lg⁡b\lg b.

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

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

  • Nhận biết lôgarit cơ số a, lôgarit thập phân, lôgarit tự nhiên
  • Vận dụng tính chất của phép tính lôgarit

In Chemistry, people say lemon juice has a pHpH of about 2, while pure water has a pHpH of 7. Behind that number pHpH is an inverse operation: finding the exponent when the result of the power is known. This lesson helps you get to know the logarithm, the inverse operation of a power, learn how to calculate and transform it, then use it to understand pHpH.

Practise similar problems

Key ideas: what do you need to know?

The concept of logarithm

Let aa be a positive real number different from 1 and bb a positive real number. The real number cc such that ac=ba^c = b is called the logarithm base aa of bb and is denoted log⁡ab\log_a b.

  • Defining formula: c=log⁡ab⇔ac=bc = \log_a b \Leftrightarrow a^c = 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 of a logarithm must be positive and different from 1.
  • From the definition, for 0<a≠10 < a \ne 1, b>0b > 0 and any cc: log⁡a1=0\log_a 1 = 0; log⁡aa=1\log_a a = 1; log⁡aac=c\log_a a^c = c; 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 gives 8", and the answer is 3. Just ask yourself that question and it comes right away, no need to memorize anything more. The four small properties above are just that same question in a few special cases: what power of aa gives 1, the exponent is 0; what power gives aa itself, the exponent is 1.

Phrase by phrase
logarithm base aa of bb
The exponent cc such that ac=ba^c = b.Example: log⁡525=2\log_5 25 = 2 because 52=255^2 = 25.
c=log⁡ab⇔ac=bc = \log_a b \Leftrightarrow a^c = b
Two ways of writing the same idea, you can switch between them.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: Both log⁡2(−8)\log_2(-8) and log⁡20\log_2 0 are undefined.
alog⁡ab=ba^{\log_a b} = b
Raise bb to the exponent of its own base and you get back bb.Example: 2log⁡27=72^{\log_2 7} = 7.

Common mistakesTaking the logarithm of 0 or 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.

Common logarithm and natural logarithm

  • Common logarithm is the logarithm base 10 of a positive number bb, denoted log⁡b\log b or lg⁡b\lg b. Thus log⁡b=log⁡10b\log b = \log_{10} b.
  • The number ee: it can be proved that the limit lim⁡x→+∞(1+1x)x\lim\limits_{x \to +\infty} \left(1 + \frac{1}{x}\right)^x exists, it is an irrational number with value 2,718281828…2,718281828\ldots, denoted ee: e=lim⁡x→+∞(1+1x)x≈2,7183e = \lim\limits_{x \to +\infty} \left(1 + \frac{1}{x}\right)^x \approx 2,7183.
  • Natural logarithm is the logarithm base ee of a positive number bb, denoted ln⁡b\ln b. Thus ln⁡b=log⁡eb\ln b = \log_e b.
  • 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 work 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 the pHpH scale, earthquake strength; base ee goes with growth, compound interest, radioactivity. When a problem writes log⁡b\log b without a base, you know right away it is base 10; writing ln⁡b\ln b means base ee.

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

Logarithm of a product, of a quotient

For a>0,a≠1a > 0, a \ne 1 and 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.
  • Remark: log⁡a1b=−log⁡ab\log_a \frac{1}{b} = -\log_a b (for b>0b > 0).
  • 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 two rules say something very natural: the logarithm turns multiplication into addition and division into subtraction. Why? Because the 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. Remember the phrase "multiplication becomes addition, division becomes subtraction" and you will use it the right way. The reverse direction is also used often: when you meet a 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.
log⁡a1b=−log⁡ab\log_a \frac{1}{b} = -\log_a b
The logarithm of a reciprocal equals minus the logarithm.Example: log⁡218=−log⁡28=−3\log_2 \frac{1}{8} = -\log_2 8 = -3.

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

Logarithm of a power

For a>0,a≠1a > 0, a \ne 1, b>0b > 0 and any real number α\alpha, we have:

  • Logarithm of a power: log⁡abα=αlog⁡ab\log_a b^\alpha = \alpha \log_a b.
  • Remark: for every positive integer n≥2n \ge 2, log⁡abn=1nlog⁡ab\log_a \sqrt[n]{b} = \frac{1}{n} \log_a b.
  • Example: log⁡285=5log⁡28=15\log_2 8^5 = 5 \log_2 8 = 15; log⁡393=13log⁡39=23\log_3 \sqrt[3]{9} = \frac{1}{3} \log_3 9 = \frac{2}{3}.

In plain words: This rule also comes from a property of powers: the power of a power multiplies the exponents. Since the logarithm is the exponent, the exponent α\alpha is multiplied out in front. Note that the formula only works when b>0b > 0. If you meet b2b^2 with b≠0b \ne 0 then log⁡ab2=2log⁡a∣b∣\log_a b^2 = 2\log_a |b|; for b<0b < 0 there is no general formula for an arbitrary exponent.

Phrase by phrase
Logarithm of a power
The exponent is multiplied out in front of the logarithm.Example: log⁡285=5log⁡28=15\log_2 8^5 = 5 \log_2 8 = 15.
log⁡abα=αlog⁡ab\log_a b^\alpha = \alpha \log_a b
Only use it when b>0b > 0. If you meet b2b^2 with b≠0b \ne 0 then log⁡ab2=2log⁡a∣b∣\log_a b^2 = 2\log_a |b|; for b<0b < 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.
log⁡abn=1nlog⁡ab\log_a \sqrt[n]{b} = \frac{1}{n} \log_a b
The logarithm of the nnth root equals 1n\frac{1}{n} times the logarithm.Example: log⁡28=12log⁡28=32\log_2 \sqrt{8} = \frac{1}{2} \log_2 8 = \frac{3}{2}.

Common mistakesThinking that log⁡abα=αlog⁡ab\log_a b^\alpha = \alpha \log_a b works even when b<0b < 0. The formula only works when b>0b > 0. For example with α=2\alpha = 2, b≠0b \ne 0 then log⁡ab2=2log⁡a∣b∣\log_a b^2 = 2\log_a |b|; there is no general formula when b<0b < 0.

Change of base of logarithms

For a,ba, b two positive real numbers different from 1 and cc a positive real number, we have:

  • Change of base formula: log⁡bc=log⁡aclog⁡ab\log_b c = \frac{\log_a c}{\log_a b}.
  • Remark: for a,ba, b two positive real numbers different from 1, c>0c > 0 and α≠0\alpha \ne 0, we have:
  • log⁡ab⋅log⁡bc=log⁡ac\log_a b \cdot \log_b c = \log_a c;
  • log⁡ab=1log⁡ba\log_a b = \frac{1}{\log_b a};
  • log⁡aαb=1αlog⁡ab\log_{a^\alpha} b = \frac{1}{\alpha} \log_a b.
  • 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: The calculator only has a log⁡\log button (base 10) and a ln⁡\ln button (base ee), with no button for base 2 or base 5. The change-of-base formula is how you "translate" a logarithm with an unfamiliar base into a familiar base. Just remember: the new logarithm equals the logarithm of cc 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⁡ab=1log⁡ba\log_a b = \frac{1}{\log_b 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αb=1αlog⁡ab\log_{a^\alpha} b = \frac{1}{\alpha} \log_a b
The logarithm with a power base equals the reciprocal of the exponent times the logarithm with the original base.Example: log⁡43=12log⁡23\log_{4} 3 = \frac{1}{2} \log_2 3.

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; when you see log⁡\log with no base written, it means base 10, and when you see ln⁡\ln, it means base ee.

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 the question "2 to what power equals 16". Since 24=162^4 = 16, we get 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⁡aac=c\log_a a^c = c, just bring the input to a power of the base.
Step 3: c) 55 to what power equals 1, that is 0, so log⁡51=0\log_5 1 = 0.
Step 4: d) 77 to what power equals 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 it with 2⋅4=82 \cdot 4 = 8. Correctly, ask "2 to what power equals 8", the answer is 3.

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

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 nice 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 mistakesWrite log⁡a(m+n)=log⁡am+log⁡an\log_a(m + n) = \log_a m + \log_a n. Wrong: the addition rule only works for the logarithm of a product, not for a sum. For example log⁡2(4+4)=log⁡28=3\log_2(4 + 4) = \log_2 8 = 3, while log⁡24+log⁡24=4\log_2 4 + \log_2 4 = 4, two different results.

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

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 4

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 out.
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 5

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 5

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\ldots, round to 2,732,73.
Why: The calculator has no base 3 button, so you must use log⁡bc=log⁡aclog⁡ab\log_b c = \frac{\log_a c}{\log_a b}, with the input 20 on top and the base 3 on the bottom.
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\ldots, round to −0,22-0,22.
Step 3: c) Press the ln⁡\ln button directly, then 25, giving 3,2188…3,2188\ldots, 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 input always goes on top, the base on the bottom.

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⁡aac=c\log_a a^c = c 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

The logarithm with base aa of bb
The exponent cc such that ac=ba^c = b, denoted log⁡ab\log_a b.Example: log⁡232=5\log_2 32 = 5.
Base of the logarithm
The number aa at the foot of the 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 log, it must be positive.Example: In log⁡39\log_3 9, the input is 9.
Common logarithm
Logarithm base 10, written log⁡b\log b or lg⁡b\lg b.Example: log⁡100=2\log 100 = 2.
Natural logarithm
Logarithm base ee, written ln⁡b\ln b.Example: ln⁡e=1\ln e = 1.
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⁡abα=αlog⁡ab\log_a b^\alpha = \alpha \log_a b.Example: log⁡392=2log⁡39=4\log_3 9^2 = 2 \log_3 9 = 4.
Change of base formula
log⁡bc=log⁡aclog⁡ab\log_b c = \frac{\log_a c}{\log_a b}.Example: log⁡47=log⁡272\log_4 7 = \frac{\log_2 7}{2}.