Logarithms
Every question with a fully worked solution.
- Logarithms - Video - Logarithms : Simplifying and Expanding Watch
Theory
A logarithm is an index: \(\log_{a}y\) is the power of \(a\) that gives \(y\), so \(a^{x}=y\iff x=\log_{a}y\). This Year 11 Mathematics Advanced page shows how to convert between index form and logarithmic form, evaluate logarithms, use the laws of logarithms (product, quotient and power laws), evaluate logarithms with the change of base rule, write logarithms in terms of given logarithms, and prove logarithm results.
The logarithm of \(y\) to the base \(a\), written \(\log_{a}y\), is the index to which \(a\) must be raised to give \(y\). So \(2^{5}=32\) (index form) says the same thing as \(\log_{2}32=5\) (logarithmic form):
To evaluate a logarithm, write the number as a power of the base. \(\log_{2}\dfrac{1}{8}=-3\) because \(\dfrac{1}{8}=2^{-3}\), and \(\log_{9}3=\dfrac{1}{2}\) because \(3=\sqrt{9}=9^{\frac{1}{2}}\). A logarithm can be negative or a fraction, but the number inside it must be positive: \(\log_{2}(-8)\) is undefined, since no power of \(2\) is negative.
Logarithms to base \(10\) are called common logarithms. When no base is written, \(\log x\) means \(\log_{10}x\); this is the log key on a calculator.
Because a logarithm is an index, the index laws give the laws of logarithms. Multiplying numbers adds their logarithms (product law), dividing subtracts them (quotient law), and a power becomes a multiple (power law). These laws combine several logarithms into a single logarithm, or split one logarithm into simpler parts.
The change of base rule \(\log_{a}x=\dfrac{\log_{b}x}{\log_{b}a}\) rewrites a logarithm in any other base. With \(b=10\) it lets a calculator evaluate a logarithm to any base: \(\log_{6}20=\dfrac{\log_{10}20}{\log_{10}6}\approx1.672\).
Definition (\(a>0\), \(a\ne1\), \(y>0\)):
Laws of logarithms (\(m,n,x>0\)):
| Law | Rule | Example |
|---|---|---|
| Product | \(\log_{a}(mn)=\log_{a}m+\log_{a}n\) | \(\log_{6}4+\log_{6}9=\log_{6}36=2\) |
| Quotient | \(\log_{a}\dfrac{m}{n}=\log_{a}m-\log_{a}n\) | \(\log_{2}48-\log_{2}3=\log_{2}16=4\) |
| Power | \(\log_{a}m^{n}=n\log_{a}m\) | \(3\log_{5}2=\log_{5}2^{3}=\log_{5}8\) |
Special values, straight from the definition:
| Result | Reason | Example |
|---|---|---|
| \(\log_{a}a=1\) | \(a^{1}=a\) | \(\log_{7}7=1\) |
| \(\log_{a}1=0\) | \(a^{0}=1\) | \(\log_{4}1=0\) |
| \(\log_{a}\dfrac{1}{x}=-\log_{a}x\) | \(\log_{a}1-\log_{a}x\) | \(\log_{3}\dfrac{1}{5}=-\log_{3}5\) |
| \(\log_{a}a^{x}=x\) | the index of \(a^{x}\) is \(x\) | \(\log_{5}5^{4}=4\) |
| \(a^{\log_{a}x}=x\) | \(\log_{a}x\) is the index that gives \(x\) | \(3^{\log_{3}7}=7\) |
Change of base (\(b>0\), \(b\ne1\)):
| \(\log_{2}5\) | \(=\) | \(\dfrac{\log_{10}5}{\log_{10}2}\) |
| \(\) | \(=\) | \(2.3219\ldots\) |
| \(\) | \(\approx\) | \(2.322\ \text{(4 significant figures)}\) |
How to evaluate a logarithm
- Let the logarithm equal \(x\): \(\log_{a}y=x\).
- Rewrite in index form: \(a^{x}=y\).
- Write \(y\) as a power of \(a\) (use \(\dfrac{1}{a^{n}}=a^{-n}\) and \(\sqrt{a}=a^{\frac{1}{2}}\)) and equate the indices.
How to find an unknown in a logarithm
- Rewrite in index form: \(\log_{a}x=k\) gives \(x=a^{k}\).
- If the base is unknown, \(\log_{x}y=k\) gives \(x^{k}=y\). Solve, keeping only \(x>0\), \(x\ne1\).
How to simplify with the laws
- Power law first: move each coefficient into the index, e.g. \(2\log_{a}5=\log_{a}25\).
- Combine with the product law (adding) and the quotient law (subtracting) into a single logarithm.
- Evaluate if the number is a power of the base.
How to write a logarithm in terms of given logarithms
- Factorise the number into the numbers you are given (and the base, since \(\log_{a}a=1\)).
- Split with the product, quotient and power laws, then substitute the given letters.
How to prove a logarithm result
- Start from one side (usually the more complicated one), or let the logarithm equal a pronumeral and use index form.
- Use the definition, the laws and the change of base rule one step at a time, giving the reason for each step.
- Finish at the other side, and state any conditions needed (for example, \(\log_{b}a\ne0\) because \(a\ne1\)).
(a) \(\log_{2}64\)
(b) \(\log_{4}\dfrac{1}{64}\)
(c) \(\log_{9}3\)
(a) Use the definition:
| \(\text{Let }\log_{2}64\) | \(=\) | \(x\) |
| \(2^{x}\) | \(=\) | \(64\) |
| \(2^{x}\) | \(=\) | \(2^{6}\) |
| \(x\) | \(=\) | \(6\) |
\(\therefore\ \log_{2}64=\boldsymbol{6}\)
(b) Write \(\dfrac{1}{64}\) as a power of \(4\):
| \(\dfrac{1}{64}\) | \(=\) | \(\dfrac{1}{4^{3}}=4^{-3}\) |
| \(\log_{4}\dfrac{1}{64}\) | \(=\) | \(\log_{4}4^{-3}\) |
| \(\) | \(=\) | \(\boldsymbol{-3}\) |
(c) Write \(3\) as a power of \(9\):
| \(3\) | \(=\) | \(\sqrt{9}=9^{\frac{1}{2}}\) |
| \(\log_{9}3\) | \(=\) | \(\log_{9}9^{\frac{1}{2}}\) |
| \(\) | \(=\) | \(\boldsymbol{\dfrac{1}{2}}\) |
(a) \(\log_{4}x=\dfrac{3}{2}\)
(b) \(\log_{x}16=4\)
(a) Rewrite in index form:
| \(\log_{4}x\) | \(=\) | \(\dfrac{3}{2}\) |
| \(x\) | \(=\) | \(4^{\frac{3}{2}}\) |
| \(x\) | \(=\) | \(\left(\sqrt{4}\right)^{3}\) |
| \(x\) | \(=\) | \(\boldsymbol{8}\) |
(b) Rewrite in index form. The base is unknown this time:
| \(\log_{x}16\) | \(=\) | \(4\) |
| \(x^{4}\) | \(=\) | \(16\) |
| \(x^{4}\) | \(=\) | \(2^{4}\) |
| \(x\) | \(=\) | \(\boldsymbol{2}\) |
\(x=-2\) also satisfies \(x^{4}=16\), but a base must be positive, so \(x=2\).
(b) Given \(\log_{3}2=p\) and \(\log_{3}5=q\), express \(\log_{3}\dfrac{25}{6}\) in terms of \(p\) and \(q\).
(a) Use the power law, then the quotient law:
| \(3\log_{2}6-\log_{2}27\) | \(=\) | \(\log_{2}6^{3}-\log_{2}27\) |
| \(\) | \(=\) | \(\log_{2}216-\log_{2}27\) |
| \(\) | \(=\) | \(\log_{2}\dfrac{216}{27}\) |
| \(\) | \(=\) | \(\log_{2}8\) |
| \(\) | \(=\) | \(\boldsymbol{3}\) |
(b) Write the numbers using \(2\), \(5\) and the base \(3\): \(\dfrac{25}{6}=\dfrac{5^{2}}{2\times3}\).
| \(\log_{3}\dfrac{25}{6}\) | \(=\) | \(\log_{3}5^{2}-\log_{3}(2\times3)\) |
| \(\) | \(=\) | \(2\log_{3}5-(\log_{3}2+\log_{3}3)\) |
| \(\) | \(=\) | \(2q-(p+1)\) |
| \(\) | \(=\) | \(\boldsymbol{2q-p-1}\) |
Remember \(\log_{3}3=1\).
(b) Prove that \(\log_{a^{2}}x=\dfrac{1}{2}\log_{a}x\), where \(a>0\), \(a\ne1\) and \(x>0\).
(a) Change to base \(10\):
| \(\log_{7}50\) | \(=\) | \(\dfrac{\log_{10}50}{\log_{10}7}\) |
| \(\) | \(=\) | \(2.01038\ldots\) |
| \(\) | \(\approx\) | \(\boldsymbol{2.010}\) |
The zero in \(2.010\) is the fourth significant figure, so keep it.
(b) Change the base of the left-hand side to \(a\), then use the power law:
| \(\text{LHS}\) | \(=\) | \(\log_{a^{2}}x\) |
| \(\) | \(=\) | \(\dfrac{\log_{a}x}{\log_{a}a^{2}}\) |
| \(\) | \(=\) | \(\dfrac{\log_{a}x}{2\log_{a}a}\) |
| \(\) | \(=\) | \(\dfrac{\log_{a}x}{2}\) |
| \(\) | \(=\) | \(\dfrac{1}{2}\log_{a}x\) |
| \(\) | \(=\) | \(\text{RHS}\) |
(\(\log_{a}a=1\), and \(a^{2}\ne1\) since \(a>0\) and \(a\ne1\), so \(a^{2}\) is a valid base.)
\(\therefore\ \log_{a^{2}}x=\dfrac{1}{2}\log_{a}x\)
Common pitfalls
Frequently asked questions
What is a logarithm?
A logarithm is an index. \(\log_{a}y\) is the power you raise \(a\) to in order to get \(y\). For example, \(\log_{2}32=5\) because \(2^{5}=32\).
How do you convert between index form and logarithmic form?
\(a^{x}=y\) is the same as \(x=\log_{a}y\). The base stays the base and the index becomes the value of the logarithm. So \(10^{2}=100\) becomes \(\log_{10}100=2\).
What are the three laws of logarithms?
Product law: \(\log_{a}(mn)=\log_{a}m+\log_{a}n\). Quotient law: \(\log_{a}\dfrac{m}{n}=\log_{a}m-\log_{a}n\). Power law: \(\log_{a}m^{n}=n\log_{a}m\). All the logarithms must have the same base.
How do you use the change of base formula?
\(\log_{a}x=\dfrac{\log_{b}x}{\log_{b}a}\). To evaluate on a calculator use base \(10\): \(\log_{6}20=\dfrac{\log_{10}20}{\log_{10}6}\approx1.672\).
What does log mean with no base?
When no base is written, \(\log x\) means \(\log_{10}x\), the common logarithm. It is the log key on a calculator.
Can a logarithm be negative?
Yes. \(\log_{2}\dfrac{1}{16}=-4\), because \(2^{-4}=\dfrac{1}{16}\). But you cannot take the logarithm of a negative number or of \(0\).