Solving Equations with Logarithms
Every question with a fully worked solution.
- Solving Equations with Logarithms - Video - Solving Exponential Equations With Different Bases Using Logarithms Watch
Theory
Logarithms solve equations that equating indices cannot. This Year 11 Mathematics Advanced page shows how to solve \(a^{x}=b\) by taking logarithms of both sides or writing \(x=\log_{a}b\), giving exact and approximate answers; how to solve logarithmic equations with the log laws and index form while checking the domain; and how to handle different bases on each side and quadratic-type equations with a substitution.
When both sides of an exponential equation are not powers of the same base, as in \(3^{x}=40\), use logarithms. Either write the equation in logarithmic form, \(x=\log_{3}40\), or take logarithms of both sides and use the power law to bring the index down: \(\log 3^{x}=\log 40\) gives \(x\log 3=\log 40\). Both give \(x=\dfrac{\log 40}{\log 3}\). Here \(\log\) means \(\log_{10}\).
\(x=\log_{3}40\) is the exact answer. A calculator gives the approximate answer \(x\approx3.36\). Keep the full calculator value through the working and round only at the end.
A logarithmic equation has the unknown inside a logarithm, as in \(\log_{2}x+\log_{2}(x-3)=2\). Use the laws of logarithms to write each side as a single logarithm, then either
- change to index form: \(\log_{a}M=k\) gives \(M=a^{k}\), or
- equate the arguments: \(\log_{a}M=\log_{a}N\) gives \(M=N\).
The number inside a logarithm (its argument) must be positive, so every logarithmic equation has a domain. Combining logarithms can introduce values outside it, so check each solution in the original equation and reject any that make an argument zero or negative.
Two facts undo a logarithm or a power: \(\log_{a}a^{x}=x\) and \(a^{\log_{a}x}=x\). So \(\log_{7}7^{2x}=2x\) and \(4^{\log_{4}9}=9\).
Exponential equations:
Taking logarithms of both sides (power law):
Logarithmic equations (\(M,N>0\)):
| Form | Gives | Example |
|---|---|---|
| \(\log_{a}M=k\) | \(M=a^{k}\) | \(\log_{5}x=3\Rightarrow x=125\) |
| \(\log_{a}M=\log_{a}N\) | \(M=N\) | \(\log(2x)=\log 18\Rightarrow x=9\) |
| \(\log_{a}a^{x}\) | \(x\) | \(\log_{2}2^{-5}=-5\) |
| \(a^{\log_{a}x}\) | \(x\) | \(10^{\log 0.7}=0.7\) |
| \(\log\dfrac{2x+3}{x}\) | \(=\) | \(\log 5\) |
| \(\dfrac{2x+3}{x}\) | \(=\) | \(5\) |
| \(2x+3\) | \(=\) | \(5x\) |
| \(3\) | \(=\) | \(3x\) |
| \(x\) | \(=\) | \(1\) |
| \(\log_{9}x\) | \(=\) | \(\dfrac{\log_{3}x}{\log_{3}9}=\dfrac{\log_{3}x}{2}\) |
| \(\text{RHS}\) | \(=\) | \(2\times\dfrac{\log_{3}x}{2}\) |
| \(\) | \(=\) | \(\log_{3}x=\text{LHS}\) |
| \(m^{2}-2m-3\) | \(=\) | \(0\) |
| \((m-3)(m+1)\) | \(=\) | \(0\) |
Any base can be used to take logarithms of both sides (\(\log\) or \(\ln\)); the final answer is the same.
How to solve \(a^{x}=b\) with logarithms
- Isolate the power: divide by any number multiplying it.
- Take logarithms of both sides (or write in logarithmic form). Use the power law: \(\log a^{x+1}=(x+1)\log a\).
- Solve for \(x\). The exact answer contains logarithms; evaluate it at the end and round as asked.
How to solve a logarithmic equation
- Find the domain: every argument must be positive.
- Combine with the product, quotient and power laws so each side is a single logarithm (or a number).
- Remove the logarithm: \(\log_{a}M=k\) gives \(M=a^{k}\); \(\log_{a}M=\log_{a}N\) gives \(M=N\).
- Solve the resulting equation (often a quadratic).
- Check each answer against the domain and reject any that fail.
Different bases on each side
- Take logarithms of both sides and bring down the indices with the power law.
- Expand, collect the \(x\) terms on one side and factorise out \(x\).
- Divide to get \(x\), then evaluate.
Quadratic-type equations
- Substitute \(y=a^{x}\) (so \(a^{2x}=y^{2}\)) and factorise the quadratic.
- Solve \(a^{x}=y\) for each root: equate indices if \(y\) is a power of \(a\), otherwise use \(x=\log_{a}y\). Reject \(y\le0\).
(a) \(3^{x}=40\) (also give the exact answer)
(b) \(4\times7^{2x-1}=100\)
(a) Take logarithms of both sides:
| \(3^{x}\) | \(=\) | \(40\) |
| \(x\log 3\) | \(=\) | \(\log 40\) |
| \(x\) | \(=\) | \(\dfrac{\log 40}{\log 3}\) |
| \(\) | \(=\) | \(3.3577\ldots\) |
| \(\) | \(\approx\) | \(3.36\) |
Exact answer: \(\boldsymbol{x=\log_{3}40}\); approximate answer: \(\boldsymbol{x\approx3.36}\).
(b) Isolate the power, then rewrite in logarithmic form:
| \(7^{2x-1}\) | \(=\) | \(25\) |
| \(2x-1\) | \(=\) | \(\log_{7}25\) |
| \(2x-1\) | \(=\) | \(\dfrac{\log 25}{\log 7}=1.6541\ldots\) |
| \(2x\) | \(=\) | \(2.6541\ldots\) |
| \(x\) | \(=\) | \(1.3270\ldots\) |
| \(\) | \(\approx\) | \(\boldsymbol{1.33}\) |
Domain: need \(x+1>0\) and \(x-4>0\), so \(x>4\).
Use the product law, then write in index form:
| \(\log_{6}(x+1)(x-4)\) | \(=\) | \(1\) |
| \((x+1)(x-4)\) | \(=\) | \(6^{1}\) |
| \(x^{2}-3x-4\) | \(=\) | \(6\) |
| \(x^{2}-3x-10\) | \(=\) | \(0\) |
| \((x-5)(x+2)\) | \(=\) | \(0\) |
\(x=5\) or \(x=-2\)
We need \(x>4\), so reject \(x=-2\) (it would need \(\log_{6}(-1)\)).
\(\therefore\ \boldsymbol{x=5}\). Check: \(\log_{6}6+\log_{6}1=1+0=1\).
\(4^{x}=(2^{x})^{2}=y^{2}\), so:
| \(y^{2}-4y-21\) | \(=\) | \(0\) |
| \((y-7)(y+3)\) | \(=\) | \(0\) |
\(y=7\) or \(y=-3\)
\(2^{x}=-3\) has no solution, since \(2^{x}>0\).
| \(2^{x}\) | \(=\) | \(7\) |
| \(x\) | \(=\) | \(\log_{2}7=\dfrac{\log 7}{\log 2}\) |
| \(\) | \(=\) | \(2.8073\ldots\) |
| \(\) | \(\approx\) | \(\boldsymbol{2.81}\) |
\(\therefore\ x=\log_{2}7\approx2.81\)
Take logarithms of both sides and use the power law:
| \(\log 2^{x+3}\) | \(=\) | \(\log 5^{x}\) |
| \((x+3)\log 2\) | \(=\) | \(x\log 5\) |
| \(x\log 2+3\log 2\) | \(=\) | \(x\log 5\) |
| \(3\log 2\) | \(=\) | \(x\log 5-x\log 2\) |
| \(3\log 2\) | \(=\) | \(x(\log 5-\log 2)\) |
| \(x\) | \(=\) | \(\dfrac{3\log 2}{\log 5-\log 2}\) |
| \(\) | \(=\) | \(2.2694\ldots\) |
| \(\) | \(\approx\) | \(\boldsymbol{2.27}\) |
Keep brackets round \(x+3\) when you bring the index down: it multiplies the whole of \(\log 2\).
Common pitfalls
Frequently asked questions
How do you solve an exponential equation using logarithms?
Isolate the power, then take logarithms of both sides and use the power law. For \(3^{x}=40\), \(x\log 3=\log 40\), so \(x=\dfrac{\log 40}{\log 3}\approx3.36\). The exact answer is \(x=\log_{3}40\).
How do you solve a logarithmic equation?
Use the log laws to write each side as a single logarithm. Then change to index form (\(\log_{a}M=k\) gives \(M=a^{k}\)) or equate the arguments (\(\log_{a}M=\log_{a}N\) gives \(M=N\)). Solve, then check every answer is in the domain.
Why do you have to check answers to log equations?
A logarithm is only defined for positive numbers. Combining logarithms can create solutions that make an original argument zero or negative, so those solutions must be rejected.
How do you solve an equation with different bases on each side?
Take logarithms of both sides, bring the indices down with the power law, expand, collect the \(x\) terms and factorise. For \(2^{x+3}=5^{x}\), \(x=\dfrac{3\log 2}{\log 5-\log 2}\approx2.27\).
What does exact answer mean for a log equation?
The exact answer keeps the logarithm unevaluated, for example \(x=\log_{2}7\). A decimal from the calculator, such as \(2.81\), is an approximate answer.
Does it matter which log you take of both sides?
No. Base \(10\) logarithms (\(\log\)) and natural logarithms (\(\ln\)) give the same final answer, because the ratio of two logarithms is the same in every base.