Learn on your own. Parents beside you. Teachers guide.

Lemonmath
Tiếng Việt

Logarithms

Lesson 6.2 · 25 min read · Updated

Suppose you invest 100100 million dong at 6%6\% a year, compounded annually (hypothetical figures). After tt years the amount is 100⋅1.06t100\cdot1.06^t million dong. You want to know when the amount reaches 200200 million dong. That means solving 1.06t=21.06^t=2.

In the previous lesson we learned to find a power when the exponent is known. Now the problem runs the other way: the result is known and we must find the exponent. The inverse operation is the logarithm, and it lets us read off an exponent from a given number.

Exploration: finding the exponent

Let us try a few whole-number exponents of 1.061.06:

tt 1010 1111 1212
1.06t1.06^t 1.79081.7908 1.89831.8983 2.01222.0122

Since 1.8983<2<2.01221.8983<2<2.0122, the number tt lies between 1111 and 1212. We cannot yet name this tt, so we need a new notation. Let us begin with an easier case: writing numbers as powers of 22.

bb 18\dfrac18 12\dfrac12 1 2 8 32
exponent \alpha with 2^{\alpha}=b -3 -1 0 1 3 5

Every positive number b has exactly one exponent \alpha such that 2^{\alpha}=b. We call that exponent the logarithm of b to base 2.

Definition of the logarithm

Going deeper. A logarithm is just another name for an exponent. For example \log_2 8=3 because 2^3=8. There are three conditions to remember. The base satisfies a>0 and a\neq1, because 1^{\alpha} is always 1, so no exponent could produce any other number. The number b must be positive, because a^{\alpha}>0 for every \alpha. Hence \log_2(-4) and \log_2 0 are meaningless.

From the definition we get at once the following properties (for a>0, a\neq1, b>0):

\log_a1=0,\qquad\log_aa=1,\qquad a^{\log_ab}=b,\qquad\log_a\left(a^{\alpha}\right)=\alpha.

For instance, a^{\log_ab}=b says exactly "if \alpha=\log_ab then a^{\alpha}=b". The two functions "take a power" and "take a logarithm" undo each other, as in the graph below: their graphs are symmetric about the line y=x.

-2-112345678-22468xyOy = 2^xy = log2 x
Graphs of y=2^x and y=\log_2x are symmetric about the line y=x

Two bases are used so often that they have their own notation. The common logarithm is the logarithm to base 10, written \log b (or \lg b). The natural logarithm is the logarithm to base e, written \ln b, where e\approx2.718 is Euler's number.

Rules for logarithms

Why is this true? A logarithm is an exponent, so these rules are properties of powers written in a different language. Put x=\log_aM and y=\log_aN, that is M=a^x and N=a^y. Then MN=a^x\cdot a^y=a^{x+y}, so \log_a(MN)=x+y=\log_aM+\log_aN. The other two rules follow in the same way from \dfrac{a^x}{a^y}=a^{x-y} and (a^x)^{\alpha}=a^{\alpha x}.

The change of base formula lets us use a calculator (which has only \log and \ln) to find a logarithm to any base: \log_ab=\dfrac{\ln b}{\ln a}. It also gives a consequence: \log_{a^{\alpha}}b=\dfrac1{\alpha}\log_ab.

Examples

We begin with the definition.

Next we use the properties a^{\log_ab}=b and \log_aa^{\alpha}=\alpha.

Now we simplify using the rules.

When the bases differ, we convert to a single base.

Now we return to the compound interest problem from the start, using all four steps.

Logarithms also appear in science. The pH of a solution measures how acidic it is and is defined by \mathrm{pH}=-\log[\mathrm{H}^+], where [\mathrm{H}^+] is the concentration of hydrogen ions (mol/litre).

Connections. Logarithms rest on powers with real exponents from the lesson powers with real exponents: the rules above are properties of powers read in reverse. They prepare for the lesson on exponential and logarithmic functions and the lesson on exponential and logarithmic equations and inequalities, where we solve equations with the unknown in the exponent, such as 1.06^t=2. In practice, logarithms turn quantities spread over many orders of magnitude (acid concentration, sound intensity) into readable numbers such as \mathrm{pH}=4.52.

Key terms

Summary

  • \log_ab=\alpha\Leftrightarrow a^{\alpha}=b for a>0, a\neq1, b>0.
  • \log_a1=0, \log_aa=1, a^{\log_ab}=b, \log_a(a^{\alpha})=\alpha.
  • \log_a(MN)=\log_aM+\log_aN; \log_a\dfrac MN=\log_aM-\log_aN; \log_a(M^{\alpha})=\alpha\log_aM.
  • \log_ab=\dfrac{\log_cb}{\log_ca}; \log means base 10, \ln means base e.
  • Real-life problems: solve a^t=b by t=\dfrac{\ln b}{\ln a}; \mathrm{pH}=-\log[\mathrm{H}^+].

Practice

Each exercise comes with what you need and hints. Try it yourself first, then open the solution.

Exercise 1

Evaluate:

a) \log_5125.

b) \log_2\dfrac18.

c) \log_{1/3}9.

d) \ln e^5.

What you need and how to start

What you need: \log_ab=\alpha\Leftrightarrow a^{\alpha}=b.

Steps:

  1. Write the number inside the logarithm as a power of the base.
  2. Read off the exponent.
Show solution

a) Since 5^3=125, \log_5125=3.

b) Since 2^{-3}=\dfrac18, \log_2\dfrac18=-3.

c) Since \left(\dfrac13\right)^{-2}=9, \log_{1/3}9=-2.

d) We have \ln e^5=\log_ee^5=5.

So a) 3; b) -3; c) -2; d) 5.

Answer. a) 3; b) -3; c) -2; d) 5.

Exercise 2

Find the condition on x for each expression to be defined:

a) \log_3(x-2).

b) \log_2(5-x).

c) \log(x^2-4).

What you need and how to start

What you need: \log_au is defined when u>0.

Steps:

  1. Write the condition u>0.
  2. Solve the resulting inequality (in part c, study the sign of the product (x-2)(x+2)).
Show solution

The expression \log_a b (with base a>0, a\neq1) is defined if and only if b>0. The bases 3, 2, 10 here all satisfy the condition on the base.

a) The expression \log_3(x-2) is defined when x-2>0, so x>2.

b) The expression \log_2(5-x) is defined when 5-x>0, so x<5.

c) The expression \log(x^2-4) is defined when x^2-4>0. Factorising, x^2-4=(x-2)(x+2)>0. A product of two factors is positive when they have the same sign. If both are positive then x>2; if both are negative then x<-2. Hence x<-2 or x>2.

So a) x>2; b) x<5; c) x\in(-\infty, -2)\cup(2, +\infty).

Answer. a) x>2; b) x<5; c) (-\infty, -2)\cup(2, +\infty).

Exercise 3

Evaluate:

a) 4^{\log_23}.

b) 8^{\log_25}.

c) \log_432.

What you need and how to start

What you need: a^{\log_ab}=b; write the base as a power of 2.

Steps:

  1. In parts a and b: write 4=2^2 and 8=2^3, then use (a^{\alpha})^{\beta}=a^{\alpha\beta}.
  2. In part c: put x=\log_432 and solve 4^x=32.
Show solution

We use the rules \left(a^m\right)^n=a^{mn} and a^{\log_a b}=b (for a>0, a\neq1, b>0).

a) Since 4=2^2, 4^{\log_23}=\left(2^2\right)^{\log_23}=\left(2^{\log_23}\right)^2=3^2=9.

b) Since 8=2^3, 8^{\log_25}=\left(2^3\right)^{\log_25}=\left(2^{\log_25}\right)^3=5^3=125.

c) Let x=\log_432. By the definition of a logarithm, 4^x=32. Writing both sides as powers of 2 gives 2^{2x}=2^5. So 2x=5, hence x=\dfrac52.

So a) 9; b) 125; c) \dfrac52.

Answer. a) 9; b) 125; c) \dfrac52.

Exercise 4

Evaluate:

a) \log_64+\log_69.

b) \log_354-\log_32.

c) \log_212-2\log_23+\log_26.

What you need and how to start

What you need: \log_a(MN)=\log_aM+\log_aN, \log_a\dfrac MN=\log_aM-\log_aN, \alpha\log_aM=\log_aM^{\alpha}.

Steps:

  1. Combine the logarithms into a single logarithm.
  2. Evaluate the expression inside the logarithm.
Show solution

We use the rules (for suitable positive bases and numbers): \log_a M+\log_a N=\log_a(MN),\qquad \log_a M-\log_a N=\log_a\frac MN,\qquad k\log_a M=\log_a M^k.

a) We have \log_64+\log_69=\log_6(4\cdot9)=\log_636=\log_66^2=2.

b) We have \log_354-\log_32=\log_3\dfrac{54}{2}=\log_327=\log_33^3=3.

c) First, 2\log_23=\log_23^2. Therefore \begin{aligned} \log_212-2\log_23+\log_26&=\log_212-\log_23^2+\log_26\\ &=\log_2\frac{12\cdot6}{3^2}=\log_28=\log_22^3=3. \end{aligned}

So a) 2; b) 3; c) 3.

Answer. a) 2; b) 3; c) 3.

Exercise 5

The pH of a solution is given by \mathrm{pH}=-\log[\mathrm{H}^+] ([\mathrm{H}^+] in mol/litre).

a) A solution has [\mathrm{H}^+]=2\cdot10^{-4} (hypothetical figure). Find its pH (to two decimal places).

b) A solution has \mathrm{pH}=6.5. Find [\mathrm{H}^+], written as c\cdot10^{-7} with c to one decimal place.

What you need and how to start

What you need: \mathrm{pH}=-\log[\mathrm{H}^+] and [\mathrm{H}^+]=10^{-\mathrm{pH}}.

Steps:

  1. a) Split \log\left(2\cdot10^{-4}\right)=\log2-4.
  2. b) Write 10^{-6.5}=10^{0.5}\cdot10^{-7}.
Show solution

The pH is given by \mathrm{pH}=-\log[\mathrm{H}^+], where [\mathrm{H}^+] is in mol/litre.

a) With [\mathrm{H}^+]=2\cdot10^{-4}, we have \mathrm{pH}=-\log\left(2\cdot10^{-4}\right)=-\left(\log2+\log10^{-4}\right)=-(\log2-4)=4-\log2. Using a calculator, \log2\approx0.3010, so \mathrm{pH}\approx4-0.3010=3.699\approx3.70 (to two decimal places).

b) With \mathrm{pH}=6.5, from -\log[\mathrm{H}^+]=6.5 we get \log[\mathrm{H}^+]=-6.5, so [\mathrm{H}^+]=10^{-6.5}=10^{0.5}\cdot10^{-7}. Using a calculator, 10^{0.5}=\sqrt{10}\approx3.16\approx3.2 (to one decimal place), so [\mathrm{H}^+]\approx3.2\cdot10^{-7}.

So a) \mathrm{pH}\approx3.70; b) [\mathrm{H}^+]\approx3.2\cdot10^{-7} mol/litre.

Answer. a) 3.70; b) 3.2\cdot10^{-7} mol/litre.

Exercise 6

The sound level is given by L=10\log\dfrac{I}{I_0} (in decibels, dB), where I is the sound intensity (W/m²) and I_0=10^{-12} W/m² is the reference intensity (by the definition of sound level in school physics).

a) A sound has I=10^{-5} W/m². Find L.

b) If the sound intensity doubles, by how many dB does the sound level increase (to one decimal place)?

What you need and how to start

What you need: \log\dfrac ab, \log10^k=k and \log(2I)=\log2+\log I.

Steps:

  1. a) Find \dfrac{I}{I_0}, then take \log.
  2. b) Find L'-L with I'=2I.
Show solution

a) We have \dfrac{I}{I_0}=10^{7}, so L=10\log10^7=70 (dB).

b) We have L'-L=10\log\dfrac{2I}{I_0}-10\log\dfrac{I}{I_0}=10\log2\approx3.0 (dB), independent of I.

So a) L=70 dB; b) it increases by about 3.0 dB.

Answer. a) 70 dB; b) about 3.0 dB.

Exercise 7

Decide whether each statement is true or false:

a) \log_28=3.

b) \log_2(4+4)=\log_24+\log_24.

c) \log_{1/2}4=2.

d) \log_35\cdot\log_53=1.

What you need and how to start

What you need: the definition of the logarithm; the rules apply only to products, quotients and powers; the change of base formula.

Steps:

  1. a), c) Check a^{\alpha}=b.
  2. b) Evaluate each side separately; d) use \log_ab=\dfrac{1}{\log_ba}.
Show solution

a) True. By definition, \log_28=3 if and only if 2^3=8, which holds.

b) False. The left side is \log_2(4+4)=\log_28=3. The right side is \log_24+\log_24=2+2=4. Since 3\neq4, the equality is false.

c) False. If \log_{1/2}4=2, then \left(\dfrac12\right)^2=4, but \left(\dfrac12\right)^2=\dfrac14\neq4. In fact 4=\left(\dfrac12\right)^{-2}, so \log_{1/2}4=-2.

d) True. By the change-of-base formula, \log_35=\dfrac{1}{\log_53} (with \log_53\neq0). Hence \log_35\cdot\log_53=1.

So statements a), d) are true; statements b), c) are false.

Answer. a) True; b) False; c) False; d) True.

Exercise 8

Using a calculator, find \log_23 (to two decimal places).

What you need and how to start

What you need: \log_ab=\dfrac{\ln b}{\ln a}.

Steps:

  1. Change to base e.
  2. Use the calculator, then round.
Show solution

A calculator usually has only the keys \ln and \log, so we use the change-of-base formula \log_ab=\dfrac{\ln b}{\ln a}.

We have \log_23=\frac{\ln3}{\ln2}\approx\frac{1.0986}{0.6931}\approx1.585.

Rounding to two decimal places, \log_23\approx1.58.

So \log_23\approx1.58.

Answer. 1.58.

Exercise 9

Revisit powers with rational exponents. For a>0, a\neq1, evaluate:

a) \log_a\left(a^2\sqrt{a}\right).

b) \log_a\dfrac{a}{\sqrt[3]{a}}.

What you need and how to start

What you need: \sqrt[n]{a}=a^{1/n} and \log_a\left(a^{\alpha}\right)=\alpha.

Steps:

  1. Write the expression inside the logarithm in the form a^{r}.
  2. Read off the exponent r.
Show solution

For a>0, a\neq1, we use \sqrt a=a^{\frac12}, \sqrt[3]a=a^{\frac13}, a^m\cdot a^n=a^{m+n}, \dfrac{a^m}{a^n}=a^{m-n} and \log_aa^\alpha=\alpha.

a) We have a^2\sqrt a=a^2\cdot a^{\frac12}=a^{2+\frac12}=a^{\frac52}. Therefore \log_a\left(a^2\sqrt a\right)=\log_aa^{\frac52}=\dfrac52.

b) We have \frac{a}{\sqrt[3]a}=\frac{a^1}{a^{\frac13}}=a^{1-\frac13}=a^{\frac23}. Therefore \log_a\dfrac{a}{\sqrt[3]a}=\log_aa^{\frac23}=\dfrac23.

So a) \dfrac52; b) \dfrac23.

Answer. a) \dfrac52; b) \dfrac23.

Exercise 10 Challenge

Prove that \log_23 is irrational.

What you need and how to start

What you need: if \log_23=\dfrac mn then 2^{m/n}=3; an even number cannot equal an odd number.

Steps:

  1. Suppose \log_23=\dfrac mn with m, n positive integers (since \log_23>0).
  2. Reduce to 2^m=3^n and consider parity.
Show solution

Suppose \log_23=\dfrac mn with m, n positive integers. Then 2^{m/n}=3, so 2^m=3^n.

The left side is even (since m\ge1) and the right side is odd. This is a contradiction.

So \log_23 is irrational.

Answer. \log_23 is irrational.

Mini test

Mini test

Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.

Part I. Multiple choice

Question 1. The value of \log_{1/2}8 is
Question 2. The domain of the function y=\log(x^2-1) is
Question 3. The value of \log_62+\log_618 is
Question 4. Let a=\log_23. Then \log_618 equals

Part II. True or false

Question 1. The pH of a solution is given by \mathrm{pH}=-\log[\mathrm{H}^+]. Solution A has [\mathrm{H}^+]=10^{-3} mol/litre and solution B has [\mathrm{H}^+]=10^{-5} mol/litre. Decide whether each statement is true or false:
a) The pH of solution A is -3.
b) The pH of solution B is 5.
c) The concentration [\mathrm{H}^+] of solution A is 100 times that of solution B.
d) The pH of solution B is greater than the pH of solution A.

Part III. Short answer

Question 1. Suppose the interest rate is 6\% a year, compounded annually. After how many years does the amount invested triple (give the answer to one decimal place)?

Question 2. The sound level is L=10\log\dfrac{I}{I_0} (dB) with I_0=10^{-12} W/m². A sound has I=3\cdot10^{-6} W/m². Find L (give the answer to one decimal place).

Show answers and explanations
  1. Part I, question 1: C. Since \left(\dfrac12\right)^{-3}=8, \log_{1/2}8=-3. Option B ignores that the base is less than 1; C and D take the reciprocal of the result.
  2. Part I, question 2: D. We need x^2-1>0, that is x<-1 or x>1. Option A forgets the negative half, B has the inequality reversed, and C treats the condition like a denominator being non-zero.
  3. Part I, question 3: A. We have \log_62+\log_618=\log_6(2\cdot18)=\log_636=2. Option B adds the arguments, C divides instead of multiplying, and D stops at 36 without taking the logarithm.
  4. Part I, question 4: B. \log_618=\dfrac{\log_218}{\log_26}=\dfrac{1+2\log_23}{1+\log_23}=\dfrac{1+2a}{1+a}. Option A is \log_612, C swaps numerator and denominator, and D only computes \log_29 in the numerator.
  5. Part II, question 1: a) False; b) True; c) True; d) True. a) False: \mathrm{pH}=-\log10^{-3}=3; the minus sign in the formula cancels the negative exponent. b) True: -\log10^{-5}=5. c) True: \dfrac{10^{-3}}{10^{-5}}=100. d) True: 5>3.
  6. Part III, question 1: 18.9. We need 1.06^t=3, so t=\dfrac{\ln3}{\ln1.06}\approx\dfrac{1.0986}{0.0583}\approx18.9 (years).
  7. Part III, question 2: 64.8. \dfrac{I}{I_0}=3\cdot10^6, so L=10(\log3+6)\approx10\cdot6.4771\approx64.8 (dB).
📈 My progress

Finding Lemonmath useful?

Send this page to a friend, a parent or a teacher who could use it. Studying on your own is easier with company, and Lemonmath is free for everyone.

Facebook ✉ Email