Logarithms
🖨 Print a self-study sheet Why print?
Suppose you invest million dong at a year, compounded annually (hypothetical figures). After years the amount is million dong. You want to know when the amount reaches million dong. That means solving .
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 :
Since , the number lies between and . We cannot yet name this , so we need a new notation. Let us begin with an easier case: writing numbers as powers of .
| 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.
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.
Evaluate:
a) \log_5125.
b) \log_2\dfrac18.
c) \log_{1/3}9.
d) \ln e^5.
What you need: \log_ab=\alpha\Leftrightarrow a^{\alpha}=b.
Steps:
- Write the number inside the logarithm as a power of the base.
- 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.
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: \log_au is defined when u>0.
Steps:
- Write the condition u>0.
- 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).
Evaluate:
a) 4^{\log_23}.
b) 8^{\log_25}.
c) \log_432.
What you need: a^{\log_ab}=b; write the base as a power of 2.
Steps:
- In parts a and b: write 4=2^2 and 8=2^3, then use (a^{\alpha})^{\beta}=a^{\alpha\beta}.
- 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.
Evaluate:
a) \log_64+\log_69.
b) \log_354-\log_32.
c) \log_212-2\log_23+\log_26.
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:
- Combine the logarithms into a single logarithm.
- 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.
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: \mathrm{pH}=-\log[\mathrm{H}^+] and [\mathrm{H}^+]=10^{-\mathrm{pH}}.
Steps:
- a) Split \log\left(2\cdot10^{-4}\right)=\log2-4.
- 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.
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: \log\dfrac ab, \log10^k=k and \log(2I)=\log2+\log I.
Steps:
- a) Find \dfrac{I}{I_0}, then take \log.
- 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.
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: the definition of the logarithm; the rules apply only to products, quotients and powers; the change of base formula.
Steps:
- a), c) Check a^{\alpha}=b.
- 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.
Using a calculator, find \log_23 (to two decimal places).
What you need: \log_ab=\dfrac{\ln b}{\ln a}.
Steps:
- Change to base e.
- 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.
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: \sqrt[n]{a}=a^{1/n} and \log_a\left(a^{\alpha}\right)=\alpha.
Steps:
- Write the expression inside the logarithm in the form a^{r}.
- 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.
Prove that \log_23 is irrational.
What you need: if \log_23=\dfrac mn then 2^{m/n}=3; an even number cannot equal an odd number.
Steps:
- Suppose \log_23=\dfrac mn with m, n positive integers (since \log_23>0).
- 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
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
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.
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.
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.
\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.
Part II. 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. |
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.
Part III. Short answer
We need 1.06^t=3, so t=\dfrac{\ln3}{\ln1.06}\approx\dfrac{1.0986}{0.0583}\approx18.9 (years).
\dfrac{I}{I_0}=3\cdot10^6, so L=10(\log3+6)\approx10\cdot6.4771\approx64.8 (dB).
Show answers and explanations
- 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.
- 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.
- 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.
- 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.
- 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.
- 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).
- Part III, question 2: 64.8. \dfrac{I}{I_0}=3\cdot10^6, so L=10(\log3+6)\approx10\cdot6.4771\approx64.8 (dB).